]> granicus.if.org Git - postgresql/blob - configure
Detect Windows perl linkage parameters in configure script.
[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.3devel.
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.3devel'
602 PACKAGE_STRING='PostgreSQL 9.3devel'
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
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 have_win32_dbghelp
671 HAVE_IPV6
672 LIBOBJS
673 OSSP_UUID_LIBS
674 ZIC
675 python_enable_shared
676 python_additional_libs
677 python_libspec
678 python_libdir
679 python_includespec
680 python_version
681 python_majorversion
682 PYTHON
683 perl_embed_ldflags
684 perl_useshrplib
685 perl_privlibexp
686 perl_archlibexp
687 PERL
688 FLEXFLAGS
689 FLEX
690 BISONFLAGS
691 BISON
692 MKDIR_P
693 AWK
694 LN_S
695 TAR
696 install_bin
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 WINDRES
701 DLLWRAP
702 DLLTOOL
703 AR
704 STRIP_SHARED_LIB
705 STRIP_STATIC_LIB
706 STRIP
707 RANLIB
708 ld_R_works
709 with_gnu_ld
710 LD
711 LDFLAGS_SL
712 LDFLAGS_EX
713 ELF_SYS
714 EGREP
715 GREP
716 with_zlib
717 with_system_tzdata
718 with_libxslt
719 with_libxml
720 XML2_CONFIG
721 with_ossp_uuid
722 with_selinux
723 with_openssl
724 krb_srvtab
725 with_python
726 with_perl
727 with_tcl
728 enable_thread_safety
729 INCLUDES
730 autodepend
731 TAS
732 GCC
733 CPP
734 SUN_STUDIO_CC
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 enable_dtrace
743 DTRACEFLAGS
744 DTRACE
745 enable_coverage
746 GENHTML
747 LCOV
748 GCOV
749 enable_debug
750 enable_rpath
751 default_port
752 WANTED_LANGUAGES
753 enable_nls
754 PORTNAME
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 PG_MAJORVERSION
764 configure_args
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_template
806 with_includes
807 with_libraries
808 with_libs
809 enable_integer_datetimes
810 enable_nls
811 with_pgport
812 enable_rpath
813 enable_spinlocks
814 enable_debug
815 enable_profiling
816 enable_coverage
817 enable_dtrace
818 with_blocksize
819 with_segsize
820 with_wal_blocksize
821 with_wal_segsize
822 with_CC
823 enable_depend
824 enable_cassert
825 enable_thread_safety
826 with_tcl
827 with_tclconfig
828 with_perl
829 with_python
830 with_gssapi
831 with_krb5
832 with_krb_srvnam
833 with_pam
834 with_ldap
835 with_bonjour
836 with_openssl
837 with_selinux
838 with_readline
839 with_libedit_preferred
840 with_ossp_uuid
841 with_libxml
842 with_libxslt
843 with_system_tzdata
844 with_zlib
845 with_gnu_ld
846 enable_largefile
847 enable_float4_byval
848 enable_float8_byval
849 '
850       ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CPP
859 LDFLAGS_EX
860 LDFLAGS_SL
861 DOCBOOKSTYLE'
862
863
864 # Initialize some variables set by options.
865 ac_init_help=
866 ac_init_version=false
867 ac_unrecognized_opts=
868 ac_unrecognized_sep=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
871 cache_file=/dev/null
872 exec_prefix=NONE
873 no_create=
874 no_recursion=
875 prefix=NONE
876 program_prefix=NONE
877 program_suffix=NONE
878 program_transform_name=s,x,x,
879 silent=
880 site=
881 srcdir=
882 verbose=
883 x_includes=NONE
884 x_libraries=NONE
885
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916   # If the previous option needs an argument, assign it.
917   if test -n "$ac_prev"; then
918     eval $ac_prev=\$ac_option
919     ac_prev=
920     continue
921   fi
922
923   case $ac_option in
924   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925   *)    ac_optarg=yes ;;
926   esac
927
928   # Accept the important Cygnus configure options, so we can diagnose typos.
929
930   case $ac_dashdash$ac_option in
931   --)
932     ac_dashdash=yes ;;
933
934   -bindir | --bindir | --bindi | --bind | --bin | --bi)
935     ac_prev=bindir ;;
936   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937     bindir=$ac_optarg ;;
938
939   -build | --build | --buil | --bui | --bu)
940     ac_prev=build_alias ;;
941   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942     build_alias=$ac_optarg ;;
943
944   -cache-file | --cache-file | --cache-fil | --cache-fi \
945   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946     ac_prev=cache_file ;;
947   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949     cache_file=$ac_optarg ;;
950
951   --config-cache | -C)
952     cache_file=config.cache ;;
953
954   -datadir | --datadir | --datadi | --datad)
955     ac_prev=datadir ;;
956   -datadir=* | --datadir=* | --datadi=* | --datad=*)
957     datadir=$ac_optarg ;;
958
959   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960   | --dataroo | --dataro | --datar)
961     ac_prev=datarootdir ;;
962   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964     datarootdir=$ac_optarg ;;
965
966   -disable-* | --disable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
971    { (exit 1); exit 1; }; }
972     ac_useropt_orig=$ac_useropt
973     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974     case $ac_user_opts in
975       *"
976 "enable_$ac_useropt"
977 "*) ;;
978       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979          ac_unrecognized_sep=', ';;
980     esac
981     eval enable_$ac_useropt=no ;;
982
983   -docdir | --docdir | --docdi | --doc | --do)
984     ac_prev=docdir ;;
985   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986     docdir=$ac_optarg ;;
987
988   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989     ac_prev=dvidir ;;
990   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991     dvidir=$ac_optarg ;;
992
993   -enable-* | --enable-*)
994     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998    { (exit 1); exit 1; }; }
999     ac_useropt_orig=$ac_useropt
1000     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001     case $ac_user_opts in
1002       *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006          ac_unrecognized_sep=', ';;
1007     esac
1008     eval enable_$ac_useropt=\$ac_optarg ;;
1009
1010   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012   | --exec | --exe | --ex)
1013     ac_prev=exec_prefix ;;
1014   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016   | --exec=* | --exe=* | --ex=*)
1017     exec_prefix=$ac_optarg ;;
1018
1019   -gas | --gas | --ga | --g)
1020     # Obsolete; use --with-gas.
1021     with_gas=yes ;;
1022
1023   -help | --help | --hel | --he | -h)
1024     ac_init_help=long ;;
1025   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026     ac_init_help=recursive ;;
1027   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028     ac_init_help=short ;;
1029
1030   -host | --host | --hos | --ho)
1031     ac_prev=host_alias ;;
1032   -host=* | --host=* | --hos=* | --ho=*)
1033     host_alias=$ac_optarg ;;
1034
1035   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036     ac_prev=htmldir ;;
1037   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038   | --ht=*)
1039     htmldir=$ac_optarg ;;
1040
1041   -includedir | --includedir | --includedi | --included | --include \
1042   | --includ | --inclu | --incl | --inc)
1043     ac_prev=includedir ;;
1044   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045   | --includ=* | --inclu=* | --incl=* | --inc=*)
1046     includedir=$ac_optarg ;;
1047
1048   -infodir | --infodir | --infodi | --infod | --info | --inf)
1049     ac_prev=infodir ;;
1050   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051     infodir=$ac_optarg ;;
1052
1053   -libdir | --libdir | --libdi | --libd)
1054     ac_prev=libdir ;;
1055   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056     libdir=$ac_optarg ;;
1057
1058   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059   | --libexe | --libex | --libe)
1060     ac_prev=libexecdir ;;
1061   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062   | --libexe=* | --libex=* | --libe=*)
1063     libexecdir=$ac_optarg ;;
1064
1065   -localedir | --localedir | --localedi | --localed | --locale)
1066     ac_prev=localedir ;;
1067   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068     localedir=$ac_optarg ;;
1069
1070   -localstatedir | --localstatedir | --localstatedi | --localstated \
1071   | --localstate | --localstat | --localsta | --localst | --locals)
1072     ac_prev=localstatedir ;;
1073   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075     localstatedir=$ac_optarg ;;
1076
1077   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078     ac_prev=mandir ;;
1079   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080     mandir=$ac_optarg ;;
1081
1082   -nfp | --nfp | --nf)
1083     # Obsolete; use --without-fp.
1084     with_fp=no ;;
1085
1086   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087   | --no-cr | --no-c | -n)
1088     no_create=yes ;;
1089
1090   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092     no_recursion=yes ;;
1093
1094   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096   | --oldin | --oldi | --old | --ol | --o)
1097     ac_prev=oldincludedir ;;
1098   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101     oldincludedir=$ac_optarg ;;
1102
1103   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104     ac_prev=prefix ;;
1105   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106     prefix=$ac_optarg ;;
1107
1108   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109   | --program-pre | --program-pr | --program-p)
1110     ac_prev=program_prefix ;;
1111   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113     program_prefix=$ac_optarg ;;
1114
1115   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116   | --program-suf | --program-su | --program-s)
1117     ac_prev=program_suffix ;;
1118   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120     program_suffix=$ac_optarg ;;
1121
1122   -program-transform-name | --program-transform-name \
1123   | --program-transform-nam | --program-transform-na \
1124   | --program-transform-n | --program-transform- \
1125   | --program-transform | --program-transfor \
1126   | --program-transfo | --program-transf \
1127   | --program-trans | --program-tran \
1128   | --progr-tra | --program-tr | --program-t)
1129     ac_prev=program_transform_name ;;
1130   -program-transform-name=* | --program-transform-name=* \
1131   | --program-transform-nam=* | --program-transform-na=* \
1132   | --program-transform-n=* | --program-transform-=* \
1133   | --program-transform=* | --program-transfor=* \
1134   | --program-transfo=* | --program-transf=* \
1135   | --program-trans=* | --program-tran=* \
1136   | --progr-tra=* | --program-tr=* | --program-t=*)
1137     program_transform_name=$ac_optarg ;;
1138
1139   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140     ac_prev=pdfdir ;;
1141   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142     pdfdir=$ac_optarg ;;
1143
1144   -psdir | --psdir | --psdi | --psd | --ps)
1145     ac_prev=psdir ;;
1146   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147     psdir=$ac_optarg ;;
1148
1149   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150   | -silent | --silent | --silen | --sile | --sil)
1151     silent=yes ;;
1152
1153   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154     ac_prev=sbindir ;;
1155   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156   | --sbi=* | --sb=*)
1157     sbindir=$ac_optarg ;;
1158
1159   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161   | --sharedst | --shareds | --shared | --share | --shar \
1162   | --sha | --sh)
1163     ac_prev=sharedstatedir ;;
1164   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167   | --sha=* | --sh=*)
1168     sharedstatedir=$ac_optarg ;;
1169
1170   -site | --site | --sit)
1171     ac_prev=site ;;
1172   -site=* | --site=* | --sit=*)
1173     site=$ac_optarg ;;
1174
1175   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176     ac_prev=srcdir ;;
1177   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178     srcdir=$ac_optarg ;;
1179
1180   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181   | --syscon | --sysco | --sysc | --sys | --sy)
1182     ac_prev=sysconfdir ;;
1183   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185     sysconfdir=$ac_optarg ;;
1186
1187   -target | --target | --targe | --targ | --tar | --ta | --t)
1188     ac_prev=target_alias ;;
1189   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190     target_alias=$ac_optarg ;;
1191
1192   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193     verbose=yes ;;
1194
1195   -version | --version | --versio | --versi | --vers | -V)
1196     ac_init_version=: ;;
1197
1198   -with-* | --with-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203    { (exit 1); exit 1; }; }
1204     ac_useropt_orig=$ac_useropt
1205     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206     case $ac_user_opts in
1207       *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211          ac_unrecognized_sep=', ';;
1212     esac
1213     eval with_$ac_useropt=\$ac_optarg ;;
1214
1215   -without-* | --without-*)
1216     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220    { (exit 1); exit 1; }; }
1221     ac_useropt_orig=$ac_useropt
1222     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223     case $ac_user_opts in
1224       *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228          ac_unrecognized_sep=', ';;
1229     esac
1230     eval with_$ac_useropt=no ;;
1231
1232   --x)
1233     # Obsolete; use --with-x.
1234     with_x=yes ;;
1235
1236   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237   | --x-incl | --x-inc | --x-in | --x-i)
1238     ac_prev=x_includes ;;
1239   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241     x_includes=$ac_optarg ;;
1242
1243   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245     ac_prev=x_libraries ;;
1246   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248     x_libraries=$ac_optarg ;;
1249
1250   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252    { (exit 1); exit 1; }; }
1253     ;;
1254
1255   *=*)
1256     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257     # Reject names that are not valid shell variable names.
1258     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260    { (exit 1); exit 1; }; }
1261     eval $ac_envvar=\$ac_optarg
1262     export $ac_envvar ;;
1263
1264   *)
1265     # FIXME: should be removed in autoconf 3.0.
1266     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270     ;;
1271
1272   esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1278    { (exit 1); exit 1; }; }
1279 fi
1280
1281 if test -n "$ac_unrecognized_opts"; then
1282   case $enable_option_checking in
1283     no) ;;
1284     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285    { (exit 1); exit 1; }; } ;;
1286     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287   esac
1288 fi
1289
1290 # Check all directory arguments for consistency.
1291 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292                 datadir sysconfdir sharedstatedir localstatedir includedir \
1293                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294                 libdir localedir mandir
1295 do
1296   eval ac_val=\$$ac_var
1297   # Remove trailing slashes.
1298   case $ac_val in
1299     */ )
1300       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301       eval $ac_var=\$ac_val;;
1302   esac
1303   # Be sure to have absolute directory names.
1304   case $ac_val in
1305     [\\/$]* | ?:[\\/]* )  continue;;
1306     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307   esac
1308   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309    { (exit 1); exit 1; }; }
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321   if test "x$build_alias" = x; then
1322     cross_compiling=maybe
1323     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324     If a cross compiler is detected then cross compile mode will be used." >&2
1325   elif test "x$build_alias" != "x$host_alias"; then
1326     cross_compiling=yes
1327   fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1340    { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1343    { (exit 1); exit 1; }; }
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$as_myself" : 'X\(//\)[^/]' \| \
1353          X"$as_myself" : 'X\(//\)$' \| \
1354          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383    { (exit 1); exit 1; }; }
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1388    { (exit 1); exit 1; }; }
1389         pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392   srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_env_${ac_var}_value=\$${ac_var}
1403   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411   # Omit some internal or obsolete options to make the list less imposing.
1412   # This message is too long to be a string in the A/UX 3.1 sh.
1413   cat <<_ACEOF
1414 \`configure' configures PostgreSQL 9.3devel to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE.  See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424   -h, --help              display this help and exit
1425       --help=short        display options specific to this package
1426       --help=recursive    display the short help of all the included packages
1427   -V, --version           display version information and exit
1428   -q, --quiet, --silent   do not print \`checking...' messages
1429       --cache-file=FILE   cache test results in FILE [disabled]
1430   -C, --config-cache      alias for \`--cache-file=config.cache'
1431   -n, --no-create         do not create output files
1432       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435   --prefix=PREFIX         install architecture-independent files in PREFIX
1436                           [$ac_default_prefix]
1437   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1438                           [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448   --bindir=DIR            user executables [EPREFIX/bin]
1449   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1450   --libexecdir=DIR        program executables [EPREFIX/libexec]
1451   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1452   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1453   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1454   --libdir=DIR            object code libraries [EPREFIX/lib]
1455   --includedir=DIR        C header files [PREFIX/include]
1456   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1457   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1458   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1459   --infodir=DIR           info documentation [DATAROOTDIR/info]
1460   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1461   --mandir=DIR            man documentation [DATAROOTDIR/man]
1462   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1463   --htmldir=DIR           html documentation [DOCDIR]
1464   --dvidir=DIR            dvi documentation [DOCDIR]
1465   --pdfdir=DIR            pdf documentation [DOCDIR]
1466   --psdir=DIR             ps documentation [DOCDIR]
1467 _ACEOF
1468
1469   cat <<\_ACEOF
1470
1471 System types:
1472   --build=BUILD     configure for building on BUILD [guessed]
1473   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478   case $ac_init_help in
1479      short | recursive ) echo "Configuration of PostgreSQL 9.3devel:";;
1480    esac
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-option-checking  ignore unrecognized --enable/--with options
1485   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487   --disable-integer-datetimes
1488                           disable 64-bit integer date/time support
1489   --enable-nls[=LANGUAGES]
1490                           enable Native Language Support
1491   --disable-rpath         do not embed shared library search path in
1492                           executables
1493   --disable-spinlocks     do not use spinlocks
1494   --enable-debug          build with debugging symbols (-g)
1495   --enable-profiling      build with profiling enabled
1496   --enable-coverage       build with coverage testing instrumentation
1497   --enable-dtrace         build with DTrace support
1498   --enable-depend         turn on automatic dependency tracking
1499   --enable-cassert        enable assertion checks (for debugging)
1500   --disable-thread-safety disable thread-safety in client libraries
1501   --disable-largefile     omit support for large files
1502   --disable-float4-byval  disable float4 passed by value
1503   --disable-float8-byval  disable float8 passed by value
1504
1505 Optional Packages:
1506   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508   --with-template=NAME    override operating system template
1509   --with-includes=DIRS    look for additional header files in DIRS
1510   --with-libraries=DIRS   look for additional libraries in DIRS
1511   --with-libs=DIRS        alternative spelling of --with-libraries
1512   --with-pgport=PORTNUM   set default port number [5432]
1513   --with-blocksize=BLOCKSIZE
1514                           set table block size in kB [8]
1515   --with-segsize=SEGSIZE  set table segment size in GB [1]
1516   --with-wal-blocksize=BLOCKSIZE
1517                           set WAL block size in kB [8]
1518   --with-wal-segsize=SEGSIZE
1519                           set WAL segment size in MB [16]
1520   --with-CC=CMD           set compiler (deprecated)
1521   --with-tcl              build Tcl modules (PL/Tcl)
1522   --with-tclconfig=DIR    tclConfig.sh is in DIR
1523   --with-perl             build Perl modules (PL/Perl)
1524   --with-python           build Python modules (PL/Python)
1525   --with-gssapi           build with GSSAPI support
1526   --with-krb5             build with Kerberos 5 support
1527   --with-krb-srvnam=NAME  default service principal name in Kerberos
1528                           [postgres]
1529   --with-pam              build with PAM support
1530   --with-ldap             build with LDAP support
1531   --with-bonjour          build with Bonjour support
1532   --with-openssl          build with OpenSSL support
1533   --with-selinux          build with SELinux support
1534   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1535   --with-libedit-preferred
1536                           prefer BSD Libedit over GNU Readline
1537   --with-ossp-uuid        build contrib/uuid-ossp, requires OSSP UUID library
1538   --with-libxml           build with XML support
1539   --with-libxslt          use XSLT support when building contrib/xml2
1540   --with-system-tzdata=DIR
1541                           use system time zone data in DIR
1542   --without-zlib          do not use Zlib
1543   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1544
1545 Some influential environment variables:
1546   CC          C compiler command
1547   CFLAGS      C compiler flags
1548   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549               nonstandard directory <lib dir>
1550   LIBS        libraries to pass to the linker, e.g. -l<library>
1551   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552               you have headers in a nonstandard directory <include dir>
1553   CPP         C preprocessor
1554   LDFLAGS_EX  extra linker flags for linking executables only
1555   LDFLAGS_SL  extra linker flags for linking shared libraries only
1556   DOCBOOKSTYLE
1557               location of DocBook stylesheets
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to <pgsql-bugs@postgresql.org>.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568   # If there are subdirs, report their specific --help.
1569   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570     test -d "$ac_dir" ||
1571       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572       continue
1573     ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579   # A ".." for each directory in $ac_dir_suffix.
1580   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581   case $ac_top_builddir_sub in
1582   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584   esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592   .)  # We are building in place.
1593     ac_srcdir=.
1594     ac_top_srcdir=$ac_top_builddir_sub
1595     ac_abs_top_srcdir=$ac_pwd ;;
1596   [\\/]* | ?:[\\/]* )  # Absolute name.
1597     ac_srcdir=$srcdir$ac_dir_suffix;
1598     ac_top_srcdir=$srcdir
1599     ac_abs_top_srcdir=$srcdir ;;
1600   *) # Relative name.
1601     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602     ac_top_srcdir=$ac_top_build_prefix$srcdir
1603     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607     cd "$ac_dir" || { ac_status=$?; continue; }
1608     # Check for guested configure.
1609     if test -f "$ac_srcdir/configure.gnu"; then
1610       echo &&
1611       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612     elif test -f "$ac_srcdir/configure"; then
1613       echo &&
1614       $SHELL "$ac_srcdir/configure" --help=recursive
1615     else
1616       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617     fi || ac_status=$?
1618     cd "$ac_pwd" || { ac_status=$?; break; }
1619   done
1620 fi
1621
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624   cat <<\_ACEOF
1625 PostgreSQL configure 9.3devel
1626 generated by GNU Autoconf 2.63
1627
1628 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1629 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1632
1633 Copyright (c) 1996-2013, PostgreSQL Global Development Group
1634 _ACEOF
1635   exit
1636 fi
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1640
1641 It was created by PostgreSQL $as_me 9.3devel, which was
1642 generated by GNU Autoconf 2.63.  Invocation command line was
1643
1644   $ $0 $@
1645
1646 _ACEOF
1647 exec 5>>config.log
1648 {
1649 cat <<_ASUNAME
1650 ## --------- ##
1651 ## Platform. ##
1652 ## --------- ##
1653
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1662
1663 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1664 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1667 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1668 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1669 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1670
1671 _ASUNAME
1672
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   $as_echo "PATH: $as_dir"
1679 done
1680 IFS=$as_save_IFS
1681
1682 } >&5
1683
1684 cat >&5 <<_ACEOF
1685
1686
1687 ## ----------- ##
1688 ## Core tests. ##
1689 ## ----------- ##
1690
1691 _ACEOF
1692
1693
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_configure_args=
1700 ac_configure_args0=
1701 ac_configure_args1=
1702 ac_must_keep_next=false
1703 for ac_pass in 1 2
1704 do
1705   for ac_arg
1706   do
1707     case $ac_arg in
1708     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710     | -silent | --silent | --silen | --sile | --sil)
1711       continue ;;
1712     *\'*)
1713       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1714     esac
1715     case $ac_pass in
1716     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1717     2)
1718       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719       if test $ac_must_keep_next = true; then
1720         ac_must_keep_next=false # Got value, back to normal.
1721       else
1722         case $ac_arg in
1723           *=* | --config-cache | -C | -disable-* | --disable-* \
1724           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726           | -with-* | --with-* | -without-* | --without-* | --x)
1727             case "$ac_configure_args0 " in
1728               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1729             esac
1730             ;;
1731           -* ) ac_must_keep_next=true ;;
1732         esac
1733       fi
1734       ac_configure_args="$ac_configure_args '$ac_arg'"
1735       ;;
1736     esac
1737   done
1738 done
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1741
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log.  We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748   # Save into config.log some information that might help in debugging.
1749   {
1750     echo
1751
1752     cat <<\_ASBOX
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1756 _ASBOX
1757     echo
1758     # The following way of writing the cache mishandles newlines in values,
1759 (
1760   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761     eval ac_val=\$$ac_var
1762     case $ac_val in #(
1763     *${as_nl}*)
1764       case $ac_var in #(
1765       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1766 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1767       esac
1768       case $ac_var in #(
1769       _ | IFS | as_nl) ;; #(
1770       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771       *) $as_unset $ac_var ;;
1772       esac ;;
1773     esac
1774   done
1775   (set) 2>&1 |
1776     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777     *${as_nl}ac_space=\ *)
1778       sed -n \
1779         "s/'\''/'\''\\\\'\'''\''/g;
1780           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781       ;; #(
1782     *)
1783       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784       ;;
1785     esac |
1786     sort
1787 )
1788     echo
1789
1790     cat <<\_ASBOX
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1794 _ASBOX
1795     echo
1796     for ac_var in $ac_subst_vars
1797     do
1798       eval ac_val=\$$ac_var
1799       case $ac_val in
1800       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801       esac
1802       $as_echo "$ac_var='\''$ac_val'\''"
1803     done | sort
1804     echo
1805
1806     if test -n "$ac_subst_files"; then
1807       cat <<\_ASBOX
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1811 _ASBOX
1812       echo
1813       for ac_var in $ac_subst_files
1814       do
1815         eval ac_val=\$$ac_var
1816         case $ac_val in
1817         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818         esac
1819         $as_echo "$ac_var='\''$ac_val'\''"
1820       done | sort
1821       echo
1822     fi
1823
1824     if test -s confdefs.h; then
1825       cat <<\_ASBOX
1826 ## ----------- ##
1827 ## confdefs.h. ##
1828 ## ----------- ##
1829 _ASBOX
1830       echo
1831       cat confdefs.h
1832       echo
1833     fi
1834     test "$ac_signal" != 0 &&
1835       $as_echo "$as_me: caught signal $ac_signal"
1836     $as_echo "$as_me: exit $exit_status"
1837   } >&5
1838   rm -f core *.core core.conftest.* &&
1839     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1840     exit $exit_status
1841 ' 0
1842 for ac_signal in 1 2 13 15; do
1843   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1844 done
1845 ac_signal=0
1846
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1849
1850 # Predefined preprocessor variables.
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874 _ACEOF
1875
1876
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1879 ac_site_file1=NONE
1880 ac_site_file2=NONE
1881 if test -n "$CONFIG_SITE"; then
1882   ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884   ac_site_file1=$prefix/share/config.site
1885   ac_site_file2=$prefix/etc/config.site
1886 else
1887   ac_site_file1=$ac_default_prefix/share/config.site
1888   ac_site_file2=$ac_default_prefix/etc/config.site
1889 fi
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1891 do
1892   test "x$ac_site_file" = xNONE && continue
1893   if test -r "$ac_site_file"; then
1894     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896     sed 's/^/| /' "$ac_site_file" >&5
1897     . "$ac_site_file"
1898   fi
1899 done
1900
1901 if test -r "$cache_file"; then
1902   # Some versions of bash will fail to source /dev/null (special
1903   # files actually), so we avoid doing that.
1904   if test -f "$cache_file"; then
1905     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1907     case $cache_file in
1908       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909       *)                      . "./$cache_file";;
1910     esac
1911   fi
1912 else
1913   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1915   >$cache_file
1916 fi
1917
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923   eval ac_new_set=\$ac_env_${ac_var}_set
1924   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925   eval ac_new_val=\$ac_env_${ac_var}_value
1926   case $ac_old_set,$ac_new_set in
1927     set,)
1928       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930       ac_cache_corrupted=: ;;
1931     ,set)
1932       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,);;
1936     *)
1937       if test "x$ac_old_val" != "x$ac_new_val"; then
1938         # differences in whitespace do not lead to failure.
1939         ac_old_val_w=`echo x $ac_old_val`
1940         ac_new_val_w=`echo x $ac_new_val`
1941         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944           ac_cache_corrupted=:
1945         else
1946           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948           eval $ac_var=\$ac_old_val
1949         fi
1950         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1951 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1952         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1954       fi;;
1955   esac
1956   # Pass precious variables to config.status.
1957   if test "$ac_new_set" = set; then
1958     case $ac_new_val in
1959     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960     *) ac_arg=$ac_var=$ac_new_val ;;
1961     esac
1962     case " $ac_configure_args " in
1963       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1964       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965     esac
1966   fi
1967 done
1968 if $ac_cache_corrupted; then
1969   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1971   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1973   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1974 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007
2008
2009
2010
2011
2012
2013 ac_aux_dir=
2014 for ac_dir in config "$srcdir"/config; do
2015   if test -f "$ac_dir/install-sh"; then
2016     ac_aux_dir=$ac_dir
2017     ac_install_sh="$ac_aux_dir/install-sh -c"
2018     break
2019   elif test -f "$ac_dir/install.sh"; then
2020     ac_aux_dir=$ac_dir
2021     ac_install_sh="$ac_aux_dir/install.sh -c"
2022     break
2023   elif test -f "$ac_dir/shtool"; then
2024     ac_aux_dir=$ac_dir
2025     ac_install_sh="$ac_aux_dir/shtool install -c"
2026     break
2027   fi
2028 done
2029 if test -z "$ac_aux_dir"; then
2030   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2031 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2032    { (exit 1); exit 1; }; }
2033 fi
2034
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2042
2043
2044
2045 configure_args=$ac_configure_args
2046
2047
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PG_VERSION "$PACKAGE_VERSION"
2051 _ACEOF
2052
2053 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2054
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2058 _ACEOF
2059
2060
2061 # Make sure we can run config.sub.
2062 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2063   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2064 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2065    { (exit 1); exit 1; }; }
2066
2067 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2068 $as_echo_n "checking build system type... " >&6; }
2069 if test "${ac_cv_build+set}" = set; then
2070   $as_echo_n "(cached) " >&6
2071 else
2072   ac_build_alias=$build_alias
2073 test "x$ac_build_alias" = x &&
2074   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2075 test "x$ac_build_alias" = x &&
2076   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2077 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2078    { (exit 1); exit 1; }; }
2079 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2080   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2081 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2082    { (exit 1); exit 1; }; }
2083
2084 fi
2085 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2086 $as_echo "$ac_cv_build" >&6; }
2087 case $ac_cv_build in
2088 *-*-*) ;;
2089 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2090 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2091    { (exit 1); exit 1; }; };;
2092 esac
2093 build=$ac_cv_build
2094 ac_save_IFS=$IFS; IFS='-'
2095 set x $ac_cv_build
2096 shift
2097 build_cpu=$1
2098 build_vendor=$2
2099 shift; shift
2100 # Remember, the first character of IFS is used to create $*,
2101 # except with old shells:
2102 build_os=$*
2103 IFS=$ac_save_IFS
2104 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2105
2106
2107 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2108 $as_echo_n "checking host system type... " >&6; }
2109 if test "${ac_cv_host+set}" = set; then
2110   $as_echo_n "(cached) " >&6
2111 else
2112   if test "x$host_alias" = x; then
2113   ac_cv_host=$ac_cv_build
2114 else
2115   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2116     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2117 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120
2121 fi
2122 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2123 $as_echo "$ac_cv_host" >&6; }
2124 case $ac_cv_host in
2125 *-*-*) ;;
2126 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2127 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2128    { (exit 1); exit 1; }; };;
2129 esac
2130 host=$ac_cv_host
2131 ac_save_IFS=$IFS; IFS='-'
2132 set x $ac_cv_host
2133 shift
2134 host_cpu=$1
2135 host_vendor=$2
2136 shift; shift
2137 # Remember, the first character of IFS is used to create $*,
2138 # except with old shells:
2139 host_os=$*
2140 IFS=$ac_save_IFS
2141 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2142
2143
2144
2145 template=
2146 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2147 $as_echo_n "checking which template to use... " >&6; }
2148
2149
2150
2151
2152 # Check whether --with-template was given.
2153 if test "${with_template+set}" = set; then
2154   withval=$with_template;
2155   case $withval in
2156     yes)
2157       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2158 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2159    { (exit 1); exit 1; }; }
2160       ;;
2161     no)
2162       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2163 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2164    { (exit 1); exit 1; }; }
2165       ;;
2166     *)
2167
2168   case $withval in
2169     list)   echo; ls "$srcdir/src/template"; exit;;
2170     *)      if test -f "$srcdir/src/template/$with_template" ; then
2171               template=$withval
2172             else
2173               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2174 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2175    { (exit 1); exit 1; }; }
2176             fi;;
2177   esac
2178
2179       ;;
2180   esac
2181
2182 else
2183
2184 # --with-template not given
2185
2186 case $host_os in
2187      aix*) template=aix ;;
2188   cygwin*) template=cygwin ;;
2189   darwin*) template=darwin ;;
2190 dragonfly*) template=netbsd ;;
2191  freebsd*) template=freebsd ;;
2192     hpux*) template=hpux ;;
2193     irix*) template=irix ;;
2194  linux*|gnu*|k*bsd*-gnu)
2195            template=linux ;;
2196    mingw*) template=win32 ;;
2197   netbsd*) template=netbsd ;;
2198  openbsd*) template=openbsd ;;
2199      osf*) template=osf ;;
2200      sco*) template=sco ;;
2201  solaris*) template=solaris ;;
2202    sysv5*) template=unixware ;;
2203 esac
2204
2205   if test x"$template" = x"" ; then
2206     { { $as_echo "$as_me:$LINENO: error:
2207 *******************************************************************
2208 PostgreSQL has apparently not been ported to your platform yet.
2209 To try a manual configuration, look into the src/template directory
2210 for a similar platform and use the '--with-template=' option.
2211
2212 Please also contact <pgsql-bugs@postgresql.org> to see about
2213 rectifying this.  Include the above 'checking host system type...'
2214 line.
2215 *******************************************************************
2216 " >&5
2217 $as_echo "$as_me: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2222
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this.  Include the above 'checking host system type...'
2225 line.
2226 *******************************************************************
2227 " >&2;}
2228    { (exit 1); exit 1; }; }
2229   fi
2230
2231
2232 fi
2233
2234
2235
2236 { $as_echo "$as_me:$LINENO: result: $template" >&5
2237 $as_echo "$template" >&6; }
2238
2239 PORTNAME=$template
2240
2241
2242 # Initialize default assumption that we do not need separate assembly code
2243 # for TAS (test-and-set).  This can be overridden by the template file
2244 # when it's executed.
2245 need_tas=no
2246 tas_file=dummy.s
2247
2248
2249
2250 ##
2251 ## Command line options
2252 ##
2253
2254 #
2255 # Add non-standard directories to the include path
2256 #
2257
2258
2259
2260 # Check whether --with-includes was given.
2261 if test "${with_includes+set}" = set; then
2262   withval=$with_includes;
2263   case $withval in
2264     yes)
2265       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2266 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2267    { (exit 1); exit 1; }; }
2268       ;;
2269     no)
2270       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2271 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2272    { (exit 1); exit 1; }; }
2273       ;;
2274     *)
2275
2276       ;;
2277   esac
2278
2279 fi
2280
2281
2282
2283
2284 #
2285 # Add non-standard directories to the library search path
2286 #
2287
2288
2289
2290 # Check whether --with-libraries was given.
2291 if test "${with_libraries+set}" = set; then
2292   withval=$with_libraries;
2293   case $withval in
2294     yes)
2295       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2296 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2297    { (exit 1); exit 1; }; }
2298       ;;
2299     no)
2300       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2301 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2302    { (exit 1); exit 1; }; }
2303       ;;
2304     *)
2305       LIBRARY_DIRS=$withval
2306       ;;
2307   esac
2308
2309 fi
2310
2311
2312
2313
2314
2315
2316 # Check whether --with-libs was given.
2317 if test "${with_libs+set}" = set; then
2318   withval=$with_libs;
2319   case $withval in
2320     yes)
2321       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2322 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2323    { (exit 1); exit 1; }; }
2324       ;;
2325     no)
2326       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2327 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2328    { (exit 1); exit 1; }; }
2329       ;;
2330     *)
2331       LIBRARY_DIRS=$withval
2332       ;;
2333   esac
2334
2335 fi
2336
2337
2338
2339
2340 #
2341 # 64-bit integer date/time storage: enabled by default.
2342 #
2343 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2344 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2345
2346
2347 # Check whether --enable-integer-datetimes was given.
2348 if test "${enable_integer_datetimes+set}" = set; then
2349   enableval=$enable_integer_datetimes;
2350   case $enableval in
2351     yes)
2352
2353 cat >>confdefs.h <<\_ACEOF
2354 #define USE_INTEGER_DATETIMES 1
2355 _ACEOF
2356
2357       ;;
2358     no)
2359       :
2360       ;;
2361     *)
2362       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2363 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2364    { (exit 1); exit 1; }; }
2365       ;;
2366   esac
2367
2368 else
2369   enable_integer_datetimes=yes
2370
2371 cat >>confdefs.h <<\_ACEOF
2372 #define USE_INTEGER_DATETIMES 1
2373 _ACEOF
2374
2375 fi
2376
2377
2378 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2379 $as_echo "$enable_integer_datetimes" >&6; }
2380
2381
2382 #
2383 # NLS
2384 #
2385 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2386 $as_echo_n "checking whether NLS is wanted... " >&6; }
2387
2388
2389 # Check whether --enable-nls was given.
2390 if test "${enable_nls+set}" = set; then
2391   enableval=$enable_nls;
2392   case $enableval in
2393     yes)
2394       :
2395       ;;
2396     no)
2397       :
2398       ;;
2399     *)
2400       enable_nls=yes
2401 WANTED_LANGUAGES=$enableval
2402       ;;
2403   esac
2404
2405 else
2406   enable_nls=no
2407 fi
2408
2409
2410
2411 if test "$enable_nls" = yes; then
2412
2413 cat >>confdefs.h <<\_ACEOF
2414 #define ENABLE_NLS 1
2415 _ACEOF
2416
2417 fi
2418
2419 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2420 $as_echo "$enable_nls" >&6; }
2421
2422
2423
2424 #
2425 # Default port number (--with-pgport), default 5432
2426 #
2427 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2428 $as_echo_n "checking for default port number... " >&6; }
2429
2430
2431
2432 # Check whether --with-pgport was given.
2433 if test "${with_pgport+set}" = set; then
2434   withval=$with_pgport;
2435   case $withval in
2436     yes)
2437       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2438 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2439    { (exit 1); exit 1; }; }
2440       ;;
2441     no)
2442       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2443 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2444    { (exit 1); exit 1; }; }
2445       ;;
2446     *)
2447       default_port=$withval
2448       ;;
2449   esac
2450
2451 else
2452   default_port=5432
2453 fi
2454
2455
2456 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2457 $as_echo "$default_port" >&6; }
2458 # Need both of these because some places want an integer and some a string
2459
2460 cat >>confdefs.h <<_ACEOF
2461 #define DEF_PGPORT ${default_port}
2462 _ACEOF
2463
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define DEF_PGPORT_STR "${default_port}"
2467 _ACEOF
2468
2469
2470
2471 #
2472 # '-rpath'-like feature can be disabled
2473 #
2474
2475
2476 # Check whether --enable-rpath was given.
2477 if test "${enable_rpath+set}" = set; then
2478   enableval=$enable_rpath;
2479   case $enableval in
2480     yes)
2481       :
2482       ;;
2483     no)
2484       :
2485       ;;
2486     *)
2487       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2488 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2489    { (exit 1); exit 1; }; }
2490       ;;
2491   esac
2492
2493 else
2494   enable_rpath=yes
2495
2496 fi
2497
2498
2499
2500
2501 #
2502 # Spinlocks
2503 #
2504
2505
2506 # Check whether --enable-spinlocks was given.
2507 if test "${enable_spinlocks+set}" = set; then
2508   enableval=$enable_spinlocks;
2509   case $enableval in
2510     yes)
2511       :
2512       ;;
2513     no)
2514       :
2515       ;;
2516     *)
2517       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2518 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2519    { (exit 1); exit 1; }; }
2520       ;;
2521   esac
2522
2523 else
2524   enable_spinlocks=yes
2525
2526 fi
2527
2528
2529
2530 #
2531 # --enable-debug adds -g to compiler flags
2532 #
2533
2534
2535 # Check whether --enable-debug was given.
2536 if test "${enable_debug+set}" = set; then
2537   enableval=$enable_debug;
2538   case $enableval in
2539     yes)
2540       :
2541       ;;
2542     no)
2543       :
2544       ;;
2545     *)
2546       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2547 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2548    { (exit 1); exit 1; }; }
2549       ;;
2550   esac
2551
2552 else
2553   enable_debug=no
2554
2555 fi
2556
2557
2558
2559
2560 #
2561 # --enable-profiling enables gcc profiling
2562 #
2563
2564
2565 # Check whether --enable-profiling was given.
2566 if test "${enable_profiling+set}" = set; then
2567   enableval=$enable_profiling;
2568   case $enableval in
2569     yes)
2570       :
2571       ;;
2572     no)
2573       :
2574       ;;
2575     *)
2576       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2577 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2578    { (exit 1); exit 1; }; }
2579       ;;
2580   esac
2581
2582 else
2583   enable_profiling=no
2584
2585 fi
2586
2587
2588
2589 #
2590 # --enable-coverage enables generation of code coverage metrics with gcov
2591 #
2592
2593
2594 # Check whether --enable-coverage was given.
2595 if test "${enable_coverage+set}" = set; then
2596   enableval=$enable_coverage;
2597   case $enableval in
2598     yes)
2599       for ac_prog in gcov
2600 do
2601   # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_GCOV+set}" = set; then
2606   $as_echo_n "(cached) " >&6
2607 else
2608   if test -n "$GCOV"; then
2609   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     ac_cv_prog_GCOV="$ac_prog"
2619     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 GCOV=$ac_cv_prog_GCOV
2629 if test -n "$GCOV"; then
2630   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2631 $as_echo "$GCOV" >&6; }
2632 else
2633   { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2635 fi
2636
2637
2638   test -n "$GCOV" && break
2639 done
2640
2641 if test -z "$GCOV"; then
2642   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2643 $as_echo "$as_me: error: gcov not found" >&2;}
2644    { (exit 1); exit 1; }; }
2645 fi
2646 for ac_prog in lcov
2647 do
2648   # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_LCOV+set}" = set; then
2653   $as_echo_n "(cached) " >&6
2654 else
2655   if test -n "$LCOV"; then
2656   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663   for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_LCOV="$ac_prog"
2666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 LCOV=$ac_cv_prog_LCOV
2676 if test -n "$LCOV"; then
2677   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2678 $as_echo "$LCOV" >&6; }
2679 else
2680   { $as_echo "$as_me:$LINENO: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684
2685   test -n "$LCOV" && break
2686 done
2687
2688 if test -z "$LCOV"; then
2689   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2690 $as_echo "$as_me: error: lcov not found" >&2;}
2691    { (exit 1); exit 1; }; }
2692 fi
2693 for ac_prog in genhtml
2694 do
2695   # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if test "${ac_cv_prog_GENHTML+set}" = set; then
2700   $as_echo_n "(cached) " >&6
2701 else
2702   if test -n "$GENHTML"; then
2703   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708   IFS=$as_save_IFS
2709   test -z "$as_dir" && as_dir=.
2710   for ac_exec_ext in '' $ac_executable_extensions; do
2711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712     ac_cv_prog_GENHTML="$ac_prog"
2713     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714     break 2
2715   fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 GENHTML=$ac_cv_prog_GENHTML
2723 if test -n "$GENHTML"; then
2724   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2725 $as_echo "$GENHTML" >&6; }
2726 else
2727   { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732   test -n "$GENHTML" && break
2733 done
2734
2735 if test -z "$GENHTML"; then
2736   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2737 $as_echo "$as_me: error: genhtml not found" >&2;}
2738    { (exit 1); exit 1; }; }
2739 fi
2740       ;;
2741     no)
2742       :
2743       ;;
2744     *)
2745       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2746 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2747    { (exit 1); exit 1; }; }
2748       ;;
2749   esac
2750
2751 else
2752   enable_coverage=no
2753
2754 fi
2755
2756
2757
2758
2759 #
2760 # DTrace
2761 #
2762
2763
2764 # Check whether --enable-dtrace was given.
2765 if test "${enable_dtrace+set}" = set; then
2766   enableval=$enable_dtrace;
2767   case $enableval in
2768     yes)
2769       for ac_prog in dtrace
2770 do
2771   # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_DTRACE+set}" = set; then
2776   $as_echo_n "(cached) " >&6
2777 else
2778   if test -n "$DTRACE"; then
2779   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784   IFS=$as_save_IFS
2785   test -z "$as_dir" && as_dir=.
2786   for ac_exec_ext in '' $ac_executable_extensions; do
2787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788     ac_cv_prog_DTRACE="$ac_prog"
2789     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790     break 2
2791   fi
2792 done
2793 done
2794 IFS=$as_save_IFS
2795
2796 fi
2797 fi
2798 DTRACE=$ac_cv_prog_DTRACE
2799 if test -n "$DTRACE"; then
2800   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2801 $as_echo "$DTRACE" >&6; }
2802 else
2803   { $as_echo "$as_me:$LINENO: result: no" >&5
2804 $as_echo "no" >&6; }
2805 fi
2806
2807
2808   test -n "$DTRACE" && break
2809 done
2810
2811 if test -z "$DTRACE"; then
2812   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2813 $as_echo "$as_me: error: dtrace not found" >&2;}
2814    { (exit 1); exit 1; }; }
2815 fi
2816
2817       ;;
2818     no)
2819       :
2820       ;;
2821     *)
2822       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2823 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2824    { (exit 1); exit 1; }; }
2825       ;;
2826   esac
2827
2828 else
2829   enable_dtrace=no
2830
2831 fi
2832
2833
2834
2835
2836 #
2837 # Block size
2838 #
2839 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2840 $as_echo_n "checking for block size... " >&6; }
2841
2842
2843
2844 # Check whether --with-blocksize was given.
2845 if test "${with_blocksize+set}" = set; then
2846   withval=$with_blocksize;
2847   case $withval in
2848     yes)
2849       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2850 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2851    { (exit 1); exit 1; }; }
2852       ;;
2853     no)
2854       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2855 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2856    { (exit 1); exit 1; }; }
2857       ;;
2858     *)
2859       blocksize=$withval
2860       ;;
2861   esac
2862
2863 else
2864   blocksize=8
2865 fi
2866
2867
2868 case ${blocksize} in
2869   1) BLCKSZ=1024;;
2870   2) BLCKSZ=2048;;
2871   4) BLCKSZ=4096;;
2872   8) BLCKSZ=8192;;
2873  16) BLCKSZ=16384;;
2874  32) BLCKSZ=32768;;
2875   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2876 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2877    { (exit 1); exit 1; }; }
2878 esac
2879 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2880 $as_echo "${blocksize}kB" >&6; }
2881
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define BLCKSZ ${BLCKSZ}
2885 _ACEOF
2886
2887
2888 #
2889 # Relation segment size
2890 #
2891 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2892 $as_echo_n "checking for segment size... " >&6; }
2893
2894
2895
2896 # Check whether --with-segsize was given.
2897 if test "${with_segsize+set}" = set; then
2898   withval=$with_segsize;
2899   case $withval in
2900     yes)
2901       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2903    { (exit 1); exit 1; }; }
2904       ;;
2905     no)
2906       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2907 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2908    { (exit 1); exit 1; }; }
2909       ;;
2910     *)
2911       segsize=$withval
2912       ;;
2913   esac
2914
2915 else
2916   segsize=1
2917 fi
2918
2919
2920 # this expression is set up to avoid unnecessary integer overflow
2921 # blocksize is already guaranteed to be a factor of 1024
2922 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2923 test $? -eq 0 || exit 1
2924 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2925 $as_echo "${segsize}GB" >&6; }
2926
2927
2928 cat >>confdefs.h <<_ACEOF
2929 #define RELSEG_SIZE ${RELSEG_SIZE}
2930 _ACEOF
2931
2932
2933 #
2934 # WAL block size
2935 #
2936 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2937 $as_echo_n "checking for WAL block size... " >&6; }
2938
2939
2940
2941 # Check whether --with-wal-blocksize was given.
2942 if test "${with_wal_blocksize+set}" = set; then
2943   withval=$with_wal_blocksize;
2944   case $withval in
2945     yes)
2946       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2947 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2948    { (exit 1); exit 1; }; }
2949       ;;
2950     no)
2951       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2952 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2953    { (exit 1); exit 1; }; }
2954       ;;
2955     *)
2956       wal_blocksize=$withval
2957       ;;
2958   esac
2959
2960 else
2961   wal_blocksize=8
2962 fi
2963
2964
2965 case ${wal_blocksize} in
2966   1) XLOG_BLCKSZ=1024;;
2967   2) XLOG_BLCKSZ=2048;;
2968   4) XLOG_BLCKSZ=4096;;
2969   8) XLOG_BLCKSZ=8192;;
2970  16) XLOG_BLCKSZ=16384;;
2971  32) XLOG_BLCKSZ=32768;;
2972  64) XLOG_BLCKSZ=65536;;
2973   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2974 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2975    { (exit 1); exit 1; }; }
2976 esac
2977 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2978 $as_echo "${wal_blocksize}kB" >&6; }
2979
2980
2981 cat >>confdefs.h <<_ACEOF
2982 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2983 _ACEOF
2984
2985
2986 #
2987 # WAL segment size
2988 #
2989 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2990 $as_echo_n "checking for WAL segment size... " >&6; }
2991
2992
2993
2994 # Check whether --with-wal-segsize was given.
2995 if test "${with_wal_segsize+set}" = set; then
2996   withval=$with_wal_segsize;
2997   case $withval in
2998     yes)
2999       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3000 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3001    { (exit 1); exit 1; }; }
3002       ;;
3003     no)
3004       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3005 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3006    { (exit 1); exit 1; }; }
3007       ;;
3008     *)
3009       wal_segsize=$withval
3010       ;;
3011   esac
3012
3013 else
3014   wal_segsize=16
3015 fi
3016
3017
3018 case ${wal_segsize} in
3019   1) ;;
3020   2) ;;
3021   4) ;;
3022   8) ;;
3023  16) ;;
3024  32) ;;
3025  64) ;;
3026   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3027 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3028    { (exit 1); exit 1; }; }
3029 esac
3030 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3031 $as_echo "${wal_segsize}MB" >&6; }
3032
3033
3034 cat >>confdefs.h <<_ACEOF
3035 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3036 _ACEOF
3037
3038
3039 #
3040 # C compiler
3041 #
3042
3043 # For historical reasons you can also use --with-CC to specify the C compiler
3044 # to use, although the standard way to do this is to set the CC environment
3045 # variable.
3046
3047
3048
3049 # Check whether --with-CC was given.
3050 if test "${with_CC+set}" = set; then
3051   withval=$with_CC;
3052   case $withval in
3053     yes)
3054       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3055 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3056    { (exit 1); exit 1; }; }
3057       ;;
3058     no)
3059       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3060 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3061    { (exit 1); exit 1; }; }
3062       ;;
3063     *)
3064       CC=$with_CC
3065       ;;
3066   esac
3067
3068 fi
3069
3070
3071
3072 case $template in
3073   aix) pgac_cc_list="gcc xlc";;
3074  irix) pgac_cc_list="cc";; # no gcc
3075     *) pgac_cc_list="gcc cc";;
3076 esac
3077
3078 ac_ext=c
3079 ac_cpp='$CPP $CPPFLAGS'
3080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3083 if test -n "$ac_tool_prefix"; then
3084   for ac_prog in $pgac_cc_list
3085   do
3086     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_CC+set}" = set; then
3091   $as_echo_n "(cached) " >&6
3092 else
3093   if test -n "$CC"; then
3094   ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099   IFS=$as_save_IFS
3100   test -z "$as_dir" && as_dir=.
3101   for ac_exec_ext in '' $ac_executable_extensions; do
3102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105     break 2
3106   fi
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118   { $as_echo "$as_me:$LINENO: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123     test -n "$CC" && break
3124   done
3125 fi
3126 if test -z "$CC"; then
3127   ac_ct_CC=$CC
3128   for ac_prog in $pgac_cc_list
3129 do
3130   # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3135   $as_echo_n "(cached) " >&6
3136 else
3137   if test -n "$ac_ct_CC"; then
3138   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145   for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     ac_cv_prog_ac_ct_CC="$ac_prog"
3148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149     break 2
3150   fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3161 else
3162   { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167   test -n "$ac_ct_CC" && break
3168 done
3169
3170   if test "x$ac_ct_CC" = x; then
3171     CC=""
3172   else
3173     case $cross_compiling:$ac_tool_warned in
3174 yes:)
3175 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3178 esac
3179     CC=$ac_ct_CC
3180   fi
3181 fi
3182
3183
3184 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details." >&5
3188 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details." >&2;}
3190    { (exit 1); exit 1; }; }; }
3191
3192 # Provide some information about the compiler.
3193 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3194 set X $ac_compile
3195 ac_compiler=$2
3196 { (ac_try="$ac_compiler --version >&5"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203   (eval "$ac_compiler --version >&5") 2>&5
3204   ac_status=$?
3205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }
3207 { (ac_try="$ac_compiler -v >&5"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3213 $as_echo "$ac_try_echo") >&5
3214   (eval "$ac_compiler -v >&5") 2>&5
3215   ac_status=$?
3216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); }
3218 { (ac_try="$ac_compiler -V >&5"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225   (eval "$ac_compiler -V >&5") 2>&5
3226   ac_status=$?
3227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }
3229
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h.  */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h.  */
3236
3237 int
3238 main ()
3239 {
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 ac_clean_files_save=$ac_clean_files
3246 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3247 # Try to create an executable without -o first, disregard a.out.
3248 # It will help us diagnose broken compilers, and finding out an intuition
3249 # of exeext.
3250 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3251 $as_echo_n "checking for C compiler default output file name... " >&6; }
3252 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3253
3254 # The possible output files:
3255 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3256
3257 ac_rmfiles=
3258 for ac_file in $ac_files
3259 do
3260   case $ac_file in
3261     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3262     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3263   esac
3264 done
3265 rm -f $ac_rmfiles
3266
3267 if { (ac_try="$ac_link_default"
3268 case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3273 $as_echo "$ac_try_echo") >&5
3274   (eval "$ac_link_default") 2>&5
3275   ac_status=$?
3276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }; then
3278   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3279 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3280 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3281 # so that the user can short-circuit this test for compilers unknown to
3282 # Autoconf.
3283 for ac_file in $ac_files ''
3284 do
3285   test -f "$ac_file" || continue
3286   case $ac_file in
3287     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3288         ;;
3289     [ab].out )
3290         # We found the default executable, but exeext='' is most
3291         # certainly right.
3292         break;;
3293     *.* )
3294         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3295         then :; else
3296            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297         fi
3298         # We set ac_cv_exeext here because the later test for it is not
3299         # safe: cross compilers may not add the suffix if given an `-o'
3300         # argument, so we may need to know it at that point already.
3301         # Even if this section looks crufty: it has the advantage of
3302         # actually working.
3303         break;;
3304     * )
3305         break;;
3306   esac
3307 done
3308 test "$ac_cv_exeext" = no && ac_cv_exeext=
3309
3310 else
3311   ac_file=''
3312 fi
3313
3314 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 if test -z "$ac_file"; then
3317   $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: C compiler cannot create executables
3325 See \`config.log' for more details." >&2;}
3326    { (exit 77); exit 77; }; }; }
3327 fi
3328
3329 ac_exeext=$ac_cv_exeext
3330
3331 # Check that the compiler produces executables we can run.  If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3336 # If not cross compiling, check that we can run a simple program.
3337 if test "$cross_compiling" != yes; then
3338   if { ac_try='./$ac_file'
3339   { (case "(($ac_try" in
3340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341   *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345   (eval "$ac_try") 2>&5
3346   ac_status=$?
3347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); }; }; then
3349     cross_compiling=no
3350   else
3351     if test "$cross_compiling" = maybe; then
3352         cross_compiling=yes
3353     else
3354         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3357 If you meant to cross compile, use \`--host'.
3358 See \`config.log' for more details." >&5
3359 $as_echo "$as_me: error: cannot run C compiled programs.
3360 If you meant to cross compile, use \`--host'.
3361 See \`config.log' for more details." >&2;}
3362    { (exit 1); exit 1; }; }; }
3363     fi
3364   fi
3365 fi
3366 { $as_echo "$as_me:$LINENO: result: yes" >&5
3367 $as_echo "yes" >&6; }
3368
3369 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3370 ac_clean_files=$ac_clean_files_save
3371 # Check that the compiler produces executables we can run.  If not, either
3372 # the compiler is broken, or we cross compile.
3373 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3374 $as_echo_n "checking whether we are cross compiling... " >&6; }
3375 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3376 $as_echo "$cross_compiling" >&6; }
3377
3378 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3379 $as_echo_n "checking for suffix of executables... " >&6; }
3380 if { (ac_try="$ac_link"
3381 case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3386 $as_echo "$ac_try_echo") >&5
3387   (eval "$ac_link") 2>&5
3388   ac_status=$?
3389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; then
3391   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3394 # `rm'.
3395 for ac_file in conftest.exe conftest conftest.*; do
3396   test -f "$ac_file" || continue
3397   case $ac_file in
3398     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400           break;;
3401     * ) break;;
3402   esac
3403 done
3404 else
3405   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&5
3409 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details." >&2;}
3411    { (exit 1); exit 1; }; }; }
3412 fi
3413
3414 rm -f conftest$ac_cv_exeext
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3416 $as_echo "$ac_cv_exeext" >&6; }
3417
3418 rm -f conftest.$ac_ext
3419 EXEEXT=$ac_cv_exeext
3420 ac_exeext=$EXEEXT
3421 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if test "${ac_cv_objext+set}" = set; then
3424   $as_echo_n "(cached) " >&6
3425 else
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.o conftest.obj
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449   (eval "$ac_compile") 2>&5
3450   ac_status=$?
3451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); }; then
3453   for ac_file in conftest.o conftest.obj conftest.*; do
3454   test -f "$ac_file" || continue;
3455   case $ac_file in
3456     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3457     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458        break;;
3459   esac
3460 done
3461 else
3462   $as_echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details." >&2;}
3471    { (exit 1); exit 1; }; }; }
3472 fi
3473
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3475 fi
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3479 ac_objext=$OBJEXT
3480 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3483   $as_echo_n "(cached) " >&6
3484 else
3485   cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491
3492 int
3493 main ()
3494 {
3495 #ifndef __GNUC__
3496        choke me
3497 #endif
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3510 $as_echo "$ac_try_echo") >&5
3511   (eval "$ac_compile") 2>conftest.er1
3512   ac_status=$?
3513   grep -v '^ *+' conftest.er1 >conftest.err
3514   rm -f conftest.er1
3515   cat conftest.err >&5
3516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } && {
3518          test -z "$ac_c_werror_flag" ||
3519          test ! -s conftest.err
3520        } && test -s conftest.$ac_objext; then
3521   ac_compiler_gnu=yes
3522 else
3523   $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3525
3526         ac_compiler_gnu=no
3527 fi
3528
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3531
3532 fi
3533 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3534 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3535 if test $ac_compiler_gnu = yes; then
3536   GCC=yes
3537 else
3538   GCC=
3539 fi
3540 ac_test_CFLAGS=${CFLAGS+set}
3541 ac_save_CFLAGS=$CFLAGS
3542 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3543 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3544 if test "${ac_cv_prog_cc_g+set}" = set; then
3545   $as_echo_n "(cached) " >&6
3546 else
3547   ac_save_c_werror_flag=$ac_c_werror_flag
3548    ac_c_werror_flag=yes
3549    ac_cv_prog_cc_g=no
3550    CFLAGS="-g"
3551    cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574   (eval "$ac_compile") 2>conftest.er1
3575   ac_status=$?
3576   grep -v '^ *+' conftest.er1 >conftest.err
3577   rm -f conftest.er1
3578   cat conftest.err >&5
3579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); } && {
3581          test -z "$ac_c_werror_flag" ||
3582          test ! -s conftest.err
3583        } && test -s conftest.$ac_objext; then
3584   ac_cv_prog_cc_g=yes
3585 else
3586   $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589         CFLAGS=""
3590       cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3612 $as_echo "$ac_try_echo") >&5
3613   (eval "$ac_compile") 2>conftest.er1
3614   ac_status=$?
3615   grep -v '^ *+' conftest.er1 >conftest.err
3616   rm -f conftest.er1
3617   cat conftest.err >&5
3618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); } && {
3620          test -z "$ac_c_werror_flag" ||
3621          test ! -s conftest.err
3622        } && test -s conftest.$ac_objext; then
3623   :
3624 else
3625   $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628         ac_c_werror_flag=$ac_save_c_werror_flag
3629          CFLAGS="-g"
3630          cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636
3637 int
3638 main ()
3639 {
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3647 case "(($ac_try" in
3648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649   *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652 $as_echo "$ac_try_echo") >&5
3653   (eval "$ac_compile") 2>conftest.er1
3654   ac_status=$?
3655   grep -v '^ *+' conftest.er1 >conftest.err
3656   rm -f conftest.er1
3657   cat conftest.err >&5
3658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); } && {
3660          test -z "$ac_c_werror_flag" ||
3661          test ! -s conftest.err
3662        } && test -s conftest.$ac_objext; then
3663   ac_cv_prog_cc_g=yes
3664 else
3665   $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668
3669 fi
3670
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 fi
3673
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 fi
3676
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678    ac_c_werror_flag=$ac_save_c_werror_flag
3679 fi
3680 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3681 $as_echo "$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683   CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685   if test "$GCC" = yes; then
3686     CFLAGS="-g -O2"
3687   else
3688     CFLAGS="-g"
3689   fi
3690 else
3691   if test "$GCC" = yes; then
3692     CFLAGS="-O2"
3693   else
3694     CFLAGS=
3695   fi
3696 fi
3697 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3699 if test "${ac_cv_prog_cc_c89+set}" = set; then
3700   $as_echo_n "(cached) " >&6
3701 else
3702   ac_cv_prog_cc_c89=no
3703 ac_save_CC=$CC
3704 cat >conftest.$ac_ext <<_ACEOF
3705 /* confdefs.h.  */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h.  */
3710 #include <stdarg.h>
3711 #include <stdio.h>
3712 #include <sys/types.h>
3713 #include <sys/stat.h>
3714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3715 struct buf { int x; };
3716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3717 static char *e (p, i)
3718      char **p;
3719      int i;
3720 {
3721   return p[i];
3722 }
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3724 {
3725   char *s;
3726   va_list v;
3727   va_start (v,p);
3728   s = g (p, va_arg (v,int));
3729   va_end (v);
3730   return s;
3731 }
3732
3733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3734    function prototypes and stuff, but not '\xHH' hex character constants.
3735    These don't provoke an error unfortunately, instead are silently treated
3736    as 'x'.  The following induces an error, until -std is added to get
3737    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3738    array size at least.  It's necessary to write '\x00'==0 to get something
3739    that's true only with -std.  */
3740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3741
3742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3743    inside strings and character constants.  */
3744 #define FOO(x) 'x'
3745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3746
3747 int test (int i, double x);
3748 struct s1 {int (*f) (int a);};
3749 struct s2 {int (*f) (double a);};
3750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3751 int argc;
3752 char **argv;
3753 int
3754 main ()
3755 {
3756 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3762         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3763 do
3764   CC="$ac_save_CC $ac_arg"
3765   rm -f conftest.$ac_objext
3766 if { (ac_try="$ac_compile"
3767 case "(($ac_try" in
3768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769   *) ac_try_echo=$ac_try;;
3770 esac
3771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3772 $as_echo "$ac_try_echo") >&5
3773   (eval "$ac_compile") 2>conftest.er1
3774   ac_status=$?
3775   grep -v '^ *+' conftest.er1 >conftest.err
3776   rm -f conftest.er1
3777   cat conftest.err >&5
3778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); } && {
3780          test -z "$ac_c_werror_flag" ||
3781          test ! -s conftest.err
3782        } && test -s conftest.$ac_objext; then
3783   ac_cv_prog_cc_c89=$ac_arg
3784 else
3785   $as_echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789 fi
3790
3791 rm -f core conftest.err conftest.$ac_objext
3792   test "x$ac_cv_prog_cc_c89" != "xno" && break
3793 done
3794 rm -f conftest.$ac_ext
3795 CC=$ac_save_CC
3796
3797 fi
3798 # AC_CACHE_VAL
3799 case "x$ac_cv_prog_cc_c89" in
3800   x)
3801     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3802 $as_echo "none needed" >&6; } ;;
3803   xno)
3804     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3805 $as_echo "unsupported" >&6; } ;;
3806   *)
3807     CC="$CC $ac_cv_prog_cc_c89"
3808     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3809 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3810 esac
3811
3812
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
3819
3820 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3821 # but has idiosyncrasies of its own.  We assume icc will define
3822 # __INTEL_COMPILER regardless of CFLAGS.
3823
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h.  */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h.  */
3830
3831 int
3832 main ()
3833 {
3834 #ifndef __INTEL_COMPILER
3835 choke me
3836 #endif
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3848 $as_echo "$ac_try_echo") >&5
3849   (eval "$ac_compile") 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } && {
3856          test -z "$ac_c_werror_flag" ||
3857          test ! -s conftest.err
3858        } && test -s conftest.$ac_objext; then
3859   ICC=yes
3860 else
3861   $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864         ICC=no
3865 fi
3866
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868
3869 # Check if it's Sun Studio compiler. We assume that
3870 # __SUNPRO_C will be defined for Sun Studio compilers
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881 #ifndef __SUNPRO_C
3882 choke me
3883 #endif
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3890 case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896   (eval "$ac_compile") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } && {
3903          test -z "$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        } && test -s conftest.$ac_objext; then
3906   SUN_STUDIO_CC=yes
3907 else
3908   $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911         SUN_STUDIO_CC=no
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916
3917
3918 unset CFLAGS
3919
3920 #
3921 # Read the template
3922 #
3923 . "$srcdir/src/template/$template" || exit
3924
3925 # CFLAGS are selected so:
3926 # If the user specifies something in the environment, that is used.
3927 # else:  If the template file set something, that is used.
3928 # else:  If coverage was enabled, don't set anything.
3929 # else:  If the compiler is GCC, then we use -O2.
3930 # else:  If the compiler is something else, then we use -O, unless debugging.
3931
3932 if test "$ac_env_CFLAGS_set" = set; then
3933   CFLAGS=$ac_env_CFLAGS_value
3934 elif test "${CFLAGS+set}" = set; then
3935   : # (keep what template set)
3936 elif test "$enable_coverage" = yes; then
3937   : # no optimization by default
3938 elif test "$GCC" = yes; then
3939   CFLAGS="-O2"
3940 else
3941   # if the user selected debug mode, don't use -O
3942   if test "$enable_debug" != yes; then
3943     CFLAGS="-O"
3944   fi
3945 fi
3946
3947 # Some versions of GCC support some additional useful warning flags.
3948 # Check whether they are supported, and add them to CFLAGS if so.
3949 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3950 # but has its own.  Also check other compiler-specific flags here.
3951
3952 if test "$GCC" = yes -a "$ICC" = no; then
3953   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3954   # These work in some but not all gcc versions
3955   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3956 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3957 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3958   $as_echo_n "(cached) " >&6
3959 else
3960   pgac_save_CFLAGS=$CFLAGS
3961 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3962 ac_save_c_werror_flag=$ac_c_werror_flag
3963 ac_c_werror_flag=yes
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h.  */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h.  */
3970
3971 int
3972 main ()
3973 {
3974
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (ac_try="$ac_compile"
3981 case "(($ac_try" in
3982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983   *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3986 $as_echo "$ac_try_echo") >&5
3987   (eval "$ac_compile") 2>conftest.er1
3988   ac_status=$?
3989   grep -v '^ *+' conftest.er1 >conftest.err
3990   rm -f conftest.er1
3991   cat conftest.err >&5
3992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993   (exit $ac_status); } && {
3994          test -z "$ac_c_werror_flag" ||
3995          test ! -s conftest.err
3996        } && test -s conftest.$ac_objext; then
3997   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
3998 else
3999   $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4003 fi
4004
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_c_werror_flag=$ac_save_c_werror_flag
4007 CFLAGS="$pgac_save_CFLAGS"
4008 fi
4009 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4010 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4011 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4012   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4013 fi
4014
4015   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4016 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4017 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4018   $as_echo_n "(cached) " >&6
4019 else
4020   pgac_save_CFLAGS=$CFLAGS
4021 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h.  */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h.  */
4030
4031 int
4032 main ()
4033 {
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (ac_try="$ac_compile"
4041 case "(($ac_try" in
4042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043   *) ac_try_echo=$ac_try;;
4044 esac
4045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4046 $as_echo "$ac_try_echo") >&5
4047   (eval "$ac_compile") 2>conftest.er1
4048   ac_status=$?
4049   grep -v '^ *+' conftest.er1 >conftest.err
4050   rm -f conftest.er1
4051   cat conftest.err >&5
4052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } && {
4054          test -z "$ac_c_werror_flag" ||
4055          test ! -s conftest.err
4056        } && test -s conftest.$ac_objext; then
4057   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4058 else
4059   $as_echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062         pgac_cv_prog_cc_cflags__Wendif_labels=no
4063 fi
4064
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4067 CFLAGS="$pgac_save_CFLAGS"
4068 fi
4069 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4070 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4071 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4072   CFLAGS="$CFLAGS -Wendif-labels"
4073 fi
4074
4075   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4076 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4077 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4078   $as_echo_n "(cached) " >&6
4079 else
4080   pgac_save_CFLAGS=$CFLAGS
4081 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4101 case "(($ac_try" in
4102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103   *) ac_try_echo=$ac_try;;
4104 esac
4105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4106 $as_echo "$ac_try_echo") >&5
4107   (eval "$ac_compile") 2>conftest.er1
4108   ac_status=$?
4109   grep -v '^ *+' conftest.er1 >conftest.err
4110   rm -f conftest.er1
4111   cat conftest.err >&5
4112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); } && {
4114          test -z "$ac_c_werror_flag" ||
4115          test ! -s conftest.err
4116        } && test -s conftest.$ac_objext; then
4117   pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4118 else
4119   $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122         pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4123 fi
4124
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_c_werror_flag=$ac_save_c_werror_flag
4127 CFLAGS="$pgac_save_CFLAGS"
4128 fi
4129 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4130 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4131 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4132   CFLAGS="$CFLAGS -Wmissing-format-attribute"
4133 fi
4134
4135   # This was included in -Wall/-Wformat in older GCC versions
4136   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4137 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4138 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4139   $as_echo_n "(cached) " >&6
4140 else
4141   pgac_save_CFLAGS=$CFLAGS
4142 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4143 ac_save_c_werror_flag=$ac_c_werror_flag
4144 ac_c_werror_flag=yes
4145 cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151
4152 int
4153 main ()
4154 {
4155
4156   ;
4157   return 0;
4158 }
4159 _ACEOF
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4162 case "(($ac_try" in
4163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164   *) ac_try_echo=$ac_try;;
4165 esac
4166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4167 $as_echo "$ac_try_echo") >&5
4168   (eval "$ac_compile") 2>conftest.er1
4169   ac_status=$?
4170   grep -v '^ *+' conftest.er1 >conftest.err
4171   rm -f conftest.er1
4172   cat conftest.err >&5
4173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174   (exit $ac_status); } && {
4175          test -z "$ac_c_werror_flag" ||
4176          test ! -s conftest.err
4177        } && test -s conftest.$ac_objext; then
4178   pgac_cv_prog_cc_cflags__Wformat_security=yes
4179 else
4180   $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183         pgac_cv_prog_cc_cflags__Wformat_security=no
4184 fi
4185
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 CFLAGS="$pgac_save_CFLAGS"
4189 fi
4190 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4191 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4192 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4193   CFLAGS="$CFLAGS -Wformat-security"
4194 fi
4195
4196   # Disable strict-aliasing rules; needed for gcc 3.3+
4197   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4198 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4199 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4200   $as_echo_n "(cached) " >&6
4201 else
4202   pgac_save_CFLAGS=$CFLAGS
4203 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4204 ac_save_c_werror_flag=$ac_c_werror_flag
4205 ac_c_werror_flag=yes
4206 cat >conftest.$ac_ext <<_ACEOF
4207 /* confdefs.h.  */
4208 _ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h.  */
4212
4213 int
4214 main ()
4215 {
4216
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4223 case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4228 $as_echo "$ac_try_echo") >&5
4229   (eval "$ac_compile") 2>conftest.er1
4230   ac_status=$?
4231   grep -v '^ *+' conftest.er1 >conftest.err
4232   rm -f conftest.er1
4233   cat conftest.err >&5
4234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } && {
4236          test -z "$ac_c_werror_flag" ||
4237          test ! -s conftest.err
4238        } && test -s conftest.$ac_objext; then
4239   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4240 else
4241   $as_echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4245 fi
4246
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248 ac_c_werror_flag=$ac_save_c_werror_flag
4249 CFLAGS="$pgac_save_CFLAGS"
4250 fi
4251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4252 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4253 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4254   CFLAGS="$CFLAGS -fno-strict-aliasing"
4255 fi
4256
4257   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4258   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4259 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4260 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4261   $as_echo_n "(cached) " >&6
4262 else
4263   pgac_save_CFLAGS=$CFLAGS
4264 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4265 ac_save_c_werror_flag=$ac_c_werror_flag
4266 ac_c_werror_flag=yes
4267 cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273
4274 int
4275 main ()
4276 {
4277
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4284 case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289 $as_echo "$ac_try_echo") >&5
4290   (eval "$ac_compile") 2>conftest.er1
4291   ac_status=$?
4292   grep -v '^ *+' conftest.er1 >conftest.err
4293   rm -f conftest.er1
4294   cat conftest.err >&5
4295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); } && {
4297          test -z "$ac_c_werror_flag" ||
4298          test ! -s conftest.err
4299        } && test -s conftest.$ac_objext; then
4300   pgac_cv_prog_cc_cflags__fwrapv=yes
4301 else
4302   $as_echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305         pgac_cv_prog_cc_cflags__fwrapv=no
4306 fi
4307
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_c_werror_flag=$ac_save_c_werror_flag
4310 CFLAGS="$pgac_save_CFLAGS"
4311 fi
4312 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4313 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4314 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4315   CFLAGS="$CFLAGS -fwrapv"
4316 fi
4317
4318   # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4319   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4320 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4321 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4322   $as_echo_n "(cached) " >&6
4323 else
4324   pgac_save_CFLAGS=$CFLAGS
4325 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4326 ac_save_c_werror_flag=$ac_c_werror_flag
4327 ac_c_werror_flag=yes
4328 cat >conftest.$ac_ext <<_ACEOF
4329 /* confdefs.h.  */
4330 _ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h.  */
4334
4335 int
4336 main ()
4337 {
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (ac_try="$ac_compile"
4345 case "(($ac_try" in
4346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347   *) ac_try_echo=$ac_try;;
4348 esac
4349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4350 $as_echo "$ac_try_echo") >&5
4351   (eval "$ac_compile") 2>conftest.er1
4352   ac_status=$?
4353   grep -v '^ *+' conftest.er1 >conftest.err
4354   rm -f conftest.er1
4355   cat conftest.err >&5
4356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); } && {
4358          test -z "$ac_c_werror_flag" ||
4359          test ! -s conftest.err
4360        } && test -s conftest.$ac_objext; then
4361   pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4362 else
4363   $as_echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366         pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4367 fi
4368
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 ac_c_werror_flag=$ac_save_c_werror_flag
4371 CFLAGS="$pgac_save_CFLAGS"
4372 fi
4373 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4374 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4375 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4376   CFLAGS="$CFLAGS -fexcess-precision=standard"
4377 fi
4378
4379 elif test "$ICC" = yes; then
4380   # Intel's compiler has a bug/misoptimization in checking for
4381   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4382   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4383 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4384 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4385   $as_echo_n "(cached) " >&6
4386 else
4387   pgac_save_CFLAGS=$CFLAGS
4388 CFLAGS="$pgac_save_CFLAGS -mp1"
4389 ac_save_c_werror_flag=$ac_c_werror_flag
4390 ac_c_werror_flag=yes
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397
4398 int
4399 main ()
4400 {
4401
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext
4407 if { (ac_try="$ac_compile"
4408 case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4413 $as_echo "$ac_try_echo") >&5
4414   (eval "$ac_compile") 2>conftest.er1
4415   ac_status=$?
4416   grep -v '^ *+' conftest.er1 >conftest.err
4417   rm -f conftest.er1
4418   cat conftest.err >&5
4419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); } && {
4421          test -z "$ac_c_werror_flag" ||
4422          test ! -s conftest.err
4423        } && test -s conftest.$ac_objext; then
4424   pgac_cv_prog_cc_cflags__mp1=yes
4425 else
4426   $as_echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4428
4429         pgac_cv_prog_cc_cflags__mp1=no
4430 fi
4431
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 ac_c_werror_flag=$ac_save_c_werror_flag
4434 CFLAGS="$pgac_save_CFLAGS"
4435 fi
4436 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4437 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4438 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4439   CFLAGS="$CFLAGS -mp1"
4440 fi
4441
4442   # Make sure strict aliasing is off (though this is said to be the default)
4443   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4444 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4445 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4446   $as_echo_n "(cached) " >&6
4447 else
4448   pgac_save_CFLAGS=$CFLAGS
4449 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4450 ac_save_c_werror_flag=$ac_c_werror_flag
4451 ac_c_werror_flag=yes
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h.  */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h.  */
4458
4459 int
4460 main ()
4461 {
4462
4463   ;
4464   return 0;
4465 }
4466 _ACEOF
4467 rm -f conftest.$ac_objext
4468 if { (ac_try="$ac_compile"
4469 case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475   (eval "$ac_compile") 2>conftest.er1
4476   ac_status=$?
4477   grep -v '^ *+' conftest.er1 >conftest.err
4478   rm -f conftest.er1
4479   cat conftest.err >&5
4480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); } && {
4482          test -z "$ac_c_werror_flag" ||
4483          test ! -s conftest.err
4484        } && test -s conftest.$ac_objext; then
4485   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4486 else
4487   $as_echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4491 fi
4492
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_c_werror_flag=$ac_save_c_werror_flag
4495 CFLAGS="$pgac_save_CFLAGS"
4496 fi
4497 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4498 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4499 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4500   CFLAGS="$CFLAGS -fno-strict-aliasing"
4501 fi
4502
4503 elif test "$PORTNAME" = "aix"; then
4504   # AIX's xlc has to have strict aliasing turned off too
4505   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4506 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4507 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4508   $as_echo_n "(cached) " >&6
4509 else
4510   pgac_save_CFLAGS=$CFLAGS
4511 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4512 ac_save_c_werror_flag=$ac_c_werror_flag
4513 ac_c_werror_flag=yes
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h.  */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h.  */
4520
4521 int
4522 main ()
4523 {
4524
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 rm -f conftest.$ac_objext
4530 if { (ac_try="$ac_compile"
4531 case "(($ac_try" in
4532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533   *) ac_try_echo=$ac_try;;
4534 esac
4535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4536 $as_echo "$ac_try_echo") >&5
4537   (eval "$ac_compile") 2>conftest.er1
4538   ac_status=$?
4539   grep -v '^ *+' conftest.er1 >conftest.err
4540   rm -f conftest.er1
4541   cat conftest.err >&5
4542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543   (exit $ac_status); } && {
4544          test -z "$ac_c_werror_flag" ||
4545          test ! -s conftest.err
4546        } && test -s conftest.$ac_objext; then
4547   pgac_cv_prog_cc_cflags__qnoansialias=yes
4548 else
4549   $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552         pgac_cv_prog_cc_cflags__qnoansialias=no
4553 fi
4554
4555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4556 ac_c_werror_flag=$ac_save_c_werror_flag
4557 CFLAGS="$pgac_save_CFLAGS"
4558 fi
4559 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4560 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4561 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4562   CFLAGS="$CFLAGS -qnoansialias"
4563 fi
4564
4565 elif test "$PORTNAME" = "hpux"; then
4566   # On some versions of HP-UX, libm functions do not set errno by default.
4567   # Fix that by using +Olibmerrno if the compiler recognizes it.
4568   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4569 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4570 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4571   $as_echo_n "(cached) " >&6
4572 else
4573   pgac_save_CFLAGS=$CFLAGS
4574 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4575 ac_save_c_werror_flag=$ac_c_werror_flag
4576 ac_c_werror_flag=yes
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h.  */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h.  */
4583
4584 int
4585 main ()
4586 {
4587
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4594 case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599 $as_echo "$ac_try_echo") >&5
4600   (eval "$ac_compile") 2>conftest.er1
4601   ac_status=$?
4602   grep -v '^ *+' conftest.er1 >conftest.err
4603   rm -f conftest.er1
4604   cat conftest.err >&5
4605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } && {
4607          test -z "$ac_c_werror_flag" ||
4608          test ! -s conftest.err
4609        } && test -s conftest.$ac_objext; then
4610   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4611 else
4612   $as_echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4616 fi
4617
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620 CFLAGS="$pgac_save_CFLAGS"
4621 fi
4622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4623 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4624 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4625   CFLAGS="$CFLAGS +Olibmerrno"
4626 fi
4627
4628 fi
4629
4630 # supply -g if --enable-debug
4631 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4632   CFLAGS="$CFLAGS -g"
4633 fi
4634
4635 # enable code coverage if --enable-coverage
4636 if test "$enable_coverage" = yes; then
4637   if test "$GCC" = yes; then
4638     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4639   else
4640     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4641 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4642    { (exit 1); exit 1; }; }
4643   fi
4644 fi
4645
4646 # enable profiling if --enable-profiling
4647 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4648   if test "$GCC" = yes; then
4649
4650 cat >>confdefs.h <<\_ACEOF
4651 #define PROFILE_PID_DIR 1
4652 _ACEOF
4653
4654     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4655   else
4656     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4657 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4658    { (exit 1); exit 1; }; }
4659   fi
4660 fi
4661
4662 # We already have this in Makefile.win32, but configure needs it too
4663 if test "$PORTNAME" = "win32"; then
4664   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4665 fi
4666
4667 # Check if the compiler still works with the template settings
4668 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4669 $as_echo_n "checking whether the C compiler still works... " >&6; }
4670 cat >conftest.$ac_ext <<_ACEOF
4671 /* confdefs.h.  */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h.  */
4676
4677 int
4678 main ()
4679 {
4680 return 0;
4681   ;
4682   return 0;
4683 }
4684 _ACEOF
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (ac_try="$ac_link"
4687 case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692 $as_echo "$ac_try_echo") >&5
4693   (eval "$ac_link") 2>conftest.er1
4694   ac_status=$?
4695   grep -v '^ *+' conftest.er1 >conftest.err
4696   rm -f conftest.er1
4697   cat conftest.err >&5
4698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } && {
4700          test -z "$ac_c_werror_flag" ||
4701          test ! -s conftest.err
4702        } && test -s conftest$ac_exeext && {
4703          test "$cross_compiling" = yes ||
4704          $as_test_x conftest$ac_exeext
4705        }; then
4706   { $as_echo "$as_me:$LINENO: result: yes" >&5
4707 $as_echo "yes" >&6; }
4708 else
4709   $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712         { $as_echo "$as_me:$LINENO: result: no" >&5
4713 $as_echo "no" >&6; }
4714    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4715 $as_echo "$as_me: error: cannot proceed" >&2;}
4716    { (exit 1); exit 1; }; }
4717 fi
4718
4719 rm -rf conftest.dSYM
4720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4721       conftest$ac_exeext conftest.$ac_ext
4722
4723 # Defend against gcc -ffast-math
4724 if test "$GCC" = yes; then
4725 cat >conftest.$ac_ext <<_ACEOF
4726 /* confdefs.h.  */
4727 _ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h.  */
4731
4732 int
4733 main ()
4734 {
4735 #ifdef __FAST_MATH__
4736 choke me
4737 #endif
4738   ;
4739   return 0;
4740 }
4741 _ACEOF
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4744 case "(($ac_try" in
4745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746   *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750   (eval "$ac_compile") 2>conftest.er1
4751   ac_status=$?
4752   grep -v '^ *+' conftest.er1 >conftest.err
4753   rm -f conftest.er1
4754   cat conftest.err >&5
4755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); } && {
4757          test -z "$ac_c_werror_flag" ||
4758          test ! -s conftest.err
4759        } && test -s conftest.$ac_objext; then
4760   :
4761 else
4762   $as_echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4766 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4767    { (exit 1); exit 1; }; }
4768 fi
4769
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 fi
4772
4773 ac_ext=c
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4779 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4780 # On Suns, sometimes $CPP names a directory.
4781 if test -n "$CPP" && test -d "$CPP"; then
4782   CPP=
4783 fi
4784 if test -z "$CPP"; then
4785   if test "${ac_cv_prog_CPP+set}" = set; then
4786   $as_echo_n "(cached) " >&6
4787 else
4788       # Double quotes because CPP needs to be expanded
4789     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4790     do
4791       ac_preproc_ok=false
4792 for ac_c_preproc_warn_flag in '' yes
4793 do
4794   # Use a header file that comes with gcc, so configuring glibc
4795   # with a fresh cross-compiler works.
4796   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4797   # <limits.h> exists even on freestanding compilers.
4798   # On the NeXT, cc -E runs the code through the compiler's parser,
4799   # not just through cpp. "Syntax error" is here to catch this case.
4800   cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h.  */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h.  */
4806 #ifdef __STDC__
4807 # include <limits.h>
4808 #else
4809 # include <assert.h>
4810 #endif
4811                      Syntax error
4812 _ACEOF
4813 if { (ac_try="$ac_cpp conftest.$ac_ext"
4814 case "(($ac_try" in
4815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816   *) ac_try_echo=$ac_try;;
4817 esac
4818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4819 $as_echo "$ac_try_echo") >&5
4820   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4821   ac_status=$?
4822   grep -v '^ *+' conftest.er1 >conftest.err
4823   rm -f conftest.er1
4824   cat conftest.err >&5
4825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); } >/dev/null && {
4827          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4828          test ! -s conftest.err
4829        }; then
4830   :
4831 else
4832   $as_echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835   # Broken: fails on valid input.
4836 continue
4837 fi
4838
4839 rm -f conftest.err conftest.$ac_ext
4840
4841   # OK, works on sane cases.  Now check whether nonexistent headers
4842   # can be detected and how.
4843   cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849 #include <ac_nonexistent.h>
4850 _ACEOF
4851 if { (ac_try="$ac_cpp conftest.$ac_ext"
4852 case "(($ac_try" in
4853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854   *) ac_try_echo=$ac_try;;
4855 esac
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } >/dev/null && {
4865          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4866          test ! -s conftest.err
4867        }; then
4868   # Broken: success on invalid input.
4869 continue
4870 else
4871   $as_echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874   # Passes both tests.
4875 ac_preproc_ok=:
4876 break
4877 fi
4878
4879 rm -f conftest.err conftest.$ac_ext
4880
4881 done
4882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 rm -f conftest.err conftest.$ac_ext
4884 if $ac_preproc_ok; then
4885   break
4886 fi
4887
4888     done
4889     ac_cv_prog_CPP=$CPP
4890
4891 fi
4892   CPP=$ac_cv_prog_CPP
4893 else
4894   ac_cv_prog_CPP=$CPP
4895 fi
4896 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4897 $as_echo "$CPP" >&6; }
4898 ac_preproc_ok=false
4899 for ac_c_preproc_warn_flag in '' yes
4900 do
4901   # Use a header file that comes with gcc, so configuring glibc
4902   # with a fresh cross-compiler works.
4903   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904   # <limits.h> exists even on freestanding compilers.
4905   # On the NeXT, cc -E runs the code through the compiler's parser,
4906   # not just through cpp. "Syntax error" is here to catch this case.
4907   cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h.  */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h.  */
4913 #ifdef __STDC__
4914 # include <limits.h>
4915 #else
4916 # include <assert.h>
4917 #endif
4918                      Syntax error
4919 _ACEOF
4920 if { (ac_try="$ac_cpp conftest.$ac_ext"
4921 case "(($ac_try" in
4922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923   *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4928   ac_status=$?
4929   grep -v '^ *+' conftest.er1 >conftest.err
4930   rm -f conftest.er1
4931   cat conftest.err >&5
4932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } >/dev/null && {
4934          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4935          test ! -s conftest.err
4936        }; then
4937   :
4938 else
4939   $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942   # Broken: fails on valid input.
4943 continue
4944 fi
4945
4946 rm -f conftest.err conftest.$ac_ext
4947
4948   # OK, works on sane cases.  Now check whether nonexistent headers
4949   # can be detected and how.
4950   cat >conftest.$ac_ext <<_ACEOF
4951 /* confdefs.h.  */
4952 _ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h.  */
4956 #include <ac_nonexistent.h>
4957 _ACEOF
4958 if { (ac_try="$ac_cpp conftest.$ac_ext"
4959 case "(($ac_try" in
4960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961   *) ac_try_echo=$ac_try;;
4962 esac
4963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4964 $as_echo "$ac_try_echo") >&5
4965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4966   ac_status=$?
4967   grep -v '^ *+' conftest.er1 >conftest.err
4968   rm -f conftest.er1
4969   cat conftest.err >&5
4970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971   (exit $ac_status); } >/dev/null && {
4972          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4973          test ! -s conftest.err
4974        }; then
4975   # Broken: success on invalid input.
4976 continue
4977 else
4978   $as_echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4980
4981   # Passes both tests.
4982 ac_preproc_ok=:
4983 break
4984 fi
4985
4986 rm -f conftest.err conftest.$ac_ext
4987
4988 done
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then
4992   :
4993 else
4994   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4996 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4997 See \`config.log' for more details." >&5
4998 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4999 See \`config.log' for more details." >&2;}
5000    { (exit 1); exit 1; }; }; }
5001 fi
5002
5003 ac_ext=c
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5008
5009
5010
5011
5012 #
5013 # Set up TAS assembly code if needed; the template file has now had its
5014 # chance to request this.
5015 #
5016 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5017
5018
5019 if test "$need_tas" = yes ; then
5020   TAS=tas.o
5021 else
5022   TAS=""
5023 fi
5024
5025
5026
5027 #
5028 # Automatic dependency tracking
5029 #
5030
5031
5032 # Check whether --enable-depend was given.
5033 if test "${enable_depend+set}" = set; then
5034   enableval=$enable_depend;
5035   case $enableval in
5036     yes)
5037       autodepend=yes
5038       ;;
5039     no)
5040       :
5041       ;;
5042     *)
5043       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5044 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5045    { (exit 1); exit 1; }; }
5046       ;;
5047   esac
5048
5049 else
5050   enable_depend=no
5051
5052 fi
5053
5054
5055
5056
5057
5058 #
5059 # Enable assert checks
5060 #
5061
5062
5063 # Check whether --enable-cassert was given.
5064 if test "${enable_cassert+set}" = set; then
5065   enableval=$enable_cassert;
5066   case $enableval in
5067     yes)
5068
5069 cat >>confdefs.h <<\_ACEOF
5070 #define USE_ASSERT_CHECKING 1
5071 _ACEOF
5072
5073       ;;
5074     no)
5075       :
5076       ;;
5077     *)
5078       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5079 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5080    { (exit 1); exit 1; }; }
5081       ;;
5082   esac
5083
5084 else
5085   enable_cassert=no
5086
5087 fi
5088
5089
5090
5091
5092 #
5093 # Include directories
5094 #
5095 ac_save_IFS=$IFS
5096 IFS="${IFS}${PATH_SEPARATOR}"
5097 # SRCH_INC comes from the template file
5098 for dir in $with_includes $SRCH_INC; do
5099   if test -d "$dir"; then
5100     INCLUDES="$INCLUDES -I$dir"
5101   else
5102     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5103 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5104   fi
5105 done
5106 IFS=$ac_save_IFS
5107
5108
5109
5110 #
5111 # Library directories
5112 #
5113 ac_save_IFS=$IFS
5114 IFS="${IFS}${PATH_SEPARATOR}"
5115 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5116 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5117   if test -d "$dir"; then
5118     LIBDIRS="$LIBDIRS -L$dir"
5119   else
5120     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5121 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5122   fi
5123 done
5124 IFS=$ac_save_IFS
5125
5126 #
5127 # Enable thread-safe client libraries
5128 #
5129 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5130 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5131
5132
5133 # Check whether --enable-thread-safety was given.
5134 if test "${enable_thread_safety+set}" = set; then
5135   enableval=$enable_thread_safety;
5136   case $enableval in
5137     yes)
5138       :
5139       ;;
5140     no)
5141       :
5142       ;;
5143     *)
5144       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5145 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5146    { (exit 1); exit 1; }; }
5147       ;;
5148   esac
5149
5150 else
5151   enable_thread_safety=yes
5152
5153 fi
5154
5155
5156 if test "$enable_thread_safety" = yes; then
5157
5158 cat >>confdefs.h <<\_ACEOF
5159 #define ENABLE_THREAD_SAFETY 1
5160 _ACEOF
5161
5162 fi
5163 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5164 $as_echo "$enable_thread_safety" >&6; }
5165
5166
5167 #
5168 # Optionally build Tcl modules (PL/Tcl)
5169 #
5170 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5171 $as_echo_n "checking whether to build with Tcl... " >&6; }
5172
5173
5174
5175 # Check whether --with-tcl was given.
5176 if test "${with_tcl+set}" = set; then
5177   withval=$with_tcl;
5178   case $withval in
5179     yes)
5180       :
5181       ;;
5182     no)
5183       :
5184       ;;
5185     *)
5186       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5187 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5188    { (exit 1); exit 1; }; }
5189       ;;
5190   esac
5191
5192 else
5193   with_tcl=no
5194
5195 fi
5196
5197
5198 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5199 $as_echo "$with_tcl" >&6; }
5200
5201
5202 # We see if the path to the Tcl/Tk configuration scripts is specified.
5203 # This will override the use of tclsh to find the paths to search.
5204
5205
5206
5207
5208 # Check whether --with-tclconfig was given.
5209 if test "${with_tclconfig+set}" = set; then
5210   withval=$with_tclconfig;
5211   case $withval in
5212     yes)
5213       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5214 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5215    { (exit 1); exit 1; }; }
5216       ;;
5217     no)
5218       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5219 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5220    { (exit 1); exit 1; }; }
5221       ;;
5222     *)
5223
5224       ;;
5225   esac
5226
5227 fi
5228
5229
5230
5231 #
5232 # Optionally build Perl modules (PL/Perl)
5233 #
5234 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5235 $as_echo_n "checking whether to build Perl modules... " >&6; }
5236
5237
5238
5239 # Check whether --with-perl was given.
5240 if test "${with_perl+set}" = set; then
5241   withval=$with_perl;
5242   case $withval in
5243     yes)
5244       :
5245       ;;
5246     no)
5247       :
5248       ;;
5249     *)
5250       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5251 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5252    { (exit 1); exit 1; }; }
5253       ;;
5254   esac
5255
5256 else
5257   with_perl=no
5258
5259 fi
5260
5261
5262 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5263 $as_echo "$with_perl" >&6; }
5264
5265
5266 #
5267 # Optionally build Python modules (PL/Python)
5268 #
5269 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5270 $as_echo_n "checking whether to build Python modules... " >&6; }
5271
5272
5273
5274 # Check whether --with-python was given.
5275 if test "${with_python+set}" = set; then
5276   withval=$with_python;
5277   case $withval in
5278     yes)
5279       :
5280       ;;
5281     no)
5282       :
5283       ;;
5284     *)
5285       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5286 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5287    { (exit 1); exit 1; }; }
5288       ;;
5289   esac
5290
5291 else
5292   with_python=no
5293
5294 fi
5295
5296
5297 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5298 $as_echo "$with_python" >&6; }
5299
5300
5301 #
5302 # GSSAPI
5303 #
5304 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5305 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5306
5307
5308
5309 # Check whether --with-gssapi was given.
5310 if test "${with_gssapi+set}" = set; then
5311   withval=$with_gssapi;
5312   case $withval in
5313     yes)
5314
5315
5316 cat >>confdefs.h <<\_ACEOF
5317 #define ENABLE_GSS 1
5318 _ACEOF
5319
5320   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5321
5322       ;;
5323     no)
5324       :
5325       ;;
5326     *)
5327       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5328 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5329    { (exit 1); exit 1; }; }
5330       ;;
5331   esac
5332
5333 else
5334   with_gssapi=no
5335
5336 fi
5337
5338
5339 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5340 $as_echo "$with_gssapi" >&6; }
5341
5342 #
5343 # Kerberos 5
5344 #
5345 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5346 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5347
5348
5349
5350 # Check whether --with-krb5 was given.
5351 if test "${with_krb5+set}" = set; then
5352   withval=$with_krb5;
5353   case $withval in
5354     yes)
5355
5356
5357 cat >>confdefs.h <<\_ACEOF
5358 #define KRB5 1
5359 _ACEOF
5360
5361   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5362
5363       ;;
5364     no)
5365       :
5366       ;;
5367     *)
5368       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5369 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5370    { (exit 1); exit 1; }; }
5371       ;;
5372   esac
5373
5374 else
5375   with_krb5=no
5376
5377 fi
5378
5379
5380 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5381 $as_echo "$with_krb5" >&6; }
5382
5383
5384
5385
5386
5387 #
5388 # Kerberos configuration parameters
5389 #
5390
5391
5392
5393 # Check whether --with-krb-srvnam was given.
5394 if test "${with_krb_srvnam+set}" = set; then
5395   withval=$with_krb_srvnam;
5396   case $withval in
5397     yes)
5398       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5399 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5400    { (exit 1); exit 1; }; }
5401       ;;
5402     no)
5403       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5404 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5405    { (exit 1); exit 1; }; }
5406       ;;
5407     *)
5408
5409       ;;
5410   esac
5411
5412 else
5413   with_krb_srvnam="postgres"
5414 fi
5415
5416
5417
5418 cat >>confdefs.h <<_ACEOF
5419 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5420 _ACEOF
5421
5422
5423
5424 #
5425 # PAM
5426 #
5427 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5428 $as_echo_n "checking whether to build with PAM support... " >&6; }
5429
5430
5431
5432 # Check whether --with-pam was given.
5433 if test "${with_pam+set}" = set; then
5434   withval=$with_pam;
5435   case $withval in
5436     yes)
5437
5438 cat >>confdefs.h <<\_ACEOF
5439 #define USE_PAM 1
5440 _ACEOF
5441
5442       ;;
5443     no)
5444       :
5445       ;;
5446     *)
5447       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5448 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5449    { (exit 1); exit 1; }; }
5450       ;;
5451   esac
5452
5453 else
5454   with_pam=no
5455
5456 fi
5457
5458
5459 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5460 $as_echo "$with_pam" >&6; }
5461
5462
5463 #
5464 # LDAP
5465 #
5466 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5467 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5468
5469
5470
5471 # Check whether --with-ldap was given.
5472 if test "${with_ldap+set}" = set; then
5473   withval=$with_ldap;
5474   case $withval in
5475     yes)
5476
5477 cat >>confdefs.h <<\_ACEOF
5478 #define USE_LDAP 1
5479 _ACEOF
5480
5481       ;;
5482     no)
5483       :
5484       ;;
5485     *)
5486       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5487 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5488    { (exit 1); exit 1; }; }
5489       ;;
5490   esac
5491
5492 else
5493   with_ldap=no
5494
5495 fi
5496
5497
5498 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5499 $as_echo "$with_ldap" >&6; }
5500
5501
5502 #
5503 # Bonjour
5504 #
5505 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5506 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5507
5508
5509
5510 # Check whether --with-bonjour was given.
5511 if test "${with_bonjour+set}" = set; then
5512   withval=$with_bonjour;
5513   case $withval in
5514     yes)
5515
5516 cat >>confdefs.h <<\_ACEOF
5517 #define USE_BONJOUR 1
5518 _ACEOF
5519
5520       ;;
5521     no)
5522       :
5523       ;;
5524     *)
5525       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5526 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5527    { (exit 1); exit 1; }; }
5528       ;;
5529   esac
5530
5531 else
5532   with_bonjour=no
5533
5534 fi
5535
5536
5537 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5538 $as_echo "$with_bonjour" >&6; }
5539
5540
5541 #
5542 # OpenSSL
5543 #
5544 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5545 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5546
5547
5548
5549 # Check whether --with-openssl was given.
5550 if test "${with_openssl+set}" = set; then
5551   withval=$with_openssl;
5552   case $withval in
5553     yes)
5554
5555 cat >>confdefs.h <<\_ACEOF
5556 #define USE_SSL 1
5557 _ACEOF
5558
5559       ;;
5560     no)
5561       :
5562       ;;
5563     *)
5564       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5565 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5566    { (exit 1); exit 1; }; }
5567       ;;
5568   esac
5569
5570 else
5571   with_openssl=no
5572
5573 fi
5574
5575
5576 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5577 $as_echo "$with_openssl" >&6; }
5578
5579
5580 #
5581 # SELinux
5582 #
5583 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5584 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5585
5586
5587
5588 # Check whether --with-selinux was given.
5589 if test "${with_selinux+set}" = set; then
5590   withval=$with_selinux;
5591   case $withval in
5592     yes)
5593       :
5594       ;;
5595     no)
5596       :
5597       ;;
5598     *)
5599       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5600 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5601    { (exit 1); exit 1; }; }
5602       ;;
5603   esac
5604
5605 else
5606   with_selinux=no
5607
5608 fi
5609
5610
5611
5612 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5613 $as_echo "$with_selinux" >&6; }
5614
5615 #
5616 # Readline
5617 #
5618
5619
5620
5621 # Check whether --with-readline was given.
5622 if test "${with_readline+set}" = set; then
5623   withval=$with_readline;
5624   case $withval in
5625     yes)
5626       :
5627       ;;
5628     no)
5629       :
5630       ;;
5631     *)
5632       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5633 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5634    { (exit 1); exit 1; }; }
5635       ;;
5636   esac
5637
5638 else
5639   with_readline=yes
5640
5641 fi
5642
5643
5644 # readline on MinGW has problems with backslashes in psql and other bugs.
5645 # This is particularly a problem with non-US code pages.
5646 # Therefore disable its use until we understand the cause. 2004-07-20
5647 if test "$PORTNAME" = "win32"; then
5648   if test "$with_readline" = yes; then
5649     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5650 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5651     with_readline=no
5652   fi
5653 fi
5654
5655
5656 #
5657 # Prefer libedit
5658 #
5659
5660
5661
5662 # Check whether --with-libedit-preferred was given.
5663 if test "${with_libedit_preferred+set}" = set; then
5664   withval=$with_libedit_preferred;
5665   case $withval in
5666     yes)
5667       :
5668       ;;
5669     no)
5670       :
5671       ;;
5672     *)
5673       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5674 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5675    { (exit 1); exit 1; }; }
5676       ;;
5677   esac
5678
5679 else
5680   with_libedit_preferred=no
5681
5682 fi
5683
5684
5685
5686
5687 #
5688 # OSSP UUID library
5689 #
5690
5691
5692
5693 # Check whether --with-ossp-uuid was given.
5694 if test "${with_ossp_uuid+set}" = set; then
5695   withval=$with_ossp_uuid;
5696   case $withval in
5697     yes)
5698       :
5699       ;;
5700     no)
5701       :
5702       ;;
5703     *)
5704       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5705 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5706    { (exit 1); exit 1; }; }
5707       ;;
5708   esac
5709
5710 else
5711   with_ossp_uuid=no
5712
5713 fi
5714
5715
5716
5717
5718
5719 #
5720 # XML
5721 #
5722
5723
5724
5725 # Check whether --with-libxml was given.
5726 if test "${with_libxml+set}" = set; then
5727   withval=$with_libxml;
5728   case $withval in
5729     yes)
5730
5731 cat >>confdefs.h <<\_ACEOF
5732 #define USE_LIBXML 1
5733 _ACEOF
5734
5735       ;;
5736     no)
5737       :
5738       ;;
5739     *)
5740       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5741 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5742    { (exit 1); exit 1; }; }
5743       ;;
5744   esac
5745
5746 else
5747   with_libxml=no
5748
5749 fi
5750
5751
5752
5753 if test "$with_libxml" = yes ; then
5754   for ac_prog in xml2-config
5755 do
5756   # Extract the first word of "$ac_prog", so it can be a program name with args.
5757 set dummy $ac_prog; ac_word=$2
5758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5761   $as_echo_n "(cached) " >&6
5762 else
5763   if test -n "$XML2_CONFIG"; then
5764   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769   IFS=$as_save_IFS
5770   test -z "$as_dir" && as_dir=.
5771   for ac_exec_ext in '' $ac_executable_extensions; do
5772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773     ac_cv_prog_XML2_CONFIG="$ac_prog"
5774     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5775     break 2
5776   fi
5777 done
5778 done
5779 IFS=$as_save_IFS
5780
5781 fi
5782 fi
5783 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5784 if test -n "$XML2_CONFIG"; then
5785   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5786 $as_echo "$XML2_CONFIG" >&6; }
5787 else
5788   { $as_echo "$as_me:$LINENO: result: no" >&5
5789 $as_echo "no" >&6; }
5790 fi
5791
5792
5793   test -n "$XML2_CONFIG" && break
5794 done
5795
5796   if test -n "$XML2_CONFIG"; then
5797     for pgac_option in `$XML2_CONFIG --cflags`; do
5798       case $pgac_option in
5799         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5800       esac
5801     done
5802     for pgac_option in `$XML2_CONFIG --libs`; do
5803       case $pgac_option in
5804         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5805       esac
5806     done
5807   fi
5808 fi
5809
5810
5811
5812 #
5813 # XSLT
5814 #
5815
5816
5817
5818 # Check whether --with-libxslt was given.
5819 if test "${with_libxslt+set}" = set; then
5820   withval=$with_libxslt;
5821   case $withval in
5822     yes)
5823
5824 cat >>confdefs.h <<\_ACEOF
5825 #define USE_LIBXSLT 1
5826 _ACEOF
5827
5828       ;;
5829     no)
5830       :
5831       ;;
5832     *)
5833       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5834 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5835    { (exit 1); exit 1; }; }
5836       ;;
5837   esac
5838
5839 else
5840   with_libxslt=no
5841
5842 fi
5843
5844
5845
5846
5847
5848
5849 #
5850 # tzdata
5851 #
5852
5853
5854
5855 # Check whether --with-system-tzdata was given.
5856 if test "${with_system_tzdata+set}" = set; then
5857   withval=$with_system_tzdata;
5858   case $withval in
5859     yes)
5860       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5861 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5862    { (exit 1); exit 1; }; }
5863       ;;
5864     no)
5865       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5866 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5867    { (exit 1); exit 1; }; }
5868       ;;
5869     *)
5870
5871       ;;
5872   esac
5873
5874 fi
5875
5876
5877
5878
5879 #
5880 # Zlib
5881 #
5882
5883
5884
5885 # Check whether --with-zlib was given.
5886 if test "${with_zlib+set}" = set; then
5887   withval=$with_zlib;
5888   case $withval in
5889     yes)
5890       :
5891       ;;
5892     no)
5893       :
5894       ;;
5895     *)
5896       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5897 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5898    { (exit 1); exit 1; }; }
5899       ;;
5900   esac
5901
5902 else
5903   with_zlib=yes
5904
5905 fi
5906
5907
5908
5909
5910 #
5911 # Elf
5912 #
5913
5914 # Assume system is ELF if it predefines __ELF__ as 1,
5915 # otherwise believe host_os based default.
5916 case $host_os in
5917     freebsd1*|freebsd2*) elf=no;;
5918     freebsd3*|freebsd4*) elf=yes;;
5919 esac
5920
5921
5922 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5923 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5924 if test "${ac_cv_path_GREP+set}" = set; then
5925   $as_echo_n "(cached) " >&6
5926 else
5927   if test -z "$GREP"; then
5928   ac_path_GREP_found=false
5929   # Loop through the user's path and test for each of PROGNAME-LIST
5930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935   for ac_prog in grep ggrep; do
5936     for ac_exec_ext in '' $ac_executable_extensions; do
5937       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5938       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5939 # Check for GNU ac_path_GREP and select it if it is found.
5940   # Check for GNU $ac_path_GREP
5941 case `"$ac_path_GREP" --version 2>&1` in
5942 *GNU*)
5943   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5944 *)
5945   ac_count=0
5946   $as_echo_n 0123456789 >"conftest.in"
5947   while :
5948   do
5949     cat "conftest.in" "conftest.in" >"conftest.tmp"
5950     mv "conftest.tmp" "conftest.in"
5951     cp "conftest.in" "conftest.nl"
5952     $as_echo 'GREP' >> "conftest.nl"
5953     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5954     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5955     ac_count=`expr $ac_count + 1`
5956     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5957       # Best one so far, save it but keep looking for a better one
5958       ac_cv_path_GREP="$ac_path_GREP"
5959       ac_path_GREP_max=$ac_count
5960     fi
5961     # 10*(2^10) chars as input seems more than enough
5962     test $ac_count -gt 10 && break
5963   done
5964   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5965 esac
5966
5967       $ac_path_GREP_found && break 3
5968     done
5969   done
5970 done
5971 IFS=$as_save_IFS
5972   if test -z "$ac_cv_path_GREP"; then
5973     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5974 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5975    { (exit 1); exit 1; }; }
5976   fi
5977 else
5978   ac_cv_path_GREP=$GREP
5979 fi
5980
5981 fi
5982 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5983 $as_echo "$ac_cv_path_GREP" >&6; }
5984  GREP="$ac_cv_path_GREP"
5985
5986
5987 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5988 $as_echo_n "checking for egrep... " >&6; }
5989 if test "${ac_cv_path_EGREP+set}" = set; then
5990   $as_echo_n "(cached) " >&6
5991 else
5992   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5993    then ac_cv_path_EGREP="$GREP -E"
5994    else
5995      if test -z "$EGREP"; then
5996   ac_path_EGREP_found=false
5997   # Loop through the user's path and test for each of PROGNAME-LIST
5998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_prog in egrep; do
6004     for ac_exec_ext in '' $ac_executable_extensions; do
6005       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6006       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6007 # Check for GNU ac_path_EGREP and select it if it is found.
6008   # Check for GNU $ac_path_EGREP
6009 case `"$ac_path_EGREP" --version 2>&1` in
6010 *GNU*)
6011   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6012 *)
6013   ac_count=0
6014   $as_echo_n 0123456789 >"conftest.in"
6015   while :
6016   do
6017     cat "conftest.in" "conftest.in" >"conftest.tmp"
6018     mv "conftest.tmp" "conftest.in"
6019     cp "conftest.in" "conftest.nl"
6020     $as_echo 'EGREP' >> "conftest.nl"
6021     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6022     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6023     ac_count=`expr $ac_count + 1`
6024     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6025       # Best one so far, save it but keep looking for a better one
6026       ac_cv_path_EGREP="$ac_path_EGREP"
6027       ac_path_EGREP_max=$ac_count
6028     fi
6029     # 10*(2^10) chars as input seems more than enough
6030     test $ac_count -gt 10 && break
6031   done
6032   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6033 esac
6034
6035       $ac_path_EGREP_found && break 3
6036     done
6037   done
6038 done
6039 IFS=$as_save_IFS
6040   if test -z "$ac_cv_path_EGREP"; then
6041     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6042 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6043    { (exit 1); exit 1; }; }
6044   fi
6045 else
6046   ac_cv_path_EGREP=$EGREP
6047 fi
6048
6049    fi
6050 fi
6051 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6052 $as_echo "$ac_cv_path_EGREP" >&6; }
6053  EGREP="$ac_cv_path_EGREP"
6054
6055
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h.  */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h.  */
6062 #if __ELF__
6063   yes
6064 #endif
6065
6066 _ACEOF
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068   $EGREP "yes" >/dev/null 2>&1; then
6069   ELF_SYS=true
6070 else
6071   if test "X$elf" = "Xyes" ; then
6072   ELF_SYS=true
6073 else
6074   ELF_SYS=
6075 fi
6076 fi
6077 rm -f conftest*
6078
6079
6080
6081 #
6082 # Assignments
6083 #
6084
6085 CPPFLAGS="$CPPFLAGS $INCLUDES"
6086 LDFLAGS="$LDFLAGS $LIBDIRS"
6087
6088
6089
6090
6091
6092 # Check whether --with-gnu-ld was given.
6093 if test "${with_gnu_ld+set}" = set; then
6094   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6095 else
6096   with_gnu_ld=no
6097 fi
6098
6099 ac_prog=ld
6100 if test "$GCC" = yes; then
6101   # Check if gcc -print-prog-name=ld gives a path.
6102   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6103 $as_echo_n "checking for ld used by GCC... " >&6; }
6104   case $host in
6105   *-*-mingw*)
6106     # gcc leaves a trailing carriage return which upsets mingw
6107     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6108   *)
6109     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6110   esac
6111   case "$ac_prog" in
6112     # Accept absolute paths.
6113     [\\/]* | [A-Za-z]:[\\/]*)
6114       re_direlt='/[^/][^/]*/\.\./'
6115       # Canonicalize the path of ld
6116       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6117       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6118         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6119       done
6120       test -z "$LD" && LD="$ac_prog"
6121       ;;
6122   "")
6123     # If it fails, then pretend we aren't using GCC.
6124     ac_prog=ld
6125     ;;
6126   *)
6127     # If it is relative, then search for the first ld in PATH.
6128     with_gnu_ld=unknown
6129     ;;
6130   esac
6131 elif test "$with_gnu_ld" = yes; then
6132   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6133 $as_echo_n "checking for GNU ld... " >&6; }
6134 else
6135   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6136 $as_echo_n "checking for non-GNU ld... " >&6; }
6137 fi
6138 if test "${ac_cv_path_LD+set}" = set; then
6139   $as_echo_n "(cached) " >&6
6140 else
6141   if test -z "$LD"; then
6142   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6143   for ac_dir in $PATH; do
6144     test -z "$ac_dir" && ac_dir=.
6145     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6146       ac_cv_path_LD="$ac_dir/$ac_prog"
6147       # Check to see if the program is GNU ld.  I'd rather use --version,
6148       # but apparently some GNU ld's only accept -v.
6149       # Break only if it was the GNU/non-GNU ld that we prefer.
6150       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6151         test "$with_gnu_ld" != no && break
6152       else
6153         test "$with_gnu_ld" != yes && break
6154       fi
6155     fi
6156   done
6157   IFS="$ac_save_ifs"
6158 else
6159   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6160 fi
6161 fi
6162
6163 LD="$ac_cv_path_LD"
6164 if test -n "$LD"; then
6165   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6166 $as_echo "$LD" >&6; }
6167 else
6168   { $as_echo "$as_me:$LINENO: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6172 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6173    { (exit 1); exit 1; }; }
6174 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6175 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6176 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6177   $as_echo_n "(cached) " >&6
6178 else
6179   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6180 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6181   ac_cv_prog_gnu_ld=yes
6182 else
6183   ac_cv_prog_gnu_ld=no
6184 fi
6185 fi
6186 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6187 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6188 with_gnu_ld=$ac_cv_prog_gnu_ld
6189
6190
6191
6192
6193 case $host_os in sysv5*)
6194   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6195 $as_echo_n "checking whether ld -R works... " >&6; }
6196 if test "${pgac_cv_prog_ld_R+set}" = set; then
6197   $as_echo_n "(cached) " >&6
6198 else
6199
6200     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6201     cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h.  */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h.  */
6207
6208 int
6209 main ()
6210 {
6211
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (ac_try="$ac_link"
6218 case "(($ac_try" in
6219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220   *) ac_try_echo=$ac_try;;
6221 esac
6222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6223 $as_echo "$ac_try_echo") >&5
6224   (eval "$ac_link") 2>conftest.er1
6225   ac_status=$?
6226   grep -v '^ *+' conftest.er1 >conftest.err
6227   rm -f conftest.er1
6228   cat conftest.err >&5
6229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); } && {
6231          test -z "$ac_c_werror_flag" ||
6232          test ! -s conftest.err
6233        } && test -s conftest$ac_exeext && {
6234          test "$cross_compiling" = yes ||
6235          $as_test_x conftest$ac_exeext
6236        }; then
6237   pgac_cv_prog_ld_R=yes
6238 else
6239   $as_echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242         pgac_cv_prog_ld_R=no
6243 fi
6244
6245 rm -rf conftest.dSYM
6246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6247       conftest$ac_exeext conftest.$ac_ext
6248     LDFLAGS=$pgac_save_LDFLAGS
6249
6250 fi
6251 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6252 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6253   ld_R_works=$pgac_cv_prog_ld_R
6254
6255 esac
6256 if test -n "$ac_tool_prefix"; then
6257   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_RANLIB+set}" = set; then
6262   $as_echo_n "(cached) " >&6
6263 else
6264   if test -n "$RANLIB"; then
6265   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270   IFS=$as_save_IFS
6271   test -z "$as_dir" && as_dir=.
6272   for ac_exec_ext in '' $ac_executable_extensions; do
6273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6275     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6276     break 2
6277   fi
6278 done
6279 done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 RANLIB=$ac_cv_prog_RANLIB
6285 if test -n "$RANLIB"; then
6286   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6287 $as_echo "$RANLIB" >&6; }
6288 else
6289   { $as_echo "$as_me:$LINENO: result: no" >&5
6290 $as_echo "no" >&6; }
6291 fi
6292
6293
6294 fi
6295 if test -z "$ac_cv_prog_RANLIB"; then
6296   ac_ct_RANLIB=$RANLIB
6297   # Extract the first word of "ranlib", so it can be a program name with args.
6298 set dummy ranlib; ac_word=$2
6299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6302   $as_echo_n "(cached) " >&6
6303 else
6304   if test -n "$ac_ct_RANLIB"; then
6305   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6314     ac_cv_prog_ac_ct_RANLIB="ranlib"
6315     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6325 if test -n "$ac_ct_RANLIB"; then
6326   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6327 $as_echo "$ac_ct_RANLIB" >&6; }
6328 else
6329   { $as_echo "$as_me:$LINENO: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333   if test "x$ac_ct_RANLIB" = x; then
6334     RANLIB=":"
6335   else
6336     case $cross_compiling:$ac_tool_warned in
6337 yes:)
6338 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340 ac_tool_warned=yes ;;
6341 esac
6342     RANLIB=$ac_ct_RANLIB
6343   fi
6344 else
6345   RANLIB="$ac_cv_prog_RANLIB"
6346 fi
6347
6348
6349   if test -n "$ac_tool_prefix"; then
6350   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6351 set dummy ${ac_tool_prefix}strip; ac_word=$2
6352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_STRIP+set}" = set; then
6355   $as_echo_n "(cached) " >&6
6356 else
6357   if test -n "$STRIP"; then
6358   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6359 else
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 for as_dir in $PATH
6362 do
6363   IFS=$as_save_IFS
6364   test -z "$as_dir" && as_dir=.
6365   for ac_exec_ext in '' $ac_executable_extensions; do
6366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6368     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369     break 2
6370   fi
6371 done
6372 done
6373 IFS=$as_save_IFS
6374
6375 fi
6376 fi
6377 STRIP=$ac_cv_prog_STRIP
6378 if test -n "$STRIP"; then
6379   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6380 $as_echo "$STRIP" >&6; }
6381 else
6382   { $as_echo "$as_me:$LINENO: result: no" >&5
6383 $as_echo "no" >&6; }
6384 fi
6385
6386
6387 fi
6388 if test -z "$ac_cv_prog_STRIP"; then
6389   ac_ct_STRIP=$STRIP
6390   # Extract the first word of "strip", so it can be a program name with args.
6391 set dummy strip; ac_word=$2
6392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6393 $as_echo_n "checking for $ac_word... " >&6; }
6394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6395   $as_echo_n "(cached) " >&6
6396 else
6397   if test -n "$ac_ct_STRIP"; then
6398   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6399 else
6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 for as_dir in $PATH
6402 do
6403   IFS=$as_save_IFS
6404   test -z "$as_dir" && as_dir=.
6405   for ac_exec_ext in '' $ac_executable_extensions; do
6406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407     ac_cv_prog_ac_ct_STRIP="strip"
6408     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409     break 2
6410   fi
6411 done
6412 done
6413 IFS=$as_save_IFS
6414
6415 fi
6416 fi
6417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6418 if test -n "$ac_ct_STRIP"; then
6419   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6420 $as_echo "$ac_ct_STRIP" >&6; }
6421 else
6422   { $as_echo "$as_me:$LINENO: result: no" >&5
6423 $as_echo "no" >&6; }
6424 fi
6425
6426   if test "x$ac_ct_STRIP" = x; then
6427     STRIP=":"
6428   else
6429     case $cross_compiling:$ac_tool_warned in
6430 yes:)
6431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433 ac_tool_warned=yes ;;
6434 esac
6435     STRIP=$ac_ct_STRIP
6436   fi
6437 else
6438   STRIP="$ac_cv_prog_STRIP"
6439 fi
6440
6441
6442   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6443 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6444   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6445     STRIP_STATIC_LIB="$STRIP -x"
6446     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6447     { $as_echo "$as_me:$LINENO: result: yes" >&5
6448 $as_echo "yes" >&6; }
6449   else
6450     case $host_os in
6451       darwin*)
6452         STRIP="$STRIP -x"
6453         STRIP_STATIC_LIB=$STRIP
6454         STRIP_SHARED_LIB=$STRIP
6455         { $as_echo "$as_me:$LINENO: result: yes" >&5
6456 $as_echo "yes" >&6; }
6457         ;;
6458       *)
6459         STRIP_STATIC_LIB=:
6460         STRIP_SHARED_LIB=:
6461         { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6463         ;;
6464     esac
6465   fi
6466
6467
6468
6469 if test -n "$ac_tool_prefix"; then
6470   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6471 set dummy ${ac_tool_prefix}ar; ac_word=$2
6472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_AR+set}" = set; then
6475   $as_echo_n "(cached) " >&6
6476 else
6477   if test -n "$AR"; then
6478   ac_cv_prog_AR="$AR" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483   IFS=$as_save_IFS
6484   test -z "$as_dir" && as_dir=.
6485   for ac_exec_ext in '' $ac_executable_extensions; do
6486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487     ac_cv_prog_AR="${ac_tool_prefix}ar"
6488     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6489     break 2
6490   fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6494
6495 fi
6496 fi
6497 AR=$ac_cv_prog_AR
6498 if test -n "$AR"; then
6499   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6500 $as_echo "$AR" >&6; }
6501 else
6502   { $as_echo "$as_me:$LINENO: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6505
6506
6507 fi
6508 if test -z "$ac_cv_prog_AR"; then
6509   ac_ct_AR=$AR
6510   # Extract the first word of "ar", so it can be a program name with args.
6511 set dummy ar; ac_word=$2
6512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6515   $as_echo_n "(cached) " >&6
6516 else
6517   if test -n "$ac_ct_AR"; then
6518   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525   for ac_exec_ext in '' $ac_executable_extensions; do
6526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527     ac_cv_prog_ac_ct_AR="ar"
6528     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532 done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6538 if test -n "$ac_ct_AR"; then
6539   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6540 $as_echo "$ac_ct_AR" >&6; }
6541 else
6542   { $as_echo "$as_me:$LINENO: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546   if test "x$ac_ct_AR" = x; then
6547     AR="ar"
6548   else
6549     case $cross_compiling:$ac_tool_warned in
6550 yes:)
6551 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553 ac_tool_warned=yes ;;
6554 esac
6555     AR=$ac_ct_AR
6556   fi
6557 else
6558   AR="$ac_cv_prog_AR"
6559 fi
6560
6561 if test "$PORTNAME" = "win32"; then
6562   if test -n "$ac_tool_prefix"; then
6563   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6568   $as_echo_n "(cached) " >&6
6569 else
6570   if test -n "$DLLTOOL"; then
6571   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576   IFS=$as_save_IFS
6577   test -z "$as_dir" && as_dir=.
6578   for ac_exec_ext in '' $ac_executable_extensions; do
6579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6581     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582     break 2
6583   fi
6584 done
6585 done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 DLLTOOL=$ac_cv_prog_DLLTOOL
6591 if test -n "$DLLTOOL"; then
6592   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6593 $as_echo "$DLLTOOL" >&6; }
6594 else
6595   { $as_echo "$as_me:$LINENO: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598
6599
6600 fi
6601 if test -z "$ac_cv_prog_DLLTOOL"; then
6602   ac_ct_DLLTOOL=$DLLTOOL
6603   # Extract the first word of "dlltool", so it can be a program name with args.
6604 set dummy dlltool; ac_word=$2
6605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6608   $as_echo_n "(cached) " >&6
6609 else
6610   if test -n "$ac_ct_DLLTOOL"; then
6611   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616   IFS=$as_save_IFS
6617   test -z "$as_dir" && as_dir=.
6618   for ac_exec_ext in '' $ac_executable_extensions; do
6619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6621     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622     break 2
6623   fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6631 if test -n "$ac_ct_DLLTOOL"; then
6632   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6633 $as_echo "$ac_ct_DLLTOOL" >&6; }
6634 else
6635   { $as_echo "$as_me:$LINENO: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639   if test "x$ac_ct_DLLTOOL" = x; then
6640     DLLTOOL="dlltool"
6641   else
6642     case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648     DLLTOOL=$ac_ct_DLLTOOL
6649   fi
6650 else
6651   DLLTOOL="$ac_cv_prog_DLLTOOL"
6652 fi
6653
6654   if test -n "$ac_tool_prefix"; then
6655   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6660   $as_echo_n "(cached) " >&6
6661 else
6662   if test -n "$DLLWRAP"; then
6663   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670   for ac_exec_ext in '' $ac_executable_extensions; do
6671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6673     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677 done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 DLLWRAP=$ac_cv_prog_DLLWRAP
6683 if test -n "$DLLWRAP"; then
6684   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6685 $as_echo "$DLLWRAP" >&6; }
6686 else
6687   { $as_echo "$as_me:$LINENO: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690
6691
6692 fi
6693 if test -z "$ac_cv_prog_DLLWRAP"; then
6694   ac_ct_DLLWRAP=$DLLWRAP
6695   # Extract the first word of "dllwrap", so it can be a program name with args.
6696 set dummy dllwrap; ac_word=$2
6697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6700   $as_echo_n "(cached) " >&6
6701 else
6702   if test -n "$ac_ct_DLLWRAP"; then
6703   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708   IFS=$as_save_IFS
6709   test -z "$as_dir" && as_dir=.
6710   for ac_exec_ext in '' $ac_executable_extensions; do
6711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6713     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714     break 2
6715   fi
6716 done
6717 done
6718 IFS=$as_save_IFS
6719
6720 fi
6721 fi
6722 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6723 if test -n "$ac_ct_DLLWRAP"; then
6724   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6725 $as_echo "$ac_ct_DLLWRAP" >&6; }
6726 else
6727   { $as_echo "$as_me:$LINENO: result: no" >&5
6728 $as_echo "no" >&6; }
6729 fi
6730
6731   if test "x$ac_ct_DLLWRAP" = x; then
6732     DLLWRAP="dllwrap"
6733   else
6734     case $cross_compiling:$ac_tool_warned in
6735 yes:)
6736 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6738 ac_tool_warned=yes ;;
6739 esac
6740     DLLWRAP=$ac_ct_DLLWRAP
6741   fi
6742 else
6743   DLLWRAP="$ac_cv_prog_DLLWRAP"
6744 fi
6745
6746   if test -n "$ac_tool_prefix"; then
6747   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6748 set dummy ${ac_tool_prefix}windres; ac_word=$2
6749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 $as_echo_n "checking for $ac_word... " >&6; }
6751 if test "${ac_cv_prog_WINDRES+set}" = set; then
6752   $as_echo_n "(cached) " >&6
6753 else
6754   if test -n "$WINDRES"; then
6755   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6756 else
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758 for as_dir in $PATH
6759 do
6760   IFS=$as_save_IFS
6761   test -z "$as_dir" && as_dir=.
6762   for ac_exec_ext in '' $ac_executable_extensions; do
6763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6765     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766     break 2
6767   fi
6768 done
6769 done
6770 IFS=$as_save_IFS
6771
6772 fi
6773 fi
6774 WINDRES=$ac_cv_prog_WINDRES
6775 if test -n "$WINDRES"; then
6776   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6777 $as_echo "$WINDRES" >&6; }
6778 else
6779   { $as_echo "$as_me:$LINENO: result: no" >&5
6780 $as_echo "no" >&6; }
6781 fi
6782
6783
6784 fi
6785 if test -z "$ac_cv_prog_WINDRES"; then
6786   ac_ct_WINDRES=$WINDRES
6787   # Extract the first word of "windres", so it can be a program name with args.
6788 set dummy windres; ac_word=$2
6789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6792   $as_echo_n "(cached) " >&6
6793 else
6794   if test -n "$ac_ct_WINDRES"; then
6795   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802   for ac_exec_ext in '' $ac_executable_extensions; do
6803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804     ac_cv_prog_ac_ct_WINDRES="windres"
6805     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6815 if test -n "$ac_ct_WINDRES"; then
6816   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6817 $as_echo "$ac_ct_WINDRES" >&6; }
6818 else
6819   { $as_echo "$as_me:$LINENO: result: no" >&5
6820 $as_echo "no" >&6; }
6821 fi
6822
6823   if test "x$ac_ct_WINDRES" = x; then
6824     WINDRES="windres"
6825   else
6826     case $cross_compiling:$ac_tool_warned in
6827 yes:)
6828 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830 ac_tool_warned=yes ;;
6831 esac
6832     WINDRES=$ac_ct_WINDRES
6833   fi
6834 else
6835   WINDRES="$ac_cv_prog_WINDRES"
6836 fi
6837
6838 fi
6839
6840 # Find a good install program.  We prefer a C program (faster),
6841 # so one script is as good as another.  But avoid the broken or
6842 # incompatible versions:
6843 # SysV /etc/install, /usr/sbin/install
6844 # SunOS /usr/etc/install
6845 # IRIX /sbin/install
6846 # AIX /bin/install
6847 # AmigaOS /C/install, which installs bootblocks on floppy discs
6848 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6849 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6850 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6851 # OS/2's system install, which has a completely different semantic
6852 # ./install, which can be erroneously created by make from ./install.sh.
6853 # Reject install programs that cannot install multiple files.
6854 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6855 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6856 if test -z "$INSTALL"; then
6857 if test "${ac_cv_path_install+set}" = set; then
6858   $as_echo_n "(cached) " >&6
6859 else
6860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865   # Account for people who put trailing slashes in PATH elements.
6866 case $as_dir/ in
6867   ./ | .// | /cC/* | \
6868   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6869   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6870   /usr/ucb/* ) ;;
6871   *)
6872     # OSF1 and SCO ODT 3.0 have their own names for install.
6873     # Don't use installbsd from OSF since it installs stuff as root
6874     # by default.
6875     for ac_prog in ginstall scoinst install; do
6876       for ac_exec_ext in '' $ac_executable_extensions; do
6877         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6878           if test $ac_prog = install &&
6879             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6880             # AIX install.  It has an incompatible calling convention.
6881             :
6882           elif test $ac_prog = install &&
6883             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6884             # program-specific install script used by HP pwplus--don't use.
6885             :
6886           else
6887             rm -rf conftest.one conftest.two conftest.dir
6888             echo one > conftest.one
6889             echo two > conftest.two
6890             mkdir conftest.dir
6891             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6892               test -s conftest.one && test -s conftest.two &&
6893               test -s conftest.dir/conftest.one &&
6894               test -s conftest.dir/conftest.two
6895             then
6896               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6897               break 3
6898             fi
6899           fi
6900         fi
6901       done
6902     done
6903     ;;
6904 esac
6905
6906 done
6907 IFS=$as_save_IFS
6908
6909 rm -rf conftest.one conftest.two conftest.dir
6910
6911 fi
6912   if test "${ac_cv_path_install+set}" = set; then
6913     INSTALL=$ac_cv_path_install
6914   else
6915     # As a last resort, use the slow shell script.  Don't cache a
6916     # value for INSTALL within a source directory, because that will
6917     # break other packages using the cache if that directory is
6918     # removed, or if the value is a relative name.
6919     INSTALL=$ac_install_sh
6920   fi
6921 fi
6922 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6923 $as_echo "$INSTALL" >&6; }
6924
6925 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6926 # It thinks the first close brace ends the variable substitution.
6927 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6928
6929 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6930
6931 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6932
6933 # When Autoconf chooses install-sh as install program it tries to generate
6934 # a relative path to it in each makefile where it subsitutes it. This clashes
6935 # with our Makefile.global concept. This workaround helps.
6936 case $INSTALL in
6937   *install-sh*) install_bin='';;
6938   *) install_bin=$INSTALL;;
6939 esac
6940
6941
6942 # Extract the first word of "tar", so it can be a program name with args.
6943 set dummy tar; ac_word=$2
6944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 $as_echo_n "checking for $ac_word... " >&6; }
6946 if test "${ac_cv_path_TAR+set}" = set; then
6947   $as_echo_n "(cached) " >&6
6948 else
6949   case $TAR in
6950   [\\/]* | ?:[\\/]*)
6951   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6952   ;;
6953   *)
6954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957   IFS=$as_save_IFS
6958   test -z "$as_dir" && as_dir=.
6959   for ac_exec_ext in '' $ac_executable_extensions; do
6960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6962     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963     break 2
6964   fi
6965 done
6966 done
6967 IFS=$as_save_IFS
6968
6969   ;;
6970 esac
6971 fi
6972 TAR=$ac_cv_path_TAR
6973 if test -n "$TAR"; then
6974   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6975 $as_echo "$TAR" >&6; }
6976 else
6977   { $as_echo "$as_me:$LINENO: result: no" >&5
6978 $as_echo "no" >&6; }
6979 fi
6980
6981
6982 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6983 $as_echo_n "checking whether ln -s works... " >&6; }
6984 LN_S=$as_ln_s
6985 if test "$LN_S" = "ln -s"; then
6986   { $as_echo "$as_me:$LINENO: result: yes" >&5
6987 $as_echo "yes" >&6; }
6988 else
6989   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6990 $as_echo "no, using $LN_S" >&6; }
6991 fi
6992
6993 for ac_prog in gawk mawk nawk awk
6994 do
6995   # Extract the first word of "$ac_prog", so it can be a program name with args.
6996 set dummy $ac_prog; ac_word=$2
6997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if test "${ac_cv_prog_AWK+set}" = set; then
7000   $as_echo_n "(cached) " >&6
7001 else
7002   if test -n "$AWK"; then
7003   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008   IFS=$as_save_IFS
7009   test -z "$as_dir" && as_dir=.
7010   for ac_exec_ext in '' $ac_executable_extensions; do
7011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012     ac_cv_prog_AWK="$ac_prog"
7013     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7014     break 2
7015   fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 AWK=$ac_cv_prog_AWK
7023 if test -n "$AWK"; then
7024   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7025 $as_echo "$AWK" >&6; }
7026 else
7027   { $as_echo "$as_me:$LINENO: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031
7032   test -n "$AWK" && break
7033 done
7034
7035 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7036 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7037 if test -z "$MKDIR_P"; then
7038   if test "${ac_cv_path_mkdir+set}" = set; then
7039   $as_echo_n "(cached) " >&6
7040 else
7041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046   for ac_prog in mkdir gmkdir; do
7047          for ac_exec_ext in '' $ac_executable_extensions; do
7048            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7049            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7050              'mkdir (GNU coreutils) '* | \
7051              'mkdir (coreutils) '* | \
7052              'mkdir (fileutils) '4.1*)
7053                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7054                break 3;;
7055            esac
7056          done
7057        done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062
7063   if test "${ac_cv_path_mkdir+set}" = set; then
7064     MKDIR_P="$ac_cv_path_mkdir -p"
7065   else
7066     # As a last resort, use the slow shell script.  Don't cache a
7067     # value for MKDIR_P within a source directory, because that will
7068     # break other packages using the cache if that directory is
7069     # removed, or if the value is a relative name.
7070     test -d ./--version && rmdir ./--version
7071     MKDIR_P="$ac_install_sh -d"
7072   fi
7073 fi
7074 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7075 $as_echo "$MKDIR_P" >&6; }
7076
7077 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7078 # a relative path to it in each makefile where it subsitutes it. This clashes
7079 # with our Makefile.global concept. This workaround helps.
7080 case $MKDIR_P in
7081   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7082 esac
7083
7084 # Let the user override the search
7085 if test -z "$BISON"; then
7086   for ac_prog in bison
7087 do
7088   # Extract the first word of "$ac_prog", so it can be a program name with args.
7089 set dummy $ac_prog; ac_word=$2
7090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if test "${ac_cv_path_BISON+set}" = set; then
7093   $as_echo_n "(cached) " >&6
7094 else
7095   case $BISON in
7096   [\\/]* | ?:[\\/]*)
7097   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7098   ;;
7099   *)
7100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 for as_dir in $PATH
7102 do
7103   IFS=$as_save_IFS
7104   test -z "$as_dir" && as_dir=.
7105   for ac_exec_ext in '' $ac_executable_extensions; do
7106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7107     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7108     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109     break 2
7110   fi
7111 done
7112 done
7113 IFS=$as_save_IFS
7114
7115   ;;
7116 esac
7117 fi
7118 BISON=$ac_cv_path_BISON
7119 if test -n "$BISON"; then
7120   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7121 $as_echo "$BISON" >&6; }
7122 else
7123   { $as_echo "$as_me:$LINENO: result: no" >&5
7124 $as_echo "no" >&6; }
7125 fi
7126
7127
7128   test -n "$BISON" && break
7129 done
7130
7131 fi
7132
7133 if test "$BISON"; then
7134   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7135   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7136 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7137   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7138   then
7139     { $as_echo "$as_me:$LINENO: WARNING:
7140 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7141 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7142 $as_echo "$as_me: WARNING:
7143 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7144 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7145     BISON=""
7146   fi
7147 fi
7148
7149 if test -z "$BISON"; then
7150   { $as_echo "$as_me:$LINENO: WARNING:
7151 *** Without Bison you will not be able to build PostgreSQL from Git nor
7152 *** change any of the parser definition files.  You can obtain Bison from
7153 *** a GNU mirror site.  (If you are using the official distribution of
7154 *** PostgreSQL then you do not need to worry about this, because the Bison
7155 *** output is pre-generated.)" >&5
7156 $as_echo "$as_me: WARNING:
7157 *** Without Bison you will not be able to build PostgreSQL from Git nor
7158 *** change any of the parser definition files.  You can obtain Bison from
7159 *** a GNU mirror site.  (If you are using the official distribution of
7160 *** PostgreSQL then you do not need to worry about this, because the Bison
7161 *** output is pre-generated.)" >&2;}
7162 fi
7163 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7164
7165
7166 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7167 $as_echo_n "checking for flex... " >&6; }
7168 if test "${pgac_cv_path_flex+set}" = set; then
7169   $as_echo_n "(cached) " >&6
7170 else
7171   # Let the user override the test
7172 if test -n "$FLEX"; then
7173   pgac_cv_path_flex=$FLEX
7174 else
7175   pgac_save_IFS=$IFS
7176   IFS=$PATH_SEPARATOR
7177   for pgac_dir in $PATH; do
7178     IFS=$pgac_save_IFS
7179     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7180       pgac_dir=`pwd`
7181     fi
7182     for pgac_prog in flex lex; do
7183       pgac_candidate="$pgac_dir/$pgac_prog"
7184       if test -f "$pgac_candidate" \
7185         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7186       then
7187         echo '%%'  > conftest.l
7188         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7189           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7190           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7191           then
7192             pgac_cv_path_flex=$pgac_candidate
7193             break 2
7194           else
7195             { $as_echo "$as_me:$LINENO: WARNING:
7196 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7197 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7198 $as_echo "$as_me: WARNING:
7199 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7200 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7201           fi
7202         fi
7203       fi
7204     done
7205   done
7206   rm -f conftest.l lex.yy.c
7207   : ${pgac_cv_path_flex=no}
7208 fi
7209
7210 fi
7211 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7212 $as_echo "$pgac_cv_path_flex" >&6; }
7213 if test x"$pgac_cv_path_flex" = x"no"; then
7214   { $as_echo "$as_me:$LINENO: WARNING:
7215 *** Without Flex you will not be able to build PostgreSQL from Git nor
7216 *** change any of the scanner definition files.  You can obtain Flex from
7217 *** a GNU mirror site.  (If you are using the official distribution of
7218 *** PostgreSQL then you do not need to worry about this because the Flex
7219 *** output is pre-generated.)" >&5
7220 $as_echo "$as_me: WARNING:
7221 *** Without Flex you will not be able to build PostgreSQL from Git nor
7222 *** change any of the scanner definition files.  You can obtain Flex from
7223 *** a GNU mirror site.  (If you are using the official distribution of
7224 *** PostgreSQL then you do not need to worry about this because the Flex
7225 *** output is pre-generated.)" >&2;}
7226
7227   FLEX=
7228 else
7229   FLEX=$pgac_cv_path_flex
7230   pgac_flex_version=`$FLEX --version 2>/dev/null`
7231   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7232 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7233 fi
7234
7235
7236
7237
7238
7239 # Let the user override the search
7240 if test -z "$PERL"; then
7241   # Extract the first word of "perl", so it can be a program name with args.
7242 set dummy perl; ac_word=$2
7243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_path_PERL+set}" = set; then
7246   $as_echo_n "(cached) " >&6
7247 else
7248   case $PERL in
7249   [\\/]* | ?:[\\/]*)
7250   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7251   ;;
7252   *)
7253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258   for ac_exec_ext in '' $ac_executable_extensions; do
7259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7261     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265 done
7266 IFS=$as_save_IFS
7267
7268   ;;
7269 esac
7270 fi
7271 PERL=$ac_cv_path_PERL
7272 if test -n "$PERL"; then
7273   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7274 $as_echo "$PERL" >&6; }
7275 else
7276   { $as_echo "$as_me:$LINENO: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280
7281 fi
7282
7283 if test "$PERL"; then
7284   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'`
7285   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7286 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7287   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7288     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7289   then
7290     { $as_echo "$as_me:$LINENO: WARNING:
7291 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7292 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7293 $as_echo "$as_me: WARNING:
7294 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7295 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7296     PERL=""
7297   fi
7298 fi
7299
7300 if test -z "$PERL"; then
7301   { $as_echo "$as_me:$LINENO: WARNING:
7302 *** Without Perl you will not be able to build PostgreSQL from Git.
7303 *** You can obtain Perl from any CPAN mirror site.
7304 *** (If you are using the official distribution of PostgreSQL then you do not
7305 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7306 $as_echo "$as_me: WARNING:
7307 *** Without Perl you will not be able to build PostgreSQL from Git.
7308 *** You can obtain Perl from any CPAN mirror site.
7309 *** (If you are using the official distribution of PostgreSQL then you do not
7310 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7311 fi
7312
7313 if test "$with_perl" = yes; then
7314   if test -z "$PERL"; then
7315     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7316 $as_echo "$as_me: error: Perl not found" >&2;}
7317    { (exit 1); exit 1; }; }
7318   fi
7319
7320 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7321 $as_echo_n "checking for Perl archlibexp... " >&6; }
7322 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7323 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7324 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7325 $as_echo "$perl_archlibexp" >&6; }
7326 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7327 $as_echo_n "checking for Perl privlibexp... " >&6; }
7328 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7329 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7330 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7331 $as_echo "$perl_privlibexp" >&6; }
7332 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7333 $as_echo_n "checking for Perl useshrplib... " >&6; }
7334 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7335 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7336 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7337 $as_echo "$perl_useshrplib" >&6; }
7338
7339 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7340 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7341 if test "$PORTNAME" = "win32" ; then
7342 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7343 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7344 else
7345 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7346 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7347 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7348 fi
7349 if test -z "$perl_embed_ldflags" ; then
7350         { $as_echo "$as_me:$LINENO: result: no" >&5
7351 $as_echo "no" >&6; }
7352         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7353 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7354 installed." >&5
7355 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7356 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7357 installed." >&2;}
7358    { (exit 1); exit 1; }; }
7359 else
7360         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7361 $as_echo "$perl_embed_ldflags" >&6; }
7362 fi
7363
7364 fi
7365
7366 if test "$with_python" = yes; then
7367   # Extract the first word of "python", so it can be a program name with args.
7368 set dummy python; ac_word=$2
7369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if test "${ac_cv_path_PYTHON+set}" = set; then
7372   $as_echo_n "(cached) " >&6
7373 else
7374   case $PYTHON in
7375   [\\/]* | ?:[\\/]*)
7376   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7377   ;;
7378   *)
7379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382   IFS=$as_save_IFS
7383   test -z "$as_dir" && as_dir=.
7384   for ac_exec_ext in '' $ac_executable_extensions; do
7385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7386     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7387     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388     break 2
7389   fi
7390 done
7391 done
7392 IFS=$as_save_IFS
7393
7394   ;;
7395 esac
7396 fi
7397 PYTHON=$ac_cv_path_PYTHON
7398 if test -n "$PYTHON"; then
7399   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7400 $as_echo "$PYTHON" >&6; }
7401 else
7402   { $as_echo "$as_me:$LINENO: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406
7407 if test x"$PYTHON" = x""; then
7408   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7409 $as_echo "$as_me: error: Python not found" >&2;}
7410    { (exit 1); exit 1; }; }
7411 fi
7412
7413
7414 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7415 $as_echo_n "checking for Python distutils module... " >&6; }
7416 if "${PYTHON}" -c 'import distutils' 2>&5
7417 then
7418     { $as_echo "$as_me:$LINENO: result: yes" >&5
7419 $as_echo "yes" >&6; }
7420 else
7421     { $as_echo "$as_me:$LINENO: result: no" >&5
7422 $as_echo "no" >&6; }
7423     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7424 $as_echo "$as_me: error: distutils module not found" >&2;}
7425    { (exit 1); exit 1; }; }
7426 fi
7427 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7428 $as_echo_n "checking Python configuration directory... " >&6; }
7429 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7430 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7431 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7432 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7433 $as_echo "$python_configdir" >&6; }
7434
7435 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7436 $as_echo_n "checking Python include directories... " >&6; }
7437 python_includespec=`${PYTHON} -c "
7438 import distutils.sysconfig
7439 a = '-I' + distutils.sysconfig.get_python_inc(False)
7440 b = '-I' + distutils.sysconfig.get_python_inc(True)
7441 if a == b:
7442     print(a)
7443 else:
7444     print(a + ' ' + b)"`
7445 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7446 $as_echo "$python_includespec" >&6; }
7447
7448
7449
7450 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7451 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7452
7453 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7454 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7455 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7456 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7457 python_framework=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORK'))))"`
7458 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7459
7460 if test -n "$python_framework"; then
7461         python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7462         python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7463         python_enable_shared=1
7464 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7465 then
7466         # New way: use the official shared library
7467         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7468         python_libspec="-L${python_libdir} -l${ldlibrary}"
7469 else
7470         # Old way: use libpython from python_configdir
7471         python_libdir="${python_configdir}"
7472         # LDVERSION was introduced in Python 3.2.
7473         python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7474         if test x"${python_ldversion}" = x""; then
7475                 python_ldversion=$python_version
7476         fi
7477         python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7478 fi
7479
7480 if test -z "$python_framework"; then
7481         python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7482 fi
7483
7484 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7485 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7486
7487
7488 # threaded python is not supported on OpenBSD
7489 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7490 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7491 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7492 if test "$pythreads" = "1"; then
7493   { $as_echo "$as_me:$LINENO: result: yes" >&5
7494 $as_echo "yes" >&6; }
7495   case $host_os in
7496   openbsd*)
7497     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7498 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7499    { (exit 1); exit 1; }; }
7500     ;;
7501   esac
7502 else
7503   { $as_echo "$as_me:$LINENO: result: no" >&5
7504 $as_echo "no" >&6; }
7505 fi
7506
7507
7508 fi
7509
7510 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7511   # Extract the first word of "zic", so it can be a program name with args.
7512 set dummy zic; ac_word=$2
7513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if test "${ac_cv_path_ZIC+set}" = set; then
7516   $as_echo_n "(cached) " >&6
7517 else
7518   case $ZIC in
7519   [\\/]* | ?:[\\/]*)
7520   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7521   ;;
7522   *)
7523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526   IFS=$as_save_IFS
7527   test -z "$as_dir" && as_dir=.
7528   for ac_exec_ext in '' $ac_executable_extensions; do
7529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7531     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532     break 2
7533   fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538   ;;
7539 esac
7540 fi
7541 ZIC=$ac_cv_path_ZIC
7542 if test -n "$ZIC"; then
7543   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7544 $as_echo "$ZIC" >&6; }
7545 else
7546   { $as_echo "$as_me:$LINENO: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551   if test -z "$ZIC"; then
7552     { { $as_echo "$as_me:$LINENO: error:
7553 When cross-compiling, either use the option --with-system-tzdata to use
7554 existing time-zone data, or set the environment variable ZIC to a zic
7555 program to use during the build." >&5
7556 $as_echo "$as_me: error:
7557 When cross-compiling, either use the option --with-system-tzdata to use
7558 existing time-zone data, or set the environment variable ZIC to a zic
7559 program to use during the build." >&2;}
7560    { (exit 1); exit 1; }; }
7561   fi
7562 fi
7563
7564
7565 ##
7566 ## Libraries
7567 ##
7568 ## Most libraries are included only if they demonstrably provide a function
7569 ## we need, but libm is an exception: always include it, because there are
7570 ## too many compilers that play cute optimization games that will break
7571 ## probes for standard functions such as pow().
7572 ##
7573
7574
7575 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7576 $as_echo_n "checking for main in -lm... " >&6; }
7577 if test "${ac_cv_lib_m_main+set}" = set; then
7578   $as_echo_n "(cached) " >&6
7579 else
7580   ac_check_lib_save_LIBS=$LIBS
7581 LIBS="-lm  $LIBS"
7582 cat >conftest.$ac_ext <<_ACEOF
7583 /* confdefs.h.  */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h.  */
7588
7589
7590 int
7591 main ()
7592 {
7593 return main ();
7594   ;
7595   return 0;
7596 }
7597 _ACEOF
7598 rm -f conftest.$ac_objext conftest$ac_exeext
7599 if { (ac_try="$ac_link"
7600 case "(($ac_try" in
7601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602   *) ac_try_echo=$ac_try;;
7603 esac
7604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7605 $as_echo "$ac_try_echo") >&5
7606   (eval "$ac_link") 2>conftest.er1
7607   ac_status=$?
7608   grep -v '^ *+' conftest.er1 >conftest.err
7609   rm -f conftest.er1
7610   cat conftest.err >&5
7611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } && {
7613          test -z "$ac_c_werror_flag" ||
7614          test ! -s conftest.err
7615        } && test -s conftest$ac_exeext && {
7616          test "$cross_compiling" = yes ||
7617          $as_test_x conftest$ac_exeext
7618        }; then
7619   ac_cv_lib_m_main=yes
7620 else
7621   $as_echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7623
7624         ac_cv_lib_m_main=no
7625 fi
7626
7627 rm -rf conftest.dSYM
7628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7629       conftest$ac_exeext conftest.$ac_ext
7630 LIBS=$ac_check_lib_save_LIBS
7631 fi
7632 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7633 $as_echo "$ac_cv_lib_m_main" >&6; }
7634 if test "x$ac_cv_lib_m_main" = x""yes; then
7635   cat >>confdefs.h <<_ACEOF
7636 #define HAVE_LIBM 1
7637 _ACEOF
7638
7639   LIBS="-lm $LIBS"
7640
7641 fi
7642
7643 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7644 $as_echo_n "checking for library containing setproctitle... " >&6; }
7645 if test "${ac_cv_search_setproctitle+set}" = set; then
7646   $as_echo_n "(cached) " >&6
7647 else
7648   ac_func_search_save_LIBS=$LIBS
7649 cat >conftest.$ac_ext <<_ACEOF
7650 /* confdefs.h.  */
7651 _ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h.  */
7655
7656 /* Override any GCC internal prototype to avoid an error.
7657    Use char because int might match the return type of a GCC
7658    builtin and then its argument prototype would still apply.  */
7659 #ifdef __cplusplus
7660 extern "C"
7661 #endif
7662 char setproctitle ();
7663 int
7664 main ()
7665 {
7666 return setproctitle ();
7667   ;
7668   return 0;
7669 }
7670 _ACEOF
7671 for ac_lib in '' util; do
7672   if test -z "$ac_lib"; then
7673     ac_res="none required"
7674   else
7675     ac_res=-l$ac_lib
7676     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7677   fi
7678   rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7680 case "(($ac_try" in
7681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682   *) ac_try_echo=$ac_try;;
7683 esac
7684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7685 $as_echo "$ac_try_echo") >&5
7686   (eval "$ac_link") 2>conftest.er1
7687   ac_status=$?
7688   grep -v '^ *+' conftest.er1 >conftest.err
7689   rm -f conftest.er1
7690   cat conftest.err >&5
7691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692   (exit $ac_status); } && {
7693          test -z "$ac_c_werror_flag" ||
7694          test ! -s conftest.err
7695        } && test -s conftest$ac_exeext && {
7696          test "$cross_compiling" = yes ||
7697          $as_test_x conftest$ac_exeext
7698        }; then
7699   ac_cv_search_setproctitle=$ac_res
7700 else
7701   $as_echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704
7705 fi
7706
7707 rm -rf conftest.dSYM
7708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7709       conftest$ac_exeext
7710   if test "${ac_cv_search_setproctitle+set}" = set; then
7711   break
7712 fi
7713 done
7714 if test "${ac_cv_search_setproctitle+set}" = set; then
7715   :
7716 else
7717   ac_cv_search_setproctitle=no
7718 fi
7719 rm conftest.$ac_ext
7720 LIBS=$ac_func_search_save_LIBS
7721 fi
7722 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7723 $as_echo "$ac_cv_search_setproctitle" >&6; }
7724 ac_res=$ac_cv_search_setproctitle
7725 if test "$ac_res" != no; then
7726   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7727
7728 fi
7729
7730 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7731 $as_echo_n "checking for library containing dlopen... " >&6; }
7732 if test "${ac_cv_search_dlopen+set}" = set; then
7733   $as_echo_n "(cached) " >&6
7734 else
7735   ac_func_search_save_LIBS=$LIBS
7736 cat >conftest.$ac_ext <<_ACEOF
7737 /* confdefs.h.  */
7738 _ACEOF
7739 cat confdefs.h >>conftest.$ac_ext
7740 cat >>conftest.$ac_ext <<_ACEOF
7741 /* end confdefs.h.  */
7742
7743 /* Override any GCC internal prototype to avoid an error.
7744    Use char because int might match the return type of a GCC
7745    builtin and then its argument prototype would still apply.  */
7746 #ifdef __cplusplus
7747 extern "C"
7748 #endif
7749 char dlopen ();
7750 int
7751 main ()
7752 {
7753 return dlopen ();
7754   ;
7755   return 0;
7756 }
7757 _ACEOF
7758 for ac_lib in '' dl; do
7759   if test -z "$ac_lib"; then
7760     ac_res="none required"
7761   else
7762     ac_res=-l$ac_lib
7763     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7764   fi
7765   rm -f conftest.$ac_objext conftest$ac_exeext
7766 if { (ac_try="$ac_link"
7767 case "(($ac_try" in
7768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769   *) ac_try_echo=$ac_try;;
7770 esac
7771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7772 $as_echo "$ac_try_echo") >&5
7773   (eval "$ac_link") 2>conftest.er1
7774   ac_status=$?
7775   grep -v '^ *+' conftest.er1 >conftest.err
7776   rm -f conftest.er1
7777   cat conftest.err >&5
7778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779   (exit $ac_status); } && {
7780          test -z "$ac_c_werror_flag" ||
7781          test ! -s conftest.err
7782        } && test -s conftest$ac_exeext && {
7783          test "$cross_compiling" = yes ||
7784          $as_test_x conftest$ac_exeext
7785        }; then
7786   ac_cv_search_dlopen=$ac_res
7787 else
7788   $as_echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791
7792 fi
7793
7794 rm -rf conftest.dSYM
7795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7796       conftest$ac_exeext
7797   if test "${ac_cv_search_dlopen+set}" = set; then
7798   break
7799 fi
7800 done
7801 if test "${ac_cv_search_dlopen+set}" = set; then
7802   :
7803 else
7804   ac_cv_search_dlopen=no
7805 fi
7806 rm conftest.$ac_ext
7807 LIBS=$ac_func_search_save_LIBS
7808 fi
7809 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7810 $as_echo "$ac_cv_search_dlopen" >&6; }
7811 ac_res=$ac_cv_search_dlopen
7812 if test "$ac_res" != no; then
7813   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7814
7815 fi
7816
7817 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7818 $as_echo_n "checking for library containing socket... " >&6; }
7819 if test "${ac_cv_search_socket+set}" = set; then
7820   $as_echo_n "(cached) " >&6
7821 else
7822   ac_func_search_save_LIBS=$LIBS
7823 cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h.  */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h.  */
7829
7830 /* Override any GCC internal prototype to avoid an error.
7831    Use char because int might match the return type of a GCC
7832    builtin and then its argument prototype would still apply.  */
7833 #ifdef __cplusplus
7834 extern "C"
7835 #endif
7836 char socket ();
7837 int
7838 main ()
7839 {
7840 return socket ();
7841   ;
7842   return 0;
7843 }
7844 _ACEOF
7845 for ac_lib in '' socket wsock32; do
7846   if test -z "$ac_lib"; then
7847     ac_res="none required"
7848   else
7849     ac_res=-l$ac_lib
7850     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7851   fi
7852   rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (ac_try="$ac_link"
7854 case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7859 $as_echo "$ac_try_echo") >&5
7860   (eval "$ac_link") 2>conftest.er1
7861   ac_status=$?
7862   grep -v '^ *+' conftest.er1 >conftest.err
7863   rm -f conftest.er1
7864   cat conftest.err >&5
7865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); } && {
7867          test -z "$ac_c_werror_flag" ||
7868          test ! -s conftest.err
7869        } && test -s conftest$ac_exeext && {
7870          test "$cross_compiling" = yes ||
7871          $as_test_x conftest$ac_exeext
7872        }; then
7873   ac_cv_search_socket=$ac_res
7874 else
7875   $as_echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878
7879 fi
7880
7881 rm -rf conftest.dSYM
7882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7883       conftest$ac_exeext
7884   if test "${ac_cv_search_socket+set}" = set; then
7885   break
7886 fi
7887 done
7888 if test "${ac_cv_search_socket+set}" = set; then
7889   :
7890 else
7891   ac_cv_search_socket=no
7892 fi
7893 rm conftest.$ac_ext
7894 LIBS=$ac_func_search_save_LIBS
7895 fi
7896 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7897 $as_echo "$ac_cv_search_socket" >&6; }
7898 ac_res=$ac_cv_search_socket
7899 if test "$ac_res" != no; then
7900   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7901
7902 fi
7903
7904 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7905 $as_echo_n "checking for library containing shl_load... " >&6; }
7906 if test "${ac_cv_search_shl_load+set}" = set; then
7907   $as_echo_n "(cached) " >&6
7908 else
7909   ac_func_search_save_LIBS=$LIBS
7910 cat >conftest.$ac_ext <<_ACEOF
7911 /* confdefs.h.  */
7912 _ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h.  */
7916
7917 /* Override any GCC internal prototype to avoid an error.
7918    Use char because int might match the return type of a GCC
7919    builtin and then its argument prototype would still apply.  */
7920 #ifdef __cplusplus
7921 extern "C"
7922 #endif
7923 char shl_load ();
7924 int
7925 main ()
7926 {
7927 return shl_load ();
7928   ;
7929   return 0;
7930 }
7931 _ACEOF
7932 for ac_lib in '' dld; do
7933   if test -z "$ac_lib"; then
7934     ac_res="none required"
7935   else
7936     ac_res=-l$ac_lib
7937     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7938   fi
7939   rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (ac_try="$ac_link"
7941 case "(($ac_try" in
7942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943   *) ac_try_echo=$ac_try;;
7944 esac
7945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7946 $as_echo "$ac_try_echo") >&5
7947   (eval "$ac_link") 2>conftest.er1
7948   ac_status=$?
7949   grep -v '^ *+' conftest.er1 >conftest.err
7950   rm -f conftest.er1
7951   cat conftest.err >&5
7952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); } && {
7954          test -z "$ac_c_werror_flag" ||
7955          test ! -s conftest.err
7956        } && test -s conftest$ac_exeext && {
7957          test "$cross_compiling" = yes ||
7958          $as_test_x conftest$ac_exeext
7959        }; then
7960   ac_cv_search_shl_load=$ac_res
7961 else
7962   $as_echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.$ac_ext >&5
7964
7965
7966 fi
7967
7968 rm -rf conftest.dSYM
7969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7970       conftest$ac_exeext
7971   if test "${ac_cv_search_shl_load+set}" = set; then
7972   break
7973 fi
7974 done
7975 if test "${ac_cv_search_shl_load+set}" = set; then
7976   :
7977 else
7978   ac_cv_search_shl_load=no
7979 fi
7980 rm conftest.$ac_ext
7981 LIBS=$ac_func_search_save_LIBS
7982 fi
7983 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7984 $as_echo "$ac_cv_search_shl_load" >&6; }
7985 ac_res=$ac_cv_search_shl_load
7986 if test "$ac_res" != no; then
7987   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7988
7989 fi
7990
7991 # We only use libld in port/dynloader/aix.c
7992 case $host_os in
7993      aix*)
7994         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7995 $as_echo_n "checking for library containing ldopen... " >&6; }
7996 if test "${ac_cv_search_ldopen+set}" = set; then
7997   $as_echo_n "(cached) " >&6
7998 else
7999   ac_func_search_save_LIBS=$LIBS
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h.  */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h.  */
8006
8007 /* Override any GCC internal prototype to avoid an error.
8008    Use char because int might match the return type of a GCC
8009    builtin and then its argument prototype would still apply.  */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 char ldopen ();
8014 int
8015 main ()
8016 {
8017 return ldopen ();
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 for ac_lib in '' ld; do
8023   if test -z "$ac_lib"; then
8024     ac_res="none required"
8025   else
8026     ac_res=-l$ac_lib
8027     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8028   fi
8029   rm -f conftest.$ac_objext conftest$ac_exeext
8030 if { (ac_try="$ac_link"
8031 case "(($ac_try" in
8032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033   *) ac_try_echo=$ac_try;;
8034 esac
8035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8036 $as_echo "$ac_try_echo") >&5
8037   (eval "$ac_link") 2>conftest.er1
8038   ac_status=$?
8039   grep -v '^ *+' conftest.er1 >conftest.err
8040   rm -f conftest.er1
8041   cat conftest.err >&5
8042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); } && {
8044          test -z "$ac_c_werror_flag" ||
8045          test ! -s conftest.err
8046        } && test -s conftest$ac_exeext && {
8047          test "$cross_compiling" = yes ||
8048          $as_test_x conftest$ac_exeext
8049        }; then
8050   ac_cv_search_ldopen=$ac_res
8051 else
8052   $as_echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8054
8055
8056 fi
8057
8058 rm -rf conftest.dSYM
8059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8060       conftest$ac_exeext
8061   if test "${ac_cv_search_ldopen+set}" = set; then
8062   break
8063 fi
8064 done
8065 if test "${ac_cv_search_ldopen+set}" = set; then
8066   :
8067 else
8068   ac_cv_search_ldopen=no
8069 fi
8070 rm conftest.$ac_ext
8071 LIBS=$ac_func_search_save_LIBS
8072 fi
8073 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8074 $as_echo "$ac_cv_search_ldopen" >&6; }
8075 ac_res=$ac_cv_search_ldopen
8076 if test "$ac_res" != no; then
8077   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8078
8079 fi
8080
8081         ;;
8082 esac
8083 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8084 $as_echo_n "checking for library containing getopt_long... " >&6; }
8085 if test "${ac_cv_search_getopt_long+set}" = set; then
8086   $as_echo_n "(cached) " >&6
8087 else
8088   ac_func_search_save_LIBS=$LIBS
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h.  */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h.  */
8095
8096 /* Override any GCC internal prototype to avoid an error.
8097    Use char because int might match the return type of a GCC
8098    builtin and then its argument prototype would still apply.  */
8099 #ifdef __cplusplus
8100 extern "C"
8101 #endif
8102 char getopt_long ();
8103 int
8104 main ()
8105 {
8106 return getopt_long ();
8107   ;
8108   return 0;
8109 }
8110 _ACEOF
8111 for ac_lib in '' getopt gnugetopt; do
8112   if test -z "$ac_lib"; then
8113     ac_res="none required"
8114   else
8115     ac_res=-l$ac_lib
8116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8117   fi
8118   rm -f conftest.$ac_objext conftest$ac_exeext
8119 if { (ac_try="$ac_link"
8120 case "(($ac_try" in
8121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122   *) ac_try_echo=$ac_try;;
8123 esac
8124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8125 $as_echo "$ac_try_echo") >&5
8126   (eval "$ac_link") 2>conftest.er1
8127   ac_status=$?
8128   grep -v '^ *+' conftest.er1 >conftest.err
8129   rm -f conftest.er1
8130   cat conftest.err >&5
8131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } && {
8133          test -z "$ac_c_werror_flag" ||
8134          test ! -s conftest.err
8135        } && test -s conftest$ac_exeext && {
8136          test "$cross_compiling" = yes ||
8137          $as_test_x conftest$ac_exeext
8138        }; then
8139   ac_cv_search_getopt_long=$ac_res
8140 else
8141   $as_echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144
8145 fi
8146
8147 rm -rf conftest.dSYM
8148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8149       conftest$ac_exeext
8150   if test "${ac_cv_search_getopt_long+set}" = set; then
8151   break
8152 fi
8153 done
8154 if test "${ac_cv_search_getopt_long+set}" = set; then
8155   :
8156 else
8157   ac_cv_search_getopt_long=no
8158 fi
8159 rm conftest.$ac_ext
8160 LIBS=$ac_func_search_save_LIBS
8161 fi
8162 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8163 $as_echo "$ac_cv_search_getopt_long" >&6; }
8164 ac_res=$ac_cv_search_getopt_long
8165 if test "$ac_res" != no; then
8166   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8167
8168 fi
8169
8170 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8171 $as_echo_n "checking for library containing crypt... " >&6; }
8172 if test "${ac_cv_search_crypt+set}" = set; then
8173   $as_echo_n "(cached) " >&6
8174 else
8175   ac_func_search_save_LIBS=$LIBS
8176 cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182
8183 /* Override any GCC internal prototype to avoid an error.
8184    Use char because int might match the return type of a GCC
8185    builtin and then its argument prototype would still apply.  */
8186 #ifdef __cplusplus
8187 extern "C"
8188 #endif
8189 char crypt ();
8190 int
8191 main ()
8192 {
8193 return crypt ();
8194   ;
8195   return 0;
8196 }
8197 _ACEOF
8198 for ac_lib in '' crypt; do
8199   if test -z "$ac_lib"; then
8200     ac_res="none required"
8201   else
8202     ac_res=-l$ac_lib
8203     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8204   fi
8205   rm -f conftest.$ac_objext conftest$ac_exeext
8206 if { (ac_try="$ac_link"
8207 case "(($ac_try" in
8208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209   *) ac_try_echo=$ac_try;;
8210 esac
8211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8212 $as_echo "$ac_try_echo") >&5
8213   (eval "$ac_link") 2>conftest.er1
8214   ac_status=$?
8215   grep -v '^ *+' conftest.er1 >conftest.err
8216   rm -f conftest.er1
8217   cat conftest.err >&5
8218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219   (exit $ac_status); } && {
8220          test -z "$ac_c_werror_flag" ||
8221          test ! -s conftest.err
8222        } && test -s conftest$ac_exeext && {
8223          test "$cross_compiling" = yes ||
8224          $as_test_x conftest$ac_exeext
8225        }; then
8226   ac_cv_search_crypt=$ac_res
8227 else
8228   $as_echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231
8232 fi
8233
8234 rm -rf conftest.dSYM
8235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8236       conftest$ac_exeext
8237   if test "${ac_cv_search_crypt+set}" = set; then
8238   break
8239 fi
8240 done
8241 if test "${ac_cv_search_crypt+set}" = set; then
8242   :
8243 else
8244   ac_cv_search_crypt=no
8245 fi
8246 rm conftest.$ac_ext
8247 LIBS=$ac_func_search_save_LIBS
8248 fi
8249 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8250 $as_echo "$ac_cv_search_crypt" >&6; }
8251 ac_res=$ac_cv_search_crypt
8252 if test "$ac_res" != no; then
8253   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8254
8255 fi
8256
8257 # Solaris:
8258 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8259 $as_echo_n "checking for library containing fdatasync... " >&6; }
8260 if test "${ac_cv_search_fdatasync+set}" = set; then
8261   $as_echo_n "(cached) " >&6
8262 else
8263   ac_func_search_save_LIBS=$LIBS
8264 cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h.  */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h.  */
8270
8271 /* Override any GCC internal prototype to avoid an error.
8272    Use char because int might match the return type of a GCC
8273    builtin and then its argument prototype would still apply.  */
8274 #ifdef __cplusplus
8275 extern "C"
8276 #endif
8277 char fdatasync ();
8278 int
8279 main ()
8280 {
8281 return fdatasync ();
8282   ;
8283   return 0;
8284 }
8285 _ACEOF
8286 for ac_lib in '' rt posix4; do
8287   if test -z "$ac_lib"; then
8288     ac_res="none required"
8289   else
8290     ac_res=-l$ac_lib
8291     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8292   fi
8293   rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (ac_try="$ac_link"
8295 case "(($ac_try" in
8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297   *) ac_try_echo=$ac_try;;
8298 esac
8299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8300 $as_echo "$ac_try_echo") >&5
8301   (eval "$ac_link") 2>conftest.er1
8302   ac_status=$?
8303   grep -v '^ *+' conftest.er1 >conftest.err
8304   rm -f conftest.er1
8305   cat conftest.err >&5
8306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); } && {
8308          test -z "$ac_c_werror_flag" ||
8309          test ! -s conftest.err
8310        } && test -s conftest$ac_exeext && {
8311          test "$cross_compiling" = yes ||
8312          $as_test_x conftest$ac_exeext
8313        }; then
8314   ac_cv_search_fdatasync=$ac_res
8315 else
8316   $as_echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319
8320 fi
8321
8322 rm -rf conftest.dSYM
8323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8324       conftest$ac_exeext
8325   if test "${ac_cv_search_fdatasync+set}" = set; then
8326   break
8327 fi
8328 done
8329 if test "${ac_cv_search_fdatasync+set}" = set; then
8330   :
8331 else
8332   ac_cv_search_fdatasync=no
8333 fi
8334 rm conftest.$ac_ext
8335 LIBS=$ac_func_search_save_LIBS
8336 fi
8337 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8338 $as_echo "$ac_cv_search_fdatasync" >&6; }
8339 ac_res=$ac_cv_search_fdatasync
8340 if test "$ac_res" != no; then
8341   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8342
8343 fi
8344
8345 # Required for thread_test.c on Solaris 2.5:
8346 # Other ports use it too (HP-UX) so test unconditionally
8347 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8348 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8349 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8350   $as_echo_n "(cached) " >&6
8351 else
8352   ac_func_search_save_LIBS=$LIBS
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359
8360 /* Override any GCC internal prototype to avoid an error.
8361    Use char because int might match the return type of a GCC
8362    builtin and then its argument prototype would still apply.  */
8363 #ifdef __cplusplus
8364 extern "C"
8365 #endif
8366 char gethostbyname_r ();
8367 int
8368 main ()
8369 {
8370 return gethostbyname_r ();
8371   ;
8372   return 0;
8373 }
8374 _ACEOF
8375 for ac_lib in '' nsl; do
8376   if test -z "$ac_lib"; then
8377     ac_res="none required"
8378   else
8379     ac_res=-l$ac_lib
8380     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8381   fi
8382   rm -f conftest.$ac_objext conftest$ac_exeext
8383 if { (ac_try="$ac_link"
8384 case "(($ac_try" in
8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386   *) ac_try_echo=$ac_try;;
8387 esac
8388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8389 $as_echo "$ac_try_echo") >&5
8390   (eval "$ac_link") 2>conftest.er1
8391   ac_status=$?
8392   grep -v '^ *+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } && {
8397          test -z "$ac_c_werror_flag" ||
8398          test ! -s conftest.err
8399        } && test -s conftest$ac_exeext && {
8400          test "$cross_compiling" = yes ||
8401          $as_test_x conftest$ac_exeext
8402        }; then
8403   ac_cv_search_gethostbyname_r=$ac_res
8404 else
8405   $as_echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408
8409 fi
8410
8411 rm -rf conftest.dSYM
8412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8413       conftest$ac_exeext
8414   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8415   break
8416 fi
8417 done
8418 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8419   :
8420 else
8421   ac_cv_search_gethostbyname_r=no
8422 fi
8423 rm conftest.$ac_ext
8424 LIBS=$ac_func_search_save_LIBS
8425 fi
8426 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8427 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8428 ac_res=$ac_cv_search_gethostbyname_r
8429 if test "$ac_res" != no; then
8430   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8431
8432 fi
8433
8434 # Cygwin:
8435 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8436 $as_echo_n "checking for library containing shmget... " >&6; }
8437 if test "${ac_cv_search_shmget+set}" = set; then
8438   $as_echo_n "(cached) " >&6
8439 else
8440   ac_func_search_save_LIBS=$LIBS
8441 cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447
8448 /* Override any GCC internal prototype to avoid an error.
8449    Use char because int might match the return type of a GCC
8450    builtin and then its argument prototype would still apply.  */
8451 #ifdef __cplusplus
8452 extern "C"
8453 #endif
8454 char shmget ();
8455 int
8456 main ()
8457 {
8458 return shmget ();
8459   ;
8460   return 0;
8461 }
8462 _ACEOF
8463 for ac_lib in '' cygipc; do
8464   if test -z "$ac_lib"; then
8465     ac_res="none required"
8466   else
8467     ac_res=-l$ac_lib
8468     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8469   fi
8470   rm -f conftest.$ac_objext conftest$ac_exeext
8471 if { (ac_try="$ac_link"
8472 case "(($ac_try" in
8473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474   *) ac_try_echo=$ac_try;;
8475 esac
8476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478   (eval "$ac_link") 2>conftest.er1
8479   ac_status=$?
8480   grep -v '^ *+' conftest.er1 >conftest.err
8481   rm -f conftest.er1
8482   cat conftest.err >&5
8483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } && {
8485          test -z "$ac_c_werror_flag" ||
8486          test ! -s conftest.err
8487        } && test -s conftest$ac_exeext && {
8488          test "$cross_compiling" = yes ||
8489          $as_test_x conftest$ac_exeext
8490        }; then
8491   ac_cv_search_shmget=$ac_res
8492 else
8493   $as_echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8495
8496
8497 fi
8498
8499 rm -rf conftest.dSYM
8500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8501       conftest$ac_exeext
8502   if test "${ac_cv_search_shmget+set}" = set; then
8503   break
8504 fi
8505 done
8506 if test "${ac_cv_search_shmget+set}" = set; then
8507   :
8508 else
8509   ac_cv_search_shmget=no
8510 fi
8511 rm conftest.$ac_ext
8512 LIBS=$ac_func_search_save_LIBS
8513 fi
8514 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8515 $as_echo "$ac_cv_search_shmget" >&6; }
8516 ac_res=$ac_cv_search_shmget
8517 if test "$ac_res" != no; then
8518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8519
8520 fi
8521
8522
8523 if test "$with_readline" = yes; then
8524
8525
8526 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8527 $as_echo_n "checking for library containing readline... " >&6; }
8528 if test "${pgac_cv_check_readline+set}" = set; then
8529   $as_echo_n "(cached) " >&6
8530 else
8531   pgac_cv_check_readline=no
8532 pgac_save_LIBS=$LIBS
8533 if test x"$with_libedit_preferred" != x"yes"
8534 then    READLINE_ORDER="-lreadline -ledit"
8535 else    READLINE_ORDER="-ledit -lreadline"
8536 fi
8537 for pgac_rllib in $READLINE_ORDER ; do
8538   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8539     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8540     cat >conftest.$ac_ext <<_ACEOF
8541 /* confdefs.h.  */
8542 _ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h.  */
8546
8547 /* Override any GCC internal prototype to avoid an error.
8548    Use char because int might match the return type of a GCC
8549    builtin and then its argument prototype would still apply.  */
8550 #ifdef __cplusplus
8551 extern "C"
8552 #endif
8553 char readline ();
8554 int
8555 main ()
8556 {
8557 return readline ();
8558   ;
8559   return 0;
8560 }
8561 _ACEOF
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8564 case "(($ac_try" in
8565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566   *) ac_try_echo=$ac_try;;
8567 esac
8568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8569 $as_echo "$ac_try_echo") >&5
8570   (eval "$ac_link") 2>conftest.er1
8571   ac_status=$?
8572   grep -v '^ *+' conftest.er1 >conftest.err
8573   rm -f conftest.er1
8574   cat conftest.err >&5
8575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); } && {
8577          test -z "$ac_c_werror_flag" ||
8578          test ! -s conftest.err
8579        } && test -s conftest$ac_exeext && {
8580          test "$cross_compiling" = yes ||
8581          $as_test_x conftest$ac_exeext
8582        }; then
8583
8584       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8585       # recognize dependent libraries; assume curses is needed if we didn't
8586       # find any dependency.
8587       case $host_os in
8588         netbsd* | openbsd* | irix*)
8589           if test x"$pgac_lib" = x"" ; then
8590             pgac_lib=" -lcurses"
8591           fi ;;
8592       esac
8593
8594       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8595       break
8596
8597 else
8598   $as_echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601
8602 fi
8603
8604 rm -rf conftest.dSYM
8605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8606       conftest$ac_exeext conftest.$ac_ext
8607   done
8608   if test "$pgac_cv_check_readline" != no ; then
8609     break
8610   fi
8611 done
8612 LIBS=$pgac_save_LIBS
8613
8614 fi
8615 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8616 $as_echo "$pgac_cv_check_readline" >&6; }
8617 if test "$pgac_cv_check_readline" != no ; then
8618   LIBS="$pgac_cv_check_readline $LIBS"
8619
8620 cat >>confdefs.h <<\_ACEOF
8621 #define HAVE_LIBREADLINE 1
8622 _ACEOF
8623
8624 fi
8625
8626
8627   if test x"$pgac_cv_check_readline" = x"no"; then
8628     { { $as_echo "$as_me:$LINENO: error: readline library not found
8629 If you have readline already installed, see config.log for details on the
8630 failure.  It is possible the compiler isn't looking in the proper directory.
8631 Use --without-readline to disable readline support." >&5
8632 $as_echo "$as_me: error: readline library not found
8633 If you have readline already installed, see config.log for details on the
8634 failure.  It is possible the compiler isn't looking in the proper directory.
8635 Use --without-readline to disable readline support." >&2;}
8636    { (exit 1); exit 1; }; }
8637   fi
8638 fi
8639
8640 if test "$with_zlib" = yes; then
8641
8642 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8643 $as_echo_n "checking for inflate in -lz... " >&6; }
8644 if test "${ac_cv_lib_z_inflate+set}" = set; then
8645   $as_echo_n "(cached) " >&6
8646 else
8647   ac_check_lib_save_LIBS=$LIBS
8648 LIBS="-lz  $LIBS"
8649 cat >conftest.$ac_ext <<_ACEOF
8650 /* confdefs.h.  */
8651 _ACEOF
8652 cat confdefs.h >>conftest.$ac_ext
8653 cat >>conftest.$ac_ext <<_ACEOF
8654 /* end confdefs.h.  */
8655
8656 /* Override any GCC internal prototype to avoid an error.
8657    Use char because int might match the return type of a GCC
8658    builtin and then its argument prototype would still apply.  */
8659 #ifdef __cplusplus
8660 extern "C"
8661 #endif
8662 char inflate ();
8663 int
8664 main ()
8665 {
8666 return inflate ();
8667   ;
8668   return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (ac_try="$ac_link"
8673 case "(($ac_try" in
8674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675   *) ac_try_echo=$ac_try;;
8676 esac
8677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678 $as_echo "$ac_try_echo") >&5
8679   (eval "$ac_link") 2>conftest.er1
8680   ac_status=$?
8681   grep -v '^ *+' conftest.er1 >conftest.err
8682   rm -f conftest.er1
8683   cat conftest.err >&5
8684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); } && {
8686          test -z "$ac_c_werror_flag" ||
8687          test ! -s conftest.err
8688        } && test -s conftest$ac_exeext && {
8689          test "$cross_compiling" = yes ||
8690          $as_test_x conftest$ac_exeext
8691        }; then
8692   ac_cv_lib_z_inflate=yes
8693 else
8694   $as_echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8696
8697         ac_cv_lib_z_inflate=no
8698 fi
8699
8700 rm -rf conftest.dSYM
8701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8702       conftest$ac_exeext conftest.$ac_ext
8703 LIBS=$ac_check_lib_save_LIBS
8704 fi
8705 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8706 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8707 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8708   cat >>confdefs.h <<_ACEOF
8709 #define HAVE_LIBZ 1
8710 _ACEOF
8711
8712   LIBS="-lz $LIBS"
8713
8714 else
8715   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8716 If you have zlib already installed, see config.log for details on the
8717 failure.  It is possible the compiler isn't looking in the proper directory.
8718 Use --without-zlib to disable zlib support." >&5
8719 $as_echo "$as_me: error: zlib library not found
8720 If you have zlib already installed, see config.log for details on the
8721 failure.  It is possible the compiler isn't looking in the proper directory.
8722 Use --without-zlib to disable zlib support." >&2;}
8723    { (exit 1); exit 1; }; }
8724 fi
8725
8726 fi
8727
8728 if test "$enable_spinlocks" = yes; then
8729
8730 cat >>confdefs.h <<\_ACEOF
8731 #define HAVE_SPINLOCKS 1
8732 _ACEOF
8733
8734 else
8735   { $as_echo "$as_me:$LINENO: WARNING:
8736 *** Not using spinlocks will cause poor performance." >&5
8737 $as_echo "$as_me: WARNING:
8738 *** Not using spinlocks will cause poor performance." >&2;}
8739 fi
8740
8741 if test "$with_gssapi" = yes ; then
8742   if test "$PORTNAME" != "win32"; then
8743     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8744 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8745 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8746   $as_echo_n "(cached) " >&6
8747 else
8748   ac_func_search_save_LIBS=$LIBS
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755
8756 /* Override any GCC internal prototype to avoid an error.
8757    Use char because int might match the return type of a GCC
8758    builtin and then its argument prototype would still apply.  */
8759 #ifdef __cplusplus
8760 extern "C"
8761 #endif
8762 char gss_init_sec_context ();
8763 int
8764 main ()
8765 {
8766 return gss_init_sec_context ();
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8772   if test -z "$ac_lib"; then
8773     ac_res="none required"
8774   else
8775     ac_res=-l$ac_lib
8776     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8777   fi
8778   rm -f conftest.$ac_objext conftest$ac_exeext
8779 if { (ac_try="$ac_link"
8780 case "(($ac_try" in
8781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782   *) ac_try_echo=$ac_try;;
8783 esac
8784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8785 $as_echo "$ac_try_echo") >&5
8786   (eval "$ac_link") 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } && {
8793          test -z "$ac_c_werror_flag" ||
8794          test ! -s conftest.err
8795        } && test -s conftest$ac_exeext && {
8796          test "$cross_compiling" = yes ||
8797          $as_test_x conftest$ac_exeext
8798        }; then
8799   ac_cv_search_gss_init_sec_context=$ac_res
8800 else
8801   $as_echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804
8805 fi
8806
8807 rm -rf conftest.dSYM
8808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8809       conftest$ac_exeext
8810   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8811   break
8812 fi
8813 done
8814 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8815   :
8816 else
8817   ac_cv_search_gss_init_sec_context=no
8818 fi
8819 rm conftest.$ac_ext
8820 LIBS=$ac_func_search_save_LIBS
8821 fi
8822 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8823 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8824 ac_res=$ac_cv_search_gss_init_sec_context
8825 if test "$ac_res" != no; then
8826   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8827
8828 else
8829   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8830 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8831    { (exit 1); exit 1; }; }
8832 fi
8833
8834   else
8835     LIBS="$LIBS -lgssapi32"
8836   fi
8837 fi
8838
8839 if test "$with_krb5" = yes ; then
8840   if test "$PORTNAME" != "win32"; then
8841      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8842 $as_echo_n "checking for library containing com_err... " >&6; }
8843 if test "${ac_cv_search_com_err+set}" = set; then
8844   $as_echo_n "(cached) " >&6
8845 else
8846   ac_func_search_save_LIBS=$LIBS
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h.  */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h.  */
8853
8854 /* Override any GCC internal prototype to avoid an error.
8855    Use char because int might match the return type of a GCC
8856    builtin and then its argument prototype would still apply.  */
8857 #ifdef __cplusplus
8858 extern "C"
8859 #endif
8860 char com_err ();
8861 int
8862 main ()
8863 {
8864 return com_err ();
8865   ;
8866   return 0;
8867 }
8868 _ACEOF
8869 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8870   if test -z "$ac_lib"; then
8871     ac_res="none required"
8872   else
8873     ac_res=-l$ac_lib
8874     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8875   fi
8876   rm -f conftest.$ac_objext conftest$ac_exeext
8877 if { (ac_try="$ac_link"
8878 case "(($ac_try" in
8879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8880   *) ac_try_echo=$ac_try;;
8881 esac
8882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8883 $as_echo "$ac_try_echo") >&5
8884   (eval "$ac_link") 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } && {
8891          test -z "$ac_c_werror_flag" ||
8892          test ! -s conftest.err
8893        } && test -s conftest$ac_exeext && {
8894          test "$cross_compiling" = yes ||
8895          $as_test_x conftest$ac_exeext
8896        }; then
8897   ac_cv_search_com_err=$ac_res
8898 else
8899   $as_echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8901
8902
8903 fi
8904
8905 rm -rf conftest.dSYM
8906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8907       conftest$ac_exeext
8908   if test "${ac_cv_search_com_err+set}" = set; then
8909   break
8910 fi
8911 done
8912 if test "${ac_cv_search_com_err+set}" = set; then
8913   :
8914 else
8915   ac_cv_search_com_err=no
8916 fi
8917 rm conftest.$ac_ext
8918 LIBS=$ac_func_search_save_LIBS
8919 fi
8920 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8921 $as_echo "$ac_cv_search_com_err" >&6; }
8922 ac_res=$ac_cv_search_com_err
8923 if test "$ac_res" != no; then
8924   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8925
8926 else
8927   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8928 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8929    { (exit 1); exit 1; }; }
8930 fi
8931
8932      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8933 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8934 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8935   $as_echo_n "(cached) " >&6
8936 else
8937   ac_func_search_save_LIBS=$LIBS
8938 cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h.  */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h.  */
8944
8945 /* Override any GCC internal prototype to avoid an error.
8946    Use char because int might match the return type of a GCC
8947    builtin and then its argument prototype would still apply.  */
8948 #ifdef __cplusplus
8949 extern "C"
8950 #endif
8951 char krb5_sendauth ();
8952 int
8953 main ()
8954 {
8955 return krb5_sendauth ();
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8961   if test -z "$ac_lib"; then
8962     ac_res="none required"
8963   else
8964     ac_res=-l$ac_lib
8965     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8966   fi
8967   rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (ac_try="$ac_link"
8969 case "(($ac_try" in
8970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971   *) ac_try_echo=$ac_try;;
8972 esac
8973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8974 $as_echo "$ac_try_echo") >&5
8975   (eval "$ac_link") 2>conftest.er1
8976   ac_status=$?
8977   grep -v '^ *+' conftest.er1 >conftest.err
8978   rm -f conftest.er1
8979   cat conftest.err >&5
8980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); } && {
8982          test -z "$ac_c_werror_flag" ||
8983          test ! -s conftest.err
8984        } && test -s conftest$ac_exeext && {
8985          test "$cross_compiling" = yes ||
8986          $as_test_x conftest$ac_exeext
8987        }; then
8988   ac_cv_search_krb5_sendauth=$ac_res
8989 else
8990   $as_echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8992
8993
8994 fi
8995
8996 rm -rf conftest.dSYM
8997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8998       conftest$ac_exeext
8999   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9000   break
9001 fi
9002 done
9003 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9004   :
9005 else
9006   ac_cv_search_krb5_sendauth=no
9007 fi
9008 rm conftest.$ac_ext
9009 LIBS=$ac_func_search_save_LIBS
9010 fi
9011 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9012 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9013 ac_res=$ac_cv_search_krb5_sendauth
9014 if test "$ac_res" != no; then
9015   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9016
9017 else
9018   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9019 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9020    { (exit 1); exit 1; }; }
9021 fi
9022
9023   else
9024      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9025 $as_echo_n "checking for library containing com_err... " >&6; }
9026 if test "${ac_cv_search_com_err+set}" = set; then
9027   $as_echo_n "(cached) " >&6
9028 else
9029   ac_func_search_save_LIBS=$LIBS
9030 cat >conftest.$ac_ext <<_ACEOF
9031 /* confdefs.h.  */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h.  */
9036
9037 /* Override any GCC internal prototype to avoid an error.
9038    Use char because int might match the return type of a GCC
9039    builtin and then its argument prototype would still apply.  */
9040 #ifdef __cplusplus
9041 extern "C"
9042 #endif
9043 char com_err ();
9044 int
9045 main ()
9046 {
9047 return com_err ();
9048   ;
9049   return 0;
9050 }
9051 _ACEOF
9052 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9053   if test -z "$ac_lib"; then
9054     ac_res="none required"
9055   else
9056     ac_res=-l$ac_lib
9057     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9058   fi
9059   rm -f conftest.$ac_objext conftest$ac_exeext
9060 if { (ac_try="$ac_link"
9061 case "(($ac_try" in
9062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063   *) ac_try_echo=$ac_try;;
9064 esac
9065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9066 $as_echo "$ac_try_echo") >&5
9067   (eval "$ac_link") 2>conftest.er1
9068   ac_status=$?
9069   grep -v '^ *+' conftest.er1 >conftest.err
9070   rm -f conftest.er1
9071   cat conftest.err >&5
9072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); } && {
9074          test -z "$ac_c_werror_flag" ||
9075          test ! -s conftest.err
9076        } && test -s conftest$ac_exeext && {
9077          test "$cross_compiling" = yes ||
9078          $as_test_x conftest$ac_exeext
9079        }; then
9080   ac_cv_search_com_err=$ac_res
9081 else
9082   $as_echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9084
9085
9086 fi
9087
9088 rm -rf conftest.dSYM
9089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9090       conftest$ac_exeext
9091   if test "${ac_cv_search_com_err+set}" = set; then
9092   break
9093 fi
9094 done
9095 if test "${ac_cv_search_com_err+set}" = set; then
9096   :
9097 else
9098   ac_cv_search_com_err=no
9099 fi
9100 rm conftest.$ac_ext
9101 LIBS=$ac_func_search_save_LIBS
9102 fi
9103 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9104 $as_echo "$ac_cv_search_com_err" >&6; }
9105 ac_res=$ac_cv_search_com_err
9106 if test "$ac_res" != no; then
9107   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9108
9109 else
9110   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9111 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9112    { (exit 1); exit 1; }; }
9113 fi
9114
9115   fi
9116 fi
9117
9118 if test "$with_openssl" = yes ; then
9119     if test "$PORTNAME" != "win32"; then
9120
9121 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9122 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9123 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9124   $as_echo_n "(cached) " >&6
9125 else
9126   ac_check_lib_save_LIBS=$LIBS
9127 LIBS="-lcrypto  $LIBS"
9128 cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h.  */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h.  */
9134
9135 /* Override any GCC internal prototype to avoid an error.
9136    Use char because int might match the return type of a GCC
9137    builtin and then its argument prototype would still apply.  */
9138 #ifdef __cplusplus
9139 extern "C"
9140 #endif
9141 char CRYPTO_new_ex_data ();
9142 int
9143 main ()
9144 {
9145 return CRYPTO_new_ex_data ();
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (ac_try="$ac_link"
9152 case "(($ac_try" in
9153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154   *) ac_try_echo=$ac_try;;
9155 esac
9156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9157 $as_echo "$ac_try_echo") >&5
9158   (eval "$ac_link") 2>conftest.er1
9159   ac_status=$?
9160   grep -v '^ *+' conftest.er1 >conftest.err
9161   rm -f conftest.er1
9162   cat conftest.err >&5
9163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); } && {
9165          test -z "$ac_c_werror_flag" ||
9166          test ! -s conftest.err
9167        } && test -s conftest$ac_exeext && {
9168          test "$cross_compiling" = yes ||
9169          $as_test_x conftest$ac_exeext
9170        }; then
9171   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9172 else
9173   $as_echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9175
9176         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9177 fi
9178
9179 rm -rf conftest.dSYM
9180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9181       conftest$ac_exeext conftest.$ac_ext
9182 LIBS=$ac_check_lib_save_LIBS
9183 fi
9184 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9185 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9186 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9187   cat >>confdefs.h <<_ACEOF
9188 #define HAVE_LIBCRYPTO 1
9189 _ACEOF
9190
9191   LIBS="-lcrypto $LIBS"
9192
9193 else
9194   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9195 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9196    { (exit 1); exit 1; }; }
9197 fi
9198
9199
9200 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9201 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9202 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9203   $as_echo_n "(cached) " >&6
9204 else
9205   ac_check_lib_save_LIBS=$LIBS
9206 LIBS="-lssl  $LIBS"
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h.  */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h.  */
9213
9214 /* Override any GCC internal prototype to avoid an error.
9215    Use char because int might match the return type of a GCC
9216    builtin and then its argument prototype would still apply.  */
9217 #ifdef __cplusplus
9218 extern "C"
9219 #endif
9220 char SSL_library_init ();
9221 int
9222 main ()
9223 {
9224 return SSL_library_init ();
9225   ;
9226   return 0;
9227 }
9228 _ACEOF
9229 rm -f conftest.$ac_objext conftest$ac_exeext
9230 if { (ac_try="$ac_link"
9231 case "(($ac_try" in
9232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233   *) ac_try_echo=$ac_try;;
9234 esac
9235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9236 $as_echo "$ac_try_echo") >&5
9237   (eval "$ac_link") 2>conftest.er1
9238   ac_status=$?
9239   grep -v '^ *+' conftest.er1 >conftest.err
9240   rm -f conftest.er1
9241   cat conftest.err >&5
9242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } && {
9244          test -z "$ac_c_werror_flag" ||
9245          test ! -s conftest.err
9246        } && test -s conftest$ac_exeext && {
9247          test "$cross_compiling" = yes ||
9248          $as_test_x conftest$ac_exeext
9249        }; then
9250   ac_cv_lib_ssl_SSL_library_init=yes
9251 else
9252   $as_echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255         ac_cv_lib_ssl_SSL_library_init=no
9256 fi
9257
9258 rm -rf conftest.dSYM
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260       conftest$ac_exeext conftest.$ac_ext
9261 LIBS=$ac_check_lib_save_LIBS
9262 fi
9263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9264 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9265 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9266   cat >>confdefs.h <<_ACEOF
9267 #define HAVE_LIBSSL 1
9268 _ACEOF
9269
9270   LIBS="-lssl $LIBS"
9271
9272 else
9273   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9274 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9275    { (exit 1); exit 1; }; }
9276 fi
9277
9278   else
9279      { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9280 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9281 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9282   $as_echo_n "(cached) " >&6
9283 else
9284   ac_func_search_save_LIBS=$LIBS
9285 cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291
9292 /* Override any GCC internal prototype to avoid an error.
9293    Use char because int might match the return type of a GCC
9294    builtin and then its argument prototype would still apply.  */
9295 #ifdef __cplusplus
9296 extern "C"
9297 #endif
9298 char CRYPTO_new_ex_data ();
9299 int
9300 main ()
9301 {
9302 return CRYPTO_new_ex_data ();
9303   ;
9304   return 0;
9305 }
9306 _ACEOF
9307 for ac_lib in '' eay32 crypto; do
9308   if test -z "$ac_lib"; then
9309     ac_res="none required"
9310   else
9311     ac_res=-l$ac_lib
9312     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9313   fi
9314   rm -f conftest.$ac_objext conftest$ac_exeext
9315 if { (ac_try="$ac_link"
9316 case "(($ac_try" in
9317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318   *) ac_try_echo=$ac_try;;
9319 esac
9320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9321 $as_echo "$ac_try_echo") >&5
9322   (eval "$ac_link") 2>conftest.er1
9323   ac_status=$?
9324   grep -v '^ *+' conftest.er1 >conftest.err
9325   rm -f conftest.er1
9326   cat conftest.err >&5
9327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328   (exit $ac_status); } && {
9329          test -z "$ac_c_werror_flag" ||
9330          test ! -s conftest.err
9331        } && test -s conftest$ac_exeext && {
9332          test "$cross_compiling" = yes ||
9333          $as_test_x conftest$ac_exeext
9334        }; then
9335   ac_cv_search_CRYPTO_new_ex_data=$ac_res
9336 else
9337   $as_echo "$as_me: failed program was:" >&5
9338 sed 's/^/| /' conftest.$ac_ext >&5
9339
9340
9341 fi
9342
9343 rm -rf conftest.dSYM
9344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9345       conftest$ac_exeext
9346   if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9347   break
9348 fi
9349 done
9350 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9351   :
9352 else
9353   ac_cv_search_CRYPTO_new_ex_data=no
9354 fi
9355 rm conftest.$ac_ext
9356 LIBS=$ac_func_search_save_LIBS
9357 fi
9358 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9359 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9360 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9361 if test "$ac_res" != no; then
9362   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9363
9364 else
9365   { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9366 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9367    { (exit 1); exit 1; }; }
9368 fi
9369
9370      { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9371 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9372 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9373   $as_echo_n "(cached) " >&6
9374 else
9375   ac_func_search_save_LIBS=$LIBS
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h.  */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h.  */
9382
9383 /* Override any GCC internal prototype to avoid an error.
9384    Use char because int might match the return type of a GCC
9385    builtin and then its argument prototype would still apply.  */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 char SSL_library_init ();
9390 int
9391 main ()
9392 {
9393 return SSL_library_init ();
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 for ac_lib in '' ssleay32 ssl; do
9399   if test -z "$ac_lib"; then
9400     ac_res="none required"
9401   else
9402     ac_res=-l$ac_lib
9403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9404   fi
9405   rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (ac_try="$ac_link"
9407 case "(($ac_try" in
9408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409   *) ac_try_echo=$ac_try;;
9410 esac
9411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9412 $as_echo "$ac_try_echo") >&5
9413   (eval "$ac_link") 2>conftest.er1
9414   ac_status=$?
9415   grep -v '^ *+' conftest.er1 >conftest.err
9416   rm -f conftest.er1
9417   cat conftest.err >&5
9418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419   (exit $ac_status); } && {
9420          test -z "$ac_c_werror_flag" ||
9421          test ! -s conftest.err
9422        } && test -s conftest$ac_exeext && {
9423          test "$cross_compiling" = yes ||
9424          $as_test_x conftest$ac_exeext
9425        }; then
9426   ac_cv_search_SSL_library_init=$ac_res
9427 else
9428   $as_echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431
9432 fi
9433
9434 rm -rf conftest.dSYM
9435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9436       conftest$ac_exeext
9437   if test "${ac_cv_search_SSL_library_init+set}" = set; then
9438   break
9439 fi
9440 done
9441 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9442   :
9443 else
9444   ac_cv_search_SSL_library_init=no
9445 fi
9446 rm conftest.$ac_ext
9447 LIBS=$ac_func_search_save_LIBS
9448 fi
9449 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9450 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9451 ac_res=$ac_cv_search_SSL_library_init
9452 if test "$ac_res" != no; then
9453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9454
9455 else
9456   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9457 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9458    { (exit 1); exit 1; }; }
9459 fi
9460
9461   fi
9462 fi
9463
9464 if test "$with_pam" = yes ; then
9465
9466 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9467 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9468 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9469   $as_echo_n "(cached) " >&6
9470 else
9471   ac_check_lib_save_LIBS=$LIBS
9472 LIBS="-lpam  $LIBS"
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h.  */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h.  */
9479
9480 /* Override any GCC internal prototype to avoid an error.
9481    Use char because int might match the return type of a GCC
9482    builtin and then its argument prototype would still apply.  */
9483 #ifdef __cplusplus
9484 extern "C"
9485 #endif
9486 char pam_start ();
9487 int
9488 main ()
9489 {
9490 return pam_start ();
9491   ;
9492   return 0;
9493 }
9494 _ACEOF
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (ac_try="$ac_link"
9497 case "(($ac_try" in
9498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499   *) ac_try_echo=$ac_try;;
9500 esac
9501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9502 $as_echo "$ac_try_echo") >&5
9503   (eval "$ac_link") 2>conftest.er1
9504   ac_status=$?
9505   grep -v '^ *+' conftest.er1 >conftest.err
9506   rm -f conftest.er1
9507   cat conftest.err >&5
9508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); } && {
9510          test -z "$ac_c_werror_flag" ||
9511          test ! -s conftest.err
9512        } && test -s conftest$ac_exeext && {
9513          test "$cross_compiling" = yes ||
9514          $as_test_x conftest$ac_exeext
9515        }; then
9516   ac_cv_lib_pam_pam_start=yes
9517 else
9518   $as_echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9520
9521         ac_cv_lib_pam_pam_start=no
9522 fi
9523
9524 rm -rf conftest.dSYM
9525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526       conftest$ac_exeext conftest.$ac_ext
9527 LIBS=$ac_check_lib_save_LIBS
9528 fi
9529 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9530 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9531 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9532   cat >>confdefs.h <<_ACEOF
9533 #define HAVE_LIBPAM 1
9534 _ACEOF
9535
9536   LIBS="-lpam $LIBS"
9537
9538 else
9539   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9540 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9541    { (exit 1); exit 1; }; }
9542 fi
9543
9544 fi
9545
9546 if test "$with_libxml" = yes ; then
9547
9548 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9549 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9550 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9551   $as_echo_n "(cached) " >&6
9552 else
9553   ac_check_lib_save_LIBS=$LIBS
9554 LIBS="-lxml2  $LIBS"
9555 cat >conftest.$ac_ext <<_ACEOF
9556 /* confdefs.h.  */
9557 _ACEOF
9558 cat confdefs.h >>conftest.$ac_ext
9559 cat >>conftest.$ac_ext <<_ACEOF
9560 /* end confdefs.h.  */
9561
9562 /* Override any GCC internal prototype to avoid an error.
9563    Use char because int might match the return type of a GCC
9564    builtin and then its argument prototype would still apply.  */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 char xmlSaveToBuffer ();
9569 int
9570 main ()
9571 {
9572 return xmlSaveToBuffer ();
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (ac_try="$ac_link"
9579 case "(($ac_try" in
9580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581   *) ac_try_echo=$ac_try;;
9582 esac
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585   (eval "$ac_link") 2>conftest.er1
9586   ac_status=$?
9587   grep -v '^ *+' conftest.er1 >conftest.err
9588   rm -f conftest.er1
9589   cat conftest.err >&5
9590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } && {
9592          test -z "$ac_c_werror_flag" ||
9593          test ! -s conftest.err
9594        } && test -s conftest$ac_exeext && {
9595          test "$cross_compiling" = yes ||
9596          $as_test_x conftest$ac_exeext
9597        }; then
9598   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9599 else
9600   $as_echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603         ac_cv_lib_xml2_xmlSaveToBuffer=no
9604 fi
9605
9606 rm -rf conftest.dSYM
9607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9608       conftest$ac_exeext conftest.$ac_ext
9609 LIBS=$ac_check_lib_save_LIBS
9610 fi
9611 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9612 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9613 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9614   cat >>confdefs.h <<_ACEOF
9615 #define HAVE_LIBXML2 1
9616 _ACEOF
9617
9618   LIBS="-lxml2 $LIBS"
9619
9620 else
9621   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9622 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9623    { (exit 1); exit 1; }; }
9624 fi
9625
9626 fi
9627
9628 if test "$with_libxslt" = yes ; then
9629
9630 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9631 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9632 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9633   $as_echo_n "(cached) " >&6
9634 else
9635   ac_check_lib_save_LIBS=$LIBS
9636 LIBS="-lxslt  $LIBS"
9637 cat >conftest.$ac_ext <<_ACEOF
9638 /* confdefs.h.  */
9639 _ACEOF
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h.  */
9643
9644 /* Override any GCC internal prototype to avoid an error.
9645    Use char because int might match the return type of a GCC
9646    builtin and then its argument prototype would still apply.  */
9647 #ifdef __cplusplus
9648 extern "C"
9649 #endif
9650 char xsltCleanupGlobals ();
9651 int
9652 main ()
9653 {
9654 return xsltCleanupGlobals ();
9655   ;
9656   return 0;
9657 }
9658 _ACEOF
9659 rm -f conftest.$ac_objext conftest$ac_exeext
9660 if { (ac_try="$ac_link"
9661 case "(($ac_try" in
9662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663   *) ac_try_echo=$ac_try;;
9664 esac
9665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9666 $as_echo "$ac_try_echo") >&5
9667   (eval "$ac_link") 2>conftest.er1
9668   ac_status=$?
9669   grep -v '^ *+' conftest.er1 >conftest.err
9670   rm -f conftest.er1
9671   cat conftest.err >&5
9672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); } && {
9674          test -z "$ac_c_werror_flag" ||
9675          test ! -s conftest.err
9676        } && test -s conftest$ac_exeext && {
9677          test "$cross_compiling" = yes ||
9678          $as_test_x conftest$ac_exeext
9679        }; then
9680   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9681 else
9682   $as_echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9684
9685         ac_cv_lib_xslt_xsltCleanupGlobals=no
9686 fi
9687
9688 rm -rf conftest.dSYM
9689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690       conftest$ac_exeext conftest.$ac_ext
9691 LIBS=$ac_check_lib_save_LIBS
9692 fi
9693 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9694 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9695 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9696   cat >>confdefs.h <<_ACEOF
9697 #define HAVE_LIBXSLT 1
9698 _ACEOF
9699
9700   LIBS="-lxslt $LIBS"
9701
9702 else
9703   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9704 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9705    { (exit 1); exit 1; }; }
9706 fi
9707
9708 fi
9709
9710 # for contrib/sepgsql
9711 if test "$with_selinux" = yes; then
9712
9713 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9714 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9715 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9716   $as_echo_n "(cached) " >&6
9717 else
9718   ac_check_lib_save_LIBS=$LIBS
9719 LIBS="-lselinux  $LIBS"
9720 cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726
9727 /* Override any GCC internal prototype to avoid an error.
9728    Use char because int might match the return type of a GCC
9729    builtin and then its argument prototype would still apply.  */
9730 #ifdef __cplusplus
9731 extern "C"
9732 #endif
9733 char selinux_status_open ();
9734 int
9735 main ()
9736 {
9737 return selinux_status_open ();
9738   ;
9739   return 0;
9740 }
9741 _ACEOF
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9744 case "(($ac_try" in
9745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746   *) ac_try_echo=$ac_try;;
9747 esac
9748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9749 $as_echo "$ac_try_echo") >&5
9750   (eval "$ac_link") 2>conftest.er1
9751   ac_status=$?
9752   grep -v '^ *+' conftest.er1 >conftest.err
9753   rm -f conftest.er1
9754   cat conftest.err >&5
9755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); } && {
9757          test -z "$ac_c_werror_flag" ||
9758          test ! -s conftest.err
9759        } && test -s conftest$ac_exeext && {
9760          test "$cross_compiling" = yes ||
9761          $as_test_x conftest$ac_exeext
9762        }; then
9763   ac_cv_lib_selinux_selinux_status_open=yes
9764 else
9765   $as_echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768         ac_cv_lib_selinux_selinux_status_open=no
9769 fi
9770
9771 rm -rf conftest.dSYM
9772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9773       conftest$ac_exeext conftest.$ac_ext
9774 LIBS=$ac_check_lib_save_LIBS
9775 fi
9776 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9777 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9778 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9779   cat >>confdefs.h <<_ACEOF
9780 #define HAVE_LIBSELINUX 1
9781 _ACEOF
9782
9783   LIBS="-lselinux $LIBS"
9784
9785 else
9786   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9787 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9788    { (exit 1); exit 1; }; }
9789 fi
9790
9791 fi
9792
9793 # for contrib/uuid-ossp
9794 if test "$with_ossp_uuid" = yes ; then
9795   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9796 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9797 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9798   $as_echo_n "(cached) " >&6
9799 else
9800   ac_check_lib_save_LIBS=$LIBS
9801 LIBS="-lossp-uuid  $LIBS"
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h.  */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h.  */
9808
9809 /* Override any GCC internal prototype to avoid an error.
9810    Use char because int might match the return type of a GCC
9811    builtin and then its argument prototype would still apply.  */
9812 #ifdef __cplusplus
9813 extern "C"
9814 #endif
9815 char uuid_export ();
9816 int
9817 main ()
9818 {
9819 return uuid_export ();
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (ac_try="$ac_link"
9826 case "(($ac_try" in
9827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828   *) ac_try_echo=$ac_try;;
9829 esac
9830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9831 $as_echo "$ac_try_echo") >&5
9832   (eval "$ac_link") 2>conftest.er1
9833   ac_status=$?
9834   grep -v '^ *+' conftest.er1 >conftest.err
9835   rm -f conftest.er1
9836   cat conftest.err >&5
9837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } && {
9839          test -z "$ac_c_werror_flag" ||
9840          test ! -s conftest.err
9841        } && test -s conftest$ac_exeext && {
9842          test "$cross_compiling" = yes ||
9843          $as_test_x conftest$ac_exeext
9844        }; then
9845   ac_cv_lib_ossp_uuid_uuid_export=yes
9846 else
9847   $as_echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9849
9850         ac_cv_lib_ossp_uuid_uuid_export=no
9851 fi
9852
9853 rm -rf conftest.dSYM
9854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9855       conftest$ac_exeext conftest.$ac_ext
9856 LIBS=$ac_check_lib_save_LIBS
9857 fi
9858 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9859 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9860 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9861   OSSP_UUID_LIBS="-lossp-uuid"
9862 else
9863   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9864 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9865 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9866   $as_echo_n "(cached) " >&6
9867 else
9868   ac_check_lib_save_LIBS=$LIBS
9869 LIBS="-luuid  $LIBS"
9870 cat >conftest.$ac_ext <<_ACEOF
9871 /* confdefs.h.  */
9872 _ACEOF
9873 cat confdefs.h >>conftest.$ac_ext
9874 cat >>conftest.$ac_ext <<_ACEOF
9875 /* end confdefs.h.  */
9876
9877 /* Override any GCC internal prototype to avoid an error.
9878    Use char because int might match the return type of a GCC
9879    builtin and then its argument prototype would still apply.  */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 char uuid_export ();
9884 int
9885 main ()
9886 {
9887 return uuid_export ();
9888   ;
9889   return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9899 $as_echo "$ac_try_echo") >&5
9900   (eval "$ac_link") 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } && {
9907          test -z "$ac_c_werror_flag" ||
9908          test ! -s conftest.err
9909        } && test -s conftest$ac_exeext && {
9910          test "$cross_compiling" = yes ||
9911          $as_test_x conftest$ac_exeext
9912        }; then
9913   ac_cv_lib_uuid_uuid_export=yes
9914 else
9915   $as_echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9917
9918         ac_cv_lib_uuid_uuid_export=no
9919 fi
9920
9921 rm -rf conftest.dSYM
9922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9923       conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_lib_save_LIBS
9925 fi
9926 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9927 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9928 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9929   OSSP_UUID_LIBS="-luuid"
9930 else
9931   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9932 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9933    { (exit 1); exit 1; }; }
9934 fi
9935
9936 fi
9937
9938 fi
9939
9940
9941
9942 ##
9943 ## Header files
9944 ##
9945
9946 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9947 $as_echo_n "checking for ANSI C header files... " >&6; }
9948 if test "${ac_cv_header_stdc+set}" = set; then
9949   $as_echo_n "(cached) " >&6
9950 else
9951   cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h.  */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h.  */
9957 #include <stdlib.h>
9958 #include <stdarg.h>
9959 #include <string.h>
9960 #include <float.h>
9961
9962 int
9963 main ()
9964 {
9965
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (ac_try="$ac_compile"
9972 case "(($ac_try" in
9973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974   *) ac_try_echo=$ac_try;;
9975 esac
9976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9977 $as_echo "$ac_try_echo") >&5
9978   (eval "$ac_compile") 2>conftest.er1
9979   ac_status=$?
9980   grep -v '^ *+' conftest.er1 >conftest.err
9981   rm -f conftest.er1
9982   cat conftest.err >&5
9983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); } && {
9985          test -z "$ac_c_werror_flag" ||
9986          test ! -s conftest.err
9987        } && test -s conftest.$ac_objext; then
9988   ac_cv_header_stdc=yes
9989 else
9990   $as_echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9992
9993         ac_cv_header_stdc=no
9994 fi
9995
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9997
9998 if test $ac_cv_header_stdc = yes; then
9999   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10000   cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006 #include <string.h>
10007
10008 _ACEOF
10009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10010   $EGREP "memchr" >/dev/null 2>&1; then
10011   :
10012 else
10013   ac_cv_header_stdc=no
10014 fi
10015 rm -f conftest*
10016
10017 fi
10018
10019 if test $ac_cv_header_stdc = yes; then
10020   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10021   cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h.  */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h.  */
10027 #include <stdlib.h>
10028
10029 _ACEOF
10030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10031   $EGREP "free" >/dev/null 2>&1; then
10032   :
10033 else
10034   ac_cv_header_stdc=no
10035 fi
10036 rm -f conftest*
10037
10038 fi
10039
10040 if test $ac_cv_header_stdc = yes; then
10041   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10042   if test "$cross_compiling" = yes; then
10043   :
10044 else
10045   cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h.  */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h.  */
10051 #include <ctype.h>
10052 #include <stdlib.h>
10053 #if ((' ' & 0x0FF) == 0x020)
10054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10056 #else
10057 # define ISLOWER(c) \
10058                    (('a' <= (c) && (c) <= 'i') \
10059                      || ('j' <= (c) && (c) <= 'r') \
10060                      || ('s' <= (c) && (c) <= 'z'))
10061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10062 #endif
10063
10064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10065 int
10066 main ()
10067 {
10068   int i;
10069   for (i = 0; i < 256; i++)
10070     if (XOR (islower (i), ISLOWER (i))
10071         || toupper (i) != TOUPPER (i))
10072       return 2;
10073   return 0;
10074 }
10075 _ACEOF
10076 rm -f conftest$ac_exeext
10077 if { (ac_try="$ac_link"
10078 case "(($ac_try" in
10079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080   *) ac_try_echo=$ac_try;;
10081 esac
10082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10083 $as_echo "$ac_try_echo") >&5
10084   (eval "$ac_link") 2>&5
10085   ac_status=$?
10086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10088   { (case "(($ac_try" in
10089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090   *) ac_try_echo=$ac_try;;
10091 esac
10092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10093 $as_echo "$ac_try_echo") >&5
10094   (eval "$ac_try") 2>&5
10095   ac_status=$?
10096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; }; then
10098   :
10099 else
10100   $as_echo "$as_me: program exited with status $ac_status" >&5
10101 $as_echo "$as_me: failed program was:" >&5
10102 sed 's/^/| /' conftest.$ac_ext >&5
10103
10104 ( exit $ac_status )
10105 ac_cv_header_stdc=no
10106 fi
10107 rm -rf conftest.dSYM
10108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10109 fi
10110
10111
10112 fi
10113 fi
10114 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10115 $as_echo "$ac_cv_header_stdc" >&6; }
10116 if test $ac_cv_header_stdc = yes; then
10117
10118 cat >>confdefs.h <<\_ACEOF
10119 #define STDC_HEADERS 1
10120 _ACEOF
10121
10122 fi
10123
10124 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10135                   inttypes.h stdint.h unistd.h
10136 do
10137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10139 $as_echo_n "checking for $ac_header... " >&6; }
10140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10141   $as_echo_n "(cached) " >&6
10142 else
10143   cat >conftest.$ac_ext <<_ACEOF
10144 /* confdefs.h.  */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h.  */
10149 $ac_includes_default
10150
10151 #include <$ac_header>
10152 _ACEOF
10153 rm -f conftest.$ac_objext
10154 if { (ac_try="$ac_compile"
10155 case "(($ac_try" in
10156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157   *) ac_try_echo=$ac_try;;
10158 esac
10159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10160 $as_echo "$ac_try_echo") >&5
10161   (eval "$ac_compile") 2>conftest.er1
10162   ac_status=$?
10163   grep -v '^ *+' conftest.er1 >conftest.err
10164   rm -f conftest.er1
10165   cat conftest.err >&5
10166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); } && {
10168          test -z "$ac_c_werror_flag" ||
10169          test ! -s conftest.err
10170        } && test -s conftest.$ac_objext; then
10171   eval "$as_ac_Header=yes"
10172 else
10173   $as_echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10175
10176         eval "$as_ac_Header=no"
10177 fi
10178
10179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10180 fi
10181 ac_res=`eval 'as_val=${'$as_ac_Header'}
10182                  $as_echo "$as_val"'`
10183                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10184 $as_echo "$ac_res" >&6; }
10185 as_val=`eval 'as_val=${'$as_ac_Header'}
10186                  $as_echo "$as_val"'`
10187    if test "x$as_val" = x""yes; then
10188   cat >>confdefs.h <<_ACEOF
10189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10190 _ACEOF
10191
10192 fi
10193
10194 done
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225 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/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10226 do
10227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10229   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10230 $as_echo_n "checking for $ac_header... " >&6; }
10231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10232   $as_echo_n "(cached) " >&6
10233 fi
10234 ac_res=`eval 'as_val=${'$as_ac_Header'}
10235                  $as_echo "$as_val"'`
10236                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10237 $as_echo "$ac_res" >&6; }
10238 else
10239   # Is the header compilable?
10240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241 $as_echo_n "checking $ac_header usability... " >&6; }
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248 $ac_includes_default
10249 #include <$ac_header>
10250 _ACEOF
10251 rm -f conftest.$ac_objext
10252 if { (ac_try="$ac_compile"
10253 case "(($ac_try" in
10254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255   *) ac_try_echo=$ac_try;;
10256 esac
10257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10258 $as_echo "$ac_try_echo") >&5
10259   (eval "$ac_compile") 2>conftest.er1
10260   ac_status=$?
10261   grep -v '^ *+' conftest.er1 >conftest.err
10262   rm -f conftest.er1
10263   cat conftest.err >&5
10264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); } && {
10266          test -z "$ac_c_werror_flag" ||
10267          test ! -s conftest.err
10268        } && test -s conftest.$ac_objext; then
10269   ac_header_compiler=yes
10270 else
10271   $as_echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274         ac_header_compiler=no
10275 fi
10276
10277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10279 $as_echo "$ac_header_compiler" >&6; }
10280
10281 # Is the header present?
10282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10283 $as_echo_n "checking $ac_header presence... " >&6; }
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 #include <$ac_header>
10291 _ACEOF
10292 if { (ac_try="$ac_cpp conftest.$ac_ext"
10293 case "(($ac_try" in
10294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295   *) ac_try_echo=$ac_try;;
10296 esac
10297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10298 $as_echo "$ac_try_echo") >&5
10299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10300   ac_status=$?
10301   grep -v '^ *+' conftest.er1 >conftest.err
10302   rm -f conftest.er1
10303   cat conftest.err >&5
10304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); } >/dev/null && {
10306          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10307          test ! -s conftest.err
10308        }; then
10309   ac_header_preproc=yes
10310 else
10311   $as_echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10313
10314   ac_header_preproc=no
10315 fi
10316
10317 rm -f conftest.err conftest.$ac_ext
10318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10319 $as_echo "$ac_header_preproc" >&6; }
10320
10321 # So?  What about this header?
10322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10323   yes:no: )
10324     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10328     ac_header_preproc=yes
10329     ;;
10330   no:yes:* )
10331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10334 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10338 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10343     ( cat <<\_ASBOX
10344 ## ---------------------------------------- ##
10345 ## Report this to pgsql-bugs@postgresql.org ##
10346 ## ---------------------------------------- ##
10347 _ASBOX
10348      ) | sed "s/^/$as_me: WARNING:     /" >&2
10349     ;;
10350 esac
10351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10352 $as_echo_n "checking for $ac_header... " >&6; }
10353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10354   $as_echo_n "(cached) " >&6
10355 else
10356   eval "$as_ac_Header=\$ac_header_preproc"
10357 fi
10358 ac_res=`eval 'as_val=${'$as_ac_Header'}
10359                  $as_echo "$as_val"'`
10360                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10361 $as_echo "$ac_res" >&6; }
10362
10363 fi
10364 as_val=`eval 'as_val=${'$as_ac_Header'}
10365                  $as_echo "$as_val"'`
10366    if test "x$as_val" = x""yes; then
10367   cat >>confdefs.h <<_ACEOF
10368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10369 _ACEOF
10370
10371 fi
10372
10373 done
10374
10375
10376 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10377 # is included first.
10378
10379 for ac_header in net/if.h
10380 do
10381 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10382 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10383 $as_echo_n "checking for $ac_header... " >&6; }
10384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10385   $as_echo_n "(cached) " >&6
10386 else
10387   cat >conftest.$ac_ext <<_ACEOF
10388 /* confdefs.h.  */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h.  */
10393 $ac_includes_default
10394 #ifdef HAVE_SYS_SOCKET_H
10395 #include <sys/socket.h>
10396 #endif
10397
10398
10399 #include <$ac_header>
10400 _ACEOF
10401 rm -f conftest.$ac_objext
10402 if { (ac_try="$ac_compile"
10403 case "(($ac_try" in
10404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405   *) ac_try_echo=$ac_try;;
10406 esac
10407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10408 $as_echo "$ac_try_echo") >&5
10409   (eval "$ac_compile") 2>conftest.er1
10410   ac_status=$?
10411   grep -v '^ *+' conftest.er1 >conftest.err
10412   rm -f conftest.er1
10413   cat conftest.err >&5
10414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); } && {
10416          test -z "$ac_c_werror_flag" ||
10417          test ! -s conftest.err
10418        } && test -s conftest.$ac_objext; then
10419   eval "$as_ac_Header=yes"
10420 else
10421   $as_echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10423
10424         eval "$as_ac_Header=no"
10425 fi
10426
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428 fi
10429 ac_res=`eval 'as_val=${'$as_ac_Header'}
10430                  $as_echo "$as_val"'`
10431                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10432 $as_echo "$ac_res" >&6; }
10433 as_val=`eval 'as_val=${'$as_ac_Header'}
10434                  $as_echo "$as_val"'`
10435    if test "x$as_val" = x""yes; then
10436   cat >>confdefs.h <<_ACEOF
10437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10438 _ACEOF
10439
10440 fi
10441
10442 done
10443
10444
10445 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10446 # netinet/in.h is included first.
10447
10448 for ac_header in netinet/in.h
10449 do
10450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10452   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10453 $as_echo_n "checking for $ac_header... " >&6; }
10454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10455   $as_echo_n "(cached) " >&6
10456 fi
10457 ac_res=`eval 'as_val=${'$as_ac_Header'}
10458                  $as_echo "$as_val"'`
10459                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10460 $as_echo "$ac_res" >&6; }
10461 else
10462   # Is the header compilable?
10463 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10464 $as_echo_n "checking $ac_header usability... " >&6; }
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471 $ac_includes_default
10472 #include <$ac_header>
10473 _ACEOF
10474 rm -f conftest.$ac_objext
10475 if { (ac_try="$ac_compile"
10476 case "(($ac_try" in
10477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478   *) ac_try_echo=$ac_try;;
10479 esac
10480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10481 $as_echo "$ac_try_echo") >&5
10482   (eval "$ac_compile") 2>conftest.er1
10483   ac_status=$?
10484   grep -v '^ *+' conftest.er1 >conftest.err
10485   rm -f conftest.er1
10486   cat conftest.err >&5
10487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } && {
10489          test -z "$ac_c_werror_flag" ||
10490          test ! -s conftest.err
10491        } && test -s conftest.$ac_objext; then
10492   ac_header_compiler=yes
10493 else
10494   $as_echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497         ac_header_compiler=no
10498 fi
10499
10500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10502 $as_echo "$ac_header_compiler" >&6; }
10503
10504 # Is the header present?
10505 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10506 $as_echo_n "checking $ac_header presence... " >&6; }
10507 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513 #include <$ac_header>
10514 _ACEOF
10515 if { (ac_try="$ac_cpp conftest.$ac_ext"
10516 case "(($ac_try" in
10517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518   *) ac_try_echo=$ac_try;;
10519 esac
10520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10521 $as_echo "$ac_try_echo") >&5
10522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10523   ac_status=$?
10524   grep -v '^ *+' conftest.er1 >conftest.err
10525   rm -f conftest.er1
10526   cat conftest.err >&5
10527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } >/dev/null && {
10529          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10530          test ! -s conftest.err
10531        }; then
10532   ac_header_preproc=yes
10533 else
10534   $as_echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10536
10537   ac_header_preproc=no
10538 fi
10539
10540 rm -f conftest.err conftest.$ac_ext
10541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10542 $as_echo "$ac_header_preproc" >&6; }
10543
10544 # So?  What about this header?
10545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10546   yes:no: )
10547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10548 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10551     ac_header_preproc=yes
10552     ;;
10553   no:yes:* )
10554     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10555 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10557 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10559 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10561 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10562     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10563 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10565 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10566     ( cat <<\_ASBOX
10567 ## ---------------------------------------- ##
10568 ## Report this to pgsql-bugs@postgresql.org ##
10569 ## ---------------------------------------- ##
10570 _ASBOX
10571      ) | sed "s/^/$as_me: WARNING:     /" >&2
10572     ;;
10573 esac
10574 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10575 $as_echo_n "checking for $ac_header... " >&6; }
10576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10577   $as_echo_n "(cached) " >&6
10578 else
10579   eval "$as_ac_Header=\$ac_header_preproc"
10580 fi
10581 ac_res=`eval 'as_val=${'$as_ac_Header'}
10582                  $as_echo "$as_val"'`
10583                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10584 $as_echo "$ac_res" >&6; }
10585
10586 fi
10587 as_val=`eval 'as_val=${'$as_ac_Header'}
10588                  $as_echo "$as_val"'`
10589    if test "x$as_val" = x""yes; then
10590   cat >>confdefs.h <<_ACEOF
10591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10592 _ACEOF
10593
10594 fi
10595
10596 done
10597
10598
10599 for ac_header in netinet/tcp.h
10600 do
10601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10603 $as_echo_n "checking for $ac_header... " >&6; }
10604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10605   $as_echo_n "(cached) " >&6
10606 else
10607   cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613 $ac_includes_default
10614 #ifdef HAVE_NETINET_IN_H
10615 #include <netinet/in.h>
10616 #endif
10617
10618
10619 #include <$ac_header>
10620 _ACEOF
10621 rm -f conftest.$ac_objext
10622 if { (ac_try="$ac_compile"
10623 case "(($ac_try" in
10624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625   *) ac_try_echo=$ac_try;;
10626 esac
10627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10628 $as_echo "$ac_try_echo") >&5
10629   (eval "$ac_compile") 2>conftest.er1
10630   ac_status=$?
10631   grep -v '^ *+' conftest.er1 >conftest.err
10632   rm -f conftest.er1
10633   cat conftest.err >&5
10634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); } && {
10636          test -z "$ac_c_werror_flag" ||
10637          test ! -s conftest.err
10638        } && test -s conftest.$ac_objext; then
10639   eval "$as_ac_Header=yes"
10640 else
10641   $as_echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644         eval "$as_ac_Header=no"
10645 fi
10646
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648 fi
10649 ac_res=`eval 'as_val=${'$as_ac_Header'}
10650                  $as_echo "$as_val"'`
10651                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10652 $as_echo "$ac_res" >&6; }
10653 as_val=`eval 'as_val=${'$as_ac_Header'}
10654                  $as_echo "$as_val"'`
10655    if test "x$as_val" = x""yes; then
10656   cat >>confdefs.h <<_ACEOF
10657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10658 _ACEOF
10659
10660 fi
10661
10662 done
10663
10664
10665 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10666
10667 for ac_header in readline/readline.h
10668 do
10669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10671   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10672 $as_echo_n "checking for $ac_header... " >&6; }
10673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10674   $as_echo_n "(cached) " >&6
10675 fi
10676 ac_res=`eval 'as_val=${'$as_ac_Header'}
10677                  $as_echo "$as_val"'`
10678                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10679 $as_echo "$ac_res" >&6; }
10680 else
10681   # Is the header compilable?
10682 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10683 $as_echo_n "checking $ac_header usability... " >&6; }
10684 cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h.  */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h.  */
10690 $ac_includes_default
10691 #include <$ac_header>
10692 _ACEOF
10693 rm -f conftest.$ac_objext
10694 if { (ac_try="$ac_compile"
10695 case "(($ac_try" in
10696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697   *) ac_try_echo=$ac_try;;
10698 esac
10699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10700 $as_echo "$ac_try_echo") >&5
10701   (eval "$ac_compile") 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } && {
10708          test -z "$ac_c_werror_flag" ||
10709          test ! -s conftest.err
10710        } && test -s conftest.$ac_objext; then
10711   ac_header_compiler=yes
10712 else
10713   $as_echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10715
10716         ac_header_compiler=no
10717 fi
10718
10719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10720 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10721 $as_echo "$ac_header_compiler" >&6; }
10722
10723 # Is the header present?
10724 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10725 $as_echo_n "checking $ac_header presence... " >&6; }
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h.  */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h.  */
10732 #include <$ac_header>
10733 _ACEOF
10734 if { (ac_try="$ac_cpp conftest.$ac_ext"
10735 case "(($ac_try" in
10736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10737   *) ac_try_echo=$ac_try;;
10738 esac
10739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10740 $as_echo "$ac_try_echo") >&5
10741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10742   ac_status=$?
10743   grep -v '^ *+' conftest.er1 >conftest.err
10744   rm -f conftest.er1
10745   cat conftest.err >&5
10746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); } >/dev/null && {
10748          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10749          test ! -s conftest.err
10750        }; then
10751   ac_header_preproc=yes
10752 else
10753   $as_echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10755
10756   ac_header_preproc=no
10757 fi
10758
10759 rm -f conftest.err conftest.$ac_ext
10760 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10761 $as_echo "$ac_header_preproc" >&6; }
10762
10763 # So?  What about this header?
10764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10765   yes:no: )
10766     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10767 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10768     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10770     ac_header_preproc=yes
10771     ;;
10772   no:yes:* )
10773     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10774 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10775     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10776 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10778 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10780 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10782 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10784 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10785     ( cat <<\_ASBOX
10786 ## ---------------------------------------- ##
10787 ## Report this to pgsql-bugs@postgresql.org ##
10788 ## ---------------------------------------- ##
10789 _ASBOX
10790      ) | sed "s/^/$as_me: WARNING:     /" >&2
10791     ;;
10792 esac
10793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10794 $as_echo_n "checking for $ac_header... " >&6; }
10795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10796   $as_echo_n "(cached) " >&6
10797 else
10798   eval "$as_ac_Header=\$ac_header_preproc"
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
10805 fi
10806 as_val=`eval 'as_val=${'$as_ac_Header'}
10807                  $as_echo "$as_val"'`
10808    if test "x$as_val" = x""yes; then
10809   cat >>confdefs.h <<_ACEOF
10810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10811 _ACEOF
10812
10813 else
10814
10815 for ac_header in readline.h
10816 do
10817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10819   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10820 $as_echo_n "checking for $ac_header... " >&6; }
10821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10822   $as_echo_n "(cached) " >&6
10823 fi
10824 ac_res=`eval 'as_val=${'$as_ac_Header'}
10825                  $as_echo "$as_val"'`
10826                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10827 $as_echo "$ac_res" >&6; }
10828 else
10829   # Is the header compilable?
10830 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10831 $as_echo_n "checking $ac_header usability... " >&6; }
10832 cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h.  */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h.  */
10838 $ac_includes_default
10839 #include <$ac_header>
10840 _ACEOF
10841 rm -f conftest.$ac_objext
10842 if { (ac_try="$ac_compile"
10843 case "(($ac_try" in
10844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845   *) ac_try_echo=$ac_try;;
10846 esac
10847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10848 $as_echo "$ac_try_echo") >&5
10849   (eval "$ac_compile") 2>conftest.er1
10850   ac_status=$?
10851   grep -v '^ *+' conftest.er1 >conftest.err
10852   rm -f conftest.er1
10853   cat conftest.err >&5
10854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } && {
10856          test -z "$ac_c_werror_flag" ||
10857          test ! -s conftest.err
10858        } && test -s conftest.$ac_objext; then
10859   ac_header_compiler=yes
10860 else
10861   $as_echo "$as_me: failed program was:" >&5
10862 sed 's/^/| /' conftest.$ac_ext >&5
10863
10864         ac_header_compiler=no
10865 fi
10866
10867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10868 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10869 $as_echo "$ac_header_compiler" >&6; }
10870
10871 # Is the header present?
10872 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10873 $as_echo_n "checking $ac_header presence... " >&6; }
10874 cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h.  */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h.  */
10880 #include <$ac_header>
10881 _ACEOF
10882 if { (ac_try="$ac_cpp conftest.$ac_ext"
10883 case "(($ac_try" in
10884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10885   *) ac_try_echo=$ac_try;;
10886 esac
10887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10888 $as_echo "$ac_try_echo") >&5
10889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } >/dev/null && {
10896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10897          test ! -s conftest.err
10898        }; then
10899   ac_header_preproc=yes
10900 else
10901   $as_echo "$as_me: failed program was:" >&5
10902 sed 's/^/| /' conftest.$ac_ext >&5
10903
10904   ac_header_preproc=no
10905 fi
10906
10907 rm -f conftest.err conftest.$ac_ext
10908 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10909 $as_echo "$ac_header_preproc" >&6; }
10910
10911 # So?  What about this header?
10912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10913   yes:no: )
10914     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10915 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10916     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10917 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10918     ac_header_preproc=yes
10919     ;;
10920   no:yes:* )
10921     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10922 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10924 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10926 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10928 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10930 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10932 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10933     ( cat <<\_ASBOX
10934 ## ---------------------------------------- ##
10935 ## Report this to pgsql-bugs@postgresql.org ##
10936 ## ---------------------------------------- ##
10937 _ASBOX
10938      ) | sed "s/^/$as_me: WARNING:     /" >&2
10939     ;;
10940 esac
10941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10942 $as_echo_n "checking for $ac_header... " >&6; }
10943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10944   $as_echo_n "(cached) " >&6
10945 else
10946   eval "$as_ac_Header=\$ac_header_preproc"
10947 fi
10948 ac_res=`eval 'as_val=${'$as_ac_Header'}
10949                  $as_echo "$as_val"'`
10950                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10951 $as_echo "$ac_res" >&6; }
10952
10953 fi
10954 as_val=`eval 'as_val=${'$as_ac_Header'}
10955                  $as_echo "$as_val"'`
10956    if test "x$as_val" = x""yes; then
10957   cat >>confdefs.h <<_ACEOF
10958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10959 _ACEOF
10960
10961 else
10962   { { $as_echo "$as_me:$LINENO: error: readline header not found
10963 If you have readline already installed, see config.log for details on the
10964 failure.  It is possible the compiler isn't looking in the proper directory.
10965 Use --without-readline to disable readline support." >&5
10966 $as_echo "$as_me: error: readline header not found
10967 If you have readline already installed, see config.log for details on the
10968 failure.  It is possible the compiler isn't looking in the proper directory.
10969 Use --without-readline to disable readline support." >&2;}
10970    { (exit 1); exit 1; }; }
10971 fi
10972
10973 done
10974
10975 fi
10976
10977 done
10978
10979
10980 for ac_header in readline/history.h
10981 do
10982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10984   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10985 $as_echo_n "checking for $ac_header... " >&6; }
10986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10987   $as_echo_n "(cached) " >&6
10988 fi
10989 ac_res=`eval 'as_val=${'$as_ac_Header'}
10990                  $as_echo "$as_val"'`
10991                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10992 $as_echo "$ac_res" >&6; }
10993 else
10994   # Is the header compilable?
10995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10996 $as_echo_n "checking $ac_header usability... " >&6; }
10997 cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h.  */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h.  */
11003 $ac_includes_default
11004 #include <$ac_header>
11005 _ACEOF
11006 rm -f conftest.$ac_objext
11007 if { (ac_try="$ac_compile"
11008 case "(($ac_try" in
11009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010   *) ac_try_echo=$ac_try;;
11011 esac
11012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11013 $as_echo "$ac_try_echo") >&5
11014   (eval "$ac_compile") 2>conftest.er1
11015   ac_status=$?
11016   grep -v '^ *+' conftest.er1 >conftest.err
11017   rm -f conftest.er1
11018   cat conftest.err >&5
11019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } && {
11021          test -z "$ac_c_werror_flag" ||
11022          test ! -s conftest.err
11023        } && test -s conftest.$ac_objext; then
11024   ac_header_compiler=yes
11025 else
11026   $as_echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11028
11029         ac_header_compiler=no
11030 fi
11031
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11034 $as_echo "$ac_header_compiler" >&6; }
11035
11036 # Is the header present?
11037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11038 $as_echo_n "checking $ac_header presence... " >&6; }
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h.  */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h.  */
11045 #include <$ac_header>
11046 _ACEOF
11047 if { (ac_try="$ac_cpp conftest.$ac_ext"
11048 case "(($ac_try" in
11049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050   *) ac_try_echo=$ac_try;;
11051 esac
11052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11053 $as_echo "$ac_try_echo") >&5
11054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11055   ac_status=$?
11056   grep -v '^ *+' conftest.er1 >conftest.err
11057   rm -f conftest.er1
11058   cat conftest.err >&5
11059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } >/dev/null && {
11061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11062          test ! -s conftest.err
11063        }; then
11064   ac_header_preproc=yes
11065 else
11066   $as_echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11068
11069   ac_header_preproc=no
11070 fi
11071
11072 rm -f conftest.err conftest.$ac_ext
11073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 $as_echo "$ac_header_preproc" >&6; }
11075
11076 # So?  What about this header?
11077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11078   yes:no: )
11079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083     ac_header_preproc=yes
11084     ;;
11085   no:yes:* )
11086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11089 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11093 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11094     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11098     ( cat <<\_ASBOX
11099 ## ---------------------------------------- ##
11100 ## Report this to pgsql-bugs@postgresql.org ##
11101 ## ---------------------------------------- ##
11102 _ASBOX
11103      ) | sed "s/^/$as_me: WARNING:     /" >&2
11104     ;;
11105 esac
11106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11107 $as_echo_n "checking for $ac_header... " >&6; }
11108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11109   $as_echo_n "(cached) " >&6
11110 else
11111   eval "$as_ac_Header=\$ac_header_preproc"
11112 fi
11113 ac_res=`eval 'as_val=${'$as_ac_Header'}
11114                  $as_echo "$as_val"'`
11115                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11116 $as_echo "$ac_res" >&6; }
11117
11118 fi
11119 as_val=`eval 'as_val=${'$as_ac_Header'}
11120                  $as_echo "$as_val"'`
11121    if test "x$as_val" = x""yes; then
11122   cat >>confdefs.h <<_ACEOF
11123 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11124 _ACEOF
11125
11126 else
11127
11128 for ac_header in history.h
11129 do
11130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11132   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11133 $as_echo_n "checking for $ac_header... " >&6; }
11134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11135   $as_echo_n "(cached) " >&6
11136 fi
11137 ac_res=`eval 'as_val=${'$as_ac_Header'}
11138                  $as_echo "$as_val"'`
11139                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11140 $as_echo "$ac_res" >&6; }
11141 else
11142   # Is the header compilable?
11143 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11144 $as_echo_n "checking $ac_header usability... " >&6; }
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h.  */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h.  */
11151 $ac_includes_default
11152 #include <$ac_header>
11153 _ACEOF
11154 rm -f conftest.$ac_objext
11155 if { (ac_try="$ac_compile"
11156 case "(($ac_try" in
11157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11158   *) ac_try_echo=$ac_try;;
11159 esac
11160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11161 $as_echo "$ac_try_echo") >&5
11162   (eval "$ac_compile") 2>conftest.er1
11163   ac_status=$?
11164   grep -v '^ *+' conftest.er1 >conftest.err
11165   rm -f conftest.er1
11166   cat conftest.err >&5
11167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); } && {
11169          test -z "$ac_c_werror_flag" ||
11170          test ! -s conftest.err
11171        } && test -s conftest.$ac_objext; then
11172   ac_header_compiler=yes
11173 else
11174   $as_echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11176
11177         ac_header_compiler=no
11178 fi
11179
11180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11181 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11182 $as_echo "$ac_header_compiler" >&6; }
11183
11184 # Is the header present?
11185 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11186 $as_echo_n "checking $ac_header presence... " >&6; }
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h.  */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h.  */
11193 #include <$ac_header>
11194 _ACEOF
11195 if { (ac_try="$ac_cpp conftest.$ac_ext"
11196 case "(($ac_try" in
11197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198   *) ac_try_echo=$ac_try;;
11199 esac
11200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11201 $as_echo "$ac_try_echo") >&5
11202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11203   ac_status=$?
11204   grep -v '^ *+' conftest.er1 >conftest.err
11205   rm -f conftest.er1
11206   cat conftest.err >&5
11207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); } >/dev/null && {
11209          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11210          test ! -s conftest.err
11211        }; then
11212   ac_header_preproc=yes
11213 else
11214   $as_echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11216
11217   ac_header_preproc=no
11218 fi
11219
11220 rm -f conftest.err conftest.$ac_ext
11221 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11222 $as_echo "$ac_header_preproc" >&6; }
11223
11224 # So?  What about this header?
11225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11226   yes:no: )
11227     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11228 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11229     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11231     ac_header_preproc=yes
11232     ;;
11233   no:yes:* )
11234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11235 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11237 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11239 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11241 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11242     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11243 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11245 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11246     ( cat <<\_ASBOX
11247 ## ---------------------------------------- ##
11248 ## Report this to pgsql-bugs@postgresql.org ##
11249 ## ---------------------------------------- ##
11250 _ASBOX
11251      ) | sed "s/^/$as_me: WARNING:     /" >&2
11252     ;;
11253 esac
11254 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11255 $as_echo_n "checking for $ac_header... " >&6; }
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257   $as_echo_n "(cached) " >&6
11258 else
11259   eval "$as_ac_Header=\$ac_header_preproc"
11260 fi
11261 ac_res=`eval 'as_val=${'$as_ac_Header'}
11262                  $as_echo "$as_val"'`
11263                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11264 $as_echo "$ac_res" >&6; }
11265
11266 fi
11267 as_val=`eval 'as_val=${'$as_ac_Header'}
11268                  $as_echo "$as_val"'`
11269    if test "x$as_val" = x""yes; then
11270   cat >>confdefs.h <<_ACEOF
11271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11272 _ACEOF
11273
11274 else
11275   { { $as_echo "$as_me:$LINENO: error: history header not found
11276 If you have readline already installed, see config.log for details on the
11277 failure.  It is possible the compiler isn't looking in the proper directory.
11278 Use --without-readline to disable readline support." >&5
11279 $as_echo "$as_me: error: history header not found
11280 If you have readline already installed, see config.log for details on the
11281 failure.  It is possible the compiler isn't looking in the proper directory.
11282 Use --without-readline to disable readline support." >&2;}
11283    { (exit 1); exit 1; }; }
11284 fi
11285
11286 done
11287
11288 fi
11289
11290 done
11291
11292 fi
11293
11294 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11295 # Some installations of libedit usurp /usr/include/readline/, which seems
11296 # bad practice, since in combined installations readline will have its headers
11297 # there.  We might have to resort to AC_EGREP checks to make sure we found
11298 # the proper header...
11299
11300 for ac_header in editline/readline.h
11301 do
11302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11305 $as_echo_n "checking for $ac_header... " >&6; }
11306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11307   $as_echo_n "(cached) " >&6
11308 fi
11309 ac_res=`eval 'as_val=${'$as_ac_Header'}
11310                  $as_echo "$as_val"'`
11311                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11312 $as_echo "$ac_res" >&6; }
11313 else
11314   # Is the header compilable?
11315 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11316 $as_echo_n "checking $ac_header usability... " >&6; }
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h.  */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h.  */
11323 $ac_includes_default
11324 #include <$ac_header>
11325 _ACEOF
11326 rm -f conftest.$ac_objext
11327 if { (ac_try="$ac_compile"
11328 case "(($ac_try" in
11329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330   *) ac_try_echo=$ac_try;;
11331 esac
11332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11333 $as_echo "$ac_try_echo") >&5
11334   (eval "$ac_compile") 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } && {
11341          test -z "$ac_c_werror_flag" ||
11342          test ! -s conftest.err
11343        } && test -s conftest.$ac_objext; then
11344   ac_header_compiler=yes
11345 else
11346   $as_echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11348
11349         ac_header_compiler=no
11350 fi
11351
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11354 $as_echo "$ac_header_compiler" >&6; }
11355
11356 # Is the header present?
11357 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11358 $as_echo_n "checking $ac_header presence... " >&6; }
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h.  */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h.  */
11365 #include <$ac_header>
11366 _ACEOF
11367 if { (ac_try="$ac_cpp conftest.$ac_ext"
11368 case "(($ac_try" in
11369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370   *) ac_try_echo=$ac_try;;
11371 esac
11372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11373 $as_echo "$ac_try_echo") >&5
11374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11375   ac_status=$?
11376   grep -v '^ *+' conftest.er1 >conftest.err
11377   rm -f conftest.er1
11378   cat conftest.err >&5
11379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); } >/dev/null && {
11381          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11382          test ! -s conftest.err
11383        }; then
11384   ac_header_preproc=yes
11385 else
11386   $as_echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389   ac_header_preproc=no
11390 fi
11391
11392 rm -f conftest.err conftest.$ac_ext
11393 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 $as_echo "$ac_header_preproc" >&6; }
11395
11396 # So?  What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11398   yes:no: )
11399     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403     ac_header_preproc=yes
11404     ;;
11405   no:yes:* )
11406     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11409 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11410     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11413 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11414     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11418     ( cat <<\_ASBOX
11419 ## ---------------------------------------- ##
11420 ## Report this to pgsql-bugs@postgresql.org ##
11421 ## ---------------------------------------- ##
11422 _ASBOX
11423      ) | sed "s/^/$as_me: WARNING:     /" >&2
11424     ;;
11425 esac
11426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11427 $as_echo_n "checking for $ac_header... " >&6; }
11428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429   $as_echo_n "(cached) " >&6
11430 else
11431   eval "$as_ac_Header=\$ac_header_preproc"
11432 fi
11433 ac_res=`eval 'as_val=${'$as_ac_Header'}
11434                  $as_echo "$as_val"'`
11435                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11436 $as_echo "$ac_res" >&6; }
11437
11438 fi
11439 as_val=`eval 'as_val=${'$as_ac_Header'}
11440                  $as_echo "$as_val"'`
11441    if test "x$as_val" = x""yes; then
11442   cat >>confdefs.h <<_ACEOF
11443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11444 _ACEOF
11445
11446 else
11447
11448 for ac_header in readline.h
11449 do
11450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11453 $as_echo_n "checking for $ac_header... " >&6; }
11454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11455   $as_echo_n "(cached) " >&6
11456 fi
11457 ac_res=`eval 'as_val=${'$as_ac_Header'}
11458                  $as_echo "$as_val"'`
11459                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11460 $as_echo "$ac_res" >&6; }
11461 else
11462   # Is the header compilable?
11463 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11464 $as_echo_n "checking $ac_header usability... " >&6; }
11465 cat >conftest.$ac_ext <<_ACEOF
11466 /* confdefs.h.  */
11467 _ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h.  */
11471 $ac_includes_default
11472 #include <$ac_header>
11473 _ACEOF
11474 rm -f conftest.$ac_objext
11475 if { (ac_try="$ac_compile"
11476 case "(($ac_try" in
11477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478   *) ac_try_echo=$ac_try;;
11479 esac
11480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11481 $as_echo "$ac_try_echo") >&5
11482   (eval "$ac_compile") 2>conftest.er1
11483   ac_status=$?
11484   grep -v '^ *+' conftest.er1 >conftest.err
11485   rm -f conftest.er1
11486   cat conftest.err >&5
11487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); } && {
11489          test -z "$ac_c_werror_flag" ||
11490          test ! -s conftest.err
11491        } && test -s conftest.$ac_objext; then
11492   ac_header_compiler=yes
11493 else
11494   $as_echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497         ac_header_compiler=no
11498 fi
11499
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 $as_echo "$ac_header_compiler" >&6; }
11503
11504 # Is the header present?
11505 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 $as_echo_n "checking $ac_header presence... " >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h.  */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h.  */
11513 #include <$ac_header>
11514 _ACEOF
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11521 $as_echo "$ac_try_echo") >&5
11522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523   ac_status=$?
11524   grep -v '^ *+' conftest.er1 >conftest.err
11525   rm -f conftest.er1
11526   cat conftest.err >&5
11527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); } >/dev/null && {
11529          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11530          test ! -s conftest.err
11531        }; then
11532   ac_header_preproc=yes
11533 else
11534   $as_echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11536
11537   ac_header_preproc=no
11538 fi
11539
11540 rm -f conftest.err conftest.$ac_ext
11541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11542 $as_echo "$ac_header_preproc" >&6; }
11543
11544 # So?  What about this header?
11545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11546   yes:no: )
11547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11548 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11551     ac_header_preproc=yes
11552     ;;
11553   no:yes:* )
11554     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11555 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11557 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11559 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11561 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11562     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11563 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11565 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11566     ( cat <<\_ASBOX
11567 ## ---------------------------------------- ##
11568 ## Report this to pgsql-bugs@postgresql.org ##
11569 ## ---------------------------------------- ##
11570 _ASBOX
11571      ) | sed "s/^/$as_me: WARNING:     /" >&2
11572     ;;
11573 esac
11574 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11575 $as_echo_n "checking for $ac_header... " >&6; }
11576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11577   $as_echo_n "(cached) " >&6
11578 else
11579   eval "$as_ac_Header=\$ac_header_preproc"
11580 fi
11581 ac_res=`eval 'as_val=${'$as_ac_Header'}
11582                  $as_echo "$as_val"'`
11583                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11584 $as_echo "$ac_res" >&6; }
11585
11586 fi
11587 as_val=`eval 'as_val=${'$as_ac_Header'}
11588                  $as_echo "$as_val"'`
11589    if test "x$as_val" = x""yes; then
11590   cat >>confdefs.h <<_ACEOF
11591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11592 _ACEOF
11593
11594 else
11595
11596 for ac_header in readline/readline.h
11597 do
11598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11601 $as_echo_n "checking for $ac_header... " >&6; }
11602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11603   $as_echo_n "(cached) " >&6
11604 fi
11605 ac_res=`eval 'as_val=${'$as_ac_Header'}
11606                  $as_echo "$as_val"'`
11607                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11608 $as_echo "$ac_res" >&6; }
11609 else
11610   # Is the header compilable?
11611 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11612 $as_echo_n "checking $ac_header usability... " >&6; }
11613 cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h.  */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h.  */
11619 $ac_includes_default
11620 #include <$ac_header>
11621 _ACEOF
11622 rm -f conftest.$ac_objext
11623 if { (ac_try="$ac_compile"
11624 case "(($ac_try" in
11625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626   *) ac_try_echo=$ac_try;;
11627 esac
11628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11629 $as_echo "$ac_try_echo") >&5
11630   (eval "$ac_compile") 2>conftest.er1
11631   ac_status=$?
11632   grep -v '^ *+' conftest.er1 >conftest.err
11633   rm -f conftest.er1
11634   cat conftest.err >&5
11635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); } && {
11637          test -z "$ac_c_werror_flag" ||
11638          test ! -s conftest.err
11639        } && test -s conftest.$ac_objext; then
11640   ac_header_compiler=yes
11641 else
11642   $as_echo "$as_me: failed program was:" >&5
11643 sed 's/^/| /' conftest.$ac_ext >&5
11644
11645         ac_header_compiler=no
11646 fi
11647
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11650 $as_echo "$ac_header_compiler" >&6; }
11651
11652 # Is the header present?
11653 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11654 $as_echo_n "checking $ac_header presence... " >&6; }
11655 cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h.  */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h.  */
11661 #include <$ac_header>
11662 _ACEOF
11663 if { (ac_try="$ac_cpp conftest.$ac_ext"
11664 case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11669 $as_echo "$ac_try_echo") >&5
11670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11671   ac_status=$?
11672   grep -v '^ *+' conftest.er1 >conftest.err
11673   rm -f conftest.er1
11674   cat conftest.err >&5
11675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); } >/dev/null && {
11677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11678          test ! -s conftest.err
11679        }; then
11680   ac_header_preproc=yes
11681 else
11682   $as_echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685   ac_header_preproc=no
11686 fi
11687
11688 rm -f conftest.err conftest.$ac_ext
11689 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11690 $as_echo "$ac_header_preproc" >&6; }
11691
11692 # So?  What about this header?
11693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11694   yes:no: )
11695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11696 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11699     ac_header_preproc=yes
11700     ;;
11701   no:yes:* )
11702     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11703 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11704     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11705 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11706     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11707 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11708     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11709 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11710     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11711 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11712     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11713 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11714     ( cat <<\_ASBOX
11715 ## ---------------------------------------- ##
11716 ## Report this to pgsql-bugs@postgresql.org ##
11717 ## ---------------------------------------- ##
11718 _ASBOX
11719      ) | sed "s/^/$as_me: WARNING:     /" >&2
11720     ;;
11721 esac
11722 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11723 $as_echo_n "checking for $ac_header... " >&6; }
11724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11725   $as_echo_n "(cached) " >&6
11726 else
11727   eval "$as_ac_Header=\$ac_header_preproc"
11728 fi
11729 ac_res=`eval 'as_val=${'$as_ac_Header'}
11730                  $as_echo "$as_val"'`
11731                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11732 $as_echo "$ac_res" >&6; }
11733
11734 fi
11735 as_val=`eval 'as_val=${'$as_ac_Header'}
11736                  $as_echo "$as_val"'`
11737    if test "x$as_val" = x""yes; then
11738   cat >>confdefs.h <<_ACEOF
11739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11740 _ACEOF
11741
11742 else
11743   { { $as_echo "$as_me:$LINENO: error: readline header not found
11744 If you have libedit already installed, see config.log for details on the
11745 failure.  It is possible the compiler isn't looking in the proper directory.
11746 Use --without-readline to disable libedit support." >&5
11747 $as_echo "$as_me: error: readline header not found
11748 If you have libedit already installed, see config.log for details on the
11749 failure.  It is possible the compiler isn't looking in the proper directory.
11750 Use --without-readline to disable libedit support." >&2;}
11751    { (exit 1); exit 1; }; }
11752 fi
11753
11754 done
11755
11756 fi
11757
11758 done
11759
11760 fi
11761
11762 done
11763
11764 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11765 # not be there at all.  Hence, don't complain if not found.  We must check
11766 # though, since in yet other versions it is an independent header.
11767
11768 for ac_header in editline/history.h
11769 do
11770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11772   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11773 $as_echo_n "checking for $ac_header... " >&6; }
11774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11775   $as_echo_n "(cached) " >&6
11776 fi
11777 ac_res=`eval 'as_val=${'$as_ac_Header'}
11778                  $as_echo "$as_val"'`
11779                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11780 $as_echo "$ac_res" >&6; }
11781 else
11782   # Is the header compilable?
11783 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11784 $as_echo_n "checking $ac_header usability... " >&6; }
11785 cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h.  */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h.  */
11791 $ac_includes_default
11792 #include <$ac_header>
11793 _ACEOF
11794 rm -f conftest.$ac_objext
11795 if { (ac_try="$ac_compile"
11796 case "(($ac_try" in
11797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798   *) ac_try_echo=$ac_try;;
11799 esac
11800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11801 $as_echo "$ac_try_echo") >&5
11802   (eval "$ac_compile") 2>conftest.er1
11803   ac_status=$?
11804   grep -v '^ *+' conftest.er1 >conftest.err
11805   rm -f conftest.er1
11806   cat conftest.err >&5
11807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); } && {
11809          test -z "$ac_c_werror_flag" ||
11810          test ! -s conftest.err
11811        } && test -s conftest.$ac_objext; then
11812   ac_header_compiler=yes
11813 else
11814   $as_echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11816
11817         ac_header_compiler=no
11818 fi
11819
11820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11821 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11822 $as_echo "$ac_header_compiler" >&6; }
11823
11824 # Is the header present?
11825 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11826 $as_echo_n "checking $ac_header presence... " >&6; }
11827 cat >conftest.$ac_ext <<_ACEOF
11828 /* confdefs.h.  */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h.  */
11833 #include <$ac_header>
11834 _ACEOF
11835 if { (ac_try="$ac_cpp conftest.$ac_ext"
11836 case "(($ac_try" in
11837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838   *) ac_try_echo=$ac_try;;
11839 esac
11840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11841 $as_echo "$ac_try_echo") >&5
11842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11843   ac_status=$?
11844   grep -v '^ *+' conftest.er1 >conftest.err
11845   rm -f conftest.er1
11846   cat conftest.err >&5
11847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); } >/dev/null && {
11849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11850          test ! -s conftest.err
11851        }; then
11852   ac_header_preproc=yes
11853 else
11854   $as_echo "$as_me: failed program was:" >&5
11855 sed 's/^/| /' conftest.$ac_ext >&5
11856
11857   ac_header_preproc=no
11858 fi
11859
11860 rm -f conftest.err conftest.$ac_ext
11861 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11862 $as_echo "$ac_header_preproc" >&6; }
11863
11864 # So?  What about this header?
11865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11866   yes:no: )
11867     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11868 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11869     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11871     ac_header_preproc=yes
11872     ;;
11873   no:yes:* )
11874     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11875 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11876     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11877 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11878     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11879 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11881 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11882     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11884     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11885 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11886     ( cat <<\_ASBOX
11887 ## ---------------------------------------- ##
11888 ## Report this to pgsql-bugs@postgresql.org ##
11889 ## ---------------------------------------- ##
11890 _ASBOX
11891      ) | sed "s/^/$as_me: WARNING:     /" >&2
11892     ;;
11893 esac
11894 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11895 $as_echo_n "checking for $ac_header... " >&6; }
11896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11897   $as_echo_n "(cached) " >&6
11898 else
11899   eval "$as_ac_Header=\$ac_header_preproc"
11900 fi
11901 ac_res=`eval 'as_val=${'$as_ac_Header'}
11902                  $as_echo "$as_val"'`
11903                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11904 $as_echo "$ac_res" >&6; }
11905
11906 fi
11907 as_val=`eval 'as_val=${'$as_ac_Header'}
11908                  $as_echo "$as_val"'`
11909    if test "x$as_val" = x""yes; then
11910   cat >>confdefs.h <<_ACEOF
11911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11912 _ACEOF
11913
11914 else
11915
11916 for ac_header in history.h
11917 do
11918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11920   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11921 $as_echo_n "checking for $ac_header... " >&6; }
11922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11923   $as_echo_n "(cached) " >&6
11924 fi
11925 ac_res=`eval 'as_val=${'$as_ac_Header'}
11926                  $as_echo "$as_val"'`
11927                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11928 $as_echo "$ac_res" >&6; }
11929 else
11930   # Is the header compilable?
11931 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11932 $as_echo_n "checking $ac_header usability... " >&6; }
11933 cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h.  */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h.  */
11939 $ac_includes_default
11940 #include <$ac_header>
11941 _ACEOF
11942 rm -f conftest.$ac_objext
11943 if { (ac_try="$ac_compile"
11944 case "(($ac_try" in
11945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946   *) ac_try_echo=$ac_try;;
11947 esac
11948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11949 $as_echo "$ac_try_echo") >&5
11950   (eval "$ac_compile") 2>conftest.er1
11951   ac_status=$?
11952   grep -v '^ *+' conftest.er1 >conftest.err
11953   rm -f conftest.er1
11954   cat conftest.err >&5
11955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); } && {
11957          test -z "$ac_c_werror_flag" ||
11958          test ! -s conftest.err
11959        } && test -s conftest.$ac_objext; then
11960   ac_header_compiler=yes
11961 else
11962   $as_echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11964
11965         ac_header_compiler=no
11966 fi
11967
11968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11970 $as_echo "$ac_header_compiler" >&6; }
11971
11972 # Is the header present?
11973 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11974 $as_echo_n "checking $ac_header presence... " >&6; }
11975 cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h.  */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h.  */
11981 #include <$ac_header>
11982 _ACEOF
11983 if { (ac_try="$ac_cpp conftest.$ac_ext"
11984 case "(($ac_try" in
11985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986   *) ac_try_echo=$ac_try;;
11987 esac
11988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11989 $as_echo "$ac_try_echo") >&5
11990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11991   ac_status=$?
11992   grep -v '^ *+' conftest.er1 >conftest.err
11993   rm -f conftest.er1
11994   cat conftest.err >&5
11995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996   (exit $ac_status); } >/dev/null && {
11997          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11998          test ! -s conftest.err
11999        }; then
12000   ac_header_preproc=yes
12001 else
12002   $as_echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005   ac_header_preproc=no
12006 fi
12007
12008 rm -f conftest.err conftest.$ac_ext
12009 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12010 $as_echo "$ac_header_preproc" >&6; }
12011
12012 # So?  What about this header?
12013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12014   yes:no: )
12015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12016 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12018 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12019     ac_header_preproc=yes
12020     ;;
12021   no:yes:* )
12022     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12023 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12024     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12025 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12027 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12028     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12029 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12030     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12031 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12032     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12033 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12034     ( cat <<\_ASBOX
12035 ## ---------------------------------------- ##
12036 ## Report this to pgsql-bugs@postgresql.org ##
12037 ## ---------------------------------------- ##
12038 _ASBOX
12039      ) | sed "s/^/$as_me: WARNING:     /" >&2
12040     ;;
12041 esac
12042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12043 $as_echo_n "checking for $ac_header... " >&6; }
12044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12045   $as_echo_n "(cached) " >&6
12046 else
12047   eval "$as_ac_Header=\$ac_header_preproc"
12048 fi
12049 ac_res=`eval 'as_val=${'$as_ac_Header'}
12050                  $as_echo "$as_val"'`
12051                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12052 $as_echo "$ac_res" >&6; }
12053
12054 fi
12055 as_val=`eval 'as_val=${'$as_ac_Header'}
12056                  $as_echo "$as_val"'`
12057    if test "x$as_val" = x""yes; then
12058   cat >>confdefs.h <<_ACEOF
12059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12060 _ACEOF
12061
12062 else
12063
12064 for ac_header in readline/history.h
12065 do
12066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12068   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12069 $as_echo_n "checking for $ac_header... " >&6; }
12070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12071   $as_echo_n "(cached) " >&6
12072 fi
12073 ac_res=`eval 'as_val=${'$as_ac_Header'}
12074                  $as_echo "$as_val"'`
12075                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12076 $as_echo "$ac_res" >&6; }
12077 else
12078   # Is the header compilable?
12079 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12080 $as_echo_n "checking $ac_header usability... " >&6; }
12081 cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h.  */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h.  */
12087 $ac_includes_default
12088 #include <$ac_header>
12089 _ACEOF
12090 rm -f conftest.$ac_objext
12091 if { (ac_try="$ac_compile"
12092 case "(($ac_try" in
12093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094   *) ac_try_echo=$ac_try;;
12095 esac
12096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12097 $as_echo "$ac_try_echo") >&5
12098   (eval "$ac_compile") 2>conftest.er1
12099   ac_status=$?
12100   grep -v '^ *+' conftest.er1 >conftest.err
12101   rm -f conftest.er1
12102   cat conftest.err >&5
12103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } && {
12105          test -z "$ac_c_werror_flag" ||
12106          test ! -s conftest.err
12107        } && test -s conftest.$ac_objext; then
12108   ac_header_compiler=yes
12109 else
12110   $as_echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113         ac_header_compiler=no
12114 fi
12115
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12118 $as_echo "$ac_header_compiler" >&6; }
12119
12120 # Is the header present?
12121 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12122 $as_echo_n "checking $ac_header presence... " >&6; }
12123 cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h.  */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h.  */
12129 #include <$ac_header>
12130 _ACEOF
12131 if { (ac_try="$ac_cpp conftest.$ac_ext"
12132 case "(($ac_try" in
12133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134   *) ac_try_echo=$ac_try;;
12135 esac
12136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12137 $as_echo "$ac_try_echo") >&5
12138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12139   ac_status=$?
12140   grep -v '^ *+' conftest.er1 >conftest.err
12141   rm -f conftest.er1
12142   cat conftest.err >&5
12143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); } >/dev/null && {
12145          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12146          test ! -s conftest.err
12147        }; then
12148   ac_header_preproc=yes
12149 else
12150   $as_echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153   ac_header_preproc=no
12154 fi
12155
12156 rm -f conftest.err conftest.$ac_ext
12157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12158 $as_echo "$ac_header_preproc" >&6; }
12159
12160 # So?  What about this header?
12161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12162   yes:no: )
12163     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12164 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12165     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12167     ac_header_preproc=yes
12168     ;;
12169   no:yes:* )
12170     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12171 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12172     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12173 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12174     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12175 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12176     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12177 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12178     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12179 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12180     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12181 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12182     ( cat <<\_ASBOX
12183 ## ---------------------------------------- ##
12184 ## Report this to pgsql-bugs@postgresql.org ##
12185 ## ---------------------------------------- ##
12186 _ASBOX
12187      ) | sed "s/^/$as_me: WARNING:     /" >&2
12188     ;;
12189 esac
12190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12191 $as_echo_n "checking for $ac_header... " >&6; }
12192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12193   $as_echo_n "(cached) " >&6
12194 else
12195   eval "$as_ac_Header=\$ac_header_preproc"
12196 fi
12197 ac_res=`eval 'as_val=${'$as_ac_Header'}
12198                  $as_echo "$as_val"'`
12199                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12200 $as_echo "$ac_res" >&6; }
12201
12202 fi
12203 as_val=`eval 'as_val=${'$as_ac_Header'}
12204                  $as_echo "$as_val"'`
12205    if test "x$as_val" = x""yes; then
12206   cat >>confdefs.h <<_ACEOF
12207 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12208 _ACEOF
12209
12210 fi
12211
12212 done
12213
12214 fi
12215
12216 done
12217
12218 fi
12219
12220 done
12221
12222 fi
12223
12224 if test "$with_zlib" = yes; then
12225   if test "${ac_cv_header_zlib_h+set}" = set; then
12226   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12227 $as_echo_n "checking for zlib.h... " >&6; }
12228 if test "${ac_cv_header_zlib_h+set}" = set; then
12229   $as_echo_n "(cached) " >&6
12230 fi
12231 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12232 $as_echo "$ac_cv_header_zlib_h" >&6; }
12233 else
12234   # Is the header compilable?
12235 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12236 $as_echo_n "checking zlib.h usability... " >&6; }
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h.  */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h.  */
12243 $ac_includes_default
12244 #include <zlib.h>
12245 _ACEOF
12246 rm -f conftest.$ac_objext
12247 if { (ac_try="$ac_compile"
12248 case "(($ac_try" in
12249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250   *) ac_try_echo=$ac_try;;
12251 esac
12252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12253 $as_echo "$ac_try_echo") >&5
12254   (eval "$ac_compile") 2>conftest.er1
12255   ac_status=$?
12256   grep -v '^ *+' conftest.er1 >conftest.err
12257   rm -f conftest.er1
12258   cat conftest.err >&5
12259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); } && {
12261          test -z "$ac_c_werror_flag" ||
12262          test ! -s conftest.err
12263        } && test -s conftest.$ac_objext; then
12264   ac_header_compiler=yes
12265 else
12266   $as_echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269         ac_header_compiler=no
12270 fi
12271
12272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12274 $as_echo "$ac_header_compiler" >&6; }
12275
12276 # Is the header present?
12277 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12278 $as_echo_n "checking zlib.h presence... " >&6; }
12279 cat >conftest.$ac_ext <<_ACEOF
12280 /* confdefs.h.  */
12281 _ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h.  */
12285 #include <zlib.h>
12286 _ACEOF
12287 if { (ac_try="$ac_cpp conftest.$ac_ext"
12288 case "(($ac_try" in
12289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290   *) ac_try_echo=$ac_try;;
12291 esac
12292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12293 $as_echo "$ac_try_echo") >&5
12294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12295   ac_status=$?
12296   grep -v '^ *+' conftest.er1 >conftest.err
12297   rm -f conftest.er1
12298   cat conftest.err >&5
12299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); } >/dev/null && {
12301          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12302          test ! -s conftest.err
12303        }; then
12304   ac_header_preproc=yes
12305 else
12306   $as_echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309   ac_header_preproc=no
12310 fi
12311
12312 rm -f conftest.err conftest.$ac_ext
12313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12314 $as_echo "$ac_header_preproc" >&6; }
12315
12316 # So?  What about this header?
12317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12318   yes:no: )
12319     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12320 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12321     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12322 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12323     ac_header_preproc=yes
12324     ;;
12325   no:yes:* )
12326     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12327 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12328     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12329 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12330     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12331 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12332     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12333 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12334     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12335 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12336     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12337 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12338     ( cat <<\_ASBOX
12339 ## ---------------------------------------- ##
12340 ## Report this to pgsql-bugs@postgresql.org ##
12341 ## ---------------------------------------- ##
12342 _ASBOX
12343      ) | sed "s/^/$as_me: WARNING:     /" >&2
12344     ;;
12345 esac
12346 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12347 $as_echo_n "checking for zlib.h... " >&6; }
12348 if test "${ac_cv_header_zlib_h+set}" = set; then
12349   $as_echo_n "(cached) " >&6
12350 else
12351   ac_cv_header_zlib_h=$ac_header_preproc
12352 fi
12353 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12354 $as_echo "$ac_cv_header_zlib_h" >&6; }
12355
12356 fi
12357 if test "x$ac_cv_header_zlib_h" = x""yes; then
12358   :
12359 else
12360   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12361 If you have zlib already installed, see config.log for details on the
12362 failure.  It is possible the compiler isn't looking in the proper directory.
12363 Use --without-zlib to disable zlib support." >&5
12364 $as_echo "$as_me: error: zlib header not found
12365 If you have zlib already installed, see config.log for details on the
12366 failure.  It is possible the compiler isn't looking in the proper directory.
12367 Use --without-zlib to disable zlib support." >&2;}
12368    { (exit 1); exit 1; }; }
12369 fi
12370
12371
12372 fi
12373
12374 if test "$with_gssapi" = yes ; then
12375
12376 for ac_header in gssapi/gssapi.h
12377 do
12378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12380   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 $as_echo_n "checking for $ac_header... " >&6; }
12382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383   $as_echo_n "(cached) " >&6
12384 fi
12385 ac_res=`eval 'as_val=${'$as_ac_Header'}
12386                  $as_echo "$as_val"'`
12387                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12388 $as_echo "$ac_res" >&6; }
12389 else
12390   # Is the header compilable?
12391 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12392 $as_echo_n "checking $ac_header usability... " >&6; }
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h.  */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h.  */
12399 $ac_includes_default
12400 #include <$ac_header>
12401 _ACEOF
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406   *) ac_try_echo=$ac_try;;
12407 esac
12408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12409 $as_echo "$ac_try_echo") >&5
12410   (eval "$ac_compile") 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } && {
12417          test -z "$ac_c_werror_flag" ||
12418          test ! -s conftest.err
12419        } && test -s conftest.$ac_objext; then
12420   ac_header_compiler=yes
12421 else
12422   $as_echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425         ac_header_compiler=no
12426 fi
12427
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12430 $as_echo "$ac_header_compiler" >&6; }
12431
12432 # Is the header present?
12433 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12434 $as_echo_n "checking $ac_header presence... " >&6; }
12435 cat >conftest.$ac_ext <<_ACEOF
12436 /* confdefs.h.  */
12437 _ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h.  */
12441 #include <$ac_header>
12442 _ACEOF
12443 if { (ac_try="$ac_cpp conftest.$ac_ext"
12444 case "(($ac_try" in
12445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446   *) ac_try_echo=$ac_try;;
12447 esac
12448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12449 $as_echo "$ac_try_echo") >&5
12450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12451   ac_status=$?
12452   grep -v '^ *+' conftest.er1 >conftest.err
12453   rm -f conftest.er1
12454   cat conftest.err >&5
12455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } >/dev/null && {
12457          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12458          test ! -s conftest.err
12459        }; then
12460   ac_header_preproc=yes
12461 else
12462   $as_echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465   ac_header_preproc=no
12466 fi
12467
12468 rm -f conftest.err conftest.$ac_ext
12469 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12470 $as_echo "$ac_header_preproc" >&6; }
12471
12472 # So?  What about this header?
12473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12474   yes:no: )
12475     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12476 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12477     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12478 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12479     ac_header_preproc=yes
12480     ;;
12481   no:yes:* )
12482     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12483 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12484     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12485 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12486     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12487 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12488     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12489 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12490     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12491 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12493 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12494     ( cat <<\_ASBOX
12495 ## ---------------------------------------- ##
12496 ## Report this to pgsql-bugs@postgresql.org ##
12497 ## ---------------------------------------- ##
12498 _ASBOX
12499      ) | sed "s/^/$as_me: WARNING:     /" >&2
12500     ;;
12501 esac
12502 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12503 $as_echo_n "checking for $ac_header... " >&6; }
12504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12505   $as_echo_n "(cached) " >&6
12506 else
12507   eval "$as_ac_Header=\$ac_header_preproc"
12508 fi
12509 ac_res=`eval 'as_val=${'$as_ac_Header'}
12510                  $as_echo "$as_val"'`
12511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12512 $as_echo "$ac_res" >&6; }
12513
12514 fi
12515 as_val=`eval 'as_val=${'$as_ac_Header'}
12516                  $as_echo "$as_val"'`
12517    if test "x$as_val" = x""yes; then
12518   cat >>confdefs.h <<_ACEOF
12519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520 _ACEOF
12521
12522 else
12523
12524 for ac_header in gssapi.h
12525 do
12526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 $as_echo_n "checking for $ac_header... " >&6; }
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531   $as_echo_n "(cached) " >&6
12532 fi
12533 ac_res=`eval 'as_val=${'$as_ac_Header'}
12534                  $as_echo "$as_val"'`
12535                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12536 $as_echo "$ac_res" >&6; }
12537 else
12538   # Is the header compilable?
12539 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12540 $as_echo_n "checking $ac_header usability... " >&6; }
12541 cat >conftest.$ac_ext <<_ACEOF
12542 /* confdefs.h.  */
12543 _ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h.  */
12547 $ac_includes_default
12548 #include <$ac_header>
12549 _ACEOF
12550 rm -f conftest.$ac_objext
12551 if { (ac_try="$ac_compile"
12552 case "(($ac_try" in
12553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554   *) ac_try_echo=$ac_try;;
12555 esac
12556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12557 $as_echo "$ac_try_echo") >&5
12558   (eval "$ac_compile") 2>conftest.er1
12559   ac_status=$?
12560   grep -v '^ *+' conftest.er1 >conftest.err
12561   rm -f conftest.er1
12562   cat conftest.err >&5
12563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); } && {
12565          test -z "$ac_c_werror_flag" ||
12566          test ! -s conftest.err
12567        } && test -s conftest.$ac_objext; then
12568   ac_header_compiler=yes
12569 else
12570   $as_echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12572
12573         ac_header_compiler=no
12574 fi
12575
12576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12578 $as_echo "$ac_header_compiler" >&6; }
12579
12580 # Is the header present?
12581 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12582 $as_echo_n "checking $ac_header presence... " >&6; }
12583 cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589 #include <$ac_header>
12590 _ACEOF
12591 if { (ac_try="$ac_cpp conftest.$ac_ext"
12592 case "(($ac_try" in
12593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594   *) ac_try_echo=$ac_try;;
12595 esac
12596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12597 $as_echo "$ac_try_echo") >&5
12598   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12599   ac_status=$?
12600   grep -v '^ *+' conftest.er1 >conftest.err
12601   rm -f conftest.er1
12602   cat conftest.err >&5
12603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); } >/dev/null && {
12605          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12606          test ! -s conftest.err
12607        }; then
12608   ac_header_preproc=yes
12609 else
12610   $as_echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613   ac_header_preproc=no
12614 fi
12615
12616 rm -f conftest.err conftest.$ac_ext
12617 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12618 $as_echo "$ac_header_preproc" >&6; }
12619
12620 # So?  What about this header?
12621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12622   yes:no: )
12623     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12624 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12625     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12627     ac_header_preproc=yes
12628     ;;
12629   no:yes:* )
12630     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12631 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12632     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12633 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12634     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12635 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12636     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12637 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12638     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12639 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12640     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12641 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12642     ( cat <<\_ASBOX
12643 ## ---------------------------------------- ##
12644 ## Report this to pgsql-bugs@postgresql.org ##
12645 ## ---------------------------------------- ##
12646 _ASBOX
12647      ) | sed "s/^/$as_me: WARNING:     /" >&2
12648     ;;
12649 esac
12650 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12651 $as_echo_n "checking for $ac_header... " >&6; }
12652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12653   $as_echo_n "(cached) " >&6
12654 else
12655   eval "$as_ac_Header=\$ac_header_preproc"
12656 fi
12657 ac_res=`eval 'as_val=${'$as_ac_Header'}
12658                  $as_echo "$as_val"'`
12659                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12660 $as_echo "$ac_res" >&6; }
12661
12662 fi
12663 as_val=`eval 'as_val=${'$as_ac_Header'}
12664                  $as_echo "$as_val"'`
12665    if test "x$as_val" = x""yes; then
12666   cat >>confdefs.h <<_ACEOF
12667 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12668 _ACEOF
12669
12670 else
12671   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12672 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12673    { (exit 1); exit 1; }; }
12674 fi
12675
12676 done
12677
12678 fi
12679
12680 done
12681
12682 fi
12683
12684 if test "$with_krb5" = yes ; then
12685   if test "${ac_cv_header_krb5_h+set}" = set; then
12686   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12687 $as_echo_n "checking for krb5.h... " >&6; }
12688 if test "${ac_cv_header_krb5_h+set}" = set; then
12689   $as_echo_n "(cached) " >&6
12690 fi
12691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12692 $as_echo "$ac_cv_header_krb5_h" >&6; }
12693 else
12694   # Is the header compilable?
12695 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12696 $as_echo_n "checking krb5.h usability... " >&6; }
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703 $ac_includes_default
12704 #include <krb5.h>
12705 _ACEOF
12706 rm -f conftest.$ac_objext
12707 if { (ac_try="$ac_compile"
12708 case "(($ac_try" in
12709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710   *) ac_try_echo=$ac_try;;
12711 esac
12712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12713 $as_echo "$ac_try_echo") >&5
12714   (eval "$ac_compile") 2>conftest.er1
12715   ac_status=$?
12716   grep -v '^ *+' conftest.er1 >conftest.err
12717   rm -f conftest.er1
12718   cat conftest.err >&5
12719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } && {
12721          test -z "$ac_c_werror_flag" ||
12722          test ! -s conftest.err
12723        } && test -s conftest.$ac_objext; then
12724   ac_header_compiler=yes
12725 else
12726   $as_echo "$as_me: failed program was:" >&5
12727 sed 's/^/| /' conftest.$ac_ext >&5
12728
12729         ac_header_compiler=no
12730 fi
12731
12732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12734 $as_echo "$ac_header_compiler" >&6; }
12735
12736 # Is the header present?
12737 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12738 $as_echo_n "checking krb5.h presence... " >&6; }
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h.  */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h.  */
12745 #include <krb5.h>
12746 _ACEOF
12747 if { (ac_try="$ac_cpp conftest.$ac_ext"
12748 case "(($ac_try" in
12749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750   *) ac_try_echo=$ac_try;;
12751 esac
12752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12753 $as_echo "$ac_try_echo") >&5
12754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12755   ac_status=$?
12756   grep -v '^ *+' conftest.er1 >conftest.err
12757   rm -f conftest.er1
12758   cat conftest.err >&5
12759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); } >/dev/null && {
12761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12762          test ! -s conftest.err
12763        }; then
12764   ac_header_preproc=yes
12765 else
12766   $as_echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769   ac_header_preproc=no
12770 fi
12771
12772 rm -f conftest.err conftest.$ac_ext
12773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12774 $as_echo "$ac_header_preproc" >&6; }
12775
12776 # So?  What about this header?
12777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12778   yes:no: )
12779     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12780 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12781     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12782 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12783     ac_header_preproc=yes
12784     ;;
12785   no:yes:* )
12786     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12787 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12788     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12789 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12790     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12791 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12792     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12793 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12794     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12795 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12796     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12797 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12798     ( cat <<\_ASBOX
12799 ## ---------------------------------------- ##
12800 ## Report this to pgsql-bugs@postgresql.org ##
12801 ## ---------------------------------------- ##
12802 _ASBOX
12803      ) | sed "s/^/$as_me: WARNING:     /" >&2
12804     ;;
12805 esac
12806 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12807 $as_echo_n "checking for krb5.h... " >&6; }
12808 if test "${ac_cv_header_krb5_h+set}" = set; then
12809   $as_echo_n "(cached) " >&6
12810 else
12811   ac_cv_header_krb5_h=$ac_header_preproc
12812 fi
12813 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12814 $as_echo "$ac_cv_header_krb5_h" >&6; }
12815
12816 fi
12817 if test "x$ac_cv_header_krb5_h" = x""yes; then
12818   :
12819 else
12820   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12821 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12822    { (exit 1); exit 1; }; }
12823 fi
12824
12825
12826 fi
12827
12828 if test "$with_openssl" = yes ; then
12829   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12830   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12831 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12832 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12833   $as_echo_n "(cached) " >&6
12834 fi
12835 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12836 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12837 else
12838   # Is the header compilable?
12839 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12840 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12841 cat >conftest.$ac_ext <<_ACEOF
12842 /* confdefs.h.  */
12843 _ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h.  */
12847 $ac_includes_default
12848 #include <openssl/ssl.h>
12849 _ACEOF
12850 rm -f conftest.$ac_objext
12851 if { (ac_try="$ac_compile"
12852 case "(($ac_try" in
12853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854   *) ac_try_echo=$ac_try;;
12855 esac
12856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12857 $as_echo "$ac_try_echo") >&5
12858   (eval "$ac_compile") 2>conftest.er1
12859   ac_status=$?
12860   grep -v '^ *+' conftest.er1 >conftest.err
12861   rm -f conftest.er1
12862   cat conftest.err >&5
12863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); } && {
12865          test -z "$ac_c_werror_flag" ||
12866          test ! -s conftest.err
12867        } && test -s conftest.$ac_objext; then
12868   ac_header_compiler=yes
12869 else
12870   $as_echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12872
12873         ac_header_compiler=no
12874 fi
12875
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12878 $as_echo "$ac_header_compiler" >&6; }
12879
12880 # Is the header present?
12881 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12882 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h.  */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h.  */
12889 #include <openssl/ssl.h>
12890 _ACEOF
12891 if { (ac_try="$ac_cpp conftest.$ac_ext"
12892 case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12897 $as_echo "$ac_try_echo") >&5
12898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12899   ac_status=$?
12900   grep -v '^ *+' conftest.er1 >conftest.err
12901   rm -f conftest.er1
12902   cat conftest.err >&5
12903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } >/dev/null && {
12905          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12906          test ! -s conftest.err
12907        }; then
12908   ac_header_preproc=yes
12909 else
12910   $as_echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12912
12913   ac_header_preproc=no
12914 fi
12915
12916 rm -f conftest.err conftest.$ac_ext
12917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12918 $as_echo "$ac_header_preproc" >&6; }
12919
12920 # So?  What about this header?
12921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12922   yes:no: )
12923     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12924 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12925     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12926 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12927     ac_header_preproc=yes
12928     ;;
12929   no:yes:* )
12930     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12931 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12932     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12933 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12934     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12935 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12936     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12937 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12938     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12939 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12940     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12941 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12942     ( cat <<\_ASBOX
12943 ## ---------------------------------------- ##
12944 ## Report this to pgsql-bugs@postgresql.org ##
12945 ## ---------------------------------------- ##
12946 _ASBOX
12947      ) | sed "s/^/$as_me: WARNING:     /" >&2
12948     ;;
12949 esac
12950 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12951 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12952 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12953   $as_echo_n "(cached) " >&6
12954 else
12955   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12956 fi
12957 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12958 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12959
12960 fi
12961 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12962   :
12963 else
12964   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12965 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12966    { (exit 1); exit 1; }; }
12967 fi
12968
12969
12970   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12971   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12972 $as_echo_n "checking for openssl/err.h... " >&6; }
12973 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12974   $as_echo_n "(cached) " >&6
12975 fi
12976 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12977 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12978 else
12979   # Is the header compilable?
12980 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12981 $as_echo_n "checking openssl/err.h usability... " >&6; }
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h.  */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h.  */
12988 $ac_includes_default
12989 #include <openssl/err.h>
12990 _ACEOF
12991 rm -f conftest.$ac_objext
12992 if { (ac_try="$ac_compile"
12993 case "(($ac_try" in
12994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995   *) ac_try_echo=$ac_try;;
12996 esac
12997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12998 $as_echo "$ac_try_echo") >&5
12999   (eval "$ac_compile") 2>conftest.er1
13000   ac_status=$?
13001   grep -v '^ *+' conftest.er1 >conftest.err
13002   rm -f conftest.er1
13003   cat conftest.err >&5
13004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); } && {
13006          test -z "$ac_c_werror_flag" ||
13007          test ! -s conftest.err
13008        } && test -s conftest.$ac_objext; then
13009   ac_header_compiler=yes
13010 else
13011   $as_echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014         ac_header_compiler=no
13015 fi
13016
13017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13019 $as_echo "$ac_header_compiler" >&6; }
13020
13021 # Is the header present?
13022 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13023 $as_echo_n "checking openssl/err.h presence... " >&6; }
13024 cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h.  */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h.  */
13030 #include <openssl/err.h>
13031 _ACEOF
13032 if { (ac_try="$ac_cpp conftest.$ac_ext"
13033 case "(($ac_try" in
13034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035   *) ac_try_echo=$ac_try;;
13036 esac
13037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13038 $as_echo "$ac_try_echo") >&5
13039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13040   ac_status=$?
13041   grep -v '^ *+' conftest.er1 >conftest.err
13042   rm -f conftest.er1
13043   cat conftest.err >&5
13044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } >/dev/null && {
13046          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13047          test ! -s conftest.err
13048        }; then
13049   ac_header_preproc=yes
13050 else
13051   $as_echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054   ac_header_preproc=no
13055 fi
13056
13057 rm -f conftest.err conftest.$ac_ext
13058 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13059 $as_echo "$ac_header_preproc" >&6; }
13060
13061 # So?  What about this header?
13062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13063   yes:no: )
13064     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13065 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13066     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13067 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13068     ac_header_preproc=yes
13069     ;;
13070   no:yes:* )
13071     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13072 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13073     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
13074 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
13075     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13076 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13077     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
13078 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13079     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13080 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13081     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13082 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13083     ( cat <<\_ASBOX
13084 ## ---------------------------------------- ##
13085 ## Report this to pgsql-bugs@postgresql.org ##
13086 ## ---------------------------------------- ##
13087 _ASBOX
13088      ) | sed "s/^/$as_me: WARNING:     /" >&2
13089     ;;
13090 esac
13091 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13092 $as_echo_n "checking for openssl/err.h... " >&6; }
13093 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13094   $as_echo_n "(cached) " >&6
13095 else
13096   ac_cv_header_openssl_err_h=$ac_header_preproc
13097 fi
13098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13099 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13100
13101 fi
13102 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13103   :
13104 else
13105   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13106 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13107    { (exit 1); exit 1; }; }
13108 fi
13109
13110
13111 fi
13112
13113 if test "$with_pam" = yes ; then
13114
13115 for ac_header in security/pam_appl.h
13116 do
13117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13119   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13120 $as_echo_n "checking for $ac_header... " >&6; }
13121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13122   $as_echo_n "(cached) " >&6
13123 fi
13124 ac_res=`eval 'as_val=${'$as_ac_Header'}
13125                  $as_echo "$as_val"'`
13126                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13127 $as_echo "$ac_res" >&6; }
13128 else
13129   # Is the header compilable?
13130 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13131 $as_echo_n "checking $ac_header usability... " >&6; }
13132 cat >conftest.$ac_ext <<_ACEOF
13133 /* confdefs.h.  */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h.  */
13138 $ac_includes_default
13139 #include <$ac_header>
13140 _ACEOF
13141 rm -f conftest.$ac_objext
13142 if { (ac_try="$ac_compile"
13143 case "(($ac_try" in
13144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145   *) ac_try_echo=$ac_try;;
13146 esac
13147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13148 $as_echo "$ac_try_echo") >&5
13149   (eval "$ac_compile") 2>conftest.er1
13150   ac_status=$?
13151   grep -v '^ *+' conftest.er1 >conftest.err
13152   rm -f conftest.er1
13153   cat conftest.err >&5
13154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); } && {
13156          test -z "$ac_c_werror_flag" ||
13157          test ! -s conftest.err
13158        } && test -s conftest.$ac_objext; then
13159   ac_header_compiler=yes
13160 else
13161   $as_echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13163
13164         ac_header_compiler=no
13165 fi
13166
13167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13169 $as_echo "$ac_header_compiler" >&6; }
13170
13171 # Is the header present?
13172 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13173 $as_echo_n "checking $ac_header presence... " >&6; }
13174 cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h.  */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h.  */
13180 #include <$ac_header>
13181 _ACEOF
13182 if { (ac_try="$ac_cpp conftest.$ac_ext"
13183 case "(($ac_try" in
13184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185   *) ac_try_echo=$ac_try;;
13186 esac
13187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13188 $as_echo "$ac_try_echo") >&5
13189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } >/dev/null && {
13196          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13197          test ! -s conftest.err
13198        }; then
13199   ac_header_preproc=yes
13200 else
13201   $as_echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204   ac_header_preproc=no
13205 fi
13206
13207 rm -f conftest.err conftest.$ac_ext
13208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13209 $as_echo "$ac_header_preproc" >&6; }
13210
13211 # So?  What about this header?
13212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13213   yes:no: )
13214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13215 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13217 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13218     ac_header_preproc=yes
13219     ;;
13220   no:yes:* )
13221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13222 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13224 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13226 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13227     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13228 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13229     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13231     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13232 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13233     ( cat <<\_ASBOX
13234 ## ---------------------------------------- ##
13235 ## Report this to pgsql-bugs@postgresql.org ##
13236 ## ---------------------------------------- ##
13237 _ASBOX
13238      ) | sed "s/^/$as_me: WARNING:     /" >&2
13239     ;;
13240 esac
13241 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13242 $as_echo_n "checking for $ac_header... " >&6; }
13243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13244   $as_echo_n "(cached) " >&6
13245 else
13246   eval "$as_ac_Header=\$ac_header_preproc"
13247 fi
13248 ac_res=`eval 'as_val=${'$as_ac_Header'}
13249                  $as_echo "$as_val"'`
13250                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13251 $as_echo "$ac_res" >&6; }
13252
13253 fi
13254 as_val=`eval 'as_val=${'$as_ac_Header'}
13255                  $as_echo "$as_val"'`
13256    if test "x$as_val" = x""yes; then
13257   cat >>confdefs.h <<_ACEOF
13258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13259 _ACEOF
13260
13261 else
13262
13263 for ac_header in pam/pam_appl.h
13264 do
13265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13267   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13268 $as_echo_n "checking for $ac_header... " >&6; }
13269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13270   $as_echo_n "(cached) " >&6
13271 fi
13272 ac_res=`eval 'as_val=${'$as_ac_Header'}
13273                  $as_echo "$as_val"'`
13274                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13275 $as_echo "$ac_res" >&6; }
13276 else
13277   # Is the header compilable?
13278 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13279 $as_echo_n "checking $ac_header usability... " >&6; }
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286 $ac_includes_default
13287 #include <$ac_header>
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13296 $as_echo "$ac_try_echo") >&5
13297   (eval "$ac_compile") 2>conftest.er1
13298   ac_status=$?
13299   grep -v '^ *+' conftest.er1 >conftest.err
13300   rm -f conftest.er1
13301   cat conftest.err >&5
13302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303   (exit $ac_status); } && {
13304          test -z "$ac_c_werror_flag" ||
13305          test ! -s conftest.err
13306        } && test -s conftest.$ac_objext; then
13307   ac_header_compiler=yes
13308 else
13309   $as_echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312         ac_header_compiler=no
13313 fi
13314
13315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13317 $as_echo "$ac_header_compiler" >&6; }
13318
13319 # Is the header present?
13320 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13321 $as_echo_n "checking $ac_header presence... " >&6; }
13322 cat >conftest.$ac_ext <<_ACEOF
13323 /* confdefs.h.  */
13324 _ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h.  */
13328 #include <$ac_header>
13329 _ACEOF
13330 if { (ac_try="$ac_cpp conftest.$ac_ext"
13331 case "(($ac_try" in
13332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333   *) ac_try_echo=$ac_try;;
13334 esac
13335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13336 $as_echo "$ac_try_echo") >&5
13337   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13338   ac_status=$?
13339   grep -v '^ *+' conftest.er1 >conftest.err
13340   rm -f conftest.er1
13341   cat conftest.err >&5
13342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); } >/dev/null && {
13344          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13345          test ! -s conftest.err
13346        }; then
13347   ac_header_preproc=yes
13348 else
13349   $as_echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13351
13352   ac_header_preproc=no
13353 fi
13354
13355 rm -f conftest.err conftest.$ac_ext
13356 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13357 $as_echo "$ac_header_preproc" >&6; }
13358
13359 # So?  What about this header?
13360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13361   yes:no: )
13362     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13363 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13366     ac_header_preproc=yes
13367     ;;
13368   no:yes:* )
13369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13370 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13372 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13376 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13378 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13380 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13381     ( cat <<\_ASBOX
13382 ## ---------------------------------------- ##
13383 ## Report this to pgsql-bugs@postgresql.org ##
13384 ## ---------------------------------------- ##
13385 _ASBOX
13386      ) | sed "s/^/$as_me: WARNING:     /" >&2
13387     ;;
13388 esac
13389 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13390 $as_echo_n "checking for $ac_header... " >&6; }
13391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13392   $as_echo_n "(cached) " >&6
13393 else
13394   eval "$as_ac_Header=\$ac_header_preproc"
13395 fi
13396 ac_res=`eval 'as_val=${'$as_ac_Header'}
13397                  $as_echo "$as_val"'`
13398                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13399 $as_echo "$ac_res" >&6; }
13400
13401 fi
13402 as_val=`eval 'as_val=${'$as_ac_Header'}
13403                  $as_echo "$as_val"'`
13404    if test "x$as_val" = x""yes; then
13405   cat >>confdefs.h <<_ACEOF
13406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13407 _ACEOF
13408
13409 else
13410   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13411 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13412    { (exit 1); exit 1; }; }
13413 fi
13414
13415 done
13416
13417 fi
13418
13419 done
13420
13421 fi
13422
13423 if test "$with_libxml" = yes ; then
13424   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13425   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13426 $as_echo_n "checking for libxml/parser.h... " >&6; }
13427 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13428   $as_echo_n "(cached) " >&6
13429 fi
13430 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13431 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13432 else
13433   # Is the header compilable?
13434 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13435 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442 $ac_includes_default
13443 #include <libxml/parser.h>
13444 _ACEOF
13445 rm -f conftest.$ac_objext
13446 if { (ac_try="$ac_compile"
13447 case "(($ac_try" in
13448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449   *) ac_try_echo=$ac_try;;
13450 esac
13451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13452 $as_echo "$ac_try_echo") >&5
13453   (eval "$ac_compile") 2>conftest.er1
13454   ac_status=$?
13455   grep -v '^ *+' conftest.er1 >conftest.err
13456   rm -f conftest.er1
13457   cat conftest.err >&5
13458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); } && {
13460          test -z "$ac_c_werror_flag" ||
13461          test ! -s conftest.err
13462        } && test -s conftest.$ac_objext; then
13463   ac_header_compiler=yes
13464 else
13465   $as_echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13467
13468         ac_header_compiler=no
13469 fi
13470
13471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13472 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13473 $as_echo "$ac_header_compiler" >&6; }
13474
13475 # Is the header present?
13476 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13477 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13478 cat >conftest.$ac_ext <<_ACEOF
13479 /* confdefs.h.  */
13480 _ACEOF
13481 cat confdefs.h >>conftest.$ac_ext
13482 cat >>conftest.$ac_ext <<_ACEOF
13483 /* end confdefs.h.  */
13484 #include <libxml/parser.h>
13485 _ACEOF
13486 if { (ac_try="$ac_cpp conftest.$ac_ext"
13487 case "(($ac_try" in
13488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489   *) ac_try_echo=$ac_try;;
13490 esac
13491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13492 $as_echo "$ac_try_echo") >&5
13493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13494   ac_status=$?
13495   grep -v '^ *+' conftest.er1 >conftest.err
13496   rm -f conftest.er1
13497   cat conftest.err >&5
13498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } >/dev/null && {
13500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13501          test ! -s conftest.err
13502        }; then
13503   ac_header_preproc=yes
13504 else
13505   $as_echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508   ac_header_preproc=no
13509 fi
13510
13511 rm -f conftest.err conftest.$ac_ext
13512 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13513 $as_echo "$ac_header_preproc" >&6; }
13514
13515 # So?  What about this header?
13516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13517   yes:no: )
13518     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13519 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13520     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13521 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13522     ac_header_preproc=yes
13523     ;;
13524   no:yes:* )
13525     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13526 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13527     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13528 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13529     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13530 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13531     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13532 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13533     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13534 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13535     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13536 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13537     ( cat <<\_ASBOX
13538 ## ---------------------------------------- ##
13539 ## Report this to pgsql-bugs@postgresql.org ##
13540 ## ---------------------------------------- ##
13541 _ASBOX
13542      ) | sed "s/^/$as_me: WARNING:     /" >&2
13543     ;;
13544 esac
13545 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13546 $as_echo_n "checking for libxml/parser.h... " >&6; }
13547 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13548   $as_echo_n "(cached) " >&6
13549 else
13550   ac_cv_header_libxml_parser_h=$ac_header_preproc
13551 fi
13552 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13553 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13554
13555 fi
13556 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13557   :
13558 else
13559   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13560 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13561    { (exit 1); exit 1; }; }
13562 fi
13563
13564
13565 fi
13566
13567 if test "$with_libxslt" = yes ; then
13568   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13569   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13570 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13571 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13572   $as_echo_n "(cached) " >&6
13573 fi
13574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13575 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13576 else
13577   # Is the header compilable?
13578 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13579 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13580 cat >conftest.$ac_ext <<_ACEOF
13581 /* confdefs.h.  */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h.  */
13586 $ac_includes_default
13587 #include <libxslt/xslt.h>
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (ac_try="$ac_compile"
13591 case "(($ac_try" in
13592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593   *) ac_try_echo=$ac_try;;
13594 esac
13595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13596 $as_echo "$ac_try_echo") >&5
13597   (eval "$ac_compile") 2>conftest.er1
13598   ac_status=$?
13599   grep -v '^ *+' conftest.er1 >conftest.err
13600   rm -f conftest.er1
13601   cat conftest.err >&5
13602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); } && {
13604          test -z "$ac_c_werror_flag" ||
13605          test ! -s conftest.err
13606        } && test -s conftest.$ac_objext; then
13607   ac_header_compiler=yes
13608 else
13609   $as_echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13611
13612         ac_header_compiler=no
13613 fi
13614
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13617 $as_echo "$ac_header_compiler" >&6; }
13618
13619 # Is the header present?
13620 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13621 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13622 cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h.  */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h.  */
13628 #include <libxslt/xslt.h>
13629 _ACEOF
13630 if { (ac_try="$ac_cpp conftest.$ac_ext"
13631 case "(($ac_try" in
13632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13633   *) ac_try_echo=$ac_try;;
13634 esac
13635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13636 $as_echo "$ac_try_echo") >&5
13637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13638   ac_status=$?
13639   grep -v '^ *+' conftest.er1 >conftest.err
13640   rm -f conftest.er1
13641   cat conftest.err >&5
13642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); } >/dev/null && {
13644          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13645          test ! -s conftest.err
13646        }; then
13647   ac_header_preproc=yes
13648 else
13649   $as_echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13651
13652   ac_header_preproc=no
13653 fi
13654
13655 rm -f conftest.err conftest.$ac_ext
13656 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13657 $as_echo "$ac_header_preproc" >&6; }
13658
13659 # So?  What about this header?
13660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13661   yes:no: )
13662     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13663 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13664     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13665 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13666     ac_header_preproc=yes
13667     ;;
13668   no:yes:* )
13669     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13670 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13671     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13672 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13673     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13674 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13675     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13676 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13677     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13678 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13679     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13680 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13681     ( cat <<\_ASBOX
13682 ## ---------------------------------------- ##
13683 ## Report this to pgsql-bugs@postgresql.org ##
13684 ## ---------------------------------------- ##
13685 _ASBOX
13686      ) | sed "s/^/$as_me: WARNING:     /" >&2
13687     ;;
13688 esac
13689 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13690 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13691 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13692   $as_echo_n "(cached) " >&6
13693 else
13694   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13695 fi
13696 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13697 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13698
13699 fi
13700 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13701   :
13702 else
13703   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13704 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13705    { (exit 1); exit 1; }; }
13706 fi
13707
13708
13709 fi
13710
13711 if test "$with_ldap" = yes ; then
13712   if test "$PORTNAME" != "win32"; then
13713
13714 for ac_header in ldap.h
13715 do
13716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13718   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13719 $as_echo_n "checking for $ac_header... " >&6; }
13720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13721   $as_echo_n "(cached) " >&6
13722 fi
13723 ac_res=`eval 'as_val=${'$as_ac_Header'}
13724                  $as_echo "$as_val"'`
13725                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13726 $as_echo "$ac_res" >&6; }
13727 else
13728   # Is the header compilable?
13729 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13730 $as_echo_n "checking $ac_header usability... " >&6; }
13731 cat >conftest.$ac_ext <<_ACEOF
13732 /* confdefs.h.  */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h.  */
13737 $ac_includes_default
13738 #include <$ac_header>
13739 _ACEOF
13740 rm -f conftest.$ac_objext
13741 if { (ac_try="$ac_compile"
13742 case "(($ac_try" in
13743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744   *) ac_try_echo=$ac_try;;
13745 esac
13746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13747 $as_echo "$ac_try_echo") >&5
13748   (eval "$ac_compile") 2>conftest.er1
13749   ac_status=$?
13750   grep -v '^ *+' conftest.er1 >conftest.err
13751   rm -f conftest.er1
13752   cat conftest.err >&5
13753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } && {
13755          test -z "$ac_c_werror_flag" ||
13756          test ! -s conftest.err
13757        } && test -s conftest.$ac_objext; then
13758   ac_header_compiler=yes
13759 else
13760   $as_echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763         ac_header_compiler=no
13764 fi
13765
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13768 $as_echo "$ac_header_compiler" >&6; }
13769
13770 # Is the header present?
13771 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13772 $as_echo_n "checking $ac_header presence... " >&6; }
13773 cat >conftest.$ac_ext <<_ACEOF
13774 /* confdefs.h.  */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h.  */
13779 #include <$ac_header>
13780 _ACEOF
13781 if { (ac_try="$ac_cpp conftest.$ac_ext"
13782 case "(($ac_try" in
13783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784   *) ac_try_echo=$ac_try;;
13785 esac
13786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13787 $as_echo "$ac_try_echo") >&5
13788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13789   ac_status=$?
13790   grep -v '^ *+' conftest.er1 >conftest.err
13791   rm -f conftest.er1
13792   cat conftest.err >&5
13793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); } >/dev/null && {
13795          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13796          test ! -s conftest.err
13797        }; then
13798   ac_header_preproc=yes
13799 else
13800   $as_echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803   ac_header_preproc=no
13804 fi
13805
13806 rm -f conftest.err conftest.$ac_ext
13807 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13808 $as_echo "$ac_header_preproc" >&6; }
13809
13810 # So?  What about this header?
13811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13812   yes:no: )
13813     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13814 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13815     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13816 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13817     ac_header_preproc=yes
13818     ;;
13819   no:yes:* )
13820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13821 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13823 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13825 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13827 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13831 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13832     ( cat <<\_ASBOX
13833 ## ---------------------------------------- ##
13834 ## Report this to pgsql-bugs@postgresql.org ##
13835 ## ---------------------------------------- ##
13836 _ASBOX
13837      ) | sed "s/^/$as_me: WARNING:     /" >&2
13838     ;;
13839 esac
13840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13841 $as_echo_n "checking for $ac_header... " >&6; }
13842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13843   $as_echo_n "(cached) " >&6
13844 else
13845   eval "$as_ac_Header=\$ac_header_preproc"
13846 fi
13847 ac_res=`eval 'as_val=${'$as_ac_Header'}
13848                  $as_echo "$as_val"'`
13849                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13850 $as_echo "$ac_res" >&6; }
13851
13852 fi
13853 as_val=`eval 'as_val=${'$as_ac_Header'}
13854                  $as_echo "$as_val"'`
13855    if test "x$as_val" = x""yes; then
13856   cat >>confdefs.h <<_ACEOF
13857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13858 _ACEOF
13859
13860 else
13861   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13862 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13863    { (exit 1); exit 1; }; }
13864 fi
13865
13866 done
13867
13868   else
13869
13870 for ac_header in winldap.h
13871 do
13872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 $as_echo_n "checking for $ac_header... " >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876   $as_echo_n "(cached) " >&6
13877 else
13878   cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h.  */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h.  */
13884 $ac_includes_default
13885 #include <windows.h>
13886
13887
13888 #include <$ac_header>
13889 _ACEOF
13890 rm -f conftest.$ac_objext
13891 if { (ac_try="$ac_compile"
13892 case "(($ac_try" in
13893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894   *) ac_try_echo=$ac_try;;
13895 esac
13896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898   (eval "$ac_compile") 2>conftest.er1
13899   ac_status=$?
13900   grep -v '^ *+' conftest.er1 >conftest.err
13901   rm -f conftest.er1
13902   cat conftest.err >&5
13903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); } && {
13905          test -z "$ac_c_werror_flag" ||
13906          test ! -s conftest.err
13907        } && test -s conftest.$ac_objext; then
13908   eval "$as_ac_Header=yes"
13909 else
13910   $as_echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913         eval "$as_ac_Header=no"
13914 fi
13915
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 fi
13918 ac_res=`eval 'as_val=${'$as_ac_Header'}
13919                  $as_echo "$as_val"'`
13920                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13921 $as_echo "$ac_res" >&6; }
13922 as_val=`eval 'as_val=${'$as_ac_Header'}
13923                  $as_echo "$as_val"'`
13924    if test "x$as_val" = x""yes; then
13925   cat >>confdefs.h <<_ACEOF
13926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13927 _ACEOF
13928
13929 else
13930   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13931 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13932    { (exit 1); exit 1; }; }
13933 fi
13934
13935 done
13936
13937   fi
13938 fi
13939
13940 if test "$with_bonjour" = yes ; then
13941   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13942   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13943 $as_echo_n "checking for dns_sd.h... " >&6; }
13944 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13945   $as_echo_n "(cached) " >&6
13946 fi
13947 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13948 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13949 else
13950   # Is the header compilable?
13951 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13952 $as_echo_n "checking dns_sd.h usability... " >&6; }
13953 cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959 $ac_includes_default
13960 #include <dns_sd.h>
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (ac_try="$ac_compile"
13964 case "(($ac_try" in
13965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966   *) ac_try_echo=$ac_try;;
13967 esac
13968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13969 $as_echo "$ac_try_echo") >&5
13970   (eval "$ac_compile") 2>conftest.er1
13971   ac_status=$?
13972   grep -v '^ *+' conftest.er1 >conftest.err
13973   rm -f conftest.er1
13974   cat conftest.err >&5
13975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); } && {
13977          test -z "$ac_c_werror_flag" ||
13978          test ! -s conftest.err
13979        } && test -s conftest.$ac_objext; then
13980   ac_header_compiler=yes
13981 else
13982   $as_echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13984
13985         ac_header_compiler=no
13986 fi
13987
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13990 $as_echo "$ac_header_compiler" >&6; }
13991
13992 # Is the header present?
13993 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13994 $as_echo_n "checking dns_sd.h presence... " >&6; }
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001 #include <dns_sd.h>
14002 _ACEOF
14003 if { (ac_try="$ac_cpp conftest.$ac_ext"
14004 case "(($ac_try" in
14005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006   *) ac_try_echo=$ac_try;;
14007 esac
14008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14009 $as_echo "$ac_try_echo") >&5
14010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14011   ac_status=$?
14012   grep -v '^ *+' conftest.er1 >conftest.err
14013   rm -f conftest.er1
14014   cat conftest.err >&5
14015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); } >/dev/null && {
14017          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14018          test ! -s conftest.err
14019        }; then
14020   ac_header_preproc=yes
14021 else
14022   $as_echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14024
14025   ac_header_preproc=no
14026 fi
14027
14028 rm -f conftest.err conftest.$ac_ext
14029 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14030 $as_echo "$ac_header_preproc" >&6; }
14031
14032 # So?  What about this header?
14033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14034   yes:no: )
14035     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14036 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14037     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14038 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14039     ac_header_preproc=yes
14040     ;;
14041   no:yes:* )
14042     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14043 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14044     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
14045 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
14046     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14047 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14048     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
14049 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14050     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14051 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14052     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14053 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14054     ( cat <<\_ASBOX
14055 ## ---------------------------------------- ##
14056 ## Report this to pgsql-bugs@postgresql.org ##
14057 ## ---------------------------------------- ##
14058 _ASBOX
14059      ) | sed "s/^/$as_me: WARNING:     /" >&2
14060     ;;
14061 esac
14062 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14063 $as_echo_n "checking for dns_sd.h... " >&6; }
14064 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14065   $as_echo_n "(cached) " >&6
14066 else
14067   ac_cv_header_dns_sd_h=$ac_header_preproc
14068 fi
14069 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14070 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14071
14072 fi
14073 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14074   :
14075 else
14076   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14077 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14078    { (exit 1); exit 1; }; }
14079 fi
14080
14081
14082 fi
14083
14084 # for contrib/uuid-ossp
14085 if test "$with_ossp_uuid" = yes ; then
14086
14087 for ac_header in ossp/uuid.h
14088 do
14089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14091   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14092 $as_echo_n "checking for $ac_header... " >&6; }
14093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14094   $as_echo_n "(cached) " >&6
14095 fi
14096 ac_res=`eval 'as_val=${'$as_ac_Header'}
14097                  $as_echo "$as_val"'`
14098                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14099 $as_echo "$ac_res" >&6; }
14100 else
14101   # Is the header compilable?
14102 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14103 $as_echo_n "checking $ac_header usability... " >&6; }
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h.  */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h.  */
14110 $ac_includes_default
14111 #include <$ac_header>
14112 _ACEOF
14113 rm -f conftest.$ac_objext
14114 if { (ac_try="$ac_compile"
14115 case "(($ac_try" in
14116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117   *) ac_try_echo=$ac_try;;
14118 esac
14119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14120 $as_echo "$ac_try_echo") >&5
14121   (eval "$ac_compile") 2>conftest.er1
14122   ac_status=$?
14123   grep -v '^ *+' conftest.er1 >conftest.err
14124   rm -f conftest.er1
14125   cat conftest.err >&5
14126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127   (exit $ac_status); } && {
14128          test -z "$ac_c_werror_flag" ||
14129          test ! -s conftest.err
14130        } && test -s conftest.$ac_objext; then
14131   ac_header_compiler=yes
14132 else
14133   $as_echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14135
14136         ac_header_compiler=no
14137 fi
14138
14139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14140 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14141 $as_echo "$ac_header_compiler" >&6; }
14142
14143 # Is the header present?
14144 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14145 $as_echo_n "checking $ac_header presence... " >&6; }
14146 cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h.  */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h.  */
14152 #include <$ac_header>
14153 _ACEOF
14154 if { (ac_try="$ac_cpp conftest.$ac_ext"
14155 case "(($ac_try" in
14156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157   *) ac_try_echo=$ac_try;;
14158 esac
14159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14160 $as_echo "$ac_try_echo") >&5
14161   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14162   ac_status=$?
14163   grep -v '^ *+' conftest.er1 >conftest.err
14164   rm -f conftest.er1
14165   cat conftest.err >&5
14166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); } >/dev/null && {
14168          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14169          test ! -s conftest.err
14170        }; then
14171   ac_header_preproc=yes
14172 else
14173   $as_echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176   ac_header_preproc=no
14177 fi
14178
14179 rm -f conftest.err conftest.$ac_ext
14180 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14181 $as_echo "$ac_header_preproc" >&6; }
14182
14183 # So?  What about this header?
14184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14185   yes:no: )
14186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14187 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14190     ac_header_preproc=yes
14191     ;;
14192   no:yes:* )
14193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14194 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14196 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14198 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14199     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14200 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14201     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14203     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14204 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14205     ( cat <<\_ASBOX
14206 ## ---------------------------------------- ##
14207 ## Report this to pgsql-bugs@postgresql.org ##
14208 ## ---------------------------------------- ##
14209 _ASBOX
14210      ) | sed "s/^/$as_me: WARNING:     /" >&2
14211     ;;
14212 esac
14213 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14214 $as_echo_n "checking for $ac_header... " >&6; }
14215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14216   $as_echo_n "(cached) " >&6
14217 else
14218   eval "$as_ac_Header=\$ac_header_preproc"
14219 fi
14220 ac_res=`eval 'as_val=${'$as_ac_Header'}
14221                  $as_echo "$as_val"'`
14222                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14223 $as_echo "$ac_res" >&6; }
14224
14225 fi
14226 as_val=`eval 'as_val=${'$as_ac_Header'}
14227                  $as_echo "$as_val"'`
14228    if test "x$as_val" = x""yes; then
14229   cat >>confdefs.h <<_ACEOF
14230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14231 _ACEOF
14232
14233 else
14234
14235
14236 for ac_header in uuid.h
14237 do
14238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14240   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14241 $as_echo_n "checking for $ac_header... " >&6; }
14242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14243   $as_echo_n "(cached) " >&6
14244 fi
14245 ac_res=`eval 'as_val=${'$as_ac_Header'}
14246                  $as_echo "$as_val"'`
14247                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14248 $as_echo "$ac_res" >&6; }
14249 else
14250   # Is the header compilable?
14251 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14252 $as_echo_n "checking $ac_header usability... " >&6; }
14253 cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h.  */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h.  */
14259 $ac_includes_default
14260 #include <$ac_header>
14261 _ACEOF
14262 rm -f conftest.$ac_objext
14263 if { (ac_try="$ac_compile"
14264 case "(($ac_try" in
14265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266   *) ac_try_echo=$ac_try;;
14267 esac
14268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14269 $as_echo "$ac_try_echo") >&5
14270   (eval "$ac_compile") 2>conftest.er1
14271   ac_status=$?
14272   grep -v '^ *+' conftest.er1 >conftest.err
14273   rm -f conftest.er1
14274   cat conftest.err >&5
14275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } && {
14277          test -z "$ac_c_werror_flag" ||
14278          test ! -s conftest.err
14279        } && test -s conftest.$ac_objext; then
14280   ac_header_compiler=yes
14281 else
14282   $as_echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14284
14285         ac_header_compiler=no
14286 fi
14287
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14290 $as_echo "$ac_header_compiler" >&6; }
14291
14292 # Is the header present?
14293 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14294 $as_echo_n "checking $ac_header presence... " >&6; }
14295 cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h.  */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h.  */
14301 #include <$ac_header>
14302 _ACEOF
14303 if { (ac_try="$ac_cpp conftest.$ac_ext"
14304 case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14309 $as_echo "$ac_try_echo") >&5
14310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14311   ac_status=$?
14312   grep -v '^ *+' conftest.er1 >conftest.err
14313   rm -f conftest.er1
14314   cat conftest.err >&5
14315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); } >/dev/null && {
14317          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14318          test ! -s conftest.err
14319        }; then
14320   ac_header_preproc=yes
14321 else
14322   $as_echo "$as_me: failed program was:" >&5
14323 sed 's/^/| /' conftest.$ac_ext >&5
14324
14325   ac_header_preproc=no
14326 fi
14327
14328 rm -f conftest.err conftest.$ac_ext
14329 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14330 $as_echo "$ac_header_preproc" >&6; }
14331
14332 # So?  What about this header?
14333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14334   yes:no: )
14335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14336 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14339     ac_header_preproc=yes
14340     ;;
14341   no:yes:* )
14342     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14343 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14344     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14345 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14346     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14347 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14348     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14349 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14350     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14352     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14353 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14354     ( cat <<\_ASBOX
14355 ## ---------------------------------------- ##
14356 ## Report this to pgsql-bugs@postgresql.org ##
14357 ## ---------------------------------------- ##
14358 _ASBOX
14359      ) | sed "s/^/$as_me: WARNING:     /" >&2
14360     ;;
14361 esac
14362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14363 $as_echo_n "checking for $ac_header... " >&6; }
14364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14365   $as_echo_n "(cached) " >&6
14366 else
14367   eval "$as_ac_Header=\$ac_header_preproc"
14368 fi
14369 ac_res=`eval 'as_val=${'$as_ac_Header'}
14370                  $as_echo "$as_val"'`
14371                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14372 $as_echo "$ac_res" >&6; }
14373
14374 fi
14375 as_val=`eval 'as_val=${'$as_ac_Header'}
14376                  $as_echo "$as_val"'`
14377    if test "x$as_val" = x""yes; then
14378   cat >>confdefs.h <<_ACEOF
14379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14380 _ACEOF
14381
14382 else
14383   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14384 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14385    { (exit 1); exit 1; }; }
14386 fi
14387
14388 done
14389
14390 fi
14391
14392 done
14393
14394 fi
14395
14396 if test "$PORTNAME" = "win32" ; then
14397
14398 for ac_header in crtdefs.h
14399 do
14400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14402   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14403 $as_echo_n "checking for $ac_header... " >&6; }
14404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405   $as_echo_n "(cached) " >&6
14406 fi
14407 ac_res=`eval 'as_val=${'$as_ac_Header'}
14408                  $as_echo "$as_val"'`
14409                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14410 $as_echo "$ac_res" >&6; }
14411 else
14412   # Is the header compilable?
14413 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14414 $as_echo_n "checking $ac_header usability... " >&6; }
14415 cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h.  */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h.  */
14421 $ac_includes_default
14422 #include <$ac_header>
14423 _ACEOF
14424 rm -f conftest.$ac_objext
14425 if { (ac_try="$ac_compile"
14426 case "(($ac_try" in
14427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428   *) ac_try_echo=$ac_try;;
14429 esac
14430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14431 $as_echo "$ac_try_echo") >&5
14432   (eval "$ac_compile") 2>conftest.er1
14433   ac_status=$?
14434   grep -v '^ *+' conftest.er1 >conftest.err
14435   rm -f conftest.er1
14436   cat conftest.err >&5
14437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); } && {
14439          test -z "$ac_c_werror_flag" ||
14440          test ! -s conftest.err
14441        } && test -s conftest.$ac_objext; then
14442   ac_header_compiler=yes
14443 else
14444   $as_echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447         ac_header_compiler=no
14448 fi
14449
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14452 $as_echo "$ac_header_compiler" >&6; }
14453
14454 # Is the header present?
14455 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14456 $as_echo_n "checking $ac_header presence... " >&6; }
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 #include <$ac_header>
14464 _ACEOF
14465 if { (ac_try="$ac_cpp conftest.$ac_ext"
14466 case "(($ac_try" in
14467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468   *) ac_try_echo=$ac_try;;
14469 esac
14470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14471 $as_echo "$ac_try_echo") >&5
14472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14473   ac_status=$?
14474   grep -v '^ *+' conftest.er1 >conftest.err
14475   rm -f conftest.er1
14476   cat conftest.err >&5
14477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); } >/dev/null && {
14479          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14480          test ! -s conftest.err
14481        }; then
14482   ac_header_preproc=yes
14483 else
14484   $as_echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14486
14487   ac_header_preproc=no
14488 fi
14489
14490 rm -f conftest.err conftest.$ac_ext
14491 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14492 $as_echo "$ac_header_preproc" >&6; }
14493
14494 # So?  What about this header?
14495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14496   yes:no: )
14497     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14498 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14499     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14500 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14501     ac_header_preproc=yes
14502     ;;
14503   no:yes:* )
14504     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14505 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14506     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14507 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14508     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14509 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14510     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14511 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14512     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14513 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14514     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14515 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14516     ( cat <<\_ASBOX
14517 ## ---------------------------------------- ##
14518 ## Report this to pgsql-bugs@postgresql.org ##
14519 ## ---------------------------------------- ##
14520 _ASBOX
14521      ) | sed "s/^/$as_me: WARNING:     /" >&2
14522     ;;
14523 esac
14524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14525 $as_echo_n "checking for $ac_header... " >&6; }
14526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14527   $as_echo_n "(cached) " >&6
14528 else
14529   eval "$as_ac_Header=\$ac_header_preproc"
14530 fi
14531 ac_res=`eval 'as_val=${'$as_ac_Header'}
14532                  $as_echo "$as_val"'`
14533                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14534 $as_echo "$ac_res" >&6; }
14535
14536 fi
14537 as_val=`eval 'as_val=${'$as_ac_Header'}
14538                  $as_echo "$as_val"'`
14539    if test "x$as_val" = x""yes; then
14540   cat >>confdefs.h <<_ACEOF
14541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14542 _ACEOF
14543
14544 fi
14545
14546 done
14547
14548 fi
14549
14550 ##
14551 ## Types, structures, compiler characteristics
14552 ##
14553
14554
14555  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14556 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14557 if test "${ac_cv_c_bigendian+set}" = set; then
14558   $as_echo_n "(cached) " >&6
14559 else
14560   ac_cv_c_bigendian=unknown
14561     # See if we're dealing with a universal compiler.
14562     cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 #ifndef __APPLE_CC__
14569                not a universal capable compiler
14570              #endif
14571              typedef int dummy;
14572
14573 _ACEOF
14574 rm -f conftest.$ac_objext
14575 if { (ac_try="$ac_compile"
14576 case "(($ac_try" in
14577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578   *) ac_try_echo=$ac_try;;
14579 esac
14580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14581 $as_echo "$ac_try_echo") >&5
14582   (eval "$ac_compile") 2>conftest.er1
14583   ac_status=$?
14584   grep -v '^ *+' conftest.er1 >conftest.err
14585   rm -f conftest.er1
14586   cat conftest.err >&5
14587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); } && {
14589          test -z "$ac_c_werror_flag" ||
14590          test ! -s conftest.err
14591        } && test -s conftest.$ac_objext; then
14592
14593         # Check for potential -arch flags.  It is not universal unless
14594         # there are some -arch flags.  Note that *ppc* also matches
14595         # ppc64.  This check is also rather less than ideal.
14596         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14597           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14598         esac
14599 else
14600   $as_echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14602
14603
14604 fi
14605
14606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14607     if test $ac_cv_c_bigendian = unknown; then
14608       # See if sys/param.h defines the BYTE_ORDER macro.
14609       cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615 #include <sys/types.h>
14616              #include <sys/param.h>
14617
14618 int
14619 main ()
14620 {
14621 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14622                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14623                      && LITTLE_ENDIAN)
14624               bogus endian macros
14625              #endif
14626
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 rm -f conftest.$ac_objext
14632 if { (ac_try="$ac_compile"
14633 case "(($ac_try" in
14634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635   *) ac_try_echo=$ac_try;;
14636 esac
14637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14638 $as_echo "$ac_try_echo") >&5
14639   (eval "$ac_compile") 2>conftest.er1
14640   ac_status=$?
14641   grep -v '^ *+' conftest.er1 >conftest.err
14642   rm -f conftest.er1
14643   cat conftest.err >&5
14644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); } && {
14646          test -z "$ac_c_werror_flag" ||
14647          test ! -s conftest.err
14648        } && test -s conftest.$ac_objext; then
14649   # It does; now see whether it defined to BIG_ENDIAN or not.
14650          cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h.  */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h.  */
14656 #include <sys/types.h>
14657                 #include <sys/param.h>
14658
14659 int
14660 main ()
14661 {
14662 #if BYTE_ORDER != BIG_ENDIAN
14663                  not big endian
14664                 #endif
14665
14666   ;
14667   return 0;
14668 }
14669 _ACEOF
14670 rm -f conftest.$ac_objext
14671 if { (ac_try="$ac_compile"
14672 case "(($ac_try" in
14673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674   *) ac_try_echo=$ac_try;;
14675 esac
14676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14677 $as_echo "$ac_try_echo") >&5
14678   (eval "$ac_compile") 2>conftest.er1
14679   ac_status=$?
14680   grep -v '^ *+' conftest.er1 >conftest.err
14681   rm -f conftest.er1
14682   cat conftest.err >&5
14683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); } && {
14685          test -z "$ac_c_werror_flag" ||
14686          test ! -s conftest.err
14687        } && test -s conftest.$ac_objext; then
14688   ac_cv_c_bigendian=yes
14689 else
14690   $as_echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14692
14693         ac_cv_c_bigendian=no
14694 fi
14695
14696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14697 else
14698   $as_echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701
14702 fi
14703
14704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14705     fi
14706     if test $ac_cv_c_bigendian = unknown; then
14707       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14708       cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h.  */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h.  */
14714 #include <limits.h>
14715
14716 int
14717 main ()
14718 {
14719 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14720               bogus endian macros
14721              #endif
14722
14723   ;
14724   return 0;
14725 }
14726 _ACEOF
14727 rm -f conftest.$ac_objext
14728 if { (ac_try="$ac_compile"
14729 case "(($ac_try" in
14730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731   *) ac_try_echo=$ac_try;;
14732 esac
14733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14734 $as_echo "$ac_try_echo") >&5
14735   (eval "$ac_compile") 2>conftest.er1
14736   ac_status=$?
14737   grep -v '^ *+' conftest.er1 >conftest.err
14738   rm -f conftest.er1
14739   cat conftest.err >&5
14740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } && {
14742          test -z "$ac_c_werror_flag" ||
14743          test ! -s conftest.err
14744        } && test -s conftest.$ac_objext; then
14745   # It does; now see whether it defined to _BIG_ENDIAN or not.
14746          cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h.  */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h.  */
14752 #include <limits.h>
14753
14754 int
14755 main ()
14756 {
14757 #ifndef _BIG_ENDIAN
14758                  not big endian
14759                 #endif
14760
14761   ;
14762   return 0;
14763 }
14764 _ACEOF
14765 rm -f conftest.$ac_objext
14766 if { (ac_try="$ac_compile"
14767 case "(($ac_try" in
14768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769   *) ac_try_echo=$ac_try;;
14770 esac
14771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14772 $as_echo "$ac_try_echo") >&5
14773   (eval "$ac_compile") 2>conftest.er1
14774   ac_status=$?
14775   grep -v '^ *+' conftest.er1 >conftest.err
14776   rm -f conftest.er1
14777   cat conftest.err >&5
14778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); } && {
14780          test -z "$ac_c_werror_flag" ||
14781          test ! -s conftest.err
14782        } && test -s conftest.$ac_objext; then
14783   ac_cv_c_bigendian=yes
14784 else
14785   $as_echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14787
14788         ac_cv_c_bigendian=no
14789 fi
14790
14791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792 else
14793   $as_echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14795
14796
14797 fi
14798
14799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800     fi
14801     if test $ac_cv_c_bigendian = unknown; then
14802       # Compile a test program.
14803       if test "$cross_compiling" = yes; then
14804   # Try to guess by grepping values from an object file.
14805          cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h.  */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h.  */
14811 short int ascii_mm[] =
14812                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14813                 short int ascii_ii[] =
14814                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14815                 int use_ascii (int i) {
14816                   return ascii_mm[i] + ascii_ii[i];
14817                 }
14818                 short int ebcdic_ii[] =
14819                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14820                 short int ebcdic_mm[] =
14821                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14822                 int use_ebcdic (int i) {
14823                   return ebcdic_mm[i] + ebcdic_ii[i];
14824                 }
14825                 extern int foo;
14826
14827 int
14828 main ()
14829 {
14830 return use_ascii (foo) == use_ebcdic (foo);
14831   ;
14832   return 0;
14833 }
14834 _ACEOF
14835 rm -f conftest.$ac_objext
14836 if { (ac_try="$ac_compile"
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_compile") 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); } && {
14850          test -z "$ac_c_werror_flag" ||
14851          test ! -s conftest.err
14852        } && test -s conftest.$ac_objext; then
14853   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14854               ac_cv_c_bigendian=yes
14855             fi
14856             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14857               if test "$ac_cv_c_bigendian" = unknown; then
14858                 ac_cv_c_bigendian=no
14859               else
14860                 # finding both strings is unlikely to happen, but who knows?
14861                 ac_cv_c_bigendian=unknown
14862               fi
14863             fi
14864 else
14865   $as_echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14867
14868
14869 fi
14870
14871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14872 else
14873   cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h.  */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h.  */
14879 $ac_includes_default
14880 int
14881 main ()
14882 {
14883
14884              /* Are we little or big endian?  From Harbison&Steele.  */
14885              union
14886              {
14887                long int l;
14888                char c[sizeof (long int)];
14889              } u;
14890              u.l = 1;
14891              return u.c[sizeof (long int) - 1] == 1;
14892
14893   ;
14894   return 0;
14895 }
14896 _ACEOF
14897 rm -f conftest$ac_exeext
14898 if { (ac_try="$ac_link"
14899 case "(($ac_try" in
14900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901   *) ac_try_echo=$ac_try;;
14902 esac
14903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14904 $as_echo "$ac_try_echo") >&5
14905   (eval "$ac_link") 2>&5
14906   ac_status=$?
14907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14909   { (case "(($ac_try" in
14910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911   *) ac_try_echo=$ac_try;;
14912 esac
14913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14914 $as_echo "$ac_try_echo") >&5
14915   (eval "$ac_try") 2>&5
14916   ac_status=$?
14917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); }; }; then
14919   ac_cv_c_bigendian=no
14920 else
14921   $as_echo "$as_me: program exited with status $ac_status" >&5
14922 $as_echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925 ( exit $ac_status )
14926 ac_cv_c_bigendian=yes
14927 fi
14928 rm -rf conftest.dSYM
14929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14930 fi
14931
14932
14933     fi
14934 fi
14935 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14936 $as_echo "$ac_cv_c_bigendian" >&6; }
14937  case $ac_cv_c_bigendian in #(
14938    yes)
14939      cat >>confdefs.h <<\_ACEOF
14940 #define WORDS_BIGENDIAN 1
14941 _ACEOF
14942 ;; #(
14943    no)
14944       ;; #(
14945    universal)
14946
14947 cat >>confdefs.h <<\_ACEOF
14948 #define AC_APPLE_UNIVERSAL_BUILD 1
14949 _ACEOF
14950
14951      ;; #(
14952    *)
14953      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14954  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14955 $as_echo "$as_me: error: unknown endianness
14956  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14957    { (exit 1); exit 1; }; } ;;
14958  esac
14959
14960 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14961 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14962 if test "${ac_cv_c_const+set}" = set; then
14963   $as_echo_n "(cached) " >&6
14964 else
14965   cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971
14972 int
14973 main ()
14974 {
14975 /* FIXME: Include the comments suggested by Paul. */
14976 #ifndef __cplusplus
14977   /* Ultrix mips cc rejects this.  */
14978   typedef int charset[2];
14979   const charset cs;
14980   /* SunOS 4.1.1 cc rejects this.  */
14981   char const *const *pcpcc;
14982   char **ppc;
14983   /* NEC SVR4.0.2 mips cc rejects this.  */
14984   struct point {int x, y;};
14985   static struct point const zero = {0,0};
14986   /* AIX XL C 1.02.0.0 rejects this.
14987      It does not let you subtract one const X* pointer from another in
14988      an arm of an if-expression whose if-part is not a constant
14989      expression */
14990   const char *g = "string";
14991   pcpcc = &g + (g ? g-g : 0);
14992   /* HPUX 7.0 cc rejects these. */
14993   ++pcpcc;
14994   ppc = (char**) pcpcc;
14995   pcpcc = (char const *const *) ppc;
14996   { /* SCO 3.2v4 cc rejects this.  */
14997     char *t;
14998     char const *s = 0 ? (char *) 0 : (char const *) 0;
14999
15000     *t++ = 0;
15001     if (s) return 0;
15002   }
15003   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15004     int x[] = {25, 17};
15005     const int *foo = &x[0];
15006     ++foo;
15007   }
15008   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15009     typedef const int *iptr;
15010     iptr p = 0;
15011     ++p;
15012   }
15013   { /* AIX XL C 1.02.0.0 rejects this saying
15014        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15015     struct s { int j; const int *ap[3]; };
15016     struct s *b; b->j = 5;
15017   }
15018   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15019     const int foo = 10;
15020     if (!foo) return 0;
15021   }
15022   return !cs[0] && !zero.x;
15023 #endif
15024
15025   ;
15026   return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext
15030 if { (ac_try="$ac_compile"
15031 case "(($ac_try" in
15032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033   *) ac_try_echo=$ac_try;;
15034 esac
15035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15036 $as_echo "$ac_try_echo") >&5
15037   (eval "$ac_compile") 2>conftest.er1
15038   ac_status=$?
15039   grep -v '^ *+' conftest.er1 >conftest.err
15040   rm -f conftest.er1
15041   cat conftest.err >&5
15042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); } && {
15044          test -z "$ac_c_werror_flag" ||
15045          test ! -s conftest.err
15046        } && test -s conftest.$ac_objext; then
15047   ac_cv_c_const=yes
15048 else
15049   $as_echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052         ac_cv_c_const=no
15053 fi
15054
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 fi
15057 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15058 $as_echo "$ac_cv_c_const" >&6; }
15059 if test $ac_cv_c_const = no; then
15060
15061 cat >>confdefs.h <<\_ACEOF
15062 #define const /**/
15063 _ACEOF
15064
15065 fi
15066
15067 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15068 $as_echo_n "checking for inline... " >&6; }
15069 if test "${ac_cv_c_inline+set}" = set; then
15070   $as_echo_n "(cached) " >&6
15071 else
15072   ac_cv_c_inline=no
15073 for ac_kw in inline __inline__ __inline; do
15074   cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080 #ifndef __cplusplus
15081 typedef int foo_t;
15082 static $ac_kw foo_t static_foo () {return 0; }
15083 $ac_kw foo_t foo () {return 0; }
15084 #endif
15085
15086 _ACEOF
15087 rm -f conftest.$ac_objext
15088 if { (ac_try="$ac_compile"
15089 case "(($ac_try" in
15090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091   *) ac_try_echo=$ac_try;;
15092 esac
15093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15094 $as_echo "$ac_try_echo") >&5
15095   (eval "$ac_compile") 2>conftest.er1
15096   ac_status=$?
15097   grep -v '^ *+' conftest.er1 >conftest.err
15098   rm -f conftest.er1
15099   cat conftest.err >&5
15100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } && {
15102          test -z "$ac_c_werror_flag" ||
15103          test ! -s conftest.err
15104        } && test -s conftest.$ac_objext; then
15105   ac_cv_c_inline=$ac_kw
15106 else
15107   $as_echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110
15111 fi
15112
15113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114   test "$ac_cv_c_inline" != no && break
15115 done
15116
15117 fi
15118 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15119 $as_echo "$ac_cv_c_inline" >&6; }
15120
15121
15122 case $ac_cv_c_inline in
15123   inline | yes) ;;
15124   *)
15125     case $ac_cv_c_inline in
15126       no) ac_val=;;
15127       *) ac_val=$ac_cv_c_inline;;
15128     esac
15129     cat >>confdefs.h <<_ACEOF
15130 #ifndef __cplusplus
15131 #define inline $ac_val
15132 #endif
15133 _ACEOF
15134     ;;
15135 esac
15136
15137 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15138 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15139 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15140   $as_echo_n "(cached) " >&6
15141 else
15142   pgac_cv_c_inline_quietly=no
15143   if test "$ac_cv_c_inline" != no; then
15144     pgac_c_inline_save_werror=$ac_c_werror_flag
15145     ac_c_werror_flag=yes
15146     cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h.  */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h.  */
15152 static inline int fun () {return 0;}
15153 int
15154 main ()
15155 {
15156
15157   ;
15158   return 0;
15159 }
15160 _ACEOF
15161 rm -f conftest.$ac_objext conftest$ac_exeext
15162 if { (ac_try="$ac_link"
15163 case "(($ac_try" in
15164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165   *) ac_try_echo=$ac_try;;
15166 esac
15167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15168 $as_echo "$ac_try_echo") >&5
15169   (eval "$ac_link") 2>conftest.er1
15170   ac_status=$?
15171   grep -v '^ *+' conftest.er1 >conftest.err
15172   rm -f conftest.er1
15173   cat conftest.err >&5
15174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); } && {
15176          test -z "$ac_c_werror_flag" ||
15177          test ! -s conftest.err
15178        } && test -s conftest$ac_exeext && {
15179          test "$cross_compiling" = yes ||
15180          $as_test_x conftest$ac_exeext
15181        }; then
15182   pgac_cv_c_inline_quietly=yes
15183 else
15184   $as_echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15186
15187
15188 fi
15189
15190 rm -rf conftest.dSYM
15191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15192       conftest$ac_exeext conftest.$ac_ext
15193     ac_c_werror_flag=$pgac_c_inline_save_werror
15194   fi
15195 fi
15196 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15197 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15198 if test "$pgac_cv_c_inline_quietly" != no; then
15199
15200 cat >>confdefs.h <<_ACEOF
15201 #define PG_USE_INLINE 1
15202 _ACEOF
15203
15204 fi
15205
15206 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15207 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15208 if test "${ac_cv_c_stringize+set}" = set; then
15209   $as_echo_n "(cached) " >&6
15210 else
15211   cat >conftest.$ac_ext <<_ACEOF
15212 /* confdefs.h.  */
15213 _ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h.  */
15217 #define x(y) #y
15218
15219 char *s = x(teststring);
15220 _ACEOF
15221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15222   $EGREP "#teststring" >/dev/null 2>&1; then
15223   ac_cv_c_stringize=no
15224 else
15225   ac_cv_c_stringize=yes
15226 fi
15227 rm -f conftest*
15228
15229 fi
15230 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15231 $as_echo "$ac_cv_c_stringize" >&6; }
15232 if test $ac_cv_c_stringize = yes; then
15233
15234 cat >>confdefs.h <<\_ACEOF
15235 #define HAVE_STRINGIZE 1
15236 _ACEOF
15237
15238 fi
15239
15240
15241   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15242 $as_echo_n "checking for flexible array members... " >&6; }
15243 if test "${ac_cv_c_flexmember+set}" = set; then
15244   $as_echo_n "(cached) " >&6
15245 else
15246   cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h.  */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h.  */
15252 #include <stdlib.h>
15253             #include <stdio.h>
15254             #include <stddef.h>
15255             struct s { int n; double d[]; };
15256 int
15257 main ()
15258 {
15259 int m = getchar ();
15260             struct s *p = malloc (offsetof (struct s, d)
15261                                   + m * sizeof (double));
15262             p->d[0] = 0.0;
15263             return p->d != (double *) NULL;
15264   ;
15265   return 0;
15266 }
15267 _ACEOF
15268 rm -f conftest.$ac_objext
15269 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15277   ac_status=$?
15278   grep -v '^ *+' conftest.er1 >conftest.err
15279   rm -f conftest.er1
15280   cat conftest.err >&5
15281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); } && {
15283          test -z "$ac_c_werror_flag" ||
15284          test ! -s conftest.err
15285        } && test -s conftest.$ac_objext; then
15286   ac_cv_c_flexmember=yes
15287 else
15288   $as_echo "$as_me: failed program was:" >&5
15289 sed 's/^/| /' conftest.$ac_ext >&5
15290
15291         ac_cv_c_flexmember=no
15292 fi
15293
15294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15295 fi
15296 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15297 $as_echo "$ac_cv_c_flexmember" >&6; }
15298   if test $ac_cv_c_flexmember = yes; then
15299
15300 cat >>confdefs.h <<\_ACEOF
15301 #define FLEXIBLE_ARRAY_MEMBER /**/
15302 _ACEOF
15303
15304   else
15305     cat >>confdefs.h <<\_ACEOF
15306 #define FLEXIBLE_ARRAY_MEMBER 1
15307 _ACEOF
15308
15309   fi
15310
15311 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15312 $as_echo_n "checking for signed types... " >&6; }
15313 if test "${pgac_cv_c_signed+set}" = set; then
15314   $as_echo_n "(cached) " >&6
15315 else
15316   cat >conftest.$ac_ext <<_ACEOF
15317 /* confdefs.h.  */
15318 _ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h.  */
15322
15323 int
15324 main ()
15325 {
15326 signed char c; signed short s; signed int i;
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest.$ac_objext
15332 if { (ac_try="$ac_compile"
15333 case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15338 $as_echo "$ac_try_echo") >&5
15339   (eval "$ac_compile") 2>conftest.er1
15340   ac_status=$?
15341   grep -v '^ *+' conftest.er1 >conftest.err
15342   rm -f conftest.er1
15343   cat conftest.err >&5
15344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345   (exit $ac_status); } && {
15346          test -z "$ac_c_werror_flag" ||
15347          test ! -s conftest.err
15348        } && test -s conftest.$ac_objext; then
15349   pgac_cv_c_signed=yes
15350 else
15351   $as_echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354         pgac_cv_c_signed=no
15355 fi
15356
15357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358 fi
15359 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15360 $as_echo "$pgac_cv_c_signed" >&6; }
15361 if test x"$pgac_cv_c_signed" = xno ; then
15362
15363 cat >>confdefs.h <<\_ACEOF
15364 #define signed /**/
15365 _ACEOF
15366
15367 fi
15368 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15369 $as_echo_n "checking for working volatile... " >&6; }
15370 if test "${ac_cv_c_volatile+set}" = set; then
15371   $as_echo_n "(cached) " >&6
15372 else
15373   cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379
15380 int
15381 main ()
15382 {
15383
15384 volatile int x;
15385 int * volatile y = (int *) 0;
15386 return !x && !y;
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext
15392 if { (ac_try="$ac_compile"
15393 case "(($ac_try" in
15394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395   *) ac_try_echo=$ac_try;;
15396 esac
15397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15398 $as_echo "$ac_try_echo") >&5
15399   (eval "$ac_compile") 2>conftest.er1
15400   ac_status=$?
15401   grep -v '^ *+' conftest.er1 >conftest.err
15402   rm -f conftest.er1
15403   cat conftest.err >&5
15404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); } && {
15406          test -z "$ac_c_werror_flag" ||
15407          test ! -s conftest.err
15408        } && test -s conftest.$ac_objext; then
15409   ac_cv_c_volatile=yes
15410 else
15411   $as_echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414         ac_cv_c_volatile=no
15415 fi
15416
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15418 fi
15419 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15420 $as_echo "$ac_cv_c_volatile" >&6; }
15421 if test $ac_cv_c_volatile = no; then
15422
15423 cat >>confdefs.h <<\_ACEOF
15424 #define volatile /**/
15425 _ACEOF
15426
15427 fi
15428
15429 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15430 $as_echo_n "checking for __func__... " >&6; }
15431 if test "${pgac_cv_funcname_func_support+set}" = set; then
15432   $as_echo_n "(cached) " >&6
15433 else
15434   cat >conftest.$ac_ext <<_ACEOF
15435 /* confdefs.h.  */
15436 _ACEOF
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h.  */
15440 #include <stdio.h>
15441 int
15442 main ()
15443 {
15444 printf("%s\n", __func__);
15445   ;
15446   return 0;
15447 }
15448 _ACEOF
15449 rm -f conftest.$ac_objext
15450 if { (ac_try="$ac_compile"
15451 case "(($ac_try" in
15452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453   *) ac_try_echo=$ac_try;;
15454 esac
15455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15456 $as_echo "$ac_try_echo") >&5
15457   (eval "$ac_compile") 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } && {
15464          test -z "$ac_c_werror_flag" ||
15465          test ! -s conftest.err
15466        } && test -s conftest.$ac_objext; then
15467   pgac_cv_funcname_func_support=yes
15468 else
15469   $as_echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15471
15472         pgac_cv_funcname_func_support=no
15473 fi
15474
15475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 fi
15477 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15478 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15479 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15480
15481 cat >>confdefs.h <<\_ACEOF
15482 #define HAVE_FUNCNAME__FUNC 1
15483 _ACEOF
15484
15485 else
15486 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15487 $as_echo_n "checking for __FUNCTION__... " >&6; }
15488 if test "${pgac_cv_funcname_function_support+set}" = set; then
15489   $as_echo_n "(cached) " >&6
15490 else
15491   cat >conftest.$ac_ext <<_ACEOF
15492 /* confdefs.h.  */
15493 _ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h.  */
15497 #include <stdio.h>
15498 int
15499 main ()
15500 {
15501 printf("%s\n", __FUNCTION__);
15502   ;
15503   return 0;
15504 }
15505 _ACEOF
15506 rm -f conftest.$ac_objext
15507 if { (ac_try="$ac_compile"
15508 case "(($ac_try" in
15509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510   *) ac_try_echo=$ac_try;;
15511 esac
15512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15513 $as_echo "$ac_try_echo") >&5
15514   (eval "$ac_compile") 2>conftest.er1
15515   ac_status=$?
15516   grep -v '^ *+' conftest.er1 >conftest.err
15517   rm -f conftest.er1
15518   cat conftest.err >&5
15519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); } && {
15521          test -z "$ac_c_werror_flag" ||
15522          test ! -s conftest.err
15523        } && test -s conftest.$ac_objext; then
15524   pgac_cv_funcname_function_support=yes
15525 else
15526   $as_echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529         pgac_cv_funcname_function_support=no
15530 fi
15531
15532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15533 fi
15534 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15535 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15536 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15537
15538 cat >>confdefs.h <<\_ACEOF
15539 #define HAVE_FUNCNAME__FUNCTION 1
15540 _ACEOF
15541
15542 fi
15543 fi
15544 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15545 $as_echo_n "checking for _Static_assert... " >&6; }
15546 if test "${pgac_cv__static_assert+set}" = set; then
15547   $as_echo_n "(cached) " >&6
15548 else
15549   cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h.  */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h.  */
15555
15556 int
15557 main ()
15558 {
15559 ({ _Static_assert(1, "foo"); })
15560   ;
15561   return 0;
15562 }
15563 _ACEOF
15564 rm -f conftest.$ac_objext conftest$ac_exeext
15565 if { (ac_try="$ac_link"
15566 case "(($ac_try" in
15567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568   *) ac_try_echo=$ac_try;;
15569 esac
15570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15571 $as_echo "$ac_try_echo") >&5
15572   (eval "$ac_link") 2>conftest.er1
15573   ac_status=$?
15574   grep -v '^ *+' conftest.er1 >conftest.err
15575   rm -f conftest.er1
15576   cat conftest.err >&5
15577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); } && {
15579          test -z "$ac_c_werror_flag" ||
15580          test ! -s conftest.err
15581        } && test -s conftest$ac_exeext && {
15582          test "$cross_compiling" = yes ||
15583          $as_test_x conftest$ac_exeext
15584        }; then
15585   pgac_cv__static_assert=yes
15586 else
15587   $as_echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15589
15590         pgac_cv__static_assert=no
15591 fi
15592
15593 rm -rf conftest.dSYM
15594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15595       conftest$ac_exeext conftest.$ac_ext
15596 fi
15597 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15598 $as_echo "$pgac_cv__static_assert" >&6; }
15599 if test x"$pgac_cv__static_assert" = xyes ; then
15600
15601 cat >>confdefs.h <<\_ACEOF
15602 #define HAVE__STATIC_ASSERT 1
15603 _ACEOF
15604
15605 fi
15606 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15607 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15608 if test "${pgac_cv__types_compatible+set}" = set; then
15609   $as_echo_n "(cached) " >&6
15610 else
15611   cat >conftest.$ac_ext <<_ACEOF
15612 /* confdefs.h.  */
15613 _ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h.  */
15617
15618 int
15619 main ()
15620 {
15621  int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15622   ;
15623   return 0;
15624 }
15625 _ACEOF
15626 rm -f conftest.$ac_objext
15627 if { (ac_try="$ac_compile"
15628 case "(($ac_try" in
15629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630   *) ac_try_echo=$ac_try;;
15631 esac
15632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15633 $as_echo "$ac_try_echo") >&5
15634   (eval "$ac_compile") 2>conftest.er1
15635   ac_status=$?
15636   grep -v '^ *+' conftest.er1 >conftest.err
15637   rm -f conftest.er1
15638   cat conftest.err >&5
15639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); } && {
15641          test -z "$ac_c_werror_flag" ||
15642          test ! -s conftest.err
15643        } && test -s conftest.$ac_objext; then
15644   pgac_cv__types_compatible=yes
15645 else
15646   $as_echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649         pgac_cv__types_compatible=no
15650 fi
15651
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 fi
15654 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
15655 $as_echo "$pgac_cv__types_compatible" >&6; }
15656 if test x"$pgac_cv__types_compatible" = xyes ; then
15657
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
15660 _ACEOF
15661
15662 fi
15663 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15664 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15665 if test "${ac_cv_struct_tm+set}" = set; then
15666   $as_echo_n "(cached) " >&6
15667 else
15668   cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h.  */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h.  */
15674 #include <sys/types.h>
15675 #include <time.h>
15676
15677 int
15678 main ()
15679 {
15680 struct tm tm;
15681                                      int *p = &tm.tm_sec;
15682                                      return !p;
15683   ;
15684   return 0;
15685 }
15686 _ACEOF
15687 rm -f conftest.$ac_objext
15688 if { (ac_try="$ac_compile"
15689 case "(($ac_try" in
15690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691   *) ac_try_echo=$ac_try;;
15692 esac
15693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15694 $as_echo "$ac_try_echo") >&5
15695   (eval "$ac_compile") 2>conftest.er1
15696   ac_status=$?
15697   grep -v '^ *+' conftest.er1 >conftest.err
15698   rm -f conftest.er1
15699   cat conftest.err >&5
15700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701   (exit $ac_status); } && {
15702          test -z "$ac_c_werror_flag" ||
15703          test ! -s conftest.err
15704        } && test -s conftest.$ac_objext; then
15705   ac_cv_struct_tm=time.h
15706 else
15707   $as_echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710         ac_cv_struct_tm=sys/time.h
15711 fi
15712
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 fi
15715 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15716 $as_echo "$ac_cv_struct_tm" >&6; }
15717 if test $ac_cv_struct_tm = sys/time.h; then
15718
15719 cat >>confdefs.h <<\_ACEOF
15720 #define TM_IN_SYS_TIME 1
15721 _ACEOF
15722
15723 fi
15724
15725 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15726 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15727 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15728   $as_echo_n "(cached) " >&6
15729 else
15730   cat >conftest.$ac_ext <<_ACEOF
15731 /* confdefs.h.  */
15732 _ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h.  */
15736 #include <sys/types.h>
15737 #include <$ac_cv_struct_tm>
15738
15739
15740 int
15741 main ()
15742 {
15743 static struct tm ac_aggr;
15744 if (ac_aggr.tm_zone)
15745 return 0;
15746   ;
15747   return 0;
15748 }
15749 _ACEOF
15750 rm -f conftest.$ac_objext
15751 if { (ac_try="$ac_compile"
15752 case "(($ac_try" in
15753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754   *) ac_try_echo=$ac_try;;
15755 esac
15756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15757 $as_echo "$ac_try_echo") >&5
15758   (eval "$ac_compile") 2>conftest.er1
15759   ac_status=$?
15760   grep -v '^ *+' conftest.er1 >conftest.err
15761   rm -f conftest.er1
15762   cat conftest.err >&5
15763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); } && {
15765          test -z "$ac_c_werror_flag" ||
15766          test ! -s conftest.err
15767        } && test -s conftest.$ac_objext; then
15768   ac_cv_member_struct_tm_tm_zone=yes
15769 else
15770   $as_echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15772
15773         cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h.  */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h.  */
15779 #include <sys/types.h>
15780 #include <$ac_cv_struct_tm>
15781
15782
15783 int
15784 main ()
15785 {
15786 static struct tm ac_aggr;
15787 if (sizeof ac_aggr.tm_zone)
15788 return 0;
15789   ;
15790   return 0;
15791 }
15792 _ACEOF
15793 rm -f conftest.$ac_objext
15794 if { (ac_try="$ac_compile"
15795 case "(($ac_try" in
15796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797   *) ac_try_echo=$ac_try;;
15798 esac
15799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15800 $as_echo "$ac_try_echo") >&5
15801   (eval "$ac_compile") 2>conftest.er1
15802   ac_status=$?
15803   grep -v '^ *+' conftest.er1 >conftest.err
15804   rm -f conftest.er1
15805   cat conftest.err >&5
15806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); } && {
15808          test -z "$ac_c_werror_flag" ||
15809          test ! -s conftest.err
15810        } && test -s conftest.$ac_objext; then
15811   ac_cv_member_struct_tm_tm_zone=yes
15812 else
15813   $as_echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816         ac_cv_member_struct_tm_tm_zone=no
15817 fi
15818
15819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15820 fi
15821
15822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15823 fi
15824 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15825 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15826 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15827
15828 cat >>confdefs.h <<_ACEOF
15829 #define HAVE_STRUCT_TM_TM_ZONE 1
15830 _ACEOF
15831
15832
15833 fi
15834
15835 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15836
15837 cat >>confdefs.h <<\_ACEOF
15838 #define HAVE_TM_ZONE 1
15839 _ACEOF
15840
15841 fi
15842 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15843 $as_echo_n "checking for tzname... " >&6; }
15844 if test "${ac_cv_var_tzname+set}" = set; then
15845   $as_echo_n "(cached) " >&6
15846 else
15847   cat >conftest.$ac_ext <<_ACEOF
15848 /* confdefs.h.  */
15849 _ACEOF
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h.  */
15853 #include <time.h>
15854 #ifndef tzname /* For SGI.  */
15855 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15856 #endif
15857
15858 int
15859 main ()
15860 {
15861 atoi(*tzname);
15862   ;
15863   return 0;
15864 }
15865 _ACEOF
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (ac_try="$ac_link"
15868 case "(($ac_try" in
15869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870   *) ac_try_echo=$ac_try;;
15871 esac
15872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15873 $as_echo "$ac_try_echo") >&5
15874   (eval "$ac_link") 2>conftest.er1
15875   ac_status=$?
15876   grep -v '^ *+' conftest.er1 >conftest.err
15877   rm -f conftest.er1
15878   cat conftest.err >&5
15879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880   (exit $ac_status); } && {
15881          test -z "$ac_c_werror_flag" ||
15882          test ! -s conftest.err
15883        } && test -s conftest$ac_exeext && {
15884          test "$cross_compiling" = yes ||
15885          $as_test_x conftest$ac_exeext
15886        }; then
15887   ac_cv_var_tzname=yes
15888 else
15889   $as_echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15891
15892         ac_cv_var_tzname=no
15893 fi
15894
15895 rm -rf conftest.dSYM
15896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15897       conftest$ac_exeext conftest.$ac_ext
15898 fi
15899 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15900 $as_echo "$ac_cv_var_tzname" >&6; }
15901 if test $ac_cv_var_tzname = yes; then
15902
15903 cat >>confdefs.h <<\_ACEOF
15904 #define HAVE_TZNAME 1
15905 _ACEOF
15906
15907 fi
15908
15909 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15910 $as_echo_n "checking for union semun... " >&6; }
15911 if test "${ac_cv_type_union_semun+set}" = set; then
15912   $as_echo_n "(cached) " >&6
15913 else
15914   ac_cv_type_union_semun=no
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h.  */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h.  */
15921 #include <sys/types.h>
15922 #include <sys/ipc.h>
15923 #include <sys/sem.h>
15924
15925 int
15926 main ()
15927 {
15928 if (sizeof (union semun))
15929        return 0;
15930   ;
15931   return 0;
15932 }
15933 _ACEOF
15934 rm -f conftest.$ac_objext
15935 if { (ac_try="$ac_compile"
15936 case "(($ac_try" in
15937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938   *) ac_try_echo=$ac_try;;
15939 esac
15940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15941 $as_echo "$ac_try_echo") >&5
15942   (eval "$ac_compile") 2>conftest.er1
15943   ac_status=$?
15944   grep -v '^ *+' conftest.er1 >conftest.err
15945   rm -f conftest.er1
15946   cat conftest.err >&5
15947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948   (exit $ac_status); } && {
15949          test -z "$ac_c_werror_flag" ||
15950          test ! -s conftest.err
15951        } && test -s conftest.$ac_objext; then
15952   cat >conftest.$ac_ext <<_ACEOF
15953 /* confdefs.h.  */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h.  */
15958 #include <sys/types.h>
15959 #include <sys/ipc.h>
15960 #include <sys/sem.h>
15961
15962 int
15963 main ()
15964 {
15965 if (sizeof ((union semun)))
15966           return 0;
15967   ;
15968   return 0;
15969 }
15970 _ACEOF
15971 rm -f conftest.$ac_objext
15972 if { (ac_try="$ac_compile"
15973 case "(($ac_try" in
15974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975   *) ac_try_echo=$ac_try;;
15976 esac
15977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15978 $as_echo "$ac_try_echo") >&5
15979   (eval "$ac_compile") 2>conftest.er1
15980   ac_status=$?
15981   grep -v '^ *+' conftest.er1 >conftest.err
15982   rm -f conftest.er1
15983   cat conftest.err >&5
15984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985   (exit $ac_status); } && {
15986          test -z "$ac_c_werror_flag" ||
15987          test ! -s conftest.err
15988        } && test -s conftest.$ac_objext; then
15989   :
15990 else
15991   $as_echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15993
15994         ac_cv_type_union_semun=yes
15995 fi
15996
15997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15998 else
15999   $as_echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16001
16002
16003 fi
16004
16005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 fi
16007 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16008 $as_echo "$ac_cv_type_union_semun" >&6; }
16009 if test "x$ac_cv_type_union_semun" = x""yes; then
16010
16011 cat >>confdefs.h <<_ACEOF
16012 #define HAVE_UNION_SEMUN 1
16013 _ACEOF
16014
16015
16016 fi
16017
16018 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16019 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16020 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16021   $as_echo_n "(cached) " >&6
16022 else
16023   ac_cv_type_struct_sockaddr_un=no
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h.  */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h.  */
16030 #include <sys/types.h>
16031 #ifdef HAVE_SYS_UN_H
16032 #include <sys/un.h>
16033 #endif
16034
16035
16036 int
16037 main ()
16038 {
16039 if (sizeof (struct sockaddr_un))
16040        return 0;
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16052 $as_echo "$ac_try_echo") >&5
16053   (eval "$ac_compile") 2>conftest.er1
16054   ac_status=$?
16055   grep -v '^ *+' conftest.er1 >conftest.err
16056   rm -f conftest.er1
16057   cat conftest.err >&5
16058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } && {
16060          test -z "$ac_c_werror_flag" ||
16061          test ! -s conftest.err
16062        } && test -s conftest.$ac_objext; then
16063   cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h.  */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h.  */
16069 #include <sys/types.h>
16070 #ifdef HAVE_SYS_UN_H
16071 #include <sys/un.h>
16072 #endif
16073
16074
16075 int
16076 main ()
16077 {
16078 if (sizeof ((struct sockaddr_un)))
16079           return 0;
16080   ;
16081   return 0;
16082 }
16083 _ACEOF
16084 rm -f conftest.$ac_objext
16085 if { (ac_try="$ac_compile"
16086 case "(($ac_try" in
16087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088   *) ac_try_echo=$ac_try;;
16089 esac
16090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16091 $as_echo "$ac_try_echo") >&5
16092   (eval "$ac_compile") 2>conftest.er1
16093   ac_status=$?
16094   grep -v '^ *+' conftest.er1 >conftest.err
16095   rm -f conftest.er1
16096   cat conftest.err >&5
16097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); } && {
16099          test -z "$ac_c_werror_flag" ||
16100          test ! -s conftest.err
16101        } && test -s conftest.$ac_objext; then
16102   :
16103 else
16104   $as_echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107         ac_cv_type_struct_sockaddr_un=yes
16108 fi
16109
16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16111 else
16112   $as_echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.$ac_ext >&5
16114
16115
16116 fi
16117
16118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119 fi
16120 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16121 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16122 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16123
16124 cat >>confdefs.h <<\_ACEOF
16125 #define HAVE_UNIX_SOCKETS 1
16126 _ACEOF
16127
16128 fi
16129
16130 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16131 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16132 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16133   $as_echo_n "(cached) " >&6
16134 else
16135   ac_cv_type_struct_sockaddr_storage=no
16136 cat >conftest.$ac_ext <<_ACEOF
16137 /* confdefs.h.  */
16138 _ACEOF
16139 cat confdefs.h >>conftest.$ac_ext
16140 cat >>conftest.$ac_ext <<_ACEOF
16141 /* end confdefs.h.  */
16142 #include <sys/types.h>
16143 #ifdef HAVE_SYS_SOCKET_H
16144 #include <sys/socket.h>
16145 #endif
16146
16147
16148 int
16149 main ()
16150 {
16151 if (sizeof (struct sockaddr_storage))
16152        return 0;
16153   ;
16154   return 0;
16155 }
16156 _ACEOF
16157 rm -f conftest.$ac_objext
16158 if { (ac_try="$ac_compile"
16159 case "(($ac_try" in
16160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161   *) ac_try_echo=$ac_try;;
16162 esac
16163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16164 $as_echo "$ac_try_echo") >&5
16165   (eval "$ac_compile") 2>conftest.er1
16166   ac_status=$?
16167   grep -v '^ *+' conftest.er1 >conftest.err
16168   rm -f conftest.er1
16169   cat conftest.err >&5
16170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); } && {
16172          test -z "$ac_c_werror_flag" ||
16173          test ! -s conftest.err
16174        } && test -s conftest.$ac_objext; then
16175   cat >conftest.$ac_ext <<_ACEOF
16176 /* confdefs.h.  */
16177 _ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h.  */
16181 #include <sys/types.h>
16182 #ifdef HAVE_SYS_SOCKET_H
16183 #include <sys/socket.h>
16184 #endif
16185
16186
16187 int
16188 main ()
16189 {
16190 if (sizeof ((struct sockaddr_storage)))
16191           return 0;
16192   ;
16193   return 0;
16194 }
16195 _ACEOF
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200   *) ac_try_echo=$ac_try;;
16201 esac
16202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16203 $as_echo "$ac_try_echo") >&5
16204   (eval "$ac_compile") 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } && {
16211          test -z "$ac_c_werror_flag" ||
16212          test ! -s conftest.err
16213        } && test -s conftest.$ac_objext; then
16214   :
16215 else
16216   $as_echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219         ac_cv_type_struct_sockaddr_storage=yes
16220 fi
16221
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223 else
16224   $as_echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227
16228 fi
16229
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 fi
16232 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16233 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16234 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16235
16236 cat >>confdefs.h <<_ACEOF
16237 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16238 _ACEOF
16239
16240
16241 fi
16242
16243 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16244 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16245 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16246   $as_echo_n "(cached) " >&6
16247 else
16248   cat >conftest.$ac_ext <<_ACEOF
16249 /* confdefs.h.  */
16250 _ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h.  */
16254 #include <sys/types.h>
16255 #ifdef HAVE_SYS_SOCKET_H
16256 #include <sys/socket.h>
16257 #endif
16258
16259
16260 int
16261 main ()
16262 {
16263 static struct sockaddr_storage ac_aggr;
16264 if (ac_aggr.ss_family)
16265 return 0;
16266   ;
16267   return 0;
16268 }
16269 _ACEOF
16270 rm -f conftest.$ac_objext
16271 if { (ac_try="$ac_compile"
16272 case "(($ac_try" in
16273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274   *) ac_try_echo=$ac_try;;
16275 esac
16276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16277 $as_echo "$ac_try_echo") >&5
16278   (eval "$ac_compile") 2>conftest.er1
16279   ac_status=$?
16280   grep -v '^ *+' conftest.er1 >conftest.err
16281   rm -f conftest.er1
16282   cat conftest.err >&5
16283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); } && {
16285          test -z "$ac_c_werror_flag" ||
16286          test ! -s conftest.err
16287        } && test -s conftest.$ac_objext; then
16288   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16289 else
16290   $as_echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293         cat >conftest.$ac_ext <<_ACEOF
16294 /* confdefs.h.  */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h.  */
16299 #include <sys/types.h>
16300 #ifdef HAVE_SYS_SOCKET_H
16301 #include <sys/socket.h>
16302 #endif
16303
16304
16305 int
16306 main ()
16307 {
16308 static struct sockaddr_storage ac_aggr;
16309 if (sizeof ac_aggr.ss_family)
16310 return 0;
16311   ;
16312   return 0;
16313 }
16314 _ACEOF
16315 rm -f conftest.$ac_objext
16316 if { (ac_try="$ac_compile"
16317 case "(($ac_try" in
16318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16319   *) ac_try_echo=$ac_try;;
16320 esac
16321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16322 $as_echo "$ac_try_echo") >&5
16323   (eval "$ac_compile") 2>conftest.er1
16324   ac_status=$?
16325   grep -v '^ *+' conftest.er1 >conftest.err
16326   rm -f conftest.er1
16327   cat conftest.err >&5
16328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); } && {
16330          test -z "$ac_c_werror_flag" ||
16331          test ! -s conftest.err
16332        } && test -s conftest.$ac_objext; then
16333   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16334 else
16335   $as_echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16337
16338         ac_cv_member_struct_sockaddr_storage_ss_family=no
16339 fi
16340
16341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16342 fi
16343
16344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345 fi
16346 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16347 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16348 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16349
16350 cat >>confdefs.h <<_ACEOF
16351 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16352 _ACEOF
16353
16354
16355 fi
16356 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16357 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16358 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16359   $as_echo_n "(cached) " >&6
16360 else
16361   cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h.  */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h.  */
16367 #include <sys/types.h>
16368 #ifdef HAVE_SYS_SOCKET_H
16369 #include <sys/socket.h>
16370 #endif
16371
16372
16373 int
16374 main ()
16375 {
16376 static struct sockaddr_storage ac_aggr;
16377 if (ac_aggr.__ss_family)
16378 return 0;
16379   ;
16380   return 0;
16381 }
16382 _ACEOF
16383 rm -f conftest.$ac_objext
16384 if { (ac_try="$ac_compile"
16385 case "(($ac_try" in
16386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387   *) ac_try_echo=$ac_try;;
16388 esac
16389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16390 $as_echo "$ac_try_echo") >&5
16391   (eval "$ac_compile") 2>conftest.er1
16392   ac_status=$?
16393   grep -v '^ *+' conftest.er1 >conftest.err
16394   rm -f conftest.er1
16395   cat conftest.err >&5
16396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); } && {
16398          test -z "$ac_c_werror_flag" ||
16399          test ! -s conftest.err
16400        } && test -s conftest.$ac_objext; then
16401   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16402 else
16403   $as_echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406         cat >conftest.$ac_ext <<_ACEOF
16407 /* confdefs.h.  */
16408 _ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h.  */
16412 #include <sys/types.h>
16413 #ifdef HAVE_SYS_SOCKET_H
16414 #include <sys/socket.h>
16415 #endif
16416
16417
16418 int
16419 main ()
16420 {
16421 static struct sockaddr_storage ac_aggr;
16422 if (sizeof ac_aggr.__ss_family)
16423 return 0;
16424   ;
16425   return 0;
16426 }
16427 _ACEOF
16428 rm -f conftest.$ac_objext
16429 if { (ac_try="$ac_compile"
16430 case "(($ac_try" in
16431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432   *) ac_try_echo=$ac_try;;
16433 esac
16434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16435 $as_echo "$ac_try_echo") >&5
16436   (eval "$ac_compile") 2>conftest.er1
16437   ac_status=$?
16438   grep -v '^ *+' conftest.er1 >conftest.err
16439   rm -f conftest.er1
16440   cat conftest.err >&5
16441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); } && {
16443          test -z "$ac_c_werror_flag" ||
16444          test ! -s conftest.err
16445        } && test -s conftest.$ac_objext; then
16446   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16447 else
16448   $as_echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451         ac_cv_member_struct_sockaddr_storage___ss_family=no
16452 fi
16453
16454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16455 fi
16456
16457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16458 fi
16459 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16460 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16461 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16462
16463 cat >>confdefs.h <<_ACEOF
16464 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16465 _ACEOF
16466
16467
16468 fi
16469 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16470 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16471 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16472   $as_echo_n "(cached) " >&6
16473 else
16474   cat >conftest.$ac_ext <<_ACEOF
16475 /* confdefs.h.  */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h.  */
16480 #include <sys/types.h>
16481 #ifdef HAVE_SYS_SOCKET_H
16482 #include <sys/socket.h>
16483 #endif
16484
16485
16486 int
16487 main ()
16488 {
16489 static struct sockaddr_storage ac_aggr;
16490 if (ac_aggr.ss_len)
16491 return 0;
16492   ;
16493   return 0;
16494 }
16495 _ACEOF
16496 rm -f conftest.$ac_objext
16497 if { (ac_try="$ac_compile"
16498 case "(($ac_try" in
16499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500   *) ac_try_echo=$ac_try;;
16501 esac
16502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16503 $as_echo "$ac_try_echo") >&5
16504   (eval "$ac_compile") 2>conftest.er1
16505   ac_status=$?
16506   grep -v '^ *+' conftest.er1 >conftest.err
16507   rm -f conftest.er1
16508   cat conftest.err >&5
16509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } && {
16511          test -z "$ac_c_werror_flag" ||
16512          test ! -s conftest.err
16513        } && test -s conftest.$ac_objext; then
16514   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16515 else
16516   $as_echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16518
16519         cat >conftest.$ac_ext <<_ACEOF
16520 /* confdefs.h.  */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h.  */
16525 #include <sys/types.h>
16526 #ifdef HAVE_SYS_SOCKET_H
16527 #include <sys/socket.h>
16528 #endif
16529
16530
16531 int
16532 main ()
16533 {
16534 static struct sockaddr_storage ac_aggr;
16535 if (sizeof ac_aggr.ss_len)
16536 return 0;
16537   ;
16538   return 0;
16539 }
16540 _ACEOF
16541 rm -f conftest.$ac_objext
16542 if { (ac_try="$ac_compile"
16543 case "(($ac_try" in
16544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16545   *) ac_try_echo=$ac_try;;
16546 esac
16547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16548 $as_echo "$ac_try_echo") >&5
16549   (eval "$ac_compile") 2>conftest.er1
16550   ac_status=$?
16551   grep -v '^ *+' conftest.er1 >conftest.err
16552   rm -f conftest.er1
16553   cat conftest.err >&5
16554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); } && {
16556          test -z "$ac_c_werror_flag" ||
16557          test ! -s conftest.err
16558        } && test -s conftest.$ac_objext; then
16559   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16560 else
16561   $as_echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564         ac_cv_member_struct_sockaddr_storage_ss_len=no
16565 fi
16566
16567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16568 fi
16569
16570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16571 fi
16572 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16573 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16574 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16575
16576 cat >>confdefs.h <<_ACEOF
16577 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16578 _ACEOF
16579
16580
16581 fi
16582 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16583 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16584 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16585   $as_echo_n "(cached) " >&6
16586 else
16587   cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h.  */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h.  */
16593 #include <sys/types.h>
16594 #ifdef HAVE_SYS_SOCKET_H
16595 #include <sys/socket.h>
16596 #endif
16597
16598
16599 int
16600 main ()
16601 {
16602 static struct sockaddr_storage ac_aggr;
16603 if (ac_aggr.__ss_len)
16604 return 0;
16605   ;
16606   return 0;
16607 }
16608 _ACEOF
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16616 $as_echo "$ac_try_echo") >&5
16617   (eval "$ac_compile") 2>conftest.er1
16618   ac_status=$?
16619   grep -v '^ *+' conftest.er1 >conftest.err
16620   rm -f conftest.er1
16621   cat conftest.err >&5
16622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); } && {
16624          test -z "$ac_c_werror_flag" ||
16625          test ! -s conftest.err
16626        } && test -s conftest.$ac_objext; then
16627   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16628 else
16629   $as_echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16631
16632         cat >conftest.$ac_ext <<_ACEOF
16633 /* confdefs.h.  */
16634 _ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h.  */
16638 #include <sys/types.h>
16639 #ifdef HAVE_SYS_SOCKET_H
16640 #include <sys/socket.h>
16641 #endif
16642
16643
16644 int
16645 main ()
16646 {
16647 static struct sockaddr_storage ac_aggr;
16648 if (sizeof ac_aggr.__ss_len)
16649 return 0;
16650   ;
16651   return 0;
16652 }
16653 _ACEOF
16654 rm -f conftest.$ac_objext
16655 if { (ac_try="$ac_compile"
16656 case "(($ac_try" in
16657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658   *) ac_try_echo=$ac_try;;
16659 esac
16660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16661 $as_echo "$ac_try_echo") >&5
16662   (eval "$ac_compile") 2>conftest.er1
16663   ac_status=$?
16664   grep -v '^ *+' conftest.er1 >conftest.err
16665   rm -f conftest.er1
16666   cat conftest.err >&5
16667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); } && {
16669          test -z "$ac_c_werror_flag" ||
16670          test ! -s conftest.err
16671        } && test -s conftest.$ac_objext; then
16672   ac_cv_member_struct_sockaddr_storage___ss_len=yes
16673 else
16674   $as_echo "$as_me: failed program was:" >&5
16675 sed 's/^/| /' conftest.$ac_ext >&5
16676
16677         ac_cv_member_struct_sockaddr_storage___ss_len=no
16678 fi
16679
16680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16681 fi
16682
16683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16684 fi
16685 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16686 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16687 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16688
16689 cat >>confdefs.h <<_ACEOF
16690 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16691 _ACEOF
16692
16693
16694 fi
16695 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16696 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16697 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16698   $as_echo_n "(cached) " >&6
16699 else
16700   cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h.  */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h.  */
16706 #include <sys/types.h>
16707 #ifdef HAVE_SYS_SOCKET_H
16708 #include <sys/socket.h>
16709 #endif
16710
16711
16712 int
16713 main ()
16714 {
16715 static struct sockaddr ac_aggr;
16716 if (ac_aggr.sa_len)
16717 return 0;
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 rm -f conftest.$ac_objext
16723 if { (ac_try="$ac_compile"
16724 case "(($ac_try" in
16725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726   *) ac_try_echo=$ac_try;;
16727 esac
16728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16729 $as_echo "$ac_try_echo") >&5
16730   (eval "$ac_compile") 2>conftest.er1
16731   ac_status=$?
16732   grep -v '^ *+' conftest.er1 >conftest.err
16733   rm -f conftest.er1
16734   cat conftest.err >&5
16735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); } && {
16737          test -z "$ac_c_werror_flag" ||
16738          test ! -s conftest.err
16739        } && test -s conftest.$ac_objext; then
16740   ac_cv_member_struct_sockaddr_sa_len=yes
16741 else
16742   $as_echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745         cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h.  */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h.  */
16751 #include <sys/types.h>
16752 #ifdef HAVE_SYS_SOCKET_H
16753 #include <sys/socket.h>
16754 #endif
16755
16756
16757 int
16758 main ()
16759 {
16760 static struct sockaddr ac_aggr;
16761 if (sizeof ac_aggr.sa_len)
16762 return 0;
16763   ;
16764   return 0;
16765 }
16766 _ACEOF
16767 rm -f conftest.$ac_objext
16768 if { (ac_try="$ac_compile"
16769 case "(($ac_try" in
16770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771   *) ac_try_echo=$ac_try;;
16772 esac
16773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16774 $as_echo "$ac_try_echo") >&5
16775   (eval "$ac_compile") 2>conftest.er1
16776   ac_status=$?
16777   grep -v '^ *+' conftest.er1 >conftest.err
16778   rm -f conftest.er1
16779   cat conftest.err >&5
16780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); } && {
16782          test -z "$ac_c_werror_flag" ||
16783          test ! -s conftest.err
16784        } && test -s conftest.$ac_objext; then
16785   ac_cv_member_struct_sockaddr_sa_len=yes
16786 else
16787   $as_echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790         ac_cv_member_struct_sockaddr_sa_len=no
16791 fi
16792
16793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16794 fi
16795
16796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16797 fi
16798 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16799 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16800 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16801
16802 cat >>confdefs.h <<_ACEOF
16803 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16804 _ACEOF
16805
16806
16807 fi
16808
16809 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16810 $as_echo_n "checking for struct addrinfo... " >&6; }
16811 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16812   $as_echo_n "(cached) " >&6
16813 else
16814   ac_cv_type_struct_addrinfo=no
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h.  */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h.  */
16821 #include <sys/types.h>
16822 #include <sys/socket.h>
16823 #include <netdb.h>
16824
16825
16826 int
16827 main ()
16828 {
16829 if (sizeof (struct addrinfo))
16830        return 0;
16831   ;
16832   return 0;
16833 }
16834 _ACEOF
16835 rm -f conftest.$ac_objext
16836 if { (ac_try="$ac_compile"
16837 case "(($ac_try" in
16838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839   *) ac_try_echo=$ac_try;;
16840 esac
16841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16842 $as_echo "$ac_try_echo") >&5
16843   (eval "$ac_compile") 2>conftest.er1
16844   ac_status=$?
16845   grep -v '^ *+' conftest.er1 >conftest.err
16846   rm -f conftest.er1
16847   cat conftest.err >&5
16848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849   (exit $ac_status); } && {
16850          test -z "$ac_c_werror_flag" ||
16851          test ! -s conftest.err
16852        } && test -s conftest.$ac_objext; then
16853   cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h.  */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h.  */
16859 #include <sys/types.h>
16860 #include <sys/socket.h>
16861 #include <netdb.h>
16862
16863
16864 int
16865 main ()
16866 {
16867 if (sizeof ((struct addrinfo)))
16868           return 0;
16869   ;
16870   return 0;
16871 }
16872 _ACEOF
16873 rm -f conftest.$ac_objext
16874 if { (ac_try="$ac_compile"
16875 case "(($ac_try" in
16876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877   *) ac_try_echo=$ac_try;;
16878 esac
16879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16880 $as_echo "$ac_try_echo") >&5
16881   (eval "$ac_compile") 2>conftest.er1
16882   ac_status=$?
16883   grep -v '^ *+' conftest.er1 >conftest.err
16884   rm -f conftest.er1
16885   cat conftest.err >&5
16886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); } && {
16888          test -z "$ac_c_werror_flag" ||
16889          test ! -s conftest.err
16890        } && test -s conftest.$ac_objext; then
16891   :
16892 else
16893   $as_echo "$as_me: failed program was:" >&5
16894 sed 's/^/| /' conftest.$ac_ext >&5
16895
16896         ac_cv_type_struct_addrinfo=yes
16897 fi
16898
16899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16900 else
16901   $as_echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16903
16904
16905 fi
16906
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 fi
16909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16910 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16911 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16912
16913 cat >>confdefs.h <<_ACEOF
16914 #define HAVE_STRUCT_ADDRINFO 1
16915 _ACEOF
16916
16917
16918 fi
16919
16920
16921   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16922 $as_echo_n "checking for intptr_t... " >&6; }
16923 if test "${ac_cv_type_intptr_t+set}" = set; then
16924   $as_echo_n "(cached) " >&6
16925 else
16926   ac_cv_type_intptr_t=no
16927 cat >conftest.$ac_ext <<_ACEOF
16928 /* confdefs.h.  */
16929 _ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h.  */
16933 $ac_includes_default
16934 int
16935 main ()
16936 {
16937 if (sizeof (intptr_t))
16938        return 0;
16939   ;
16940   return 0;
16941 }
16942 _ACEOF
16943 rm -f conftest.$ac_objext
16944 if { (ac_try="$ac_compile"
16945 case "(($ac_try" in
16946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947   *) ac_try_echo=$ac_try;;
16948 esac
16949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16950 $as_echo "$ac_try_echo") >&5
16951   (eval "$ac_compile") 2>conftest.er1
16952   ac_status=$?
16953   grep -v '^ *+' conftest.er1 >conftest.err
16954   rm -f conftest.er1
16955   cat conftest.err >&5
16956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); } && {
16958          test -z "$ac_c_werror_flag" ||
16959          test ! -s conftest.err
16960        } && test -s conftest.$ac_objext; then
16961   cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967 $ac_includes_default
16968 int
16969 main ()
16970 {
16971 if (sizeof ((intptr_t)))
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   :
16996 else
16997   $as_echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000         ac_cv_type_intptr_t=yes
17001 fi
17002
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004 else
17005   $as_echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17007
17008
17009 fi
17010
17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012 fi
17013 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17014 $as_echo "$ac_cv_type_intptr_t" >&6; }
17015 if test "x$ac_cv_type_intptr_t" = x""yes; then
17016
17017 cat >>confdefs.h <<\_ACEOF
17018 #define HAVE_INTPTR_T 1
17019 _ACEOF
17020
17021 else
17022   for ac_type in 'int' 'long int' 'long long int'; do
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 $ac_includes_default
17030 int
17031 main ()
17032 {
17033 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17034 test_array [0] = 0
17035
17036   ;
17037   return 0;
17038 }
17039 _ACEOF
17040 rm -f conftest.$ac_objext
17041 if { (ac_try="$ac_compile"
17042 case "(($ac_try" in
17043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044   *) ac_try_echo=$ac_try;;
17045 esac
17046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17047 $as_echo "$ac_try_echo") >&5
17048   (eval "$ac_compile") 2>conftest.er1
17049   ac_status=$?
17050   grep -v '^ *+' conftest.er1 >conftest.err
17051   rm -f conftest.er1
17052   cat conftest.err >&5
17053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); } && {
17055          test -z "$ac_c_werror_flag" ||
17056          test ! -s conftest.err
17057        } && test -s conftest.$ac_objext; then
17058
17059 cat >>confdefs.h <<_ACEOF
17060 #define intptr_t $ac_type
17061 _ACEOF
17062
17063           ac_type=
17064 else
17065   $as_echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17067
17068
17069 fi
17070
17071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17072        test -z "$ac_type" && break
17073      done
17074 fi
17075
17076
17077
17078   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17079 $as_echo_n "checking for uintptr_t... " >&6; }
17080 if test "${ac_cv_type_uintptr_t+set}" = set; then
17081   $as_echo_n "(cached) " >&6
17082 else
17083   ac_cv_type_uintptr_t=no
17084 cat >conftest.$ac_ext <<_ACEOF
17085 /* confdefs.h.  */
17086 _ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h.  */
17090 $ac_includes_default
17091 int
17092 main ()
17093 {
17094 if (sizeof (uintptr_t))
17095        return 0;
17096   ;
17097   return 0;
17098 }
17099 _ACEOF
17100 rm -f conftest.$ac_objext
17101 if { (ac_try="$ac_compile"
17102 case "(($ac_try" in
17103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104   *) ac_try_echo=$ac_try;;
17105 esac
17106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17107 $as_echo "$ac_try_echo") >&5
17108   (eval "$ac_compile") 2>conftest.er1
17109   ac_status=$?
17110   grep -v '^ *+' conftest.er1 >conftest.err
17111   rm -f conftest.er1
17112   cat conftest.err >&5
17113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } && {
17115          test -z "$ac_c_werror_flag" ||
17116          test ! -s conftest.err
17117        } && test -s conftest.$ac_objext; then
17118   cat >conftest.$ac_ext <<_ACEOF
17119 /* confdefs.h.  */
17120 _ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h.  */
17124 $ac_includes_default
17125 int
17126 main ()
17127 {
17128 if (sizeof ((uintptr_t)))
17129           return 0;
17130   ;
17131   return 0;
17132 }
17133 _ACEOF
17134 rm -f conftest.$ac_objext
17135 if { (ac_try="$ac_compile"
17136 case "(($ac_try" in
17137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138   *) ac_try_echo=$ac_try;;
17139 esac
17140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17141 $as_echo "$ac_try_echo") >&5
17142   (eval "$ac_compile") 2>conftest.er1
17143   ac_status=$?
17144   grep -v '^ *+' conftest.er1 >conftest.err
17145   rm -f conftest.er1
17146   cat conftest.err >&5
17147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); } && {
17149          test -z "$ac_c_werror_flag" ||
17150          test ! -s conftest.err
17151        } && test -s conftest.$ac_objext; then
17152   :
17153 else
17154   $as_echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157         ac_cv_type_uintptr_t=yes
17158 fi
17159
17160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161 else
17162   $as_echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165
17166 fi
17167
17168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17169 fi
17170 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17171 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17172 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17173
17174 cat >>confdefs.h <<\_ACEOF
17175 #define HAVE_UINTPTR_T 1
17176 _ACEOF
17177
17178 else
17179   for ac_type in 'unsigned int' 'unsigned long int' \
17180         'unsigned long long int'; do
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 $ac_includes_default
17188 int
17189 main ()
17190 {
17191 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17192 test_array [0] = 0
17193
17194   ;
17195   return 0;
17196 }
17197 _ACEOF
17198 rm -f conftest.$ac_objext
17199 if { (ac_try="$ac_compile"
17200 case "(($ac_try" in
17201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202   *) ac_try_echo=$ac_try;;
17203 esac
17204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17205 $as_echo "$ac_try_echo") >&5
17206   (eval "$ac_compile") 2>conftest.er1
17207   ac_status=$?
17208   grep -v '^ *+' conftest.er1 >conftest.err
17209   rm -f conftest.er1
17210   cat conftest.err >&5
17211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212   (exit $ac_status); } && {
17213          test -z "$ac_c_werror_flag" ||
17214          test ! -s conftest.err
17215        } && test -s conftest.$ac_objext; then
17216
17217 cat >>confdefs.h <<_ACEOF
17218 #define uintptr_t $ac_type
17219 _ACEOF
17220
17221           ac_type=
17222 else
17223   $as_echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17225
17226
17227 fi
17228
17229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230        test -z "$ac_type" && break
17231      done
17232 fi
17233
17234
17235
17236   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17237 $as_echo_n "checking for long long int... " >&6; }
17238 if test "${ac_cv_type_long_long_int+set}" = set; then
17239   $as_echo_n "(cached) " >&6
17240 else
17241   cat >conftest.$ac_ext <<_ACEOF
17242
17243   /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248 /* For now, do not test the preprocessor; as of 2007 there are too many
17249          implementations with broken preprocessors.  Perhaps this can
17250          be revisited in 2012.  In the meantime, code should not expect
17251          #if to work with literals wider than 32 bits.  */
17252       /* Test literals.  */
17253       long long int ll = 9223372036854775807ll;
17254       long long int nll = -9223372036854775807LL;
17255       unsigned long long int ull = 18446744073709551615ULL;
17256       /* Test constant expressions.   */
17257       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17258                      ? 1 : -1)];
17259       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17260                      ? 1 : -1)];
17261       int i = 63;
17262 int
17263 main ()
17264 {
17265 /* Test availability of runtime routines for shift and division.  */
17266       long long int llmax = 9223372036854775807ll;
17267       unsigned long long int ullmax = 18446744073709551615ull;
17268       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17269               | (llmax / ll) | (llmax % ll)
17270               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17271               | (ullmax / ull) | (ullmax % ull));
17272   ;
17273   return 0;
17274 }
17275
17276 _ACEOF
17277 rm -f conftest.$ac_objext conftest$ac_exeext
17278 if { (ac_try="$ac_link"
17279 case "(($ac_try" in
17280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281   *) ac_try_echo=$ac_try;;
17282 esac
17283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17284 $as_echo "$ac_try_echo") >&5
17285   (eval "$ac_link") 2>conftest.er1
17286   ac_status=$?
17287   grep -v '^ *+' conftest.er1 >conftest.err
17288   rm -f conftest.er1
17289   cat conftest.err >&5
17290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291   (exit $ac_status); } && {
17292          test -z "$ac_c_werror_flag" ||
17293          test ! -s conftest.err
17294        } && test -s conftest$ac_exeext && {
17295          test "$cross_compiling" = yes ||
17296          $as_test_x conftest$ac_exeext
17297        }; then
17298                         if test "$cross_compiling" = yes; then
17299   ac_cv_type_long_long_int=yes
17300 else
17301   cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h.  */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h.  */
17307 #include <limits.h>
17308                #ifndef LLONG_MAX
17309                # define HALF \
17310                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17311                # define LLONG_MAX (HALF - 1 + HALF)
17312                #endif
17313 int
17314 main ()
17315 {
17316 long long int n = 1;
17317                int i;
17318                for (i = 0; ; i++)
17319                  {
17320                    long long int m = n << i;
17321                    if (m >> i != n)
17322                      return 1;
17323                    if (LLONG_MAX / 2 < m)
17324                      break;
17325                  }
17326                return 0;
17327   ;
17328   return 0;
17329 }
17330 _ACEOF
17331 rm -f conftest$ac_exeext
17332 if { (ac_try="$ac_link"
17333 case "(($ac_try" in
17334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17335   *) ac_try_echo=$ac_try;;
17336 esac
17337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17338 $as_echo "$ac_try_echo") >&5
17339   (eval "$ac_link") 2>&5
17340   ac_status=$?
17341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17343   { (case "(($ac_try" in
17344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345   *) ac_try_echo=$ac_try;;
17346 esac
17347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17348 $as_echo "$ac_try_echo") >&5
17349   (eval "$ac_try") 2>&5
17350   ac_status=$?
17351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); }; }; then
17353   ac_cv_type_long_long_int=yes
17354 else
17355   $as_echo "$as_me: program exited with status $ac_status" >&5
17356 $as_echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358
17359 ( exit $ac_status )
17360 ac_cv_type_long_long_int=no
17361 fi
17362 rm -rf conftest.dSYM
17363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17364 fi
17365
17366
17367 else
17368   $as_echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371         ac_cv_type_long_long_int=no
17372 fi
17373
17374 rm -rf conftest.dSYM
17375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17376       conftest$ac_exeext conftest.$ac_ext
17377 fi
17378 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17379 $as_echo "$ac_cv_type_long_long_int" >&6; }
17380   if test $ac_cv_type_long_long_int = yes; then
17381
17382 cat >>confdefs.h <<\_ACEOF
17383 #define HAVE_LONG_LONG_INT 1
17384 _ACEOF
17385
17386   fi
17387
17388
17389 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17390 $as_echo_n "checking for locale_t... " >&6; }
17391 if test "${pgac_cv_type_locale_t+set}" = set; then
17392   $as_echo_n "(cached) " >&6
17393 else
17394   cat >conftest.$ac_ext <<_ACEOF
17395 /* confdefs.h.  */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h.  */
17400 #include <locale.h>
17401 locale_t x;
17402 int
17403 main ()
17404 {
17405
17406   ;
17407   return 0;
17408 }
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17417 $as_echo "$ac_try_echo") >&5
17418   (eval "$ac_compile") 2>conftest.er1
17419   ac_status=$?
17420   grep -v '^ *+' conftest.er1 >conftest.err
17421   rm -f conftest.er1
17422   cat conftest.err >&5
17423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } && {
17425          test -z "$ac_c_werror_flag" ||
17426          test ! -s conftest.err
17427        } && test -s conftest.$ac_objext; then
17428   pgac_cv_type_locale_t=yes
17429 else
17430   $as_echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17432
17433         cat >conftest.$ac_ext <<_ACEOF
17434 /* confdefs.h.  */
17435 _ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h.  */
17439 #include <xlocale.h>
17440 locale_t x;
17441 int
17442 main ()
17443 {
17444
17445   ;
17446   return 0;
17447 }
17448 _ACEOF
17449 rm -f conftest.$ac_objext
17450 if { (ac_try="$ac_compile"
17451 case "(($ac_try" in
17452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453   *) ac_try_echo=$ac_try;;
17454 esac
17455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17456 $as_echo "$ac_try_echo") >&5
17457   (eval "$ac_compile") 2>conftest.er1
17458   ac_status=$?
17459   grep -v '^ *+' conftest.er1 >conftest.err
17460   rm -f conftest.er1
17461   cat conftest.err >&5
17462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463   (exit $ac_status); } && {
17464          test -z "$ac_c_werror_flag" ||
17465          test ! -s conftest.err
17466        } && test -s conftest.$ac_objext; then
17467   pgac_cv_type_locale_t='yes (in xlocale.h)'
17468 else
17469   $as_echo "$as_me: failed program was:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17471
17472         pgac_cv_type_locale_t=no
17473 fi
17474
17475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17476 fi
17477
17478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479 fi
17480 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17481 $as_echo "$pgac_cv_type_locale_t" >&6; }
17482 if test "$pgac_cv_type_locale_t" != no; then
17483
17484 cat >>confdefs.h <<\_ACEOF
17485 #define HAVE_LOCALE_T 1
17486 _ACEOF
17487
17488 fi
17489 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17490
17491 cat >>confdefs.h <<\_ACEOF
17492 #define LOCALE_T_IN_XLOCALE 1
17493 _ACEOF
17494
17495 fi
17496
17497 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17498 $as_echo_n "checking for struct cmsgcred... " >&6; }
17499 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17500   $as_echo_n "(cached) " >&6
17501 else
17502   ac_cv_type_struct_cmsgcred=no
17503 cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509 #include <sys/socket.h>
17510 #ifdef HAVE_SYS_UCRED_H
17511 #include <sys/ucred.h>
17512 #endif
17513
17514 int
17515 main ()
17516 {
17517 if (sizeof (struct cmsgcred))
17518        return 0;
17519   ;
17520   return 0;
17521 }
17522 _ACEOF
17523 rm -f conftest.$ac_objext
17524 if { (ac_try="$ac_compile"
17525 case "(($ac_try" in
17526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17527   *) ac_try_echo=$ac_try;;
17528 esac
17529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17530 $as_echo "$ac_try_echo") >&5
17531   (eval "$ac_compile") 2>conftest.er1
17532   ac_status=$?
17533   grep -v '^ *+' conftest.er1 >conftest.err
17534   rm -f conftest.er1
17535   cat conftest.err >&5
17536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537   (exit $ac_status); } && {
17538          test -z "$ac_c_werror_flag" ||
17539          test ! -s conftest.err
17540        } && test -s conftest.$ac_objext; then
17541   cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h.  */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h.  */
17547 #include <sys/socket.h>
17548 #ifdef HAVE_SYS_UCRED_H
17549 #include <sys/ucred.h>
17550 #endif
17551
17552 int
17553 main ()
17554 {
17555 if (sizeof ((struct cmsgcred)))
17556           return 0;
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext
17562 if { (ac_try="$ac_compile"
17563 case "(($ac_try" in
17564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565   *) ac_try_echo=$ac_try;;
17566 esac
17567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17568 $as_echo "$ac_try_echo") >&5
17569   (eval "$ac_compile") 2>conftest.er1
17570   ac_status=$?
17571   grep -v '^ *+' conftest.er1 >conftest.err
17572   rm -f conftest.er1
17573   cat conftest.err >&5
17574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); } && {
17576          test -z "$ac_c_werror_flag" ||
17577          test ! -s conftest.err
17578        } && test -s conftest.$ac_objext; then
17579   :
17580 else
17581   $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584         ac_cv_type_struct_cmsgcred=yes
17585 fi
17586
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 else
17589   $as_echo "$as_me: failed program was:" >&5
17590 sed 's/^/| /' conftest.$ac_ext >&5
17591
17592
17593 fi
17594
17595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17596 fi
17597 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17598 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17599 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17600
17601 cat >>confdefs.h <<_ACEOF
17602 #define HAVE_STRUCT_CMSGCRED 1
17603 _ACEOF
17604
17605
17606 fi
17607
17608
17609 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17610 $as_echo_n "checking for struct option... " >&6; }
17611 if test "${ac_cv_type_struct_option+set}" = set; then
17612   $as_echo_n "(cached) " >&6
17613 else
17614   ac_cv_type_struct_option=no
17615 cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h.  */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h.  */
17621 #ifdef HAVE_GETOPT_H
17622 #include <getopt.h>
17623 #endif
17624
17625 int
17626 main ()
17627 {
17628 if (sizeof (struct option))
17629        return 0;
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest.$ac_objext
17635 if { (ac_try="$ac_compile"
17636 case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17641 $as_echo "$ac_try_echo") >&5
17642   (eval "$ac_compile") 2>conftest.er1
17643   ac_status=$?
17644   grep -v '^ *+' conftest.er1 >conftest.err
17645   rm -f conftest.er1
17646   cat conftest.err >&5
17647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); } && {
17649          test -z "$ac_c_werror_flag" ||
17650          test ! -s conftest.err
17651        } && test -s conftest.$ac_objext; then
17652   cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658 #ifdef HAVE_GETOPT_H
17659 #include <getopt.h>
17660 #endif
17661
17662 int
17663 main ()
17664 {
17665 if (sizeof ((struct option)))
17666           return 0;
17667   ;
17668   return 0;
17669 }
17670 _ACEOF
17671 rm -f conftest.$ac_objext
17672 if { (ac_try="$ac_compile"
17673 case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17678 $as_echo "$ac_try_echo") >&5
17679   (eval "$ac_compile") 2>conftest.er1
17680   ac_status=$?
17681   grep -v '^ *+' conftest.er1 >conftest.err
17682   rm -f conftest.er1
17683   cat conftest.err >&5
17684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); } && {
17686          test -z "$ac_c_werror_flag" ||
17687          test ! -s conftest.err
17688        } && test -s conftest.$ac_objext; then
17689   :
17690 else
17691   $as_echo "$as_me: failed program was:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17693
17694         ac_cv_type_struct_option=yes
17695 fi
17696
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 else
17699   $as_echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702
17703 fi
17704
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 fi
17707 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17708 $as_echo "$ac_cv_type_struct_option" >&6; }
17709 if test "x$ac_cv_type_struct_option" = x""yes; then
17710
17711 cat >>confdefs.h <<_ACEOF
17712 #define HAVE_STRUCT_OPTION 1
17713 _ACEOF
17714
17715
17716 fi
17717
17718
17719 if test "$with_zlib" = yes; then
17720   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17721   # did not).  While we could work around the lack of z_streamp, it
17722   # seems unwise to encourage people to use such old zlib versions...
17723   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17724 $as_echo_n "checking for z_streamp... " >&6; }
17725 if test "${ac_cv_type_z_streamp+set}" = set; then
17726   $as_echo_n "(cached) " >&6
17727 else
17728   ac_cv_type_z_streamp=no
17729 cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735 #include <zlib.h>
17736
17737 int
17738 main ()
17739 {
17740 if (sizeof (z_streamp))
17741        return 0;
17742   ;
17743   return 0;
17744 }
17745 _ACEOF
17746 rm -f conftest.$ac_objext
17747 if { (ac_try="$ac_compile"
17748 case "(($ac_try" in
17749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750   *) ac_try_echo=$ac_try;;
17751 esac
17752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17753 $as_echo "$ac_try_echo") >&5
17754   (eval "$ac_compile") 2>conftest.er1
17755   ac_status=$?
17756   grep -v '^ *+' conftest.er1 >conftest.err
17757   rm -f conftest.er1
17758   cat conftest.err >&5
17759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); } && {
17761          test -z "$ac_c_werror_flag" ||
17762          test ! -s conftest.err
17763        } && test -s conftest.$ac_objext; then
17764   cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h.  */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h.  */
17770 #include <zlib.h>
17771
17772 int
17773 main ()
17774 {
17775 if (sizeof ((z_streamp)))
17776           return 0;
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 rm -f conftest.$ac_objext
17782 if { (ac_try="$ac_compile"
17783 case "(($ac_try" in
17784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785   *) ac_try_echo=$ac_try;;
17786 esac
17787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17788 $as_echo "$ac_try_echo") >&5
17789   (eval "$ac_compile") 2>conftest.er1
17790   ac_status=$?
17791   grep -v '^ *+' conftest.er1 >conftest.err
17792   rm -f conftest.er1
17793   cat conftest.err >&5
17794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); } && {
17796          test -z "$ac_c_werror_flag" ||
17797          test ! -s conftest.err
17798        } && test -s conftest.$ac_objext; then
17799   :
17800 else
17801   $as_echo "$as_me: failed program was:" >&5
17802 sed 's/^/| /' conftest.$ac_ext >&5
17803
17804         ac_cv_type_z_streamp=yes
17805 fi
17806
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808 else
17809   $as_echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812
17813 fi
17814
17815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17816 fi
17817 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17818 $as_echo "$ac_cv_type_z_streamp" >&6; }
17819 if test "x$ac_cv_type_z_streamp" = x""yes; then
17820   :
17821 else
17822   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17823 Use --without-zlib to disable zlib support." >&5
17824 $as_echo "$as_me: error: zlib version is too old
17825 Use --without-zlib to disable zlib support." >&2;}
17826    { (exit 1); exit 1; }; }
17827 fi
17828
17829 fi
17830
17831 if test "$with_krb5" = yes; then
17832 # Check for differences between MIT and Heimdal (KTH) releases
17833   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17834 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17835 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17836   $as_echo_n "(cached) " >&6
17837 else
17838   cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h.  */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h.  */
17844 #include <krb5.h>
17845
17846 int
17847 main ()
17848 {
17849 static krb5_ticket ac_aggr;
17850 if (ac_aggr.enc_part2)
17851 return 0;
17852   ;
17853   return 0;
17854 }
17855 _ACEOF
17856 rm -f conftest.$ac_objext
17857 if { (ac_try="$ac_compile"
17858 case "(($ac_try" in
17859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860   *) ac_try_echo=$ac_try;;
17861 esac
17862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17863 $as_echo "$ac_try_echo") >&5
17864   (eval "$ac_compile") 2>conftest.er1
17865   ac_status=$?
17866   grep -v '^ *+' conftest.er1 >conftest.err
17867   rm -f conftest.er1
17868   cat conftest.err >&5
17869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); } && {
17871          test -z "$ac_c_werror_flag" ||
17872          test ! -s conftest.err
17873        } && test -s conftest.$ac_objext; then
17874   ac_cv_member_krb5_ticket_enc_part2=yes
17875 else
17876   $as_echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17878
17879         cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885 #include <krb5.h>
17886
17887 int
17888 main ()
17889 {
17890 static krb5_ticket ac_aggr;
17891 if (sizeof ac_aggr.enc_part2)
17892 return 0;
17893   ;
17894   return 0;
17895 }
17896 _ACEOF
17897 rm -f conftest.$ac_objext
17898 if { (ac_try="$ac_compile"
17899 case "(($ac_try" in
17900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901   *) ac_try_echo=$ac_try;;
17902 esac
17903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17904 $as_echo "$ac_try_echo") >&5
17905   (eval "$ac_compile") 2>conftest.er1
17906   ac_status=$?
17907   grep -v '^ *+' conftest.er1 >conftest.err
17908   rm -f conftest.er1
17909   cat conftest.err >&5
17910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } && {
17912          test -z "$ac_c_werror_flag" ||
17913          test ! -s conftest.err
17914        } && test -s conftest.$ac_objext; then
17915   ac_cv_member_krb5_ticket_enc_part2=yes
17916 else
17917   $as_echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920         ac_cv_member_krb5_ticket_enc_part2=no
17921 fi
17922
17923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924 fi
17925
17926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17927 fi
17928 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17929 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17930 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17931
17932 cat >>confdefs.h <<_ACEOF
17933 #define HAVE_KRB5_TICKET_ENC_PART2 1
17934 _ACEOF
17935
17936
17937 else
17938   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17939 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17940 if test "${ac_cv_member_krb5_ticket_client+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 <krb5.h>
17950
17951 int
17952 main ()
17953 {
17954 static krb5_ticket ac_aggr;
17955 if (ac_aggr.client)
17956 return 0;
17957   ;
17958   return 0;
17959 }
17960 _ACEOF
17961 rm -f conftest.$ac_objext
17962 if { (ac_try="$ac_compile"
17963 case "(($ac_try" in
17964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965   *) ac_try_echo=$ac_try;;
17966 esac
17967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17968 $as_echo "$ac_try_echo") >&5
17969   (eval "$ac_compile") 2>conftest.er1
17970   ac_status=$?
17971   grep -v '^ *+' conftest.er1 >conftest.err
17972   rm -f conftest.er1
17973   cat conftest.err >&5
17974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); } && {
17976          test -z "$ac_c_werror_flag" ||
17977          test ! -s conftest.err
17978        } && test -s conftest.$ac_objext; then
17979   ac_cv_member_krb5_ticket_client=yes
17980 else
17981   $as_echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984         cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h.  */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h.  */
17990 #include <krb5.h>
17991
17992 int
17993 main ()
17994 {
17995 static krb5_ticket ac_aggr;
17996 if (sizeof ac_aggr.client)
17997 return 0;
17998   ;
17999   return 0;
18000 }
18001 _ACEOF
18002 rm -f conftest.$ac_objext
18003 if { (ac_try="$ac_compile"
18004 case "(($ac_try" in
18005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006   *) ac_try_echo=$ac_try;;
18007 esac
18008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18009 $as_echo "$ac_try_echo") >&5
18010   (eval "$ac_compile") 2>conftest.er1
18011   ac_status=$?
18012   grep -v '^ *+' conftest.er1 >conftest.err
18013   rm -f conftest.er1
18014   cat conftest.err >&5
18015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); } && {
18017          test -z "$ac_c_werror_flag" ||
18018          test ! -s conftest.err
18019        } && test -s conftest.$ac_objext; then
18020   ac_cv_member_krb5_ticket_client=yes
18021 else
18022   $as_echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18024
18025         ac_cv_member_krb5_ticket_client=no
18026 fi
18027
18028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18029 fi
18030
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18032 fi
18033 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18034 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18035 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18036
18037 cat >>confdefs.h <<_ACEOF
18038 #define HAVE_KRB5_TICKET_CLIENT 1
18039 _ACEOF
18040
18041
18042 else
18043   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18044 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18045    { (exit 1); exit 1; }; }
18046 fi
18047
18048 fi
18049
18050   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18051 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18052 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18053   $as_echo_n "(cached) " >&6
18054 else
18055   cat >conftest.$ac_ext <<_ACEOF
18056 /* confdefs.h.  */
18057 _ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h.  */
18061 #include <krb5.h>
18062
18063 int
18064 main ()
18065 {
18066 static krb5_error ac_aggr;
18067 if (ac_aggr.text.data)
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   ac_cv_member_krb5_error_text_data=yes
18092 else
18093   $as_echo "$as_me: failed program was:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18095
18096         cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h.  */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h.  */
18102 #include <krb5.h>
18103
18104 int
18105 main ()
18106 {
18107 static krb5_error ac_aggr;
18108 if (sizeof ac_aggr.text.data)
18109 return 0;
18110   ;
18111   return 0;
18112 }
18113 _ACEOF
18114 rm -f conftest.$ac_objext
18115 if { (ac_try="$ac_compile"
18116 case "(($ac_try" in
18117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118   *) ac_try_echo=$ac_try;;
18119 esac
18120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18121 $as_echo "$ac_try_echo") >&5
18122   (eval "$ac_compile") 2>conftest.er1
18123   ac_status=$?
18124   grep -v '^ *+' conftest.er1 >conftest.err
18125   rm -f conftest.er1
18126   cat conftest.err >&5
18127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); } && {
18129          test -z "$ac_c_werror_flag" ||
18130          test ! -s conftest.err
18131        } && test -s conftest.$ac_objext; then
18132   ac_cv_member_krb5_error_text_data=yes
18133 else
18134   $as_echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18136
18137         ac_cv_member_krb5_error_text_data=no
18138 fi
18139
18140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141 fi
18142
18143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 fi
18145 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18146 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18147 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18148
18149 cat >>confdefs.h <<_ACEOF
18150 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18151 _ACEOF
18152
18153
18154 else
18155   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18156 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18157 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18158   $as_echo_n "(cached) " >&6
18159 else
18160   cat >conftest.$ac_ext <<_ACEOF
18161 /* confdefs.h.  */
18162 _ACEOF
18163 cat confdefs.h >>conftest.$ac_ext
18164 cat >>conftest.$ac_ext <<_ACEOF
18165 /* end confdefs.h.  */
18166 #include <krb5.h>
18167
18168 int
18169 main ()
18170 {
18171 static krb5_error ac_aggr;
18172 if (ac_aggr.e_data)
18173 return 0;
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext
18179 if { (ac_try="$ac_compile"
18180 case "(($ac_try" in
18181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182   *) ac_try_echo=$ac_try;;
18183 esac
18184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18185 $as_echo "$ac_try_echo") >&5
18186   (eval "$ac_compile") 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } && {
18193          test -z "$ac_c_werror_flag" ||
18194          test ! -s conftest.err
18195        } && test -s conftest.$ac_objext; then
18196   ac_cv_member_krb5_error_e_data=yes
18197 else
18198   $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201         cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h.  */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h.  */
18207 #include <krb5.h>
18208
18209 int
18210 main ()
18211 {
18212 static krb5_error ac_aggr;
18213 if (sizeof ac_aggr.e_data)
18214 return 0;
18215   ;
18216   return 0;
18217 }
18218 _ACEOF
18219 rm -f conftest.$ac_objext
18220 if { (ac_try="$ac_compile"
18221 case "(($ac_try" in
18222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223   *) ac_try_echo=$ac_try;;
18224 esac
18225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18226 $as_echo "$ac_try_echo") >&5
18227   (eval "$ac_compile") 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } && {
18234          test -z "$ac_c_werror_flag" ||
18235          test ! -s conftest.err
18236        } && test -s conftest.$ac_objext; then
18237   ac_cv_member_krb5_error_e_data=yes
18238 else
18239   $as_echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18241
18242         ac_cv_member_krb5_error_e_data=no
18243 fi
18244
18245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18246 fi
18247
18248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18249 fi
18250 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18251 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18252 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18253
18254 cat >>confdefs.h <<_ACEOF
18255 #define HAVE_KRB5_ERROR_E_DATA 1
18256 _ACEOF
18257
18258
18259 else
18260   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18261 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18262    { (exit 1); exit 1; }; }
18263 fi
18264
18265 fi
18266
18267
18268 # Win32 requires headers to be loaded for __stdcall, so can't use
18269 # AC_CHECK_FUNCS here.
18270   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18271 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18272   cat >conftest.$ac_ext <<_ACEOF
18273 /* confdefs.h.  */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h.  */
18278 #include <krb5.h>
18279 int
18280 main ()
18281 {
18282 krb5_free_unparsed_name(NULL,NULL);
18283   ;
18284   return 0;
18285 }
18286 _ACEOF
18287 rm -f conftest.$ac_objext conftest$ac_exeext
18288 if { (ac_try="$ac_link"
18289 case "(($ac_try" in
18290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18291   *) ac_try_echo=$ac_try;;
18292 esac
18293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18294 $as_echo "$ac_try_echo") >&5
18295   (eval "$ac_link") 2>conftest.er1
18296   ac_status=$?
18297   grep -v '^ *+' conftest.er1 >conftest.err
18298   rm -f conftest.er1
18299   cat conftest.err >&5
18300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); } && {
18302          test -z "$ac_c_werror_flag" ||
18303          test ! -s conftest.err
18304        } && test -s conftest$ac_exeext && {
18305          test "$cross_compiling" = yes ||
18306          $as_test_x conftest$ac_exeext
18307        }; then
18308
18309 cat >>confdefs.h <<\_ACEOF
18310 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18311 _ACEOF
18312
18313 { $as_echo "$as_me:$LINENO: result: yes" >&5
18314 $as_echo "yes" >&6; }
18315 else
18316   $as_echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18318
18319         { $as_echo "$as_me:$LINENO: result: no" >&5
18320 $as_echo "no" >&6; }
18321 fi
18322
18323 rm -rf conftest.dSYM
18324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18325       conftest$ac_exeext conftest.$ac_ext
18326 fi
18327
18328 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18329 case $host_cpu in
18330   ppc*|powerpc*)
18331     { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18332 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18333     cat >conftest.$ac_ext <<_ACEOF
18334 /* confdefs.h.  */
18335 _ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h.  */
18339
18340 int
18341 main ()
18342 {
18343 int a = 0; int *p = &a; int r;
18344          __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18345   ;
18346   return 0;
18347 }
18348 _ACEOF
18349 rm -f conftest.$ac_objext
18350 if { (ac_try="$ac_compile"
18351 case "(($ac_try" in
18352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353   *) ac_try_echo=$ac_try;;
18354 esac
18355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18356 $as_echo "$ac_try_echo") >&5
18357   (eval "$ac_compile") 2>conftest.er1
18358   ac_status=$?
18359   grep -v '^ *+' conftest.er1 >conftest.err
18360   rm -f conftest.er1
18361   cat conftest.err >&5
18362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363   (exit $ac_status); } && {
18364          test -z "$ac_c_werror_flag" ||
18365          test ! -s conftest.err
18366        } && test -s conftest.$ac_objext; then
18367   pgac_cv_have_ppc_mutex_hint=yes
18368 else
18369   $as_echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18371
18372         pgac_cv_have_ppc_mutex_hint=no
18373 fi
18374
18375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18376     { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18377 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18378     if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18379
18380 cat >>confdefs.h <<\_ACEOF
18381 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18382 _ACEOF
18383
18384     fi
18385   ;;
18386 esac
18387
18388 # Check largefile support.  You might think this is a system service not a
18389 # compiler characteristic, but you'd be wrong.  We must check this before
18390 # probing existence of related functions such as fseeko, since the largefile
18391 # defines can affect what is generated for that.
18392 if test "$PORTNAME" != "win32"; then
18393    # Check whether --enable-largefile was given.
18394 if test "${enable_largefile+set}" = set; then
18395   enableval=$enable_largefile;
18396 fi
18397
18398 if test "$enable_largefile" != no; then
18399
18400   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18401 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18402 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18403   $as_echo_n "(cached) " >&6
18404 else
18405   ac_cv_sys_largefile_CC=no
18406      if test "$GCC" != yes; then
18407        ac_save_CC=$CC
18408        while :; do
18409          # IRIX 6.2 and later do not support large files by default,
18410          # so use the C compiler's -n32 option if that helps.
18411          cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h.  */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h.  */
18417 #include <sys/types.h>
18418  /* Check that off_t can represent 2**63 - 1 correctly.
18419     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18420     since some C++ compilers masquerading as C compilers
18421     incorrectly reject 9223372036854775807.  */
18422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18423   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18424                        && LARGE_OFF_T % 2147483647 == 1)
18425                       ? 1 : -1];
18426 int
18427 main ()
18428 {
18429
18430   ;
18431   return 0;
18432 }
18433 _ACEOF
18434          rm -f conftest.$ac_objext
18435 if { (ac_try="$ac_compile"
18436 case "(($ac_try" in
18437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438   *) ac_try_echo=$ac_try;;
18439 esac
18440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18441 $as_echo "$ac_try_echo") >&5
18442   (eval "$ac_compile") 2>conftest.er1
18443   ac_status=$?
18444   grep -v '^ *+' conftest.er1 >conftest.err
18445   rm -f conftest.er1
18446   cat conftest.err >&5
18447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448   (exit $ac_status); } && {
18449          test -z "$ac_c_werror_flag" ||
18450          test ! -s conftest.err
18451        } && test -s conftest.$ac_objext; then
18452   break
18453 else
18454   $as_echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18456
18457
18458 fi
18459
18460 rm -f core conftest.err conftest.$ac_objext
18461          CC="$CC -n32"
18462          rm -f conftest.$ac_objext
18463 if { (ac_try="$ac_compile"
18464 case "(($ac_try" in
18465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466   *) ac_try_echo=$ac_try;;
18467 esac
18468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18469 $as_echo "$ac_try_echo") >&5
18470   (eval "$ac_compile") 2>conftest.er1
18471   ac_status=$?
18472   grep -v '^ *+' conftest.er1 >conftest.err
18473   rm -f conftest.er1
18474   cat conftest.err >&5
18475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); } && {
18477          test -z "$ac_c_werror_flag" ||
18478          test ! -s conftest.err
18479        } && test -s conftest.$ac_objext; then
18480   ac_cv_sys_largefile_CC=' -n32'; break
18481 else
18482   $as_echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18484
18485
18486 fi
18487
18488 rm -f core conftest.err conftest.$ac_objext
18489          break
18490        done
18491        CC=$ac_save_CC
18492        rm -f conftest.$ac_ext
18493     fi
18494 fi
18495 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18496 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18497   if test "$ac_cv_sys_largefile_CC" != no; then
18498     CC=$CC$ac_cv_sys_largefile_CC
18499   fi
18500
18501   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18502 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18503 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18504   $as_echo_n "(cached) " >&6
18505 else
18506   while :; do
18507   cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513 #include <sys/types.h>
18514  /* Check that off_t can represent 2**63 - 1 correctly.
18515     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18516     since some C++ compilers masquerading as C compilers
18517     incorrectly reject 9223372036854775807.  */
18518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18519   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18520                        && LARGE_OFF_T % 2147483647 == 1)
18521                       ? 1 : -1];
18522 int
18523 main ()
18524 {
18525
18526   ;
18527   return 0;
18528 }
18529 _ACEOF
18530 rm -f conftest.$ac_objext
18531 if { (ac_try="$ac_compile"
18532 case "(($ac_try" in
18533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18534   *) ac_try_echo=$ac_try;;
18535 esac
18536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18537 $as_echo "$ac_try_echo") >&5
18538   (eval "$ac_compile") 2>conftest.er1
18539   ac_status=$?
18540   grep -v '^ *+' conftest.er1 >conftest.err
18541   rm -f conftest.er1
18542   cat conftest.err >&5
18543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } && {
18545          test -z "$ac_c_werror_flag" ||
18546          test ! -s conftest.err
18547        } && test -s conftest.$ac_objext; then
18548   ac_cv_sys_file_offset_bits=no; break
18549 else
18550   $as_echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18552
18553
18554 fi
18555
18556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557   cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563 #define _FILE_OFFSET_BITS 64
18564 #include <sys/types.h>
18565  /* Check that off_t can represent 2**63 - 1 correctly.
18566     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18567     since some C++ compilers masquerading as C compilers
18568     incorrectly reject 9223372036854775807.  */
18569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18570   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18571                        && LARGE_OFF_T % 2147483647 == 1)
18572                       ? 1 : -1];
18573 int
18574 main ()
18575 {
18576
18577   ;
18578   return 0;
18579 }
18580 _ACEOF
18581 rm -f conftest.$ac_objext
18582 if { (ac_try="$ac_compile"
18583 case "(($ac_try" in
18584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585   *) ac_try_echo=$ac_try;;
18586 esac
18587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18588 $as_echo "$ac_try_echo") >&5
18589   (eval "$ac_compile") 2>conftest.er1
18590   ac_status=$?
18591   grep -v '^ *+' conftest.er1 >conftest.err
18592   rm -f conftest.er1
18593   cat conftest.err >&5
18594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); } && {
18596          test -z "$ac_c_werror_flag" ||
18597          test ! -s conftest.err
18598        } && test -s conftest.$ac_objext; then
18599   ac_cv_sys_file_offset_bits=64; break
18600 else
18601   $as_echo "$as_me: failed program was:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18603
18604
18605 fi
18606
18607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18608   ac_cv_sys_file_offset_bits=unknown
18609   break
18610 done
18611 fi
18612 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18613 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18614 case $ac_cv_sys_file_offset_bits in #(
18615   no | unknown) ;;
18616   *)
18617 cat >>confdefs.h <<_ACEOF
18618 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18619 _ACEOF
18620 ;;
18621 esac
18622 rm -rf conftest*
18623   if test $ac_cv_sys_file_offset_bits = unknown; then
18624     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18625 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18626 if test "${ac_cv_sys_large_files+set}" = set; then
18627   $as_echo_n "(cached) " >&6
18628 else
18629   while :; do
18630   cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636 #include <sys/types.h>
18637  /* Check that off_t can represent 2**63 - 1 correctly.
18638     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18639     since some C++ compilers masquerading as C compilers
18640     incorrectly reject 9223372036854775807.  */
18641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18642   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18643                        && LARGE_OFF_T % 2147483647 == 1)
18644                       ? 1 : -1];
18645 int
18646 main ()
18647 {
18648
18649   ;
18650   return 0;
18651 }
18652 _ACEOF
18653 rm -f conftest.$ac_objext
18654 if { (ac_try="$ac_compile"
18655 case "(($ac_try" in
18656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657   *) ac_try_echo=$ac_try;;
18658 esac
18659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18660 $as_echo "$ac_try_echo") >&5
18661   (eval "$ac_compile") 2>conftest.er1
18662   ac_status=$?
18663   grep -v '^ *+' conftest.er1 >conftest.err
18664   rm -f conftest.er1
18665   cat conftest.err >&5
18666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); } && {
18668          test -z "$ac_c_werror_flag" ||
18669          test ! -s conftest.err
18670        } && test -s conftest.$ac_objext; then
18671   ac_cv_sys_large_files=no; break
18672 else
18673   $as_echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676
18677 fi
18678
18679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18680   cat >conftest.$ac_ext <<_ACEOF
18681 /* confdefs.h.  */
18682 _ACEOF
18683 cat confdefs.h >>conftest.$ac_ext
18684 cat >>conftest.$ac_ext <<_ACEOF
18685 /* end confdefs.h.  */
18686 #define _LARGE_FILES 1
18687 #include <sys/types.h>
18688  /* Check that off_t can represent 2**63 - 1 correctly.
18689     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18690     since some C++ compilers masquerading as C compilers
18691     incorrectly reject 9223372036854775807.  */
18692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18693   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18694                        && LARGE_OFF_T % 2147483647 == 1)
18695                       ? 1 : -1];
18696 int
18697 main ()
18698 {
18699
18700   ;
18701   return 0;
18702 }
18703 _ACEOF
18704 rm -f conftest.$ac_objext
18705 if { (ac_try="$ac_compile"
18706 case "(($ac_try" in
18707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708   *) ac_try_echo=$ac_try;;
18709 esac
18710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18711 $as_echo "$ac_try_echo") >&5
18712   (eval "$ac_compile") 2>conftest.er1
18713   ac_status=$?
18714   grep -v '^ *+' conftest.er1 >conftest.err
18715   rm -f conftest.er1
18716   cat conftest.err >&5
18717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); } && {
18719          test -z "$ac_c_werror_flag" ||
18720          test ! -s conftest.err
18721        } && test -s conftest.$ac_objext; then
18722   ac_cv_sys_large_files=1; break
18723 else
18724   $as_echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727
18728 fi
18729
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18731   ac_cv_sys_large_files=unknown
18732   break
18733 done
18734 fi
18735 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18736 $as_echo "$ac_cv_sys_large_files" >&6; }
18737 case $ac_cv_sys_large_files in #(
18738   no | unknown) ;;
18739   *)
18740 cat >>confdefs.h <<_ACEOF
18741 #define _LARGE_FILES $ac_cv_sys_large_files
18742 _ACEOF
18743 ;;
18744 esac
18745 rm -rf conftest*
18746   fi
18747 fi
18748
18749 fi
18750
18751 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18752 # The cast to long int works around a bug in the HP C Compiler
18753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18755 # This bug is HP SR number 8606223364.
18756 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18757 $as_echo_n "checking size of off_t... " >&6; }
18758 if test "${ac_cv_sizeof_off_t+set}" = set; then
18759   $as_echo_n "(cached) " >&6
18760 else
18761   if test "$cross_compiling" = yes; then
18762   # Depending upon the size, compute the lo and hi bounds.
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h.  */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h.  */
18769 $ac_includes_default
18770 int
18771 main ()
18772 {
18773 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18774 test_array [0] = 0
18775
18776   ;
18777   return 0;
18778 }
18779 _ACEOF
18780 rm -f conftest.$ac_objext
18781 if { (ac_try="$ac_compile"
18782 case "(($ac_try" in
18783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784   *) ac_try_echo=$ac_try;;
18785 esac
18786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18787 $as_echo "$ac_try_echo") >&5
18788   (eval "$ac_compile") 2>conftest.er1
18789   ac_status=$?
18790   grep -v '^ *+' conftest.er1 >conftest.err
18791   rm -f conftest.er1
18792   cat conftest.err >&5
18793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); } && {
18795          test -z "$ac_c_werror_flag" ||
18796          test ! -s conftest.err
18797        } && test -s conftest.$ac_objext; then
18798   ac_lo=0 ac_mid=0
18799   while :; do
18800     cat >conftest.$ac_ext <<_ACEOF
18801 /* confdefs.h.  */
18802 _ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h.  */
18806 $ac_includes_default
18807 int
18808 main ()
18809 {
18810 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18811 test_array [0] = 0
18812
18813   ;
18814   return 0;
18815 }
18816 _ACEOF
18817 rm -f conftest.$ac_objext
18818 if { (ac_try="$ac_compile"
18819 case "(($ac_try" in
18820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18821   *) ac_try_echo=$ac_try;;
18822 esac
18823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18824 $as_echo "$ac_try_echo") >&5
18825   (eval "$ac_compile") 2>conftest.er1
18826   ac_status=$?
18827   grep -v '^ *+' conftest.er1 >conftest.err
18828   rm -f conftest.er1
18829   cat conftest.err >&5
18830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831   (exit $ac_status); } && {
18832          test -z "$ac_c_werror_flag" ||
18833          test ! -s conftest.err
18834        } && test -s conftest.$ac_objext; then
18835   ac_hi=$ac_mid; break
18836 else
18837   $as_echo "$as_me: failed program was:" >&5
18838 sed 's/^/| /' conftest.$ac_ext >&5
18839
18840         ac_lo=`expr $ac_mid + 1`
18841                         if test $ac_lo -le $ac_mid; then
18842                           ac_lo= ac_hi=
18843                           break
18844                         fi
18845                         ac_mid=`expr 2 '*' $ac_mid + 1`
18846 fi
18847
18848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18849   done
18850 else
18851   $as_echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854         cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h.  */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h.  */
18860 $ac_includes_default
18861 int
18862 main ()
18863 {
18864 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18865 test_array [0] = 0
18866
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext
18872 if { (ac_try="$ac_compile"
18873 case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18878 $as_echo "$ac_try_echo") >&5
18879   (eval "$ac_compile") 2>conftest.er1
18880   ac_status=$?
18881   grep -v '^ *+' conftest.er1 >conftest.err
18882   rm -f conftest.er1
18883   cat conftest.err >&5
18884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); } && {
18886          test -z "$ac_c_werror_flag" ||
18887          test ! -s conftest.err
18888        } && test -s conftest.$ac_objext; then
18889   ac_hi=-1 ac_mid=-1
18890   while :; do
18891     cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h.  */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h.  */
18897 $ac_includes_default
18898 int
18899 main ()
18900 {
18901 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18902 test_array [0] = 0
18903
18904   ;
18905   return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext
18909 if { (ac_try="$ac_compile"
18910 case "(($ac_try" in
18911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912   *) ac_try_echo=$ac_try;;
18913 esac
18914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18915 $as_echo "$ac_try_echo") >&5
18916   (eval "$ac_compile") 2>conftest.er1
18917   ac_status=$?
18918   grep -v '^ *+' conftest.er1 >conftest.err
18919   rm -f conftest.er1
18920   cat conftest.err >&5
18921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); } && {
18923          test -z "$ac_c_werror_flag" ||
18924          test ! -s conftest.err
18925        } && test -s conftest.$ac_objext; then
18926   ac_lo=$ac_mid; break
18927 else
18928   $as_echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931         ac_hi=`expr '(' $ac_mid ')' - 1`
18932                         if test $ac_mid -le $ac_hi; then
18933                           ac_lo= ac_hi=
18934                           break
18935                         fi
18936                         ac_mid=`expr 2 '*' $ac_mid`
18937 fi
18938
18939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18940   done
18941 else
18942   $as_echo "$as_me: failed program was:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18944
18945         ac_lo= ac_hi=
18946 fi
18947
18948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949 fi
18950
18951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18952 # Binary search between lo and hi bounds.
18953 while test "x$ac_lo" != "x$ac_hi"; do
18954   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18955   cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h.  */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h.  */
18961 $ac_includes_default
18962 int
18963 main ()
18964 {
18965 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18966 test_array [0] = 0
18967
18968   ;
18969   return 0;
18970 }
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976   *) ac_try_echo=$ac_try;;
18977 esac
18978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18979 $as_echo "$ac_try_echo") >&5
18980   (eval "$ac_compile") 2>conftest.er1
18981   ac_status=$?
18982   grep -v '^ *+' conftest.er1 >conftest.err
18983   rm -f conftest.er1
18984   cat conftest.err >&5
18985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); } && {
18987          test -z "$ac_c_werror_flag" ||
18988          test ! -s conftest.err
18989        } && test -s conftest.$ac_objext; then
18990   ac_hi=$ac_mid
18991 else
18992   $as_echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995         ac_lo=`expr '(' $ac_mid ')' + 1`
18996 fi
18997
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 done
19000 case $ac_lo in
19001 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19002 '') if test "$ac_cv_type_off_t" = yes; then
19003      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19005 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19006 See \`config.log' for more details." >&5
19007 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19008 See \`config.log' for more details." >&2;}
19009    { (exit 77); exit 77; }; }; }
19010    else
19011      ac_cv_sizeof_off_t=0
19012    fi ;;
19013 esac
19014 else
19015   cat >conftest.$ac_ext <<_ACEOF
19016 /* confdefs.h.  */
19017 _ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h.  */
19021 $ac_includes_default
19022 static long int longval () { return (long int) (sizeof (off_t)); }
19023 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19024 #include <stdio.h>
19025 #include <stdlib.h>
19026 int
19027 main ()
19028 {
19029
19030   FILE *f = fopen ("conftest.val", "w");
19031   if (! f)
19032     return 1;
19033   if (((long int) (sizeof (off_t))) < 0)
19034     {
19035       long int i = longval ();
19036       if (i != ((long int) (sizeof (off_t))))
19037         return 1;
19038       fprintf (f, "%ld", i);
19039     }
19040   else
19041     {
19042       unsigned long int i = ulongval ();
19043       if (i != ((long int) (sizeof (off_t))))
19044         return 1;
19045       fprintf (f, "%lu", i);
19046     }
19047   /* Do not output a trailing newline, as this causes \r\n confusion
19048      on some platforms.  */
19049   return ferror (f) || fclose (f) != 0;
19050
19051   ;
19052   return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059   *) ac_try_echo=$ac_try;;
19060 esac
19061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19062 $as_echo "$ac_try_echo") >&5
19063   (eval "$ac_link") 2>&5
19064   ac_status=$?
19065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19067   { (case "(($ac_try" in
19068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069   *) ac_try_echo=$ac_try;;
19070 esac
19071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19072 $as_echo "$ac_try_echo") >&5
19073   (eval "$ac_try") 2>&5
19074   ac_status=$?
19075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076   (exit $ac_status); }; }; then
19077   ac_cv_sizeof_off_t=`cat conftest.val`
19078 else
19079   $as_echo "$as_me: program exited with status $ac_status" >&5
19080 $as_echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083 ( exit $ac_status )
19084 if test "$ac_cv_type_off_t" = yes; then
19085      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19087 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19088 See \`config.log' for more details." >&5
19089 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19090 See \`config.log' for more details." >&2;}
19091    { (exit 77); exit 77; }; }; }
19092    else
19093      ac_cv_sizeof_off_t=0
19094    fi
19095 fi
19096 rm -rf conftest.dSYM
19097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19098 fi
19099 rm -f conftest.val
19100 fi
19101 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19102 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19103
19104
19105
19106 cat >>confdefs.h <<_ACEOF
19107 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19108 _ACEOF
19109
19110
19111
19112 # If we don't have largefile support, can't handle segsize >= 2GB.
19113 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19114    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19115 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19116    { (exit 1); exit 1; }; }
19117 fi
19118
19119
19120 ##
19121 ## Functions, global variables
19122 ##
19123
19124 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19125 $as_echo_n "checking for int timezone... " >&6; }
19126 if test "${pgac_cv_var_int_timezone+set}" = set; then
19127   $as_echo_n "(cached) " >&6
19128 else
19129   cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h.  */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h.  */
19135 #include <time.h>
19136 int res;
19137 int
19138 main ()
19139 {
19140 #ifndef __CYGWIN__
19141 res = timezone / 60;
19142 #else
19143 res = _timezone / 60;
19144 #endif
19145   ;
19146   return 0;
19147 }
19148 _ACEOF
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (ac_try="$ac_link"
19151 case "(($ac_try" in
19152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153   *) ac_try_echo=$ac_try;;
19154 esac
19155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19156 $as_echo "$ac_try_echo") >&5
19157   (eval "$ac_link") 2>conftest.er1
19158   ac_status=$?
19159   grep -v '^ *+' conftest.er1 >conftest.err
19160   rm -f conftest.er1
19161   cat conftest.err >&5
19162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } && {
19164          test -z "$ac_c_werror_flag" ||
19165          test ! -s conftest.err
19166        } && test -s conftest$ac_exeext && {
19167          test "$cross_compiling" = yes ||
19168          $as_test_x conftest$ac_exeext
19169        }; then
19170   pgac_cv_var_int_timezone=yes
19171 else
19172   $as_echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19174
19175         pgac_cv_var_int_timezone=no
19176 fi
19177
19178 rm -rf conftest.dSYM
19179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19180       conftest$ac_exeext conftest.$ac_ext
19181 fi
19182 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19183 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19184 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19185
19186 cat >>confdefs.h <<\_ACEOF
19187 #define HAVE_INT_TIMEZONE /**/
19188 _ACEOF
19189
19190 fi
19191 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19192 $as_echo_n "checking types of arguments for accept()... " >&6; }
19193  if test "${ac_cv_func_accept_return+set}" = set; then
19194   $as_echo_n "(cached) " >&6
19195 else
19196    if test "${ac_cv_func_accept_arg1+set}" = set; then
19197   $as_echo_n "(cached) " >&6
19198 else
19199     if test "${ac_cv_func_accept_arg2+set}" = set; then
19200   $as_echo_n "(cached) " >&6
19201 else
19202      if test "${ac_cv_func_accept_arg3+set}" = set; then
19203   $as_echo_n "(cached) " >&6
19204 else
19205       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19206       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19207        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19208         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19209          cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h.  */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h.  */
19215 #ifdef HAVE_SYS_TYPES_H
19216 #include <sys/types.h>
19217 #endif
19218 #ifdef HAVE_SYS_SOCKET_H
19219 #include <sys/socket.h>
19220 #endif
19221 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19222 int
19223 main ()
19224 {
19225
19226   ;
19227   return 0;
19228 }
19229 _ACEOF
19230 rm -f conftest.$ac_objext
19231 if { (ac_try="$ac_compile"
19232 case "(($ac_try" in
19233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234   *) ac_try_echo=$ac_try;;
19235 esac
19236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19237 $as_echo "$ac_try_echo") >&5
19238   (eval "$ac_compile") 2>conftest.er1
19239   ac_status=$?
19240   grep -v '^ *+' conftest.er1 >conftest.err
19241   rm -f conftest.er1
19242   cat conftest.err >&5
19243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } && {
19245          test -z "$ac_c_werror_flag" ||
19246          test ! -s conftest.err
19247        } && test -s conftest.$ac_objext; then
19248   ac_not_found=no; break 4
19249 else
19250   $as_echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253         ac_not_found=yes
19254 fi
19255
19256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19257        done
19258       done
19259      done
19260     done
19261     if test "$ac_not_found" = yes; then
19262       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19263 $as_echo "$as_me: error: could not determine argument types" >&2;}
19264    { (exit 1); exit 1; }; }
19265     fi
19266     if test "$ac_cv_func_accept_arg3" = "void"; then
19267       ac_cv_func_accept_arg3=int
19268     fi
19269
19270 fi
19271
19272 fi
19273
19274 fi
19275
19276 fi
19277  { $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
19278 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19279
19280 cat >>confdefs.h <<_ACEOF
19281 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19282 _ACEOF
19283
19284
19285 cat >>confdefs.h <<_ACEOF
19286 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19287 _ACEOF
19288
19289
19290 cat >>confdefs.h <<_ACEOF
19291 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19292 _ACEOF
19293
19294
19295 cat >>confdefs.h <<_ACEOF
19296 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19297 _ACEOF
19298
19299
19300 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19301 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19302 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19303   $as_echo_n "(cached) " >&6
19304 else
19305   cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h.  */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h.  */
19311 #include <sys/time.h>
19312 int
19313 main ()
19314 {
19315 struct timeval *tp;
19316 struct timezone *tzp;
19317 gettimeofday(tp,tzp);
19318   ;
19319   return 0;
19320 }
19321 _ACEOF
19322 rm -f conftest.$ac_objext
19323 if { (ac_try="$ac_compile"
19324 case "(($ac_try" in
19325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326   *) ac_try_echo=$ac_try;;
19327 esac
19328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19329 $as_echo "$ac_try_echo") >&5
19330   (eval "$ac_compile") 2>conftest.er1
19331   ac_status=$?
19332   grep -v '^ *+' conftest.er1 >conftest.err
19333   rm -f conftest.er1
19334   cat conftest.err >&5
19335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336   (exit $ac_status); } && {
19337          test -z "$ac_c_werror_flag" ||
19338          test ! -s conftest.err
19339        } && test -s conftest.$ac_objext; then
19340   pgac_cv_func_gettimeofday_1arg=no
19341 else
19342   $as_echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345         pgac_cv_func_gettimeofday_1arg=yes
19346 fi
19347
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 fi
19350 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19351 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19352 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19353
19354 cat >>confdefs.h <<\_ACEOF
19355 #define GETTIMEOFDAY_1ARG /**/
19356 _ACEOF
19357
19358 fi
19359
19360
19361
19362 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19363 # symbols that that library has no business exposing to the world.  Pending
19364 # acquisition of a clue by those developers, ignore libedit (including its
19365 # possible alias of libreadline) while checking for everything else.
19366 LIBS_including_readline="$LIBS"
19367 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19391 do
19392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19393 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19394 $as_echo_n "checking for $ac_func... " >&6; }
19395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19396   $as_echo_n "(cached) " >&6
19397 else
19398   cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19406 #define $ac_func innocuous_$ac_func
19407
19408 /* System header to define __stub macros and hopefully few prototypes,
19409     which can conflict with char $ac_func (); below.
19410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19411     <limits.h> exists even on freestanding compilers.  */
19412
19413 #ifdef __STDC__
19414 # include <limits.h>
19415 #else
19416 # include <assert.h>
19417 #endif
19418
19419 #undef $ac_func
19420
19421 /* Override any GCC internal prototype to avoid an error.
19422    Use char because int might match the return type of a GCC
19423    builtin and then its argument prototype would still apply.  */
19424 #ifdef __cplusplus
19425 extern "C"
19426 #endif
19427 char $ac_func ();
19428 /* The GNU C library defines this for functions which it implements
19429     to always fail with ENOSYS.  Some functions are actually named
19430     something starting with __ and the normal name is an alias.  */
19431 #if defined __stub_$ac_func || defined __stub___$ac_func
19432 choke me
19433 #endif
19434
19435 int
19436 main ()
19437 {
19438 return $ac_func ();
19439   ;
19440   return 0;
19441 }
19442 _ACEOF
19443 rm -f conftest.$ac_objext conftest$ac_exeext
19444 if { (ac_try="$ac_link"
19445 case "(($ac_try" in
19446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447   *) ac_try_echo=$ac_try;;
19448 esac
19449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19450 $as_echo "$ac_try_echo") >&5
19451   (eval "$ac_link") 2>conftest.er1
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
19455   cat conftest.err >&5
19456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } && {
19458          test -z "$ac_c_werror_flag" ||
19459          test ! -s conftest.err
19460        } && test -s conftest$ac_exeext && {
19461          test "$cross_compiling" = yes ||
19462          $as_test_x conftest$ac_exeext
19463        }; then
19464   eval "$as_ac_var=yes"
19465 else
19466   $as_echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469         eval "$as_ac_var=no"
19470 fi
19471
19472 rm -rf conftest.dSYM
19473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474       conftest$ac_exeext conftest.$ac_ext
19475 fi
19476 ac_res=`eval 'as_val=${'$as_ac_var'}
19477                  $as_echo "$as_val"'`
19478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19479 $as_echo "$ac_res" >&6; }
19480 as_val=`eval 'as_val=${'$as_ac_var'}
19481                  $as_echo "$as_val"'`
19482    if test "x$as_val" = x""yes; then
19483   cat >>confdefs.h <<_ACEOF
19484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19485 _ACEOF
19486
19487 fi
19488 done
19489
19490
19491
19492 for ac_func in fseeko
19493 do
19494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19495 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19496 $as_echo_n "checking for $ac_func... " >&6; }
19497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19498   $as_echo_n "(cached) " >&6
19499 else
19500   cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h.  */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h.  */
19506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19508 #define $ac_func innocuous_$ac_func
19509
19510 /* System header to define __stub macros and hopefully few prototypes,
19511     which can conflict with char $ac_func (); below.
19512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19513     <limits.h> exists even on freestanding compilers.  */
19514
19515 #ifdef __STDC__
19516 # include <limits.h>
19517 #else
19518 # include <assert.h>
19519 #endif
19520
19521 #undef $ac_func
19522
19523 /* Override any GCC internal prototype to avoid an error.
19524    Use char because int might match the return type of a GCC
19525    builtin and then its argument prototype would still apply.  */
19526 #ifdef __cplusplus
19527 extern "C"
19528 #endif
19529 char $ac_func ();
19530 /* The GNU C library defines this for functions which it implements
19531     to always fail with ENOSYS.  Some functions are actually named
19532     something starting with __ and the normal name is an alias.  */
19533 #if defined __stub_$ac_func || defined __stub___$ac_func
19534 choke me
19535 #endif
19536
19537 int
19538 main ()
19539 {
19540 return $ac_func ();
19541   ;
19542   return 0;
19543 }
19544 _ACEOF
19545 rm -f conftest.$ac_objext conftest$ac_exeext
19546 if { (ac_try="$ac_link"
19547 case "(($ac_try" in
19548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549   *) ac_try_echo=$ac_try;;
19550 esac
19551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19552 $as_echo "$ac_try_echo") >&5
19553   (eval "$ac_link") 2>conftest.er1
19554   ac_status=$?
19555   grep -v '^ *+' conftest.er1 >conftest.err
19556   rm -f conftest.er1
19557   cat conftest.err >&5
19558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); } && {
19560          test -z "$ac_c_werror_flag" ||
19561          test ! -s conftest.err
19562        } && test -s conftest$ac_exeext && {
19563          test "$cross_compiling" = yes ||
19564          $as_test_x conftest$ac_exeext
19565        }; then
19566   eval "$as_ac_var=yes"
19567 else
19568   $as_echo "$as_me: failed program was:" >&5
19569 sed 's/^/| /' conftest.$ac_ext >&5
19570
19571         eval "$as_ac_var=no"
19572 fi
19573
19574 rm -rf conftest.dSYM
19575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19576       conftest$ac_exeext conftest.$ac_ext
19577 fi
19578 ac_res=`eval 'as_val=${'$as_ac_var'}
19579                  $as_echo "$as_val"'`
19580                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19581 $as_echo "$ac_res" >&6; }
19582 as_val=`eval 'as_val=${'$as_ac_var'}
19583                  $as_echo "$as_val"'`
19584    if test "x$as_val" = x""yes; then
19585   cat >>confdefs.h <<_ACEOF
19586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19587 _ACEOF
19588
19589 else
19590   case " $LIBOBJS " in
19591   *" $ac_func.$ac_objext "* ) ;;
19592   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19593  ;;
19594 esac
19595
19596 fi
19597 done
19598
19599
19600 case $host_os in
19601         # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19602         # Mingw uses macros to access Win32 API calls
19603         netbsd*|mingw*)
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_FSEEKO 1
19607 _ACEOF
19608
19609                 ac_cv_func_fseeko=yes;;
19610         *)
19611                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19612 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19613 if test "${ac_cv_sys_largefile_source+set}" = set; then
19614   $as_echo_n "(cached) " >&6
19615 else
19616   while :; do
19617   cat >conftest.$ac_ext <<_ACEOF
19618 /* confdefs.h.  */
19619 _ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h.  */
19623 #include <sys/types.h> /* for off_t */
19624      #include <stdio.h>
19625 int
19626 main ()
19627 {
19628 int (*fp) (FILE *, off_t, int) = fseeko;
19629      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19630   ;
19631   return 0;
19632 }
19633 _ACEOF
19634 rm -f conftest.$ac_objext conftest$ac_exeext
19635 if { (ac_try="$ac_link"
19636 case "(($ac_try" in
19637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638   *) ac_try_echo=$ac_try;;
19639 esac
19640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19641 $as_echo "$ac_try_echo") >&5
19642   (eval "$ac_link") 2>conftest.er1
19643   ac_status=$?
19644   grep -v '^ *+' conftest.er1 >conftest.err
19645   rm -f conftest.er1
19646   cat conftest.err >&5
19647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); } && {
19649          test -z "$ac_c_werror_flag" ||
19650          test ! -s conftest.err
19651        } && test -s conftest$ac_exeext && {
19652          test "$cross_compiling" = yes ||
19653          $as_test_x conftest$ac_exeext
19654        }; then
19655   ac_cv_sys_largefile_source=no; break
19656 else
19657   $as_echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19659
19660
19661 fi
19662
19663 rm -rf conftest.dSYM
19664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19665       conftest$ac_exeext conftest.$ac_ext
19666   cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672 #define _LARGEFILE_SOURCE 1
19673 #include <sys/types.h> /* for off_t */
19674      #include <stdio.h>
19675 int
19676 main ()
19677 {
19678 int (*fp) (FILE *, off_t, int) = fseeko;
19679      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19680   ;
19681   return 0;
19682 }
19683 _ACEOF
19684 rm -f conftest.$ac_objext conftest$ac_exeext
19685 if { (ac_try="$ac_link"
19686 case "(($ac_try" in
19687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688   *) ac_try_echo=$ac_try;;
19689 esac
19690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19691 $as_echo "$ac_try_echo") >&5
19692   (eval "$ac_link") 2>conftest.er1
19693   ac_status=$?
19694   grep -v '^ *+' conftest.er1 >conftest.err
19695   rm -f conftest.er1
19696   cat conftest.err >&5
19697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698   (exit $ac_status); } && {
19699          test -z "$ac_c_werror_flag" ||
19700          test ! -s conftest.err
19701        } && test -s conftest$ac_exeext && {
19702          test "$cross_compiling" = yes ||
19703          $as_test_x conftest$ac_exeext
19704        }; then
19705   ac_cv_sys_largefile_source=1; break
19706 else
19707   $as_echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19709
19710
19711 fi
19712
19713 rm -rf conftest.dSYM
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715       conftest$ac_exeext conftest.$ac_ext
19716   ac_cv_sys_largefile_source=unknown
19717   break
19718 done
19719 fi
19720 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19721 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19722 case $ac_cv_sys_largefile_source in #(
19723   no | unknown) ;;
19724   *)
19725 cat >>confdefs.h <<_ACEOF
19726 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19727 _ACEOF
19728 ;;
19729 esac
19730 rm -rf conftest*
19731
19732 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19733 # in glibc 2.1.3, but that breaks too many other things.
19734 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19735 if test $ac_cv_sys_largefile_source != unknown; then
19736
19737 cat >>confdefs.h <<\_ACEOF
19738 #define HAVE_FSEEKO 1
19739 _ACEOF
19740
19741 fi
19742 ;;
19743 esac
19744
19745 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19746 # by calling it, 2009-04-02
19747 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19748 if test "$PORTNAME" != "solaris"; then
19749
19750 for ac_func in posix_fadvise
19751 do
19752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19753 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19754 $as_echo_n "checking for $ac_func... " >&6; }
19755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19756   $as_echo_n "(cached) " >&6
19757 else
19758   cat >conftest.$ac_ext <<_ACEOF
19759 /* confdefs.h.  */
19760 _ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h.  */
19764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19766 #define $ac_func innocuous_$ac_func
19767
19768 /* System header to define __stub macros and hopefully few prototypes,
19769     which can conflict with char $ac_func (); below.
19770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19771     <limits.h> exists even on freestanding compilers.  */
19772
19773 #ifdef __STDC__
19774 # include <limits.h>
19775 #else
19776 # include <assert.h>
19777 #endif
19778
19779 #undef $ac_func
19780
19781 /* Override any GCC internal prototype to avoid an error.
19782    Use char because int might match the return type of a GCC
19783    builtin and then its argument prototype would still apply.  */
19784 #ifdef __cplusplus
19785 extern "C"
19786 #endif
19787 char $ac_func ();
19788 /* The GNU C library defines this for functions which it implements
19789     to always fail with ENOSYS.  Some functions are actually named
19790     something starting with __ and the normal name is an alias.  */
19791 #if defined __stub_$ac_func || defined __stub___$ac_func
19792 choke me
19793 #endif
19794
19795 int
19796 main ()
19797 {
19798 return $ac_func ();
19799   ;
19800   return 0;
19801 }
19802 _ACEOF
19803 rm -f conftest.$ac_objext conftest$ac_exeext
19804 if { (ac_try="$ac_link"
19805 case "(($ac_try" in
19806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807   *) ac_try_echo=$ac_try;;
19808 esac
19809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19810 $as_echo "$ac_try_echo") >&5
19811   (eval "$ac_link") 2>conftest.er1
19812   ac_status=$?
19813   grep -v '^ *+' conftest.er1 >conftest.err
19814   rm -f conftest.er1
19815   cat conftest.err >&5
19816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); } && {
19818          test -z "$ac_c_werror_flag" ||
19819          test ! -s conftest.err
19820        } && test -s conftest$ac_exeext && {
19821          test "$cross_compiling" = yes ||
19822          $as_test_x conftest$ac_exeext
19823        }; then
19824   eval "$as_ac_var=yes"
19825 else
19826   $as_echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829         eval "$as_ac_var=no"
19830 fi
19831
19832 rm -rf conftest.dSYM
19833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19834       conftest$ac_exeext conftest.$ac_ext
19835 fi
19836 ac_res=`eval 'as_val=${'$as_ac_var'}
19837                  $as_echo "$as_val"'`
19838                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19839 $as_echo "$ac_res" >&6; }
19840 as_val=`eval 'as_val=${'$as_ac_var'}
19841                  $as_echo "$as_val"'`
19842    if test "x$as_val" = x""yes; then
19843   cat >>confdefs.h <<_ACEOF
19844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19845 _ACEOF
19846
19847 fi
19848 done
19849
19850 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19851 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19852 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19853   $as_echo_n "(cached) " >&6
19854 else
19855   cat >conftest.$ac_ext <<_ACEOF
19856 /* confdefs.h.  */
19857 _ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h.  */
19861 #include <fcntl.h>
19862
19863 int
19864 main ()
19865 {
19866 #ifndef posix_fadvise
19867   (void) posix_fadvise;
19868 #endif
19869
19870   ;
19871   return 0;
19872 }
19873 _ACEOF
19874 rm -f conftest.$ac_objext
19875 if { (ac_try="$ac_compile"
19876 case "(($ac_try" in
19877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878   *) ac_try_echo=$ac_try;;
19879 esac
19880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19881 $as_echo "$ac_try_echo") >&5
19882   (eval "$ac_compile") 2>conftest.er1
19883   ac_status=$?
19884   grep -v '^ *+' conftest.er1 >conftest.err
19885   rm -f conftest.er1
19886   cat conftest.err >&5
19887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); } && {
19889          test -z "$ac_c_werror_flag" ||
19890          test ! -s conftest.err
19891        } && test -s conftest.$ac_objext; then
19892   ac_cv_have_decl_posix_fadvise=yes
19893 else
19894   $as_echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897         ac_cv_have_decl_posix_fadvise=no
19898 fi
19899
19900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19901 fi
19902 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19903 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19904 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19905
19906 cat >>confdefs.h <<_ACEOF
19907 #define HAVE_DECL_POSIX_FADVISE 1
19908 _ACEOF
19909
19910
19911 else
19912   cat >>confdefs.h <<_ACEOF
19913 #define HAVE_DECL_POSIX_FADVISE 0
19914 _ACEOF
19915
19916
19917 fi
19918
19919
19920 fi
19921
19922 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19923 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19924 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19925   $as_echo_n "(cached) " >&6
19926 else
19927   cat >conftest.$ac_ext <<_ACEOF
19928 /* confdefs.h.  */
19929 _ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h.  */
19933 #include <unistd.h>
19934
19935 int
19936 main ()
19937 {
19938 #ifndef fdatasync
19939   (void) fdatasync;
19940 #endif
19941
19942   ;
19943   return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950   *) ac_try_echo=$ac_try;;
19951 esac
19952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19953 $as_echo "$ac_try_echo") >&5
19954   (eval "$ac_compile") 2>conftest.er1
19955   ac_status=$?
19956   grep -v '^ *+' conftest.er1 >conftest.err
19957   rm -f conftest.er1
19958   cat conftest.err >&5
19959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); } && {
19961          test -z "$ac_c_werror_flag" ||
19962          test ! -s conftest.err
19963        } && test -s conftest.$ac_objext; then
19964   ac_cv_have_decl_fdatasync=yes
19965 else
19966   $as_echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19968
19969         ac_cv_have_decl_fdatasync=no
19970 fi
19971
19972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19973 fi
19974 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19975 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19976 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19977
19978 cat >>confdefs.h <<_ACEOF
19979 #define HAVE_DECL_FDATASYNC 1
19980 _ACEOF
19981
19982
19983 else
19984   cat >>confdefs.h <<_ACEOF
19985 #define HAVE_DECL_FDATASYNC 0
19986 _ACEOF
19987
19988
19989 fi
19990
19991
19992 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19993 $as_echo_n "checking whether strlcat is declared... " >&6; }
19994 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19995   $as_echo_n "(cached) " >&6
19996 else
19997   cat >conftest.$ac_ext <<_ACEOF
19998 /* confdefs.h.  */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h.  */
20003 $ac_includes_default
20004 int
20005 main ()
20006 {
20007 #ifndef strlcat
20008   (void) strlcat;
20009 #endif
20010
20011   ;
20012   return 0;
20013 }
20014 _ACEOF
20015 rm -f conftest.$ac_objext
20016 if { (ac_try="$ac_compile"
20017 case "(($ac_try" in
20018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019   *) ac_try_echo=$ac_try;;
20020 esac
20021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20022 $as_echo "$ac_try_echo") >&5
20023   (eval "$ac_compile") 2>conftest.er1
20024   ac_status=$?
20025   grep -v '^ *+' conftest.er1 >conftest.err
20026   rm -f conftest.er1
20027   cat conftest.err >&5
20028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); } && {
20030          test -z "$ac_c_werror_flag" ||
20031          test ! -s conftest.err
20032        } && test -s conftest.$ac_objext; then
20033   ac_cv_have_decl_strlcat=yes
20034 else
20035   $as_echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038         ac_cv_have_decl_strlcat=no
20039 fi
20040
20041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20042 fi
20043 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20044 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20045 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20046
20047 cat >>confdefs.h <<_ACEOF
20048 #define HAVE_DECL_STRLCAT 1
20049 _ACEOF
20050
20051
20052 else
20053   cat >>confdefs.h <<_ACEOF
20054 #define HAVE_DECL_STRLCAT 0
20055 _ACEOF
20056
20057
20058 fi
20059 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20060 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20061 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20062   $as_echo_n "(cached) " >&6
20063 else
20064   cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h.  */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h.  */
20070 $ac_includes_default
20071 int
20072 main ()
20073 {
20074 #ifndef strlcpy
20075   (void) strlcpy;
20076 #endif
20077
20078   ;
20079   return 0;
20080 }
20081 _ACEOF
20082 rm -f conftest.$ac_objext
20083 if { (ac_try="$ac_compile"
20084 case "(($ac_try" in
20085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20086   *) ac_try_echo=$ac_try;;
20087 esac
20088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20089 $as_echo "$ac_try_echo") >&5
20090   (eval "$ac_compile") 2>conftest.er1
20091   ac_status=$?
20092   grep -v '^ *+' conftest.er1 >conftest.err
20093   rm -f conftest.er1
20094   cat conftest.err >&5
20095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096   (exit $ac_status); } && {
20097          test -z "$ac_c_werror_flag" ||
20098          test ! -s conftest.err
20099        } && test -s conftest.$ac_objext; then
20100   ac_cv_have_decl_strlcpy=yes
20101 else
20102   $as_echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105         ac_cv_have_decl_strlcpy=no
20106 fi
20107
20108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109 fi
20110 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20111 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20112 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20113
20114 cat >>confdefs.h <<_ACEOF
20115 #define HAVE_DECL_STRLCPY 1
20116 _ACEOF
20117
20118
20119 else
20120   cat >>confdefs.h <<_ACEOF
20121 #define HAVE_DECL_STRLCPY 0
20122 _ACEOF
20123
20124
20125 fi
20126
20127
20128 # This is probably only present on Darwin, but may as well check always
20129 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20130 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20131 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20132   $as_echo_n "(cached) " >&6
20133 else
20134   cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h.  */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h.  */
20140 #include <fcntl.h>
20141
20142 int
20143 main ()
20144 {
20145 #ifndef F_FULLFSYNC
20146   (void) F_FULLFSYNC;
20147 #endif
20148
20149   ;
20150   return 0;
20151 }
20152 _ACEOF
20153 rm -f conftest.$ac_objext
20154 if { (ac_try="$ac_compile"
20155 case "(($ac_try" in
20156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157   *) ac_try_echo=$ac_try;;
20158 esac
20159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20160 $as_echo "$ac_try_echo") >&5
20161   (eval "$ac_compile") 2>conftest.er1
20162   ac_status=$?
20163   grep -v '^ *+' conftest.er1 >conftest.err
20164   rm -f conftest.er1
20165   cat conftest.err >&5
20166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); } && {
20168          test -z "$ac_c_werror_flag" ||
20169          test ! -s conftest.err
20170        } && test -s conftest.$ac_objext; then
20171   ac_cv_have_decl_F_FULLFSYNC=yes
20172 else
20173   $as_echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176         ac_cv_have_decl_F_FULLFSYNC=no
20177 fi
20178
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 fi
20181 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20182 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20183 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20184
20185 cat >>confdefs.h <<_ACEOF
20186 #define HAVE_DECL_F_FULLFSYNC 1
20187 _ACEOF
20188
20189
20190 else
20191   cat >>confdefs.h <<_ACEOF
20192 #define HAVE_DECL_F_FULLFSYNC 0
20193 _ACEOF
20194
20195
20196 fi
20197
20198
20199
20200 HAVE_IPV6=no
20201 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20202 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20203 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20204   $as_echo_n "(cached) " >&6
20205 else
20206   ac_cv_type_struct_sockaddr_in6=no
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h.  */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h.  */
20213 $ac_includes_default
20214 #include <netinet/in.h>
20215
20216 int
20217 main ()
20218 {
20219 if (sizeof (struct sockaddr_in6))
20220        return 0;
20221   ;
20222   return 0;
20223 }
20224 _ACEOF
20225 rm -f conftest.$ac_objext
20226 if { (ac_try="$ac_compile"
20227 case "(($ac_try" in
20228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229   *) ac_try_echo=$ac_try;;
20230 esac
20231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20232 $as_echo "$ac_try_echo") >&5
20233   (eval "$ac_compile") 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } && {
20240          test -z "$ac_c_werror_flag" ||
20241          test ! -s conftest.err
20242        } && test -s conftest.$ac_objext; then
20243   cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h.  */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h.  */
20249 $ac_includes_default
20250 #include <netinet/in.h>
20251
20252 int
20253 main ()
20254 {
20255 if (sizeof ((struct sockaddr_in6)))
20256           return 0;
20257   ;
20258   return 0;
20259 }
20260 _ACEOF
20261 rm -f conftest.$ac_objext
20262 if { (ac_try="$ac_compile"
20263 case "(($ac_try" in
20264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265   *) ac_try_echo=$ac_try;;
20266 esac
20267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20268 $as_echo "$ac_try_echo") >&5
20269   (eval "$ac_compile") 2>conftest.er1
20270   ac_status=$?
20271   grep -v '^ *+' conftest.er1 >conftest.err
20272   rm -f conftest.er1
20273   cat conftest.err >&5
20274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } && {
20276          test -z "$ac_c_werror_flag" ||
20277          test ! -s conftest.err
20278        } && test -s conftest.$ac_objext; then
20279   :
20280 else
20281   $as_echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20283
20284         ac_cv_type_struct_sockaddr_in6=yes
20285 fi
20286
20287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20288 else
20289   $as_echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292
20293 fi
20294
20295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20296 fi
20297 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20298 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20299 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20300
20301 cat >>confdefs.h <<\_ACEOF
20302 #define HAVE_IPV6 1
20303 _ACEOF
20304
20305          HAVE_IPV6=yes
20306 fi
20307
20308
20309
20310 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20311 $as_echo_n "checking for PS_STRINGS... " >&6; }
20312 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20313   $as_echo_n "(cached) " >&6
20314 else
20315   cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321 #include <machine/vmparam.h>
20322 #include <sys/exec.h>
20323
20324 int
20325 main ()
20326 {
20327 PS_STRINGS->ps_nargvstr = 1;
20328 PS_STRINGS->ps_argvstr = "foo";
20329   ;
20330   return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337   *) ac_try_echo=$ac_try;;
20338 esac
20339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20340 $as_echo "$ac_try_echo") >&5
20341   (eval "$ac_link") 2>conftest.er1
20342   ac_status=$?
20343   grep -v '^ *+' conftest.er1 >conftest.err
20344   rm -f conftest.er1
20345   cat conftest.err >&5
20346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); } && {
20348          test -z "$ac_c_werror_flag" ||
20349          test ! -s conftest.err
20350        } && test -s conftest$ac_exeext && {
20351          test "$cross_compiling" = yes ||
20352          $as_test_x conftest$ac_exeext
20353        }; then
20354   pgac_cv_var_PS_STRINGS=yes
20355 else
20356   $as_echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20358
20359         pgac_cv_var_PS_STRINGS=no
20360 fi
20361
20362 rm -rf conftest.dSYM
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364       conftest$ac_exeext conftest.$ac_ext
20365 fi
20366 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20367 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20368 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20369
20370 cat >>confdefs.h <<\_ACEOF
20371 #define HAVE_PS_STRINGS /**/
20372 _ACEOF
20373
20374 fi
20375
20376
20377 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20378 # is missing.  Yes, there are machines that have only one.  We may
20379 # also decide to use snprintf.c if snprintf() is present but does not
20380 # have all the features we need --- see below.
20381
20382 if test "$PORTNAME" = "win32"; then
20383   # Win32 gets snprintf.c built unconditionally.
20384   #
20385   # To properly translate all NLS languages strings, we must support the
20386   # *printf() %$ format, which allows *printf() arguments to be selected
20387   # by position in the translated string.
20388   #
20389   # libintl versions < 0.13 use the native *printf() functions, and Win32
20390   # *printf() doesn't understand %$, so we must use our /port versions,
20391   # which do understand %$. libintl versions >= 0.13 include their own
20392   # *printf versions on Win32.  The libintl 0.13 release note text is:
20393   #
20394   #   C format strings with positions, as they arise when a translator
20395   #   needs to reorder a sentence, are now supported on all platforms.
20396   #   On those few platforms (NetBSD and Woe32) for which the native
20397   #   printf()/fprintf()/... functions don't support such format
20398   #   strings, replacements are provided through <libintl.h>.
20399   #
20400   # We could use libintl >= 0.13's *printf() if we were sure that we had
20401   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20402   # to guarantee that, it is best to just use our own, so we are sure to
20403   # get %$ support. In include/port.h we disable the *printf() macros
20404   # that might have been defined by libintl.
20405   #
20406   # We do this unconditionally whether NLS is used or not so we are sure
20407   # that all Win32 libraries and binaries behave the same.
20408   pgac_need_repl_snprintf=yes
20409 else
20410   pgac_need_repl_snprintf=no
20411
20412 for ac_func in snprintf
20413 do
20414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20415 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20416 $as_echo_n "checking for $ac_func... " >&6; }
20417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20418   $as_echo_n "(cached) " >&6
20419 else
20420   cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h.  */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h.  */
20426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20428 #define $ac_func innocuous_$ac_func
20429
20430 /* System header to define __stub macros and hopefully few prototypes,
20431     which can conflict with char $ac_func (); below.
20432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20433     <limits.h> exists even on freestanding compilers.  */
20434
20435 #ifdef __STDC__
20436 # include <limits.h>
20437 #else
20438 # include <assert.h>
20439 #endif
20440
20441 #undef $ac_func
20442
20443 /* Override any GCC internal prototype to avoid an error.
20444    Use char because int might match the return type of a GCC
20445    builtin and then its argument prototype would still apply.  */
20446 #ifdef __cplusplus
20447 extern "C"
20448 #endif
20449 char $ac_func ();
20450 /* The GNU C library defines this for functions which it implements
20451     to always fail with ENOSYS.  Some functions are actually named
20452     something starting with __ and the normal name is an alias.  */
20453 #if defined __stub_$ac_func || defined __stub___$ac_func
20454 choke me
20455 #endif
20456
20457 int
20458 main ()
20459 {
20460 return $ac_func ();
20461   ;
20462   return 0;
20463 }
20464 _ACEOF
20465 rm -f conftest.$ac_objext conftest$ac_exeext
20466 if { (ac_try="$ac_link"
20467 case "(($ac_try" in
20468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469   *) ac_try_echo=$ac_try;;
20470 esac
20471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20472 $as_echo "$ac_try_echo") >&5
20473   (eval "$ac_link") 2>conftest.er1
20474   ac_status=$?
20475   grep -v '^ *+' conftest.er1 >conftest.err
20476   rm -f conftest.er1
20477   cat conftest.err >&5
20478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); } && {
20480          test -z "$ac_c_werror_flag" ||
20481          test ! -s conftest.err
20482        } && test -s conftest$ac_exeext && {
20483          test "$cross_compiling" = yes ||
20484          $as_test_x conftest$ac_exeext
20485        }; then
20486   eval "$as_ac_var=yes"
20487 else
20488   $as_echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20490
20491         eval "$as_ac_var=no"
20492 fi
20493
20494 rm -rf conftest.dSYM
20495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20496       conftest$ac_exeext conftest.$ac_ext
20497 fi
20498 ac_res=`eval 'as_val=${'$as_ac_var'}
20499                  $as_echo "$as_val"'`
20500                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20501 $as_echo "$ac_res" >&6; }
20502 as_val=`eval 'as_val=${'$as_ac_var'}
20503                  $as_echo "$as_val"'`
20504    if test "x$as_val" = x""yes; then
20505   cat >>confdefs.h <<_ACEOF
20506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20507 _ACEOF
20508
20509 else
20510   pgac_need_repl_snprintf=yes
20511 fi
20512 done
20513
20514
20515 for ac_func in vsnprintf
20516 do
20517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20518 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20519 $as_echo_n "checking for $ac_func... " >&6; }
20520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20521   $as_echo_n "(cached) " >&6
20522 else
20523   cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h.  */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h.  */
20529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20531 #define $ac_func innocuous_$ac_func
20532
20533 /* System header to define __stub macros and hopefully few prototypes,
20534     which can conflict with char $ac_func (); below.
20535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536     <limits.h> exists even on freestanding compilers.  */
20537
20538 #ifdef __STDC__
20539 # include <limits.h>
20540 #else
20541 # include <assert.h>
20542 #endif
20543
20544 #undef $ac_func
20545
20546 /* Override any GCC internal prototype to avoid an error.
20547    Use char because int might match the return type of a GCC
20548    builtin and then its argument prototype would still apply.  */
20549 #ifdef __cplusplus
20550 extern "C"
20551 #endif
20552 char $ac_func ();
20553 /* The GNU C library defines this for functions which it implements
20554     to always fail with ENOSYS.  Some functions are actually named
20555     something starting with __ and the normal name is an alias.  */
20556 #if defined __stub_$ac_func || defined __stub___$ac_func
20557 choke me
20558 #endif
20559
20560 int
20561 main ()
20562 {
20563 return $ac_func ();
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20575 $as_echo "$ac_try_echo") >&5
20576   (eval "$ac_link") 2>conftest.er1
20577   ac_status=$?
20578   grep -v '^ *+' conftest.er1 >conftest.err
20579   rm -f conftest.er1
20580   cat conftest.err >&5
20581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582   (exit $ac_status); } && {
20583          test -z "$ac_c_werror_flag" ||
20584          test ! -s conftest.err
20585        } && test -s conftest$ac_exeext && {
20586          test "$cross_compiling" = yes ||
20587          $as_test_x conftest$ac_exeext
20588        }; then
20589   eval "$as_ac_var=yes"
20590 else
20591   $as_echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20593
20594         eval "$as_ac_var=no"
20595 fi
20596
20597 rm -rf conftest.dSYM
20598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20599       conftest$ac_exeext conftest.$ac_ext
20600 fi
20601 ac_res=`eval 'as_val=${'$as_ac_var'}
20602                  $as_echo "$as_val"'`
20603                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20604 $as_echo "$ac_res" >&6; }
20605 as_val=`eval 'as_val=${'$as_ac_var'}
20606                  $as_echo "$as_val"'`
20607    if test "x$as_val" = x""yes; then
20608   cat >>confdefs.h <<_ACEOF
20609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20610 _ACEOF
20611
20612 else
20613   pgac_need_repl_snprintf=yes
20614 fi
20615 done
20616
20617 fi
20618
20619
20620 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20621 # include/c.h will provide declarations.  Note this is a separate test
20622 # from whether the functions exist in the C library --- there are
20623 # systems that have the functions but don't bother to declare them :-(
20624
20625 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20626 $as_echo_n "checking whether snprintf is declared... " >&6; }
20627 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20628   $as_echo_n "(cached) " >&6
20629 else
20630   cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h.  */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h.  */
20636 $ac_includes_default
20637 int
20638 main ()
20639 {
20640 #ifndef snprintf
20641   (void) snprintf;
20642 #endif
20643
20644   ;
20645   return 0;
20646 }
20647 _ACEOF
20648 rm -f conftest.$ac_objext
20649 if { (ac_try="$ac_compile"
20650 case "(($ac_try" in
20651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652   *) ac_try_echo=$ac_try;;
20653 esac
20654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20655 $as_echo "$ac_try_echo") >&5
20656   (eval "$ac_compile") 2>conftest.er1
20657   ac_status=$?
20658   grep -v '^ *+' conftest.er1 >conftest.err
20659   rm -f conftest.er1
20660   cat conftest.err >&5
20661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662   (exit $ac_status); } && {
20663          test -z "$ac_c_werror_flag" ||
20664          test ! -s conftest.err
20665        } && test -s conftest.$ac_objext; then
20666   ac_cv_have_decl_snprintf=yes
20667 else
20668   $as_echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671         ac_cv_have_decl_snprintf=no
20672 fi
20673
20674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20675 fi
20676 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20677 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20678 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20679
20680 cat >>confdefs.h <<_ACEOF
20681 #define HAVE_DECL_SNPRINTF 1
20682 _ACEOF
20683
20684
20685 else
20686   cat >>confdefs.h <<_ACEOF
20687 #define HAVE_DECL_SNPRINTF 0
20688 _ACEOF
20689
20690
20691 fi
20692 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20693 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20694 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20695   $as_echo_n "(cached) " >&6
20696 else
20697   cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h.  */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h.  */
20703 $ac_includes_default
20704 int
20705 main ()
20706 {
20707 #ifndef vsnprintf
20708   (void) vsnprintf;
20709 #endif
20710
20711   ;
20712   return 0;
20713 }
20714 _ACEOF
20715 rm -f conftest.$ac_objext
20716 if { (ac_try="$ac_compile"
20717 case "(($ac_try" in
20718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719   *) ac_try_echo=$ac_try;;
20720 esac
20721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20722 $as_echo "$ac_try_echo") >&5
20723   (eval "$ac_compile") 2>conftest.er1
20724   ac_status=$?
20725   grep -v '^ *+' conftest.er1 >conftest.err
20726   rm -f conftest.er1
20727   cat conftest.err >&5
20728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } && {
20730          test -z "$ac_c_werror_flag" ||
20731          test ! -s conftest.err
20732        } && test -s conftest.$ac_objext; then
20733   ac_cv_have_decl_vsnprintf=yes
20734 else
20735   $as_echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738         ac_cv_have_decl_vsnprintf=no
20739 fi
20740
20741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742 fi
20743 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20744 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20745 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20746
20747 cat >>confdefs.h <<_ACEOF
20748 #define HAVE_DECL_VSNPRINTF 1
20749 _ACEOF
20750
20751
20752 else
20753   cat >>confdefs.h <<_ACEOF
20754 #define HAVE_DECL_VSNPRINTF 0
20755 _ACEOF
20756
20757
20758 fi
20759
20760
20761
20762
20763 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20764 $as_echo_n "checking for isinf... " >&6; }
20765 if test "${ac_cv_func_isinf+set}" = set; then
20766   $as_echo_n "(cached) " >&6
20767 else
20768   cat >conftest.$ac_ext <<_ACEOF
20769 /* confdefs.h.  */
20770 _ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h.  */
20774
20775 #include <math.h>
20776 double glob_double;
20777
20778 int
20779 main ()
20780 {
20781 return isinf(glob_double) ? 0 : 1;
20782   ;
20783   return 0;
20784 }
20785 _ACEOF
20786 rm -f conftest.$ac_objext conftest$ac_exeext
20787 if { (ac_try="$ac_link"
20788 case "(($ac_try" in
20789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790   *) ac_try_echo=$ac_try;;
20791 esac
20792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20793 $as_echo "$ac_try_echo") >&5
20794   (eval "$ac_link") 2>conftest.er1
20795   ac_status=$?
20796   grep -v '^ *+' conftest.er1 >conftest.err
20797   rm -f conftest.er1
20798   cat conftest.err >&5
20799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); } && {
20801          test -z "$ac_c_werror_flag" ||
20802          test ! -s conftest.err
20803        } && test -s conftest$ac_exeext && {
20804          test "$cross_compiling" = yes ||
20805          $as_test_x conftest$ac_exeext
20806        }; then
20807   ac_cv_func_isinf=yes
20808 else
20809   $as_echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20811
20812         ac_cv_func_isinf=no
20813 fi
20814
20815 rm -rf conftest.dSYM
20816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20817       conftest$ac_exeext conftest.$ac_ext
20818 fi
20819 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20820 $as_echo "$ac_cv_func_isinf" >&6; }
20821
20822 if test $ac_cv_func_isinf = yes ; then
20823
20824 cat >>confdefs.h <<\_ACEOF
20825 #define HAVE_ISINF 1
20826 _ACEOF
20827
20828 else
20829   case " $LIBOBJS " in
20830   *" isinf.$ac_objext "* ) ;;
20831   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20832  ;;
20833 esac
20834
20835   # Look for a way to implement a substitute for isinf()
20836
20837
20838
20839
20840 for ac_func in fpclass fp_class fp_class_d class
20841 do
20842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20843 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20844 $as_echo_n "checking for $ac_func... " >&6; }
20845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20846   $as_echo_n "(cached) " >&6
20847 else
20848   cat >conftest.$ac_ext <<_ACEOF
20849 /* confdefs.h.  */
20850 _ACEOF
20851 cat confdefs.h >>conftest.$ac_ext
20852 cat >>conftest.$ac_ext <<_ACEOF
20853 /* end confdefs.h.  */
20854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20856 #define $ac_func innocuous_$ac_func
20857
20858 /* System header to define __stub macros and hopefully few prototypes,
20859     which can conflict with char $ac_func (); below.
20860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20861     <limits.h> exists even on freestanding compilers.  */
20862
20863 #ifdef __STDC__
20864 # include <limits.h>
20865 #else
20866 # include <assert.h>
20867 #endif
20868
20869 #undef $ac_func
20870
20871 /* Override any GCC internal prototype to avoid an error.
20872    Use char because int might match the return type of a GCC
20873    builtin and then its argument prototype would still apply.  */
20874 #ifdef __cplusplus
20875 extern "C"
20876 #endif
20877 char $ac_func ();
20878 /* The GNU C library defines this for functions which it implements
20879     to always fail with ENOSYS.  Some functions are actually named
20880     something starting with __ and the normal name is an alias.  */
20881 #if defined __stub_$ac_func || defined __stub___$ac_func
20882 choke me
20883 #endif
20884
20885 int
20886 main ()
20887 {
20888 return $ac_func ();
20889   ;
20890   return 0;
20891 }
20892 _ACEOF
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897   *) ac_try_echo=$ac_try;;
20898 esac
20899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20900 $as_echo "$ac_try_echo") >&5
20901   (eval "$ac_link") 2>conftest.er1
20902   ac_status=$?
20903   grep -v '^ *+' conftest.er1 >conftest.err
20904   rm -f conftest.er1
20905   cat conftest.err >&5
20906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); } && {
20908          test -z "$ac_c_werror_flag" ||
20909          test ! -s conftest.err
20910        } && test -s conftest$ac_exeext && {
20911          test "$cross_compiling" = yes ||
20912          $as_test_x conftest$ac_exeext
20913        }; then
20914   eval "$as_ac_var=yes"
20915 else
20916   $as_echo "$as_me: failed program was:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20918
20919         eval "$as_ac_var=no"
20920 fi
20921
20922 rm -rf conftest.dSYM
20923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20924       conftest$ac_exeext conftest.$ac_ext
20925 fi
20926 ac_res=`eval 'as_val=${'$as_ac_var'}
20927                  $as_echo "$as_val"'`
20928                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20929 $as_echo "$ac_res" >&6; }
20930 as_val=`eval 'as_val=${'$as_ac_var'}
20931                  $as_echo "$as_val"'`
20932    if test "x$as_val" = x""yes; then
20933   cat >>confdefs.h <<_ACEOF
20934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20935 _ACEOF
20936  break
20937 fi
20938 done
20939
20940 fi
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
20954 do
20955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20956 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20957 $as_echo_n "checking for $ac_func... " >&6; }
20958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20959   $as_echo_n "(cached) " >&6
20960 else
20961   cat >conftest.$ac_ext <<_ACEOF
20962 /* confdefs.h.  */
20963 _ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h.  */
20967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20969 #define $ac_func innocuous_$ac_func
20970
20971 /* System header to define __stub macros and hopefully few prototypes,
20972     which can conflict with char $ac_func (); below.
20973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20974     <limits.h> exists even on freestanding compilers.  */
20975
20976 #ifdef __STDC__
20977 # include <limits.h>
20978 #else
20979 # include <assert.h>
20980 #endif
20981
20982 #undef $ac_func
20983
20984 /* Override any GCC internal prototype to avoid an error.
20985    Use char because int might match the return type of a GCC
20986    builtin and then its argument prototype would still apply.  */
20987 #ifdef __cplusplus
20988 extern "C"
20989 #endif
20990 char $ac_func ();
20991 /* The GNU C library defines this for functions which it implements
20992     to always fail with ENOSYS.  Some functions are actually named
20993     something starting with __ and the normal name is an alias.  */
20994 #if defined __stub_$ac_func || defined __stub___$ac_func
20995 choke me
20996 #endif
20997
20998 int
20999 main ()
21000 {
21001 return $ac_func ();
21002   ;
21003   return 0;
21004 }
21005 _ACEOF
21006 rm -f conftest.$ac_objext conftest$ac_exeext
21007 if { (ac_try="$ac_link"
21008 case "(($ac_try" in
21009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010   *) ac_try_echo=$ac_try;;
21011 esac
21012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21013 $as_echo "$ac_try_echo") >&5
21014   (eval "$ac_link") 2>conftest.er1
21015   ac_status=$?
21016   grep -v '^ *+' conftest.er1 >conftest.err
21017   rm -f conftest.er1
21018   cat conftest.err >&5
21019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); } && {
21021          test -z "$ac_c_werror_flag" ||
21022          test ! -s conftest.err
21023        } && test -s conftest$ac_exeext && {
21024          test "$cross_compiling" = yes ||
21025          $as_test_x conftest$ac_exeext
21026        }; then
21027   eval "$as_ac_var=yes"
21028 else
21029   $as_echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032         eval "$as_ac_var=no"
21033 fi
21034
21035 rm -rf conftest.dSYM
21036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21037       conftest$ac_exeext conftest.$ac_ext
21038 fi
21039 ac_res=`eval 'as_val=${'$as_ac_var'}
21040                  $as_echo "$as_val"'`
21041                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21042 $as_echo "$ac_res" >&6; }
21043 as_val=`eval 'as_val=${'$as_ac_var'}
21044                  $as_echo "$as_val"'`
21045    if test "x$as_val" = x""yes; then
21046   cat >>confdefs.h <<_ACEOF
21047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21048 _ACEOF
21049
21050 else
21051   case " $LIBOBJS " in
21052   *" $ac_func.$ac_objext "* ) ;;
21053   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21054  ;;
21055 esac
21056
21057 fi
21058 done
21059
21060
21061
21062 case $host_os in
21063
21064         # Windows uses a specialised env handler
21065         # and doesn't need a replacement getpeereid because it doesn't use
21066         # Unix sockets.
21067         mingw*)
21068
21069 cat >>confdefs.h <<\_ACEOF
21070 #define HAVE_UNSETENV 1
21071 _ACEOF
21072
21073
21074 cat >>confdefs.h <<\_ACEOF
21075 #define HAVE_GETPEEREID 1
21076 _ACEOF
21077
21078                 ac_cv_func_unsetenv=yes
21079                 ac_cv_func_getpeereid=yes;;
21080         *)
21081
21082
21083 for ac_func in unsetenv getpeereid
21084 do
21085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21086 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21087 $as_echo_n "checking for $ac_func... " >&6; }
21088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21089   $as_echo_n "(cached) " >&6
21090 else
21091   cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21099 #define $ac_func innocuous_$ac_func
21100
21101 /* System header to define __stub macros and hopefully few prototypes,
21102     which can conflict with char $ac_func (); below.
21103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21104     <limits.h> exists even on freestanding compilers.  */
21105
21106 #ifdef __STDC__
21107 # include <limits.h>
21108 #else
21109 # include <assert.h>
21110 #endif
21111
21112 #undef $ac_func
21113
21114 /* Override any GCC internal prototype to avoid an error.
21115    Use char because int might match the return type of a GCC
21116    builtin and then its argument prototype would still apply.  */
21117 #ifdef __cplusplus
21118 extern "C"
21119 #endif
21120 char $ac_func ();
21121 /* The GNU C library defines this for functions which it implements
21122     to always fail with ENOSYS.  Some functions are actually named
21123     something starting with __ and the normal name is an alias.  */
21124 #if defined __stub_$ac_func || defined __stub___$ac_func
21125 choke me
21126 #endif
21127
21128 int
21129 main ()
21130 {
21131 return $ac_func ();
21132   ;
21133   return 0;
21134 }
21135 _ACEOF
21136 rm -f conftest.$ac_objext conftest$ac_exeext
21137 if { (ac_try="$ac_link"
21138 case "(($ac_try" in
21139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140   *) ac_try_echo=$ac_try;;
21141 esac
21142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21143 $as_echo "$ac_try_echo") >&5
21144   (eval "$ac_link") 2>conftest.er1
21145   ac_status=$?
21146   grep -v '^ *+' conftest.er1 >conftest.err
21147   rm -f conftest.er1
21148   cat conftest.err >&5
21149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); } && {
21151          test -z "$ac_c_werror_flag" ||
21152          test ! -s conftest.err
21153        } && test -s conftest$ac_exeext && {
21154          test "$cross_compiling" = yes ||
21155          $as_test_x conftest$ac_exeext
21156        }; then
21157   eval "$as_ac_var=yes"
21158 else
21159   $as_echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162         eval "$as_ac_var=no"
21163 fi
21164
21165 rm -rf conftest.dSYM
21166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21167       conftest$ac_exeext conftest.$ac_ext
21168 fi
21169 ac_res=`eval 'as_val=${'$as_ac_var'}
21170                  $as_echo "$as_val"'`
21171                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21172 $as_echo "$ac_res" >&6; }
21173 as_val=`eval 'as_val=${'$as_ac_var'}
21174                  $as_echo "$as_val"'`
21175    if test "x$as_val" = x""yes; then
21176   cat >>confdefs.h <<_ACEOF
21177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21178 _ACEOF
21179
21180 else
21181   case " $LIBOBJS " in
21182   *" $ac_func.$ac_objext "* ) ;;
21183   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21184  ;;
21185 esac
21186
21187 fi
21188 done
21189
21190
21191                 ;;
21192 esac
21193
21194 # System's version of getaddrinfo(), if any, may be used only if we found
21195 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21196 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21197 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
21198 # because we want to use our own getaddrinfo.c on Windows anyway.)
21199 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21200
21201 for ac_func in getaddrinfo
21202 do
21203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21204 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21205 $as_echo_n "checking for $ac_func... " >&6; }
21206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21207   $as_echo_n "(cached) " >&6
21208 else
21209   cat >conftest.$ac_ext <<_ACEOF
21210 /* confdefs.h.  */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h.  */
21215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21217 #define $ac_func innocuous_$ac_func
21218
21219 /* System header to define __stub macros and hopefully few prototypes,
21220     which can conflict with char $ac_func (); below.
21221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21222     <limits.h> exists even on freestanding compilers.  */
21223
21224 #ifdef __STDC__
21225 # include <limits.h>
21226 #else
21227 # include <assert.h>
21228 #endif
21229
21230 #undef $ac_func
21231
21232 /* Override any GCC internal prototype to avoid an error.
21233    Use char because int might match the return type of a GCC
21234    builtin and then its argument prototype would still apply.  */
21235 #ifdef __cplusplus
21236 extern "C"
21237 #endif
21238 char $ac_func ();
21239 /* The GNU C library defines this for functions which it implements
21240     to always fail with ENOSYS.  Some functions are actually named
21241     something starting with __ and the normal name is an alias.  */
21242 #if defined __stub_$ac_func || defined __stub___$ac_func
21243 choke me
21244 #endif
21245
21246 int
21247 main ()
21248 {
21249 return $ac_func ();
21250   ;
21251   return 0;
21252 }
21253 _ACEOF
21254 rm -f conftest.$ac_objext conftest$ac_exeext
21255 if { (ac_try="$ac_link"
21256 case "(($ac_try" in
21257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258   *) ac_try_echo=$ac_try;;
21259 esac
21260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21261 $as_echo "$ac_try_echo") >&5
21262   (eval "$ac_link") 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } && {
21269          test -z "$ac_c_werror_flag" ||
21270          test ! -s conftest.err
21271        } && test -s conftest$ac_exeext && {
21272          test "$cross_compiling" = yes ||
21273          $as_test_x conftest$ac_exeext
21274        }; then
21275   eval "$as_ac_var=yes"
21276 else
21277   $as_echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21279
21280         eval "$as_ac_var=no"
21281 fi
21282
21283 rm -rf conftest.dSYM
21284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21285       conftest$ac_exeext conftest.$ac_ext
21286 fi
21287 ac_res=`eval 'as_val=${'$as_ac_var'}
21288                  $as_echo "$as_val"'`
21289                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21290 $as_echo "$ac_res" >&6; }
21291 as_val=`eval 'as_val=${'$as_ac_var'}
21292                  $as_echo "$as_val"'`
21293    if test "x$as_val" = x""yes; then
21294   cat >>confdefs.h <<_ACEOF
21295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21296 _ACEOF
21297
21298 else
21299   case " $LIBOBJS " in
21300   *" $ac_func.$ac_objext "* ) ;;
21301   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21302  ;;
21303 esac
21304
21305 fi
21306 done
21307
21308
21309 else
21310   case " $LIBOBJS " in
21311   *" getaddrinfo.$ac_objext "* ) ;;
21312   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21313  ;;
21314 esac
21315
21316 fi
21317
21318 # Similarly, use system's getopt_long() only if system provides struct option.
21319 if test x"$ac_cv_type_struct_option" = xyes ; then
21320
21321 for ac_func in getopt_long
21322 do
21323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21324 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21325 $as_echo_n "checking for $ac_func... " >&6; }
21326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21327   $as_echo_n "(cached) " >&6
21328 else
21329   cat >conftest.$ac_ext <<_ACEOF
21330 /* confdefs.h.  */
21331 _ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h.  */
21335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21337 #define $ac_func innocuous_$ac_func
21338
21339 /* System header to define __stub macros and hopefully few prototypes,
21340     which can conflict with char $ac_func (); below.
21341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21342     <limits.h> exists even on freestanding compilers.  */
21343
21344 #ifdef __STDC__
21345 # include <limits.h>
21346 #else
21347 # include <assert.h>
21348 #endif
21349
21350 #undef $ac_func
21351
21352 /* Override any GCC internal prototype to avoid an error.
21353    Use char because int might match the return type of a GCC
21354    builtin and then its argument prototype would still apply.  */
21355 #ifdef __cplusplus
21356 extern "C"
21357 #endif
21358 char $ac_func ();
21359 /* The GNU C library defines this for functions which it implements
21360     to always fail with ENOSYS.  Some functions are actually named
21361     something starting with __ and the normal name is an alias.  */
21362 #if defined __stub_$ac_func || defined __stub___$ac_func
21363 choke me
21364 #endif
21365
21366 int
21367 main ()
21368 {
21369 return $ac_func ();
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext conftest$ac_exeext
21375 if { (ac_try="$ac_link"
21376 case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21381 $as_echo "$ac_try_echo") >&5
21382   (eval "$ac_link") 2>conftest.er1
21383   ac_status=$?
21384   grep -v '^ *+' conftest.er1 >conftest.err
21385   rm -f conftest.er1
21386   cat conftest.err >&5
21387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); } && {
21389          test -z "$ac_c_werror_flag" ||
21390          test ! -s conftest.err
21391        } && test -s conftest$ac_exeext && {
21392          test "$cross_compiling" = yes ||
21393          $as_test_x conftest$ac_exeext
21394        }; then
21395   eval "$as_ac_var=yes"
21396 else
21397   $as_echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21399
21400         eval "$as_ac_var=no"
21401 fi
21402
21403 rm -rf conftest.dSYM
21404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21405       conftest$ac_exeext conftest.$ac_ext
21406 fi
21407 ac_res=`eval 'as_val=${'$as_ac_var'}
21408                  $as_echo "$as_val"'`
21409                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21410 $as_echo "$ac_res" >&6; }
21411 as_val=`eval 'as_val=${'$as_ac_var'}
21412                  $as_echo "$as_val"'`
21413    if test "x$as_val" = x""yes; then
21414   cat >>confdefs.h <<_ACEOF
21415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21416 _ACEOF
21417
21418 else
21419   case " $LIBOBJS " in
21420   *" $ac_func.$ac_objext "* ) ;;
21421   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21422  ;;
21423 esac
21424
21425 fi
21426 done
21427
21428
21429 else
21430   case " $LIBOBJS " in
21431   *" getopt_long.$ac_objext "* ) ;;
21432   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21433  ;;
21434 esac
21435
21436 fi
21437
21438 # Solaris' getopt() doesn't do what we want for long options, so always use
21439 # our version on that platform.
21440 if test "$PORTNAME" = "solaris"; then
21441   case " $LIBOBJS " in
21442   *" getopt.$ac_objext "* ) ;;
21443   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21444  ;;
21445 esac
21446
21447 fi
21448
21449 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21450 # so always use our version on Windows.
21451 if test "$PORTNAME" = "win32"; then
21452   case " $LIBOBJS " in
21453   *" getopt.$ac_objext "* ) ;;
21454   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21455  ;;
21456 esac
21457
21458   case " $LIBOBJS " in
21459   *" getopt_long.$ac_objext "* ) ;;
21460   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21461  ;;
21462 esac
21463
21464 fi
21465
21466 # Win32 support
21467 if test "$PORTNAME" = "win32"; then
21468
21469 for ac_func in gettimeofday
21470 do
21471 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21472 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21473 $as_echo_n "checking for $ac_func... " >&6; }
21474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21475   $as_echo_n "(cached) " >&6
21476 else
21477   cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h.  */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h.  */
21483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21485 #define $ac_func innocuous_$ac_func
21486
21487 /* System header to define __stub macros and hopefully few prototypes,
21488     which can conflict with char $ac_func (); below.
21489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21490     <limits.h> exists even on freestanding compilers.  */
21491
21492 #ifdef __STDC__
21493 # include <limits.h>
21494 #else
21495 # include <assert.h>
21496 #endif
21497
21498 #undef $ac_func
21499
21500 /* Override any GCC internal prototype to avoid an error.
21501    Use char because int might match the return type of a GCC
21502    builtin and then its argument prototype would still apply.  */
21503 #ifdef __cplusplus
21504 extern "C"
21505 #endif
21506 char $ac_func ();
21507 /* The GNU C library defines this for functions which it implements
21508     to always fail with ENOSYS.  Some functions are actually named
21509     something starting with __ and the normal name is an alias.  */
21510 #if defined __stub_$ac_func || defined __stub___$ac_func
21511 choke me
21512 #endif
21513
21514 int
21515 main ()
21516 {
21517 return $ac_func ();
21518   ;
21519   return 0;
21520 }
21521 _ACEOF
21522 rm -f conftest.$ac_objext conftest$ac_exeext
21523 if { (ac_try="$ac_link"
21524 case "(($ac_try" in
21525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526   *) ac_try_echo=$ac_try;;
21527 esac
21528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21529 $as_echo "$ac_try_echo") >&5
21530   (eval "$ac_link") 2>conftest.er1
21531   ac_status=$?
21532   grep -v '^ *+' conftest.er1 >conftest.err
21533   rm -f conftest.er1
21534   cat conftest.err >&5
21535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536   (exit $ac_status); } && {
21537          test -z "$ac_c_werror_flag" ||
21538          test ! -s conftest.err
21539        } && test -s conftest$ac_exeext && {
21540          test "$cross_compiling" = yes ||
21541          $as_test_x conftest$ac_exeext
21542        }; then
21543   eval "$as_ac_var=yes"
21544 else
21545   $as_echo "$as_me: failed program was:" >&5
21546 sed 's/^/| /' conftest.$ac_ext >&5
21547
21548         eval "$as_ac_var=no"
21549 fi
21550
21551 rm -rf conftest.dSYM
21552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21553       conftest$ac_exeext conftest.$ac_ext
21554 fi
21555 ac_res=`eval 'as_val=${'$as_ac_var'}
21556                  $as_echo "$as_val"'`
21557                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21558 $as_echo "$ac_res" >&6; }
21559 as_val=`eval 'as_val=${'$as_ac_var'}
21560                  $as_echo "$as_val"'`
21561    if test "x$as_val" = x""yes; then
21562   cat >>confdefs.h <<_ACEOF
21563 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21564 _ACEOF
21565
21566 else
21567   case " $LIBOBJS " in
21568   *" $ac_func.$ac_objext "* ) ;;
21569   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21570  ;;
21571 esac
21572
21573 fi
21574 done
21575
21576
21577   case " $LIBOBJS " in
21578   *" kill.$ac_objext "* ) ;;
21579   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21580  ;;
21581 esac
21582
21583   case " $LIBOBJS " in
21584   *" open.$ac_objext "* ) ;;
21585   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21586  ;;
21587 esac
21588
21589   case " $LIBOBJS " in
21590   *" win32env.$ac_objext "* ) ;;
21591   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21592  ;;
21593 esac
21594
21595   case " $LIBOBJS " in
21596   *" win32error.$ac_objext "* ) ;;
21597   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21598  ;;
21599 esac
21600
21601   case " $LIBOBJS " in
21602   *" win32setlocale.$ac_objext "* ) ;;
21603   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21604  ;;
21605 esac
21606
21607
21608 cat >>confdefs.h <<\_ACEOF
21609 #define HAVE_SYMLINK 1
21610 _ACEOF
21611
21612   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21613 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21614 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21615   $as_echo_n "(cached) " >&6
21616 else
21617   ac_cv_type_MINIDUMP_TYPE=no
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624
21625 #define WIN32_LEAN_AND_MEAN
21626 #include <windows.h>
21627 #include <string.h>
21628 #include <dbghelp.h>
21629
21630 int
21631 main ()
21632 {
21633 if (sizeof (MINIDUMP_TYPE))
21634        return 0;
21635   ;
21636   return 0;
21637 }
21638 _ACEOF
21639 rm -f conftest.$ac_objext
21640 if { (ac_try="$ac_compile"
21641 case "(($ac_try" in
21642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643   *) ac_try_echo=$ac_try;;
21644 esac
21645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21646 $as_echo "$ac_try_echo") >&5
21647   (eval "$ac_compile") 2>conftest.er1
21648   ac_status=$?
21649   grep -v '^ *+' conftest.er1 >conftest.err
21650   rm -f conftest.er1
21651   cat conftest.err >&5
21652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653   (exit $ac_status); } && {
21654          test -z "$ac_c_werror_flag" ||
21655          test ! -s conftest.err
21656        } && test -s conftest.$ac_objext; then
21657   cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h.  */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h.  */
21663
21664 #define WIN32_LEAN_AND_MEAN
21665 #include <windows.h>
21666 #include <string.h>
21667 #include <dbghelp.h>
21668
21669 int
21670 main ()
21671 {
21672 if (sizeof ((MINIDUMP_TYPE)))
21673           return 0;
21674   ;
21675   return 0;
21676 }
21677 _ACEOF
21678 rm -f conftest.$ac_objext
21679 if { (ac_try="$ac_compile"
21680 case "(($ac_try" in
21681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682   *) ac_try_echo=$ac_try;;
21683 esac
21684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21685 $as_echo "$ac_try_echo") >&5
21686   (eval "$ac_compile") 2>conftest.er1
21687   ac_status=$?
21688   grep -v '^ *+' conftest.er1 >conftest.err
21689   rm -f conftest.er1
21690   cat conftest.err >&5
21691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); } && {
21693          test -z "$ac_c_werror_flag" ||
21694          test ! -s conftest.err
21695        } && test -s conftest.$ac_objext; then
21696   :
21697 else
21698   $as_echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21700
21701         ac_cv_type_MINIDUMP_TYPE=yes
21702 fi
21703
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705 else
21706   $as_echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21708
21709
21710 fi
21711
21712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21713 fi
21714 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21715 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21716 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21717
21718 cat >>confdefs.h <<_ACEOF
21719 #define HAVE_MINIDUMP_TYPE 1
21720 _ACEOF
21721
21722 pgac_minidump_type=yes
21723 else
21724   pgac_minidump_type=no
21725 fi
21726
21727 fi
21728 if test x"$pgac_minidump_type" = x"yes" ; then
21729   have_win32_dbghelp=yes
21730
21731 else
21732   have_win32_dbghelp=no
21733
21734 fi
21735
21736 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21737 $as_echo_n "checking for sigsetjmp... " >&6; }
21738 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21739   $as_echo_n "(cached) " >&6
21740 else
21741   cat >conftest.$ac_ext <<_ACEOF
21742 /* confdefs.h.  */
21743 _ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h.  */
21747 #include <setjmp.h>
21748 int
21749 main ()
21750 {
21751 sigjmp_buf x; sigsetjmp(x, 1);
21752   ;
21753   return 0;
21754 }
21755 _ACEOF
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (ac_try="$ac_link"
21758 case "(($ac_try" in
21759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760   *) ac_try_echo=$ac_try;;
21761 esac
21762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21763 $as_echo "$ac_try_echo") >&5
21764   (eval "$ac_link") 2>conftest.er1
21765   ac_status=$?
21766   grep -v '^ *+' conftest.er1 >conftest.err
21767   rm -f conftest.er1
21768   cat conftest.err >&5
21769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770   (exit $ac_status); } && {
21771          test -z "$ac_c_werror_flag" ||
21772          test ! -s conftest.err
21773        } && test -s conftest$ac_exeext && {
21774          test "$cross_compiling" = yes ||
21775          $as_test_x conftest$ac_exeext
21776        }; then
21777   pgac_cv_func_sigsetjmp=yes
21778 else
21779   $as_echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782         pgac_cv_func_sigsetjmp=no
21783 fi
21784
21785 rm -rf conftest.dSYM
21786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21787       conftest$ac_exeext conftest.$ac_ext
21788 fi
21789 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21790 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21791 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21792
21793 cat >>confdefs.h <<\_ACEOF
21794 #define HAVE_SIGSETJMP 1
21795 _ACEOF
21796
21797 fi
21798
21799 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21800 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21801 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21802   $as_echo_n "(cached) " >&6
21803 else
21804   cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h.  */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h.  */
21810 #include <signal.h>
21811 /* NetBSD declares sys_siglist in unistd.h.  */
21812 #ifdef HAVE_UNISTD_H
21813 # include <unistd.h>
21814 #endif
21815
21816
21817 int
21818 main ()
21819 {
21820 #ifndef sys_siglist
21821   (void) sys_siglist;
21822 #endif
21823
21824   ;
21825   return 0;
21826 }
21827 _ACEOF
21828 rm -f conftest.$ac_objext
21829 if { (ac_try="$ac_compile"
21830 case "(($ac_try" in
21831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832   *) ac_try_echo=$ac_try;;
21833 esac
21834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21835 $as_echo "$ac_try_echo") >&5
21836   (eval "$ac_compile") 2>conftest.er1
21837   ac_status=$?
21838   grep -v '^ *+' conftest.er1 >conftest.err
21839   rm -f conftest.er1
21840   cat conftest.err >&5
21841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842   (exit $ac_status); } && {
21843          test -z "$ac_c_werror_flag" ||
21844          test ! -s conftest.err
21845        } && test -s conftest.$ac_objext; then
21846   ac_cv_have_decl_sys_siglist=yes
21847 else
21848   $as_echo "$as_me: failed program was:" >&5
21849 sed 's/^/| /' conftest.$ac_ext >&5
21850
21851         ac_cv_have_decl_sys_siglist=no
21852 fi
21853
21854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21855 fi
21856 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21857 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21858 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21859
21860 cat >>confdefs.h <<_ACEOF
21861 #define HAVE_DECL_SYS_SIGLIST 1
21862 _ACEOF
21863
21864
21865 else
21866   cat >>confdefs.h <<_ACEOF
21867 #define HAVE_DECL_SYS_SIGLIST 0
21868 _ACEOF
21869
21870
21871 fi
21872
21873
21874
21875
21876 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21877 $as_echo_n "checking for syslog... " >&6; }
21878 if test "${ac_cv_func_syslog+set}" = set; then
21879   $as_echo_n "(cached) " >&6
21880 else
21881   cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h.  */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h.  */
21887 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21889 #define syslog innocuous_syslog
21890
21891 /* System header to define __stub macros and hopefully few prototypes,
21892     which can conflict with char syslog (); below.
21893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21894     <limits.h> exists even on freestanding compilers.  */
21895
21896 #ifdef __STDC__
21897 # include <limits.h>
21898 #else
21899 # include <assert.h>
21900 #endif
21901
21902 #undef syslog
21903
21904 /* Override any GCC internal prototype to avoid an error.
21905    Use char because int might match the return type of a GCC
21906    builtin and then its argument prototype would still apply.  */
21907 #ifdef __cplusplus
21908 extern "C"
21909 #endif
21910 char syslog ();
21911 /* The GNU C library defines this for functions which it implements
21912     to always fail with ENOSYS.  Some functions are actually named
21913     something starting with __ and the normal name is an alias.  */
21914 #if defined __stub_syslog || defined __stub___syslog
21915 choke me
21916 #endif
21917
21918 int
21919 main ()
21920 {
21921 return syslog ();
21922   ;
21923   return 0;
21924 }
21925 _ACEOF
21926 rm -f conftest.$ac_objext conftest$ac_exeext
21927 if { (ac_try="$ac_link"
21928 case "(($ac_try" in
21929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930   *) ac_try_echo=$ac_try;;
21931 esac
21932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21933 $as_echo "$ac_try_echo") >&5
21934   (eval "$ac_link") 2>conftest.er1
21935   ac_status=$?
21936   grep -v '^ *+' conftest.er1 >conftest.err
21937   rm -f conftest.er1
21938   cat conftest.err >&5
21939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940   (exit $ac_status); } && {
21941          test -z "$ac_c_werror_flag" ||
21942          test ! -s conftest.err
21943        } && test -s conftest$ac_exeext && {
21944          test "$cross_compiling" = yes ||
21945          $as_test_x conftest$ac_exeext
21946        }; then
21947   ac_cv_func_syslog=yes
21948 else
21949   $as_echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952         ac_cv_func_syslog=no
21953 fi
21954
21955 rm -rf conftest.dSYM
21956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21957       conftest$ac_exeext conftest.$ac_ext
21958 fi
21959 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21960 $as_echo "$ac_cv_func_syslog" >&6; }
21961 if test "x$ac_cv_func_syslog" = x""yes; then
21962   if test "${ac_cv_header_syslog_h+set}" = set; then
21963   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21964 $as_echo_n "checking for syslog.h... " >&6; }
21965 if test "${ac_cv_header_syslog_h+set}" = set; then
21966   $as_echo_n "(cached) " >&6
21967 fi
21968 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21969 $as_echo "$ac_cv_header_syslog_h" >&6; }
21970 else
21971   # Is the header compilable?
21972 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21973 $as_echo_n "checking syslog.h usability... " >&6; }
21974 cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h.  */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h.  */
21980 $ac_includes_default
21981 #include <syslog.h>
21982 _ACEOF
21983 rm -f conftest.$ac_objext
21984 if { (ac_try="$ac_compile"
21985 case "(($ac_try" in
21986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987   *) ac_try_echo=$ac_try;;
21988 esac
21989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21990 $as_echo "$ac_try_echo") >&5
21991   (eval "$ac_compile") 2>conftest.er1
21992   ac_status=$?
21993   grep -v '^ *+' conftest.er1 >conftest.err
21994   rm -f conftest.er1
21995   cat conftest.err >&5
21996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); } && {
21998          test -z "$ac_c_werror_flag" ||
21999          test ! -s conftest.err
22000        } && test -s conftest.$ac_objext; then
22001   ac_header_compiler=yes
22002 else
22003   $as_echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006         ac_header_compiler=no
22007 fi
22008
22009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22011 $as_echo "$ac_header_compiler" >&6; }
22012
22013 # Is the header present?
22014 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22015 $as_echo_n "checking syslog.h presence... " >&6; }
22016 cat >conftest.$ac_ext <<_ACEOF
22017 /* confdefs.h.  */
22018 _ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
22021 /* end confdefs.h.  */
22022 #include <syslog.h>
22023 _ACEOF
22024 if { (ac_try="$ac_cpp conftest.$ac_ext"
22025 case "(($ac_try" in
22026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22027   *) ac_try_echo=$ac_try;;
22028 esac
22029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22030 $as_echo "$ac_try_echo") >&5
22031   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22032   ac_status=$?
22033   grep -v '^ *+' conftest.er1 >conftest.err
22034   rm -f conftest.er1
22035   cat conftest.err >&5
22036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037   (exit $ac_status); } >/dev/null && {
22038          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22039          test ! -s conftest.err
22040        }; then
22041   ac_header_preproc=yes
22042 else
22043   $as_echo "$as_me: failed program was:" >&5
22044 sed 's/^/| /' conftest.$ac_ext >&5
22045
22046   ac_header_preproc=no
22047 fi
22048
22049 rm -f conftest.err conftest.$ac_ext
22050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22051 $as_echo "$ac_header_preproc" >&6; }
22052
22053 # So?  What about this header?
22054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22055   yes:no: )
22056     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22057 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22058     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22059 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22060     ac_header_preproc=yes
22061     ;;
22062   no:yes:* )
22063     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22064 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22065     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
22066 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
22067     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22068 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22069     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
22070 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22071     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22072 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22073     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22074 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22075     ( cat <<\_ASBOX
22076 ## ---------------------------------------- ##
22077 ## Report this to pgsql-bugs@postgresql.org ##
22078 ## ---------------------------------------- ##
22079 _ASBOX
22080      ) | sed "s/^/$as_me: WARNING:     /" >&2
22081     ;;
22082 esac
22083 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22084 $as_echo_n "checking for syslog.h... " >&6; }
22085 if test "${ac_cv_header_syslog_h+set}" = set; then
22086   $as_echo_n "(cached) " >&6
22087 else
22088   ac_cv_header_syslog_h=$ac_header_preproc
22089 fi
22090 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22091 $as_echo "$ac_cv_header_syslog_h" >&6; }
22092
22093 fi
22094 if test "x$ac_cv_header_syslog_h" = x""yes; then
22095
22096 cat >>confdefs.h <<\_ACEOF
22097 #define HAVE_SYSLOG 1
22098 _ACEOF
22099
22100 fi
22101
22102
22103 fi
22104
22105
22106 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22107 $as_echo_n "checking for opterr... " >&6; }
22108 if test "${pgac_cv_var_int_opterr+set}" = set; then
22109   $as_echo_n "(cached) " >&6
22110 else
22111   cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h.  */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h.  */
22117 #include <unistd.h>
22118 int
22119 main ()
22120 {
22121 extern int opterr; opterr = 1;
22122   ;
22123   return 0;
22124 }
22125 _ACEOF
22126 rm -f conftest.$ac_objext conftest$ac_exeext
22127 if { (ac_try="$ac_link"
22128 case "(($ac_try" in
22129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130   *) ac_try_echo=$ac_try;;
22131 esac
22132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22133 $as_echo "$ac_try_echo") >&5
22134   (eval "$ac_link") 2>conftest.er1
22135   ac_status=$?
22136   grep -v '^ *+' conftest.er1 >conftest.err
22137   rm -f conftest.er1
22138   cat conftest.err >&5
22139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); } && {
22141          test -z "$ac_c_werror_flag" ||
22142          test ! -s conftest.err
22143        } && test -s conftest$ac_exeext && {
22144          test "$cross_compiling" = yes ||
22145          $as_test_x conftest$ac_exeext
22146        }; then
22147   pgac_cv_var_int_opterr=yes
22148 else
22149   $as_echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152         pgac_cv_var_int_opterr=no
22153 fi
22154
22155 rm -rf conftest.dSYM
22156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22157       conftest$ac_exeext conftest.$ac_ext
22158 fi
22159 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22160 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22161 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22162
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_INT_OPTERR 1
22165 _ACEOF
22166
22167 fi
22168
22169 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22170 $as_echo_n "checking for optreset... " >&6; }
22171 if test "${pgac_cv_var_int_optreset+set}" = set; then
22172   $as_echo_n "(cached) " >&6
22173 else
22174   cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h.  */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h.  */
22180 #include <unistd.h>
22181 int
22182 main ()
22183 {
22184 extern int optreset; optreset = 1;
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 rm -f conftest.$ac_objext conftest$ac_exeext
22190 if { (ac_try="$ac_link"
22191 case "(($ac_try" in
22192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193   *) ac_try_echo=$ac_try;;
22194 esac
22195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22196 $as_echo "$ac_try_echo") >&5
22197   (eval "$ac_link") 2>conftest.er1
22198   ac_status=$?
22199   grep -v '^ *+' conftest.er1 >conftest.err
22200   rm -f conftest.er1
22201   cat conftest.err >&5
22202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203   (exit $ac_status); } && {
22204          test -z "$ac_c_werror_flag" ||
22205          test ! -s conftest.err
22206        } && test -s conftest$ac_exeext && {
22207          test "$cross_compiling" = yes ||
22208          $as_test_x conftest$ac_exeext
22209        }; then
22210   pgac_cv_var_int_optreset=yes
22211 else
22212   $as_echo "$as_me: failed program was:" >&5
22213 sed 's/^/| /' conftest.$ac_ext >&5
22214
22215         pgac_cv_var_int_optreset=no
22216 fi
22217
22218 rm -rf conftest.dSYM
22219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22220       conftest$ac_exeext conftest.$ac_ext
22221 fi
22222 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22223 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22224 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22225
22226 cat >>confdefs.h <<\_ACEOF
22227 #define HAVE_INT_OPTRESET 1
22228 _ACEOF
22229
22230 fi
22231
22232
22233
22234 for ac_func in strtoll strtoq
22235 do
22236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22238 $as_echo_n "checking for $ac_func... " >&6; }
22239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22240   $as_echo_n "(cached) " >&6
22241 else
22242   cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h.  */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h.  */
22248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22250 #define $ac_func innocuous_$ac_func
22251
22252 /* System header to define __stub macros and hopefully few prototypes,
22253     which can conflict with char $ac_func (); below.
22254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255     <limits.h> exists even on freestanding compilers.  */
22256
22257 #ifdef __STDC__
22258 # include <limits.h>
22259 #else
22260 # include <assert.h>
22261 #endif
22262
22263 #undef $ac_func
22264
22265 /* Override any GCC internal prototype to avoid an error.
22266    Use char because int might match the return type of a GCC
22267    builtin and then its argument prototype would still apply.  */
22268 #ifdef __cplusplus
22269 extern "C"
22270 #endif
22271 char $ac_func ();
22272 /* The GNU C library defines this for functions which it implements
22273     to always fail with ENOSYS.  Some functions are actually named
22274     something starting with __ and the normal name is an alias.  */
22275 #if defined __stub_$ac_func || defined __stub___$ac_func
22276 choke me
22277 #endif
22278
22279 int
22280 main ()
22281 {
22282 return $ac_func ();
22283   ;
22284   return 0;
22285 }
22286 _ACEOF
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (ac_try="$ac_link"
22289 case "(($ac_try" in
22290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291   *) ac_try_echo=$ac_try;;
22292 esac
22293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22294 $as_echo "$ac_try_echo") >&5
22295   (eval "$ac_link") 2>conftest.er1
22296   ac_status=$?
22297   grep -v '^ *+' conftest.er1 >conftest.err
22298   rm -f conftest.er1
22299   cat conftest.err >&5
22300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301   (exit $ac_status); } && {
22302          test -z "$ac_c_werror_flag" ||
22303          test ! -s conftest.err
22304        } && test -s conftest$ac_exeext && {
22305          test "$cross_compiling" = yes ||
22306          $as_test_x conftest$ac_exeext
22307        }; then
22308   eval "$as_ac_var=yes"
22309 else
22310   $as_echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22312
22313         eval "$as_ac_var=no"
22314 fi
22315
22316 rm -rf conftest.dSYM
22317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22318       conftest$ac_exeext conftest.$ac_ext
22319 fi
22320 ac_res=`eval 'as_val=${'$as_ac_var'}
22321                  $as_echo "$as_val"'`
22322                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22323 $as_echo "$ac_res" >&6; }
22324 as_val=`eval 'as_val=${'$as_ac_var'}
22325                  $as_echo "$as_val"'`
22326    if test "x$as_val" = x""yes; then
22327   cat >>confdefs.h <<_ACEOF
22328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22329 _ACEOF
22330  break
22331 fi
22332 done
22333
22334
22335
22336 for ac_func in strtoull strtouq
22337 do
22338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22339 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22340 $as_echo_n "checking for $ac_func... " >&6; }
22341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22342   $as_echo_n "(cached) " >&6
22343 else
22344   cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h.  */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h.  */
22350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22352 #define $ac_func innocuous_$ac_func
22353
22354 /* System header to define __stub macros and hopefully few prototypes,
22355     which can conflict with char $ac_func (); below.
22356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22357     <limits.h> exists even on freestanding compilers.  */
22358
22359 #ifdef __STDC__
22360 # include <limits.h>
22361 #else
22362 # include <assert.h>
22363 #endif
22364
22365 #undef $ac_func
22366
22367 /* Override any GCC internal prototype to avoid an error.
22368    Use char because int might match the return type of a GCC
22369    builtin and then its argument prototype would still apply.  */
22370 #ifdef __cplusplus
22371 extern "C"
22372 #endif
22373 char $ac_func ();
22374 /* The GNU C library defines this for functions which it implements
22375     to always fail with ENOSYS.  Some functions are actually named
22376     something starting with __ and the normal name is an alias.  */
22377 #if defined __stub_$ac_func || defined __stub___$ac_func
22378 choke me
22379 #endif
22380
22381 int
22382 main ()
22383 {
22384 return $ac_func ();
22385   ;
22386   return 0;
22387 }
22388 _ACEOF
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393   *) ac_try_echo=$ac_try;;
22394 esac
22395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22396 $as_echo "$ac_try_echo") >&5
22397   (eval "$ac_link") 2>conftest.er1
22398   ac_status=$?
22399   grep -v '^ *+' conftest.er1 >conftest.err
22400   rm -f conftest.er1
22401   cat conftest.err >&5
22402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } && {
22404          test -z "$ac_c_werror_flag" ||
22405          test ! -s conftest.err
22406        } && test -s conftest$ac_exeext && {
22407          test "$cross_compiling" = yes ||
22408          $as_test_x conftest$ac_exeext
22409        }; then
22410   eval "$as_ac_var=yes"
22411 else
22412   $as_echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415         eval "$as_ac_var=no"
22416 fi
22417
22418 rm -rf conftest.dSYM
22419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22420       conftest$ac_exeext conftest.$ac_ext
22421 fi
22422 ac_res=`eval 'as_val=${'$as_ac_var'}
22423                  $as_echo "$as_val"'`
22424                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22425 $as_echo "$ac_res" >&6; }
22426 as_val=`eval 'as_val=${'$as_ac_var'}
22427                  $as_echo "$as_val"'`
22428    if test "x$as_val" = x""yes; then
22429   cat >>confdefs.h <<_ACEOF
22430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22431 _ACEOF
22432  break
22433 fi
22434 done
22435
22436
22437 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22438 $as_echo_n "checking for builtin locking functions... " >&6; }
22439 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22440   $as_echo_n "(cached) " >&6
22441 else
22442   cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h.  */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h.  */
22448
22449 int
22450 main ()
22451 {
22452 int lock = 0;
22453    __sync_lock_test_and_set(&lock, 1);
22454    __sync_lock_release(&lock);
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 rm -f conftest.$ac_objext conftest$ac_exeext
22460 if { (ac_try="$ac_link"
22461 case "(($ac_try" in
22462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463   *) ac_try_echo=$ac_try;;
22464 esac
22465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22466 $as_echo "$ac_try_echo") >&5
22467   (eval "$ac_link") 2>conftest.er1
22468   ac_status=$?
22469   grep -v '^ *+' conftest.er1 >conftest.err
22470   rm -f conftest.er1
22471   cat conftest.err >&5
22472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473   (exit $ac_status); } && {
22474          test -z "$ac_c_werror_flag" ||
22475          test ! -s conftest.err
22476        } && test -s conftest$ac_exeext && {
22477          test "$cross_compiling" = yes ||
22478          $as_test_x conftest$ac_exeext
22479        }; then
22480   pgac_cv_gcc_int_atomics="yes"
22481 else
22482   $as_echo "$as_me: failed program was:" >&5
22483 sed 's/^/| /' conftest.$ac_ext >&5
22484
22485         pgac_cv_gcc_int_atomics="no"
22486 fi
22487
22488 rm -rf conftest.dSYM
22489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22490       conftest$ac_exeext conftest.$ac_ext
22491 fi
22492 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22493 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22494 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22495
22496 cat >>confdefs.h <<\_ACEOF
22497 #define HAVE_GCC_INT_ATOMICS 1
22498 _ACEOF
22499
22500 fi
22501
22502 # Lastly, restore full LIBS list and check for readline/libedit symbols
22503 LIBS="$LIBS_including_readline"
22504
22505 if test "$with_readline" = yes; then
22506   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
22507 $as_echo_n "checking for rl_completion_append_character... " >&6; }
22508 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
22509   $as_echo_n "(cached) " >&6
22510 else
22511   cat >conftest.$ac_ext <<_ACEOF
22512 /* confdefs.h.  */
22513 _ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h.  */
22517 #include <stdio.h>
22518 #ifdef HAVE_READLINE_READLINE_H
22519 # include <readline/readline.h>
22520 #elif defined(HAVE_READLINE_H)
22521 # include <readline.h>
22522 #endif
22523
22524 int
22525 main ()
22526 {
22527 rl_completion_append_character = 'x';
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 rm -f conftest.$ac_objext conftest$ac_exeext
22533 if { (ac_try="$ac_link"
22534 case "(($ac_try" in
22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536   *) ac_try_echo=$ac_try;;
22537 esac
22538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22539 $as_echo "$ac_try_echo") >&5
22540   (eval "$ac_link") 2>conftest.er1
22541   ac_status=$?
22542   grep -v '^ *+' conftest.er1 >conftest.err
22543   rm -f conftest.er1
22544   cat conftest.err >&5
22545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); } && {
22547          test -z "$ac_c_werror_flag" ||
22548          test ! -s conftest.err
22549        } && test -s conftest$ac_exeext && {
22550          test "$cross_compiling" = yes ||
22551          $as_test_x conftest$ac_exeext
22552        }; then
22553   pgac_cv_var_rl_completion_append_character=yes
22554 else
22555   $as_echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22557
22558         pgac_cv_var_rl_completion_append_character=no
22559 fi
22560
22561 rm -rf conftest.dSYM
22562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22563       conftest$ac_exeext conftest.$ac_ext
22564 fi
22565 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
22566 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
22567 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
22568
22569 cat >>confdefs.h <<\_ACEOF
22570 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22571 _ACEOF
22572
22573 fi
22574
22575
22576 for ac_func in rl_completion_matches rl_filename_completion_function
22577 do
22578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22579 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22580 $as_echo_n "checking for $ac_func... " >&6; }
22581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22582   $as_echo_n "(cached) " >&6
22583 else
22584   cat >conftest.$ac_ext <<_ACEOF
22585 /* confdefs.h.  */
22586 _ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h.  */
22590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22592 #define $ac_func innocuous_$ac_func
22593
22594 /* System header to define __stub macros and hopefully few prototypes,
22595     which can conflict with char $ac_func (); below.
22596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22597     <limits.h> exists even on freestanding compilers.  */
22598
22599 #ifdef __STDC__
22600 # include <limits.h>
22601 #else
22602 # include <assert.h>
22603 #endif
22604
22605 #undef $ac_func
22606
22607 /* Override any GCC internal prototype to avoid an error.
22608    Use char because int might match the return type of a GCC
22609    builtin and then its argument prototype would still apply.  */
22610 #ifdef __cplusplus
22611 extern "C"
22612 #endif
22613 char $ac_func ();
22614 /* The GNU C library defines this for functions which it implements
22615     to always fail with ENOSYS.  Some functions are actually named
22616     something starting with __ and the normal name is an alias.  */
22617 #if defined __stub_$ac_func || defined __stub___$ac_func
22618 choke me
22619 #endif
22620
22621 int
22622 main ()
22623 {
22624 return $ac_func ();
22625   ;
22626   return 0;
22627 }
22628 _ACEOF
22629 rm -f conftest.$ac_objext conftest$ac_exeext
22630 if { (ac_try="$ac_link"
22631 case "(($ac_try" in
22632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633   *) ac_try_echo=$ac_try;;
22634 esac
22635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22636 $as_echo "$ac_try_echo") >&5
22637   (eval "$ac_link") 2>conftest.er1
22638   ac_status=$?
22639   grep -v '^ *+' conftest.er1 >conftest.err
22640   rm -f conftest.er1
22641   cat conftest.err >&5
22642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); } && {
22644          test -z "$ac_c_werror_flag" ||
22645          test ! -s conftest.err
22646        } && test -s conftest$ac_exeext && {
22647          test "$cross_compiling" = yes ||
22648          $as_test_x conftest$ac_exeext
22649        }; then
22650   eval "$as_ac_var=yes"
22651 else
22652   $as_echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22654
22655         eval "$as_ac_var=no"
22656 fi
22657
22658 rm -rf conftest.dSYM
22659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22660       conftest$ac_exeext conftest.$ac_ext
22661 fi
22662 ac_res=`eval 'as_val=${'$as_ac_var'}
22663                  $as_echo "$as_val"'`
22664                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22665 $as_echo "$ac_res" >&6; }
22666 as_val=`eval 'as_val=${'$as_ac_var'}
22667                  $as_echo "$as_val"'`
22668    if test "x$as_val" = x""yes; then
22669   cat >>confdefs.h <<_ACEOF
22670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22671 _ACEOF
22672
22673 fi
22674 done
22675
22676
22677
22678 for ac_func in append_history history_truncate_file
22679 do
22680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22682 $as_echo_n "checking for $ac_func... " >&6; }
22683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22684   $as_echo_n "(cached) " >&6
22685 else
22686   cat >conftest.$ac_ext <<_ACEOF
22687 /* confdefs.h.  */
22688 _ACEOF
22689 cat confdefs.h >>conftest.$ac_ext
22690 cat >>conftest.$ac_ext <<_ACEOF
22691 /* end confdefs.h.  */
22692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22694 #define $ac_func innocuous_$ac_func
22695
22696 /* System header to define __stub macros and hopefully few prototypes,
22697     which can conflict with char $ac_func (); below.
22698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22699     <limits.h> exists even on freestanding compilers.  */
22700
22701 #ifdef __STDC__
22702 # include <limits.h>
22703 #else
22704 # include <assert.h>
22705 #endif
22706
22707 #undef $ac_func
22708
22709 /* Override any GCC internal prototype to avoid an error.
22710    Use char because int might match the return type of a GCC
22711    builtin and then its argument prototype would still apply.  */
22712 #ifdef __cplusplus
22713 extern "C"
22714 #endif
22715 char $ac_func ();
22716 /* The GNU C library defines this for functions which it implements
22717     to always fail with ENOSYS.  Some functions are actually named
22718     something starting with __ and the normal name is an alias.  */
22719 #if defined __stub_$ac_func || defined __stub___$ac_func
22720 choke me
22721 #endif
22722
22723 int
22724 main ()
22725 {
22726 return $ac_func ();
22727   ;
22728   return 0;
22729 }
22730 _ACEOF
22731 rm -f conftest.$ac_objext conftest$ac_exeext
22732 if { (ac_try="$ac_link"
22733 case "(($ac_try" in
22734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735   *) ac_try_echo=$ac_try;;
22736 esac
22737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22738 $as_echo "$ac_try_echo") >&5
22739   (eval "$ac_link") 2>conftest.er1
22740   ac_status=$?
22741   grep -v '^ *+' conftest.er1 >conftest.err
22742   rm -f conftest.er1
22743   cat conftest.err >&5
22744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); } && {
22746          test -z "$ac_c_werror_flag" ||
22747          test ! -s conftest.err
22748        } && test -s conftest$ac_exeext && {
22749          test "$cross_compiling" = yes ||
22750          $as_test_x conftest$ac_exeext
22751        }; then
22752   eval "$as_ac_var=yes"
22753 else
22754   $as_echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757         eval "$as_ac_var=no"
22758 fi
22759
22760 rm -rf conftest.dSYM
22761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22762       conftest$ac_exeext conftest.$ac_ext
22763 fi
22764 ac_res=`eval 'as_val=${'$as_ac_var'}
22765                  $as_echo "$as_val"'`
22766                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22767 $as_echo "$ac_res" >&6; }
22768 as_val=`eval 'as_val=${'$as_ac_var'}
22769                  $as_echo "$as_val"'`
22770    if test "x$as_val" = x""yes; then
22771   cat >>confdefs.h <<_ACEOF
22772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22773 _ACEOF
22774
22775 fi
22776 done
22777
22778 fi
22779
22780
22781 #
22782 # Pthreads
22783 #
22784 # For each platform, we need to know about any special compile and link
22785 # libraries, and whether the normal C function names are thread-safe.
22786 # See the comment at the top of src/port/thread.c for more information.
22787 # WIN32 doesn't need the pthread tests;  it always uses threads
22788 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22789
22790
22791
22792 ac_ext=c
22793 ac_cpp='$CPP $CPPFLAGS'
22794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22797
22798 acx_pthread_ok=no
22799
22800 # We used to check for pthread.h first, but this fails if pthread.h
22801 # requires special compiler flags (e.g. on True64 or Sequent).
22802 # It gets checked for in the link test anyway.
22803
22804 # First of all, check if the user has set any of the PTHREAD_LIBS,
22805 # etcetera environment variables, and if threads linking works using
22806 # them:
22807 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22808         save_CFLAGS="$CFLAGS"
22809         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22810         save_LIBS="$LIBS"
22811         LIBS="$PTHREAD_LIBS $LIBS"
22812         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22813 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22814         cat >conftest.$ac_ext <<_ACEOF
22815 /* confdefs.h.  */
22816 _ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h.  */
22820
22821 /* Override any GCC internal prototype to avoid an error.
22822    Use char because int might match the return type of a GCC
22823    builtin and then its argument prototype would still apply.  */
22824 #ifdef __cplusplus
22825 extern "C"
22826 #endif
22827 char pthread_join ();
22828 int
22829 main ()
22830 {
22831 return pthread_join ();
22832   ;
22833   return 0;
22834 }
22835 _ACEOF
22836 rm -f conftest.$ac_objext conftest$ac_exeext
22837 if { (ac_try="$ac_link"
22838 case "(($ac_try" in
22839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840   *) ac_try_echo=$ac_try;;
22841 esac
22842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22843 $as_echo "$ac_try_echo") >&5
22844   (eval "$ac_link") 2>conftest.er1
22845   ac_status=$?
22846   grep -v '^ *+' conftest.er1 >conftest.err
22847   rm -f conftest.er1
22848   cat conftest.err >&5
22849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); } && {
22851          test -z "$ac_c_werror_flag" ||
22852          test ! -s conftest.err
22853        } && test -s conftest$ac_exeext && {
22854          test "$cross_compiling" = yes ||
22855          $as_test_x conftest$ac_exeext
22856        }; then
22857   acx_pthread_ok=yes
22858 else
22859   $as_echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22861
22862
22863 fi
22864
22865 rm -rf conftest.dSYM
22866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22867       conftest$ac_exeext conftest.$ac_ext
22868         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22869 $as_echo "$acx_pthread_ok" >&6; }
22870         if test x"$acx_pthread_ok" = xno; then
22871                 PTHREAD_LIBS=""
22872                 PTHREAD_CFLAGS=""
22873         fi
22874         LIBS="$save_LIBS"
22875         CFLAGS="$save_CFLAGS"
22876 fi
22877
22878 # We must check for the threads library under a number of different
22879 # names; the ordering is very important because some systems
22880 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22881 # libraries is broken (non-POSIX).
22882
22883 # Create a list of thread flags to try.  Items starting with a "-" are
22884 # C compiler flags, and other items are library names, except for "none"
22885 # which indicates that we try without any flags at all, and "pthread-config"
22886 # which is a program returning the flags for the Pth emulation library.
22887
22888 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22889
22890 # The ordering *is* (sometimes) important.  Some notes on the
22891 # individual items follow:
22892
22893 # pthreads: AIX (must check this before -lpthread)
22894 # none: in case threads are in libc; should be tried before -Kthread and
22895 #       other compiler flags to prevent continual compiler warnings
22896 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22897 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22898 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22899 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22900 # -pthreads: Solaris/gcc
22901 # -mthreads: Mingw32/gcc, Lynx/gcc
22902 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22903 #      doesn't hurt to check since this sometimes defines pthreads too;
22904 #      also defines -D_REENTRANT)
22905 # pthread: Linux, etcetera
22906 # --thread-safe: KAI C++
22907 # pthread-config: use pthread-config program (for GNU Pth library)
22908
22909 case "${host_cpu}-${host_os}" in
22910         *solaris*)
22911
22912         # On Solaris (at least, for some versions), libc contains stubbed
22913         # (non-functional) versions of the pthreads routines, so link-based
22914         # tests will erroneously succeed.  (We need to link with -pthread or
22915         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22916         # a function called by this macro, so we could check for that, but
22917         # who knows whether they'll stub that too in a future libc.)  So,
22918         # we'll just look for -pthreads and -lpthread first:
22919
22920         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22921         ;;
22922 esac
22923
22924 if test x"$acx_pthread_ok" = xno; then
22925 for flag in $acx_pthread_flags; do
22926
22927         tryPTHREAD_CFLAGS=""
22928         tryPTHREAD_LIBS=""
22929         case $flag in
22930                 none)
22931                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22932 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22933                 ;;
22934
22935                 -*)
22936                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22937 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22938                 tryPTHREAD_CFLAGS="$flag"
22939                 ;;
22940
22941                 pthread-config)
22942                 # skip this if we already have flags defined, for PostgreSQL
22943                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22944                 # Extract the first word of "pthread-config", so it can be a program name with args.
22945 set dummy pthread-config; ac_word=$2
22946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22947 $as_echo_n "checking for $ac_word... " >&6; }
22948 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22949   $as_echo_n "(cached) " >&6
22950 else
22951   if test -n "$acx_pthread_config"; then
22952   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22953 else
22954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22955 for as_dir in $PATH
22956 do
22957   IFS=$as_save_IFS
22958   test -z "$as_dir" && as_dir=.
22959   for ac_exec_ext in '' $ac_executable_extensions; do
22960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22961     ac_cv_prog_acx_pthread_config="yes"
22962     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22963     break 2
22964   fi
22965 done
22966 done
22967 IFS=$as_save_IFS
22968
22969   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22970 fi
22971 fi
22972 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22973 if test -n "$acx_pthread_config"; then
22974   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22975 $as_echo "$acx_pthread_config" >&6; }
22976 else
22977   { $as_echo "$as_me:$LINENO: result: no" >&5
22978 $as_echo "no" >&6; }
22979 fi
22980
22981
22982                 if test x"$acx_pthread_config" = xno; then continue; fi
22983                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22984                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22985                 ;;
22986
22987                 *)
22988                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22989 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22990                 tryPTHREAD_LIBS="-l$flag"
22991                 ;;
22992         esac
22993
22994         save_LIBS="$LIBS"
22995         save_CFLAGS="$CFLAGS"
22996         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22997         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22998
22999         # Check for various functions.  We must include pthread.h,
23000         # since some functions may be macros.  (On the Sequent, we
23001         # need a special flag -Kthread to make this header compile.)
23002         # We check for pthread_join because it is in -lpthread on IRIX
23003         # while pthread_create is in libc.  We check for pthread_attr_init
23004         # due to DEC craziness with -lpthreads.  We check for
23005         # pthread_cleanup_push because it is one of the few pthread
23006         # functions on Solaris that doesn't have a non-functional libc stub.
23007         # We try pthread_create on general principles.
23008         cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014 #include <pthread.h>
23015 int
23016 main ()
23017 {
23018 pthread_t th; pthread_join(th, 0);
23019                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23020                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23021   ;
23022   return 0;
23023 }
23024 _ACEOF
23025 rm -f conftest.$ac_objext conftest$ac_exeext
23026 if { (ac_try="$ac_link"
23027 case "(($ac_try" in
23028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029   *) ac_try_echo=$ac_try;;
23030 esac
23031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23032 $as_echo "$ac_try_echo") >&5
23033   (eval "$ac_link") 2>conftest.er1
23034   ac_status=$?
23035   grep -v '^ *+' conftest.er1 >conftest.err
23036   rm -f conftest.er1
23037   cat conftest.err >&5
23038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039   (exit $ac_status); } && {
23040          test -z "$ac_c_werror_flag" ||
23041          test ! -s conftest.err
23042        } && test -s conftest$ac_exeext && {
23043          test "$cross_compiling" = yes ||
23044          $as_test_x conftest$ac_exeext
23045        }; then
23046   acx_pthread_ok=yes
23047 else
23048   $as_echo "$as_me: failed program was:" >&5
23049 sed 's/^/| /' conftest.$ac_ext >&5
23050
23051         acx_pthread_ok=no
23052 fi
23053
23054 rm -rf conftest.dSYM
23055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23056       conftest$ac_exeext conftest.$ac_ext
23057
23058         if test "x$acx_pthread_ok" = xyes; then
23059             # Don't use options that are ignored by the compiler.
23060             # We find them by checking stderror.
23061             cat >conftest.$ac_ext <<_ACEOF
23062 int
23063 main (int argc, char **argv)
23064 {
23065   (void) argc;
23066   (void) argv;
23067   return 0;
23068 }
23069 _ACEOF
23070             rm -f conftest.$ac_objext conftest$ac_exeext
23071             # Check both linking and compiling, because they might tolerate different options.
23072             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23073                 # we continue with more flags because Linux needs -lpthread
23074                 # for libpq builds on PostgreSQL.  The test above only
23075                 # tests for building binaries, not shared libraries.
23076                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23077                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23078             else   acx_pthread_ok=no
23079             fi
23080         fi
23081
23082         LIBS="$save_LIBS"
23083         CFLAGS="$save_CFLAGS"
23084
23085         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23086 $as_echo "$acx_pthread_ok" >&6; }
23087 done
23088 fi
23089
23090 # Various other checks:
23091 if test "x$acx_pthread_ok" = xyes; then
23092         save_LIBS="$LIBS"
23093         LIBS="$PTHREAD_LIBS $LIBS"
23094         save_CFLAGS="$CFLAGS"
23095         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23096
23097         # Detect AIX lossage: threads are created detached by default
23098         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23099         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23100 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23101         cat >conftest.$ac_ext <<_ACEOF
23102 /* confdefs.h.  */
23103 _ACEOF
23104 cat confdefs.h >>conftest.$ac_ext
23105 cat >>conftest.$ac_ext <<_ACEOF
23106 /* end confdefs.h.  */
23107 #include <pthread.h>
23108 int
23109 main ()
23110 {
23111 int attr=PTHREAD_CREATE_JOINABLE;
23112   ;
23113   return 0;
23114 }
23115 _ACEOF
23116 rm -f conftest.$ac_objext conftest$ac_exeext
23117 if { (ac_try="$ac_link"
23118 case "(($ac_try" in
23119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120   *) ac_try_echo=$ac_try;;
23121 esac
23122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23123 $as_echo "$ac_try_echo") >&5
23124   (eval "$ac_link") 2>conftest.er1
23125   ac_status=$?
23126   grep -v '^ *+' conftest.er1 >conftest.err
23127   rm -f conftest.er1
23128   cat conftest.err >&5
23129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); } && {
23131          test -z "$ac_c_werror_flag" ||
23132          test ! -s conftest.err
23133        } && test -s conftest$ac_exeext && {
23134          test "$cross_compiling" = yes ||
23135          $as_test_x conftest$ac_exeext
23136        }; then
23137   ok=PTHREAD_CREATE_JOINABLE
23138 else
23139   $as_echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23141
23142         ok=unknown
23143 fi
23144
23145 rm -rf conftest.dSYM
23146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23147       conftest$ac_exeext conftest.$ac_ext
23148         if test x"$ok" = xunknown; then
23149                 cat >conftest.$ac_ext <<_ACEOF
23150 /* confdefs.h.  */
23151 _ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h.  */
23155 #include <pthread.h>
23156 int
23157 main ()
23158 {
23159 int attr=PTHREAD_CREATE_UNDETACHED;
23160   ;
23161   return 0;
23162 }
23163 _ACEOF
23164 rm -f conftest.$ac_objext conftest$ac_exeext
23165 if { (ac_try="$ac_link"
23166 case "(($ac_try" in
23167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168   *) ac_try_echo=$ac_try;;
23169 esac
23170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23171 $as_echo "$ac_try_echo") >&5
23172   (eval "$ac_link") 2>conftest.er1
23173   ac_status=$?
23174   grep -v '^ *+' conftest.er1 >conftest.err
23175   rm -f conftest.er1
23176   cat conftest.err >&5
23177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); } && {
23179          test -z "$ac_c_werror_flag" ||
23180          test ! -s conftest.err
23181        } && test -s conftest$ac_exeext && {
23182          test "$cross_compiling" = yes ||
23183          $as_test_x conftest$ac_exeext
23184        }; then
23185   ok=PTHREAD_CREATE_UNDETACHED
23186 else
23187   $as_echo "$as_me: failed program was:" >&5
23188 sed 's/^/| /' conftest.$ac_ext >&5
23189
23190         ok=unknown
23191 fi
23192
23193 rm -rf conftest.dSYM
23194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23195       conftest$ac_exeext conftest.$ac_ext
23196         fi
23197         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23198
23199 cat >>confdefs.h <<\_ACEOF
23200 #define PTHREAD_CREATE_JOINABLE $ok
23201 _ACEOF
23202
23203         fi
23204         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23205 $as_echo "${ok}" >&6; }
23206         if test x"$ok" = xunknown; then
23207                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23208 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23209         fi
23210
23211         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23212 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23213         flag=no
23214 # We always add these in PostgreSQL
23215 #       case "${host_cpu}-${host_os}" in
23216 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23217 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23218 #       esac
23219         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23220 $as_echo "${flag}" >&6; }
23221         if test "x$flag" != xno; then
23222                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23223         fi
23224
23225         LIBS="$save_LIBS"
23226         CFLAGS="$save_CFLAGS"
23227
23228 # Supporting cc_r would require a special CC in all places that
23229 # use libpq, and that is ugly, so we don't do it.  Users can still
23230 # define their compiler as cc_r to do thread builds of everything.
23231         # More AIX lossage: must compile with cc_r
23232         # Extract the first word of "cc_r", so it can be a program name with args.
23233 set dummy cc_r; ac_word=$2
23234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23235 $as_echo_n "checking for $ac_word... " >&6; }
23236 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23237   $as_echo_n "(cached) " >&6
23238 else
23239   if test -n "$PTHREAD_CC"; then
23240   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23241 else
23242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23243 for as_dir in $PATH
23244 do
23245   IFS=$as_save_IFS
23246   test -z "$as_dir" && as_dir=.
23247   for ac_exec_ext in '' $ac_executable_extensions; do
23248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23249     ac_cv_prog_PTHREAD_CC="cc_r"
23250     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23251     break 2
23252   fi
23253 done
23254 done
23255 IFS=$as_save_IFS
23256
23257   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23258 fi
23259 fi
23260 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23261 if test -n "$PTHREAD_CC"; then
23262   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23263 $as_echo "$PTHREAD_CC" >&6; }
23264 else
23265   { $as_echo "$as_me:$LINENO: result: no" >&5
23266 $as_echo "no" >&6; }
23267 fi
23268
23269
23270 else
23271         PTHREAD_CC="$CC"
23272 fi
23273
23274
23275
23276
23277
23278 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23279 if test x"$acx_pthread_ok" = xyes; then
23280
23281 cat >>confdefs.h <<\_ACEOF
23282 #define HAVE_PTHREAD 1
23283 _ACEOF
23284
23285         :
23286 else
23287         acx_pthread_ok=no
23288
23289 fi
23290 ac_ext=c
23291 ac_cpp='$CPP $CPPFLAGS'
23292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23295
23296         # set thread flags
23297
23298 # Some platforms use these, so just define them.  They can't hurt if they
23299 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23300 # enables 5-arg getpwuid_r, among other things.
23301 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23302
23303
23304 # At this point, we don't want to muck with the compiler name for threading.
23305 # Let's see who fails, perhaps AIX.  2004-04-23
23306 if test "$PTHREAD_CC" != "$CC"; then
23307 { { $as_echo "$as_me:$LINENO: error:
23308 PostgreSQL does not support platforms that require a special compiler
23309 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23310 $as_echo "$as_me: error:
23311 PostgreSQL does not support platforms that require a special compiler
23312 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23313    { (exit 1); exit 1; }; }
23314 fi
23315
23316 # Check for *_r functions
23317 _CFLAGS="$CFLAGS"
23318 _LIBS="$LIBS"
23319 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23320 LIBS="$LIBS $PTHREAD_LIBS"
23321
23322 if test "$PORTNAME" != "win32"; then
23323 if test "${ac_cv_header_pthread_h+set}" = set; then
23324   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23325 $as_echo_n "checking for pthread.h... " >&6; }
23326 if test "${ac_cv_header_pthread_h+set}" = set; then
23327   $as_echo_n "(cached) " >&6
23328 fi
23329 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23330 $as_echo "$ac_cv_header_pthread_h" >&6; }
23331 else
23332   # Is the header compilable?
23333 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23334 $as_echo_n "checking pthread.h usability... " >&6; }
23335 cat >conftest.$ac_ext <<_ACEOF
23336 /* confdefs.h.  */
23337 _ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h.  */
23341 $ac_includes_default
23342 #include <pthread.h>
23343 _ACEOF
23344 rm -f conftest.$ac_objext
23345 if { (ac_try="$ac_compile"
23346 case "(($ac_try" in
23347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23348   *) ac_try_echo=$ac_try;;
23349 esac
23350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23351 $as_echo "$ac_try_echo") >&5
23352   (eval "$ac_compile") 2>conftest.er1
23353   ac_status=$?
23354   grep -v '^ *+' conftest.er1 >conftest.err
23355   rm -f conftest.er1
23356   cat conftest.err >&5
23357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); } && {
23359          test -z "$ac_c_werror_flag" ||
23360          test ! -s conftest.err
23361        } && test -s conftest.$ac_objext; then
23362   ac_header_compiler=yes
23363 else
23364   $as_echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23366
23367         ac_header_compiler=no
23368 fi
23369
23370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23371 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23372 $as_echo "$ac_header_compiler" >&6; }
23373
23374 # Is the header present?
23375 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23376 $as_echo_n "checking pthread.h presence... " >&6; }
23377 cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h.  */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h.  */
23383 #include <pthread.h>
23384 _ACEOF
23385 if { (ac_try="$ac_cpp conftest.$ac_ext"
23386 case "(($ac_try" in
23387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388   *) ac_try_echo=$ac_try;;
23389 esac
23390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23391 $as_echo "$ac_try_echo") >&5
23392   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23393   ac_status=$?
23394   grep -v '^ *+' conftest.er1 >conftest.err
23395   rm -f conftest.er1
23396   cat conftest.err >&5
23397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398   (exit $ac_status); } >/dev/null && {
23399          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23400          test ! -s conftest.err
23401        }; then
23402   ac_header_preproc=yes
23403 else
23404   $as_echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23406
23407   ac_header_preproc=no
23408 fi
23409
23410 rm -f conftest.err conftest.$ac_ext
23411 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23412 $as_echo "$ac_header_preproc" >&6; }
23413
23414 # So?  What about this header?
23415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23416   yes:no: )
23417     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23418 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23419     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23420 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23421     ac_header_preproc=yes
23422     ;;
23423   no:yes:* )
23424     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23425 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23426     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23427 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23428     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23429 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23430     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23431 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23432     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23433 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23434     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23435 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23436     ( cat <<\_ASBOX
23437 ## ---------------------------------------- ##
23438 ## Report this to pgsql-bugs@postgresql.org ##
23439 ## ---------------------------------------- ##
23440 _ASBOX
23441      ) | sed "s/^/$as_me: WARNING:     /" >&2
23442     ;;
23443 esac
23444 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23445 $as_echo_n "checking for pthread.h... " >&6; }
23446 if test "${ac_cv_header_pthread_h+set}" = set; then
23447   $as_echo_n "(cached) " >&6
23448 else
23449   ac_cv_header_pthread_h=$ac_header_preproc
23450 fi
23451 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23452 $as_echo "$ac_cv_header_pthread_h" >&6; }
23453
23454 fi
23455 if test "x$ac_cv_header_pthread_h" = x""yes; then
23456   :
23457 else
23458   { { $as_echo "$as_me:$LINENO: error:
23459 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23460 $as_echo "$as_me: error:
23461 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23462    { (exit 1); exit 1; }; }
23463 fi
23464
23465
23466 fi
23467
23468
23469
23470
23471 for ac_func in strerror_r getpwuid_r gethostbyname_r
23472 do
23473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23475 $as_echo_n "checking for $ac_func... " >&6; }
23476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23477   $as_echo_n "(cached) " >&6
23478 else
23479   cat >conftest.$ac_ext <<_ACEOF
23480 /* confdefs.h.  */
23481 _ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h.  */
23485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23487 #define $ac_func innocuous_$ac_func
23488
23489 /* System header to define __stub macros and hopefully few prototypes,
23490     which can conflict with char $ac_func (); below.
23491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23492     <limits.h> exists even on freestanding compilers.  */
23493
23494 #ifdef __STDC__
23495 # include <limits.h>
23496 #else
23497 # include <assert.h>
23498 #endif
23499
23500 #undef $ac_func
23501
23502 /* Override any GCC internal prototype to avoid an error.
23503    Use char because int might match the return type of a GCC
23504    builtin and then its argument prototype would still apply.  */
23505 #ifdef __cplusplus
23506 extern "C"
23507 #endif
23508 char $ac_func ();
23509 /* The GNU C library defines this for functions which it implements
23510     to always fail with ENOSYS.  Some functions are actually named
23511     something starting with __ and the normal name is an alias.  */
23512 #if defined __stub_$ac_func || defined __stub___$ac_func
23513 choke me
23514 #endif
23515
23516 int
23517 main ()
23518 {
23519 return $ac_func ();
23520   ;
23521   return 0;
23522 }
23523 _ACEOF
23524 rm -f conftest.$ac_objext conftest$ac_exeext
23525 if { (ac_try="$ac_link"
23526 case "(($ac_try" in
23527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528   *) ac_try_echo=$ac_try;;
23529 esac
23530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23531 $as_echo "$ac_try_echo") >&5
23532   (eval "$ac_link") 2>conftest.er1
23533   ac_status=$?
23534   grep -v '^ *+' conftest.er1 >conftest.err
23535   rm -f conftest.er1
23536   cat conftest.err >&5
23537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } && {
23539          test -z "$ac_c_werror_flag" ||
23540          test ! -s conftest.err
23541        } && test -s conftest$ac_exeext && {
23542          test "$cross_compiling" = yes ||
23543          $as_test_x conftest$ac_exeext
23544        }; then
23545   eval "$as_ac_var=yes"
23546 else
23547   $as_echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23549
23550         eval "$as_ac_var=no"
23551 fi
23552
23553 rm -rf conftest.dSYM
23554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23555       conftest$ac_exeext conftest.$ac_ext
23556 fi
23557 ac_res=`eval 'as_val=${'$as_ac_var'}
23558                  $as_echo "$as_val"'`
23559                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23560 $as_echo "$ac_res" >&6; }
23561 as_val=`eval 'as_val=${'$as_ac_var'}
23562                  $as_echo "$as_val"'`
23563    if test "x$as_val" = x""yes; then
23564   cat >>confdefs.h <<_ACEOF
23565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23566 _ACEOF
23567
23568 fi
23569 done
23570
23571
23572 # Do test here with the proper thread flags
23573 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23574 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23575 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23576   $as_echo_n "(cached) " >&6
23577 else
23578   cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h.  */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h.  */
23584 #include <sys/types.h>
23585 #include <pwd.h>
23586 int
23587 main ()
23588 {
23589 uid_t uid;
23590 struct passwd *space;
23591 char *buf;
23592 size_t bufsize;
23593 struct passwd **result;
23594 getpwuid_r(uid, space, buf, bufsize, result);
23595   ;
23596   return 0;
23597 }
23598 _ACEOF
23599 rm -f conftest.$ac_objext
23600 if { (ac_try="$ac_compile"
23601 case "(($ac_try" in
23602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23603   *) ac_try_echo=$ac_try;;
23604 esac
23605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23606 $as_echo "$ac_try_echo") >&5
23607   (eval "$ac_compile") 2>conftest.er1
23608   ac_status=$?
23609   grep -v '^ *+' conftest.er1 >conftest.err
23610   rm -f conftest.er1
23611   cat conftest.err >&5
23612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); } && {
23614          test -z "$ac_c_werror_flag" ||
23615          test ! -s conftest.err
23616        } && test -s conftest.$ac_objext; then
23617   pgac_cv_func_getpwuid_r_5arg=yes
23618 else
23619   $as_echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23621
23622         pgac_cv_func_getpwuid_r_5arg=no
23623 fi
23624
23625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23626 fi
23627 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23628 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23629 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23630
23631 cat >>confdefs.h <<\_ACEOF
23632 #define GETPWUID_R_5ARG /**/
23633 _ACEOF
23634
23635 fi
23636
23637 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23638 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23639 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23640   $as_echo_n "(cached) " >&6
23641 else
23642   cat >conftest.$ac_ext <<_ACEOF
23643 /* confdefs.h.  */
23644 _ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h.  */
23648 #include <string.h>
23649 int
23650 main ()
23651 {
23652 #ifndef _AIX
23653 int strerror_r(int, char *, size_t);
23654 #else
23655 /* Older AIX has 'int' for the third argument so we don't test the args. */
23656 int strerror_r();
23657 #endif
23658   ;
23659   return 0;
23660 }
23661 _ACEOF
23662 rm -f conftest.$ac_objext
23663 if { (ac_try="$ac_compile"
23664 case "(($ac_try" in
23665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666   *) ac_try_echo=$ac_try;;
23667 esac
23668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23669 $as_echo "$ac_try_echo") >&5
23670   (eval "$ac_compile") 2>conftest.er1
23671   ac_status=$?
23672   grep -v '^ *+' conftest.er1 >conftest.err
23673   rm -f conftest.er1
23674   cat conftest.err >&5
23675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); } && {
23677          test -z "$ac_c_werror_flag" ||
23678          test ! -s conftest.err
23679        } && test -s conftest.$ac_objext; then
23680   pgac_cv_func_strerror_r_int=yes
23681 else
23682   $as_echo "$as_me: failed program was:" >&5
23683 sed 's/^/| /' conftest.$ac_ext >&5
23684
23685         pgac_cv_func_strerror_r_int=no
23686 fi
23687
23688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23689 fi
23690 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23691 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23692 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23693
23694 cat >>confdefs.h <<\_ACEOF
23695 #define STRERROR_R_INT /**/
23696 _ACEOF
23697
23698 fi
23699
23700
23701 CFLAGS="$_CFLAGS"
23702 LIBS="$_LIBS"
23703
23704 else
23705 # do not use values from template file
23706 PTHREAD_CFLAGS=
23707 PTHREAD_LIBS=
23708 fi
23709
23710
23711
23712
23713
23714 # We can test for libldap_r only after we know PTHREAD_LIBS
23715 if test "$with_ldap" = yes ; then
23716   _LIBS="$LIBS"
23717   if test "$PORTNAME" != "win32"; then
23718
23719 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23720 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23721 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23722   $as_echo_n "(cached) " >&6
23723 else
23724   ac_check_lib_save_LIBS=$LIBS
23725 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23726 cat >conftest.$ac_ext <<_ACEOF
23727 /* confdefs.h.  */
23728 _ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h.  */
23732
23733 /* Override any GCC internal prototype to avoid an error.
23734    Use char because int might match the return type of a GCC
23735    builtin and then its argument prototype would still apply.  */
23736 #ifdef __cplusplus
23737 extern "C"
23738 #endif
23739 char ldap_bind ();
23740 int
23741 main ()
23742 {
23743 return ldap_bind ();
23744   ;
23745   return 0;
23746 }
23747 _ACEOF
23748 rm -f conftest.$ac_objext conftest$ac_exeext
23749 if { (ac_try="$ac_link"
23750 case "(($ac_try" in
23751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23752   *) ac_try_echo=$ac_try;;
23753 esac
23754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23755 $as_echo "$ac_try_echo") >&5
23756   (eval "$ac_link") 2>conftest.er1
23757   ac_status=$?
23758   grep -v '^ *+' conftest.er1 >conftest.err
23759   rm -f conftest.er1
23760   cat conftest.err >&5
23761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762   (exit $ac_status); } && {
23763          test -z "$ac_c_werror_flag" ||
23764          test ! -s conftest.err
23765        } && test -s conftest$ac_exeext && {
23766          test "$cross_compiling" = yes ||
23767          $as_test_x conftest$ac_exeext
23768        }; then
23769   ac_cv_lib_ldap_ldap_bind=yes
23770 else
23771   $as_echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23773
23774         ac_cv_lib_ldap_ldap_bind=no
23775 fi
23776
23777 rm -rf conftest.dSYM
23778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23779       conftest$ac_exeext conftest.$ac_ext
23780 LIBS=$ac_check_lib_save_LIBS
23781 fi
23782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23783 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23784 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23785   cat >>confdefs.h <<_ACEOF
23786 #define HAVE_LIBLDAP 1
23787 _ACEOF
23788
23789   LIBS="-lldap $LIBS"
23790
23791 else
23792   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23793 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23794    { (exit 1); exit 1; }; }
23795 fi
23796
23797     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23798     if test "$enable_thread_safety" = yes; then
23799       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23800
23801 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23802 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23803 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23804   $as_echo_n "(cached) " >&6
23805 else
23806   ac_check_lib_save_LIBS=$LIBS
23807 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23808 cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814
23815 /* Override any GCC internal prototype to avoid an error.
23816    Use char because int might match the return type of a GCC
23817    builtin and then its argument prototype would still apply.  */
23818 #ifdef __cplusplus
23819 extern "C"
23820 #endif
23821 char ldap_simple_bind ();
23822 int
23823 main ()
23824 {
23825 return ldap_simple_bind ();
23826   ;
23827   return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext conftest$ac_exeext
23831 if { (ac_try="$ac_link"
23832 case "(($ac_try" in
23833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834   *) ac_try_echo=$ac_try;;
23835 esac
23836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23837 $as_echo "$ac_try_echo") >&5
23838   (eval "$ac_link") 2>conftest.er1
23839   ac_status=$?
23840   grep -v '^ *+' conftest.er1 >conftest.err
23841   rm -f conftest.er1
23842   cat conftest.err >&5
23843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); } && {
23845          test -z "$ac_c_werror_flag" ||
23846          test ! -s conftest.err
23847        } && test -s conftest$ac_exeext && {
23848          test "$cross_compiling" = yes ||
23849          $as_test_x conftest$ac_exeext
23850        }; then
23851   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23852 else
23853   $as_echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23855
23856         ac_cv_lib_ldap_r_ldap_simple_bind=no
23857 fi
23858
23859 rm -rf conftest.dSYM
23860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23861       conftest$ac_exeext conftest.$ac_ext
23862 LIBS=$ac_check_lib_save_LIBS
23863 fi
23864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23865 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23866 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23867   cat >>confdefs.h <<_ACEOF
23868 #define HAVE_LIBLDAP_R 1
23869 _ACEOF
23870
23871   LIBS="-lldap_r $LIBS"
23872
23873 else
23874   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23875 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23876    { (exit 1); exit 1; }; }
23877 fi
23878
23879       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23880     else
23881       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23882     fi
23883   else
23884
23885 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23886 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23887 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23888   $as_echo_n "(cached) " >&6
23889 else
23890   ac_check_lib_save_LIBS=$LIBS
23891 LIBS="-lwldap32  $LIBS"
23892 cat >conftest.$ac_ext <<_ACEOF
23893 /* confdefs.h.  */
23894 _ACEOF
23895 cat confdefs.h >>conftest.$ac_ext
23896 cat >>conftest.$ac_ext <<_ACEOF
23897 /* end confdefs.h.  */
23898
23899 /* Override any GCC internal prototype to avoid an error.
23900    Use char because int might match the return type of a GCC
23901    builtin and then its argument prototype would still apply.  */
23902 #ifdef __cplusplus
23903 extern "C"
23904 #endif
23905 char ldap_bind ();
23906 int
23907 main ()
23908 {
23909 return ldap_bind ();
23910   ;
23911   return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23921 $as_echo "$ac_try_echo") >&5
23922   (eval "$ac_link") 2>conftest.er1
23923   ac_status=$?
23924   grep -v '^ *+' conftest.er1 >conftest.err
23925   rm -f conftest.er1
23926   cat conftest.err >&5
23927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); } && {
23929          test -z "$ac_c_werror_flag" ||
23930          test ! -s conftest.err
23931        } && test -s conftest$ac_exeext && {
23932          test "$cross_compiling" = yes ||
23933          $as_test_x conftest$ac_exeext
23934        }; then
23935   ac_cv_lib_wldap32_ldap_bind=yes
23936 else
23937   $as_echo "$as_me: failed program was:" >&5
23938 sed 's/^/| /' conftest.$ac_ext >&5
23939
23940         ac_cv_lib_wldap32_ldap_bind=no
23941 fi
23942
23943 rm -rf conftest.dSYM
23944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23945       conftest$ac_exeext conftest.$ac_ext
23946 LIBS=$ac_check_lib_save_LIBS
23947 fi
23948 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23949 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23950 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23951   cat >>confdefs.h <<_ACEOF
23952 #define HAVE_LIBWLDAP32 1
23953 _ACEOF
23954
23955   LIBS="-lwldap32 $LIBS"
23956
23957 else
23958   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23959 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23960    { (exit 1); exit 1; }; }
23961 fi
23962
23963     LDAP_LIBS_FE="-lwldap32"
23964     LDAP_LIBS_BE="-lwldap32"
23965   fi
23966   LIBS="$_LIBS"
23967 fi
23968
23969
23970
23971
23972 # This test makes sure that run tests work at all.  Sometimes a shared
23973 # library is found by the linker, but the runtime linker can't find it.
23974 # This check should come after all modifications of compiler or linker
23975 # variables, and before any other run tests.
23976 { $as_echo "$as_me:$LINENO: checking test program" >&5
23977 $as_echo_n "checking test program... " >&6; }
23978 if test "$cross_compiling" = yes; then
23979   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23980 $as_echo "cross-compiling" >&6; }
23981 else
23982   cat >conftest.$ac_ext <<_ACEOF
23983 /* confdefs.h.  */
23984 _ACEOF
23985 cat confdefs.h >>conftest.$ac_ext
23986 cat >>conftest.$ac_ext <<_ACEOF
23987 /* end confdefs.h.  */
23988 int main() { return 0; }
23989 _ACEOF
23990 rm -f conftest$ac_exeext
23991 if { (ac_try="$ac_link"
23992 case "(($ac_try" in
23993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994   *) ac_try_echo=$ac_try;;
23995 esac
23996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23997 $as_echo "$ac_try_echo") >&5
23998   (eval "$ac_link") 2>&5
23999   ac_status=$?
24000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24002   { (case "(($ac_try" in
24003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004   *) ac_try_echo=$ac_try;;
24005 esac
24006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24007 $as_echo "$ac_try_echo") >&5
24008   (eval "$ac_try") 2>&5
24009   ac_status=$?
24010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011   (exit $ac_status); }; }; then
24012   { $as_echo "$as_me:$LINENO: result: ok" >&5
24013 $as_echo "ok" >&6; }
24014 else
24015   $as_echo "$as_me: program exited with status $ac_status" >&5
24016 $as_echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24018
24019 ( exit $ac_status )
24020 { $as_echo "$as_me:$LINENO: result: failed" >&5
24021 $as_echo "failed" >&6; }
24022 { { $as_echo "$as_me:$LINENO: error:
24023 Could not execute a simple test program.  This may be a problem
24024 related to locating shared libraries.  Check the file 'config.log'
24025 for the exact reason." >&5
24026 $as_echo "$as_me: error:
24027 Could not execute a simple test program.  This may be a problem
24028 related to locating shared libraries.  Check the file 'config.log'
24029 for the exact reason." >&2;}
24030    { (exit 1); exit 1; }; }
24031 fi
24032 rm -rf conftest.dSYM
24033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24034 fi
24035
24036
24037
24038 # --------------------
24039 # Run tests below here
24040 # --------------------
24041
24042 # Force use of our snprintf if system's doesn't do arg control
24043 # See comment above at snprintf test for details.
24044 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24045   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24046 $as_echo_n "checking whether printf supports argument control... " >&6; }
24047 if test "${pgac_cv_printf_arg_control+set}" = set; then
24048   $as_echo_n "(cached) " >&6
24049 else
24050   if test "$cross_compiling" = yes; then
24051   pgac_cv_printf_arg_control=cross
24052 else
24053   cat >conftest.$ac_ext <<_ACEOF
24054 /* confdefs.h.  */
24055 _ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h.  */
24059 #include <stdio.h>
24060 #include <string.h>
24061
24062 int main()
24063 {
24064   char buf[100];
24065
24066   /* can it swap arguments? */
24067   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24068   if (strcmp(buf, "4 3") != 0)
24069     return 1;
24070   return 0;
24071 }
24072 _ACEOF
24073 rm -f conftest$ac_exeext
24074 if { (ac_try="$ac_link"
24075 case "(($ac_try" in
24076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077   *) ac_try_echo=$ac_try;;
24078 esac
24079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24080 $as_echo "$ac_try_echo") >&5
24081   (eval "$ac_link") 2>&5
24082   ac_status=$?
24083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24085   { (case "(($ac_try" in
24086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24087   *) ac_try_echo=$ac_try;;
24088 esac
24089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24090 $as_echo "$ac_try_echo") >&5
24091   (eval "$ac_try") 2>&5
24092   ac_status=$?
24093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094   (exit $ac_status); }; }; then
24095   pgac_cv_printf_arg_control=yes
24096 else
24097   $as_echo "$as_me: program exited with status $ac_status" >&5
24098 $as_echo "$as_me: failed program was:" >&5
24099 sed 's/^/| /' conftest.$ac_ext >&5
24100
24101 ( exit $ac_status )
24102 pgac_cv_printf_arg_control=no
24103 fi
24104 rm -rf conftest.dSYM
24105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24106 fi
24107
24108
24109
24110 fi
24111 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24112 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24113
24114   if test $pgac_cv_printf_arg_control != yes ; then
24115     pgac_need_repl_snprintf=yes
24116   fi
24117 fi
24118
24119
24120
24121
24122 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24123 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24124 if test "${pgac_cv_type_long_int_64+set}" = set; then
24125   $as_echo_n "(cached) " >&6
24126 else
24127   if test "$cross_compiling" = yes; then
24128   # If cross-compiling, check the size reported by the compiler and
24129 # trust that the arithmetic works.
24130 cat >conftest.$ac_ext <<_ACEOF
24131 /* confdefs.h.  */
24132 _ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h.  */
24136
24137 int
24138 main ()
24139 {
24140 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24141 test_array [0] = 0
24142
24143   ;
24144   return 0;
24145 }
24146 _ACEOF
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151   *) ac_try_echo=$ac_try;;
24152 esac
24153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24154 $as_echo "$ac_try_echo") >&5
24155   (eval "$ac_compile") 2>conftest.er1
24156   ac_status=$?
24157   grep -v '^ *+' conftest.er1 >conftest.err
24158   rm -f conftest.er1
24159   cat conftest.err >&5
24160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); } && {
24162          test -z "$ac_c_werror_flag" ||
24163          test ! -s conftest.err
24164        } && test -s conftest.$ac_objext; then
24165   pgac_cv_type_long_int_64=yes
24166 else
24167   $as_echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24169
24170         pgac_cv_type_long_int_64=no
24171 fi
24172
24173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24174 else
24175   cat >conftest.$ac_ext <<_ACEOF
24176 /* confdefs.h.  */
24177 _ACEOF
24178 cat confdefs.h >>conftest.$ac_ext
24179 cat >>conftest.$ac_ext <<_ACEOF
24180 /* end confdefs.h.  */
24181 typedef long int ac_int64;
24182
24183 /*
24184  * These are globals to discourage the compiler from folding all the
24185  * arithmetic tests down to compile-time constants.
24186  */
24187 ac_int64 a = 20000001;
24188 ac_int64 b = 40000005;
24189
24190 int does_int64_work()
24191 {
24192   ac_int64 c,d;
24193
24194   if (sizeof(ac_int64) != 8)
24195     return 0;                   /* definitely not the right size */
24196
24197   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24198   c = a * b;
24199   d = (c + b) / b;
24200   if (d != a+1)
24201     return 0;
24202   return 1;
24203 }
24204 main() {
24205   exit(! does_int64_work());
24206 }
24207 _ACEOF
24208 rm -f conftest$ac_exeext
24209 if { (ac_try="$ac_link"
24210 case "(($ac_try" in
24211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24212   *) ac_try_echo=$ac_try;;
24213 esac
24214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24215 $as_echo "$ac_try_echo") >&5
24216   (eval "$ac_link") 2>&5
24217   ac_status=$?
24218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24220   { (case "(($ac_try" in
24221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24222   *) ac_try_echo=$ac_try;;
24223 esac
24224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24225 $as_echo "$ac_try_echo") >&5
24226   (eval "$ac_try") 2>&5
24227   ac_status=$?
24228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229   (exit $ac_status); }; }; then
24230   pgac_cv_type_long_int_64=yes
24231 else
24232   $as_echo "$as_me: program exited with status $ac_status" >&5
24233 $as_echo "$as_me: failed program was:" >&5
24234 sed 's/^/| /' conftest.$ac_ext >&5
24235
24236 ( exit $ac_status )
24237 pgac_cv_type_long_int_64=no
24238 fi
24239 rm -rf conftest.dSYM
24240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24241 fi
24242
24243
24244 fi
24245 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24246 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24247
24248 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24249 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24250
24251 cat >>confdefs.h <<\_ACEOF
24252 #define HAVE_LONG_INT_64 1
24253 _ACEOF
24254
24255 fi
24256
24257
24258 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24259   pg_int64_type="long int"
24260 else
24261   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24262 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24263 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24264   $as_echo_n "(cached) " >&6
24265 else
24266   if test "$cross_compiling" = yes; then
24267   # If cross-compiling, check the size reported by the compiler and
24268 # trust that the arithmetic works.
24269 cat >conftest.$ac_ext <<_ACEOF
24270 /* confdefs.h.  */
24271 _ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h.  */
24275
24276 int
24277 main ()
24278 {
24279 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24280 test_array [0] = 0
24281
24282   ;
24283   return 0;
24284 }
24285 _ACEOF
24286 rm -f conftest.$ac_objext
24287 if { (ac_try="$ac_compile"
24288 case "(($ac_try" in
24289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24290   *) ac_try_echo=$ac_try;;
24291 esac
24292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24293 $as_echo "$ac_try_echo") >&5
24294   (eval "$ac_compile") 2>conftest.er1
24295   ac_status=$?
24296   grep -v '^ *+' conftest.er1 >conftest.err
24297   rm -f conftest.er1
24298   cat conftest.err >&5
24299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300   (exit $ac_status); } && {
24301          test -z "$ac_c_werror_flag" ||
24302          test ! -s conftest.err
24303        } && test -s conftest.$ac_objext; then
24304   pgac_cv_type_long_long_int_64=yes
24305 else
24306   $as_echo "$as_me: failed program was:" >&5
24307 sed 's/^/| /' conftest.$ac_ext >&5
24308
24309         pgac_cv_type_long_long_int_64=no
24310 fi
24311
24312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24313 else
24314   cat >conftest.$ac_ext <<_ACEOF
24315 /* confdefs.h.  */
24316 _ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h.  */
24320 typedef long long int ac_int64;
24321
24322 /*
24323  * These are globals to discourage the compiler from folding all the
24324  * arithmetic tests down to compile-time constants.
24325  */
24326 ac_int64 a = 20000001;
24327 ac_int64 b = 40000005;
24328
24329 int does_int64_work()
24330 {
24331   ac_int64 c,d;
24332
24333   if (sizeof(ac_int64) != 8)
24334     return 0;                   /* definitely not the right size */
24335
24336   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24337   c = a * b;
24338   d = (c + b) / b;
24339   if (d != a+1)
24340     return 0;
24341   return 1;
24342 }
24343 main() {
24344   exit(! does_int64_work());
24345 }
24346 _ACEOF
24347 rm -f conftest$ac_exeext
24348 if { (ac_try="$ac_link"
24349 case "(($ac_try" in
24350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351   *) ac_try_echo=$ac_try;;
24352 esac
24353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24354 $as_echo "$ac_try_echo") >&5
24355   (eval "$ac_link") 2>&5
24356   ac_status=$?
24357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24359   { (case "(($ac_try" in
24360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361   *) ac_try_echo=$ac_try;;
24362 esac
24363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24364 $as_echo "$ac_try_echo") >&5
24365   (eval "$ac_try") 2>&5
24366   ac_status=$?
24367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); }; }; then
24369   pgac_cv_type_long_long_int_64=yes
24370 else
24371   $as_echo "$as_me: program exited with status $ac_status" >&5
24372 $as_echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.$ac_ext >&5
24374
24375 ( exit $ac_status )
24376 pgac_cv_type_long_long_int_64=no
24377 fi
24378 rm -rf conftest.dSYM
24379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24380 fi
24381
24382
24383 fi
24384 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24385 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24386
24387 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24388 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24389
24390 cat >>confdefs.h <<\_ACEOF
24391 #define HAVE_LONG_LONG_INT_64 1
24392 _ACEOF
24393
24394 fi
24395
24396   if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24397     pg_int64_type="long long int"
24398   else
24399     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24400 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24401    { (exit 1); exit 1; }; }
24402   fi
24403 fi
24404
24405
24406 cat >>confdefs.h <<_ACEOF
24407 #define PG_INT64_TYPE $pg_int64_type
24408 _ACEOF
24409
24410
24411
24412 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24413   cat >conftest.$ac_ext <<_ACEOF
24414 /* confdefs.h.  */
24415 _ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h.  */
24419
24420 #define INT64CONST(x)  x##LL
24421 long long int foo = INT64CONST(0x1234567890123456);
24422
24423 int
24424 main ()
24425 {
24426
24427   ;
24428   return 0;
24429 }
24430 _ACEOF
24431 rm -f conftest.$ac_objext
24432 if { (ac_try="$ac_compile"
24433 case "(($ac_try" in
24434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435   *) ac_try_echo=$ac_try;;
24436 esac
24437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24438 $as_echo "$ac_try_echo") >&5
24439   (eval "$ac_compile") 2>conftest.er1
24440   ac_status=$?
24441   grep -v '^ *+' conftest.er1 >conftest.err
24442   rm -f conftest.er1
24443   cat conftest.err >&5
24444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445   (exit $ac_status); } && {
24446          test -z "$ac_c_werror_flag" ||
24447          test ! -s conftest.err
24448        } && test -s conftest.$ac_objext; then
24449
24450 cat >>confdefs.h <<\_ACEOF
24451 #define HAVE_LL_CONSTANTS 1
24452 _ACEOF
24453
24454 else
24455   $as_echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24457
24458
24459 fi
24460
24461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24462 fi
24463
24464
24465 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24466 # we found we need to use "long long int", better check.  We cope with
24467 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24468 # work, fall back to our own snprintf emulation (which we know uses %lld).
24469
24470 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24471   if test $pgac_need_repl_snprintf = no; then
24472     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24473 $as_echo_n "checking snprintf format for long long int... " >&6; }
24474 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24475   $as_echo_n "(cached) " >&6
24476 else
24477   for pgac_format in '%lld' '%qd' '%I64d'; do
24478 if test "$cross_compiling" = yes; then
24479   pgac_cv_snprintf_long_long_int_format=cross; break
24480 else
24481   cat >conftest.$ac_ext <<_ACEOF
24482 /* confdefs.h.  */
24483 _ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h.  */
24487 #include <stdio.h>
24488 typedef long long int ac_int64;
24489 #define INT64_FORMAT "$pgac_format"
24490
24491 ac_int64 a = 20000001;
24492 ac_int64 b = 40000005;
24493
24494 int does_int64_snprintf_work()
24495 {
24496   ac_int64 c;
24497   char buf[100];
24498
24499   if (sizeof(ac_int64) != 8)
24500     return 0;                   /* doesn't look like the right size */
24501
24502   c = a * b;
24503   snprintf(buf, 100, INT64_FORMAT, c);
24504   if (strcmp(buf, "800000140000005") != 0)
24505     return 0;                   /* either multiply or snprintf is busted */
24506   return 1;
24507 }
24508 main() {
24509   exit(! does_int64_snprintf_work());
24510 }
24511 _ACEOF
24512 rm -f conftest$ac_exeext
24513 if { (ac_try="$ac_link"
24514 case "(($ac_try" in
24515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516   *) ac_try_echo=$ac_try;;
24517 esac
24518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24519 $as_echo "$ac_try_echo") >&5
24520   (eval "$ac_link") 2>&5
24521   ac_status=$?
24522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24524   { (case "(($ac_try" in
24525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24526   *) ac_try_echo=$ac_try;;
24527 esac
24528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24529 $as_echo "$ac_try_echo") >&5
24530   (eval "$ac_try") 2>&5
24531   ac_status=$?
24532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); }; }; then
24534   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24535 else
24536   $as_echo "$as_me: program exited with status $ac_status" >&5
24537 $as_echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24539
24540 fi
24541 rm -rf conftest.dSYM
24542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24543 fi
24544
24545
24546 done
24547 fi
24548
24549 LONG_LONG_INT_FORMAT=''
24550
24551 case $pgac_cv_snprintf_long_long_int_format in
24552   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24553 $as_echo "cannot test (not on host machine)" >&6; };;
24554   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24555 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24556          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24557   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24558 $as_echo "none" >&6; };;
24559 esac
24560     if test "$LONG_LONG_INT_FORMAT" = ""; then
24561       # Force usage of our own snprintf, since system snprintf is broken
24562       pgac_need_repl_snprintf=yes
24563       LONG_LONG_INT_FORMAT='%lld'
24564     fi
24565   else
24566     # Here if we previously decided we needed to use our own snprintf
24567     LONG_LONG_INT_FORMAT='%lld'
24568   fi
24569   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24570   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24571   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24572 else
24573   # Here if we are not using 'long long int' at all
24574   INT64_FORMAT='"%ld"'
24575   UINT64_FORMAT='"%lu"'
24576 fi
24577
24578
24579 cat >>confdefs.h <<_ACEOF
24580 #define INT64_FORMAT $INT64_FORMAT
24581 _ACEOF
24582
24583
24584
24585 cat >>confdefs.h <<_ACEOF
24586 #define UINT64_FORMAT $UINT64_FORMAT
24587 _ACEOF
24588
24589
24590 # Now we have checked all the reasons to replace snprintf
24591 if test $pgac_need_repl_snprintf = yes; then
24592
24593 cat >>confdefs.h <<\_ACEOF
24594 #define USE_REPL_SNPRINTF 1
24595 _ACEOF
24596
24597   case " $LIBOBJS " in
24598   *" snprintf.$ac_objext "* ) ;;
24599   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24600  ;;
24601 esac
24602
24603 fi
24604
24605 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24606 # The cast to long int works around a bug in the HP C Compiler
24607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24609 # This bug is HP SR number 8606223364.
24610 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24611 $as_echo_n "checking size of void *... " >&6; }
24612 if test "${ac_cv_sizeof_void_p+set}" = set; then
24613   $as_echo_n "(cached) " >&6
24614 else
24615   if test "$cross_compiling" = yes; then
24616   # Depending upon the size, compute the lo and hi bounds.
24617 cat >conftest.$ac_ext <<_ACEOF
24618 /* confdefs.h.  */
24619 _ACEOF
24620 cat confdefs.h >>conftest.$ac_ext
24621 cat >>conftest.$ac_ext <<_ACEOF
24622 /* end confdefs.h.  */
24623 $ac_includes_default
24624 int
24625 main ()
24626 {
24627 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24628 test_array [0] = 0
24629
24630   ;
24631   return 0;
24632 }
24633 _ACEOF
24634 rm -f conftest.$ac_objext
24635 if { (ac_try="$ac_compile"
24636 case "(($ac_try" in
24637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638   *) ac_try_echo=$ac_try;;
24639 esac
24640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24641 $as_echo "$ac_try_echo") >&5
24642   (eval "$ac_compile") 2>conftest.er1
24643   ac_status=$?
24644   grep -v '^ *+' conftest.er1 >conftest.err
24645   rm -f conftest.er1
24646   cat conftest.err >&5
24647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648   (exit $ac_status); } && {
24649          test -z "$ac_c_werror_flag" ||
24650          test ! -s conftest.err
24651        } && test -s conftest.$ac_objext; then
24652   ac_lo=0 ac_mid=0
24653   while :; do
24654     cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h.  */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h.  */
24660 $ac_includes_default
24661 int
24662 main ()
24663 {
24664 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24665 test_array [0] = 0
24666
24667   ;
24668   return 0;
24669 }
24670 _ACEOF
24671 rm -f conftest.$ac_objext
24672 if { (ac_try="$ac_compile"
24673 case "(($ac_try" in
24674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675   *) ac_try_echo=$ac_try;;
24676 esac
24677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24678 $as_echo "$ac_try_echo") >&5
24679   (eval "$ac_compile") 2>conftest.er1
24680   ac_status=$?
24681   grep -v '^ *+' conftest.er1 >conftest.err
24682   rm -f conftest.er1
24683   cat conftest.err >&5
24684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); } && {
24686          test -z "$ac_c_werror_flag" ||
24687          test ! -s conftest.err
24688        } && test -s conftest.$ac_objext; then
24689   ac_hi=$ac_mid; break
24690 else
24691   $as_echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24693
24694         ac_lo=`expr $ac_mid + 1`
24695                         if test $ac_lo -le $ac_mid; then
24696                           ac_lo= ac_hi=
24697                           break
24698                         fi
24699                         ac_mid=`expr 2 '*' $ac_mid + 1`
24700 fi
24701
24702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24703   done
24704 else
24705   $as_echo "$as_me: failed program was:" >&5
24706 sed 's/^/| /' conftest.$ac_ext >&5
24707
24708         cat >conftest.$ac_ext <<_ACEOF
24709 /* confdefs.h.  */
24710 _ACEOF
24711 cat confdefs.h >>conftest.$ac_ext
24712 cat >>conftest.$ac_ext <<_ACEOF
24713 /* end confdefs.h.  */
24714 $ac_includes_default
24715 int
24716 main ()
24717 {
24718 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24719 test_array [0] = 0
24720
24721   ;
24722   return 0;
24723 }
24724 _ACEOF
24725 rm -f conftest.$ac_objext
24726 if { (ac_try="$ac_compile"
24727 case "(($ac_try" in
24728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729   *) ac_try_echo=$ac_try;;
24730 esac
24731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24732 $as_echo "$ac_try_echo") >&5
24733   (eval "$ac_compile") 2>conftest.er1
24734   ac_status=$?
24735   grep -v '^ *+' conftest.er1 >conftest.err
24736   rm -f conftest.er1
24737   cat conftest.err >&5
24738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739   (exit $ac_status); } && {
24740          test -z "$ac_c_werror_flag" ||
24741          test ! -s conftest.err
24742        } && test -s conftest.$ac_objext; then
24743   ac_hi=-1 ac_mid=-1
24744   while :; do
24745     cat >conftest.$ac_ext <<_ACEOF
24746 /* confdefs.h.  */
24747 _ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h.  */
24751 $ac_includes_default
24752 int
24753 main ()
24754 {
24755 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24756 test_array [0] = 0
24757
24758   ;
24759   return 0;
24760 }
24761 _ACEOF
24762 rm -f conftest.$ac_objext
24763 if { (ac_try="$ac_compile"
24764 case "(($ac_try" in
24765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24766   *) ac_try_echo=$ac_try;;
24767 esac
24768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24769 $as_echo "$ac_try_echo") >&5
24770   (eval "$ac_compile") 2>conftest.er1
24771   ac_status=$?
24772   grep -v '^ *+' conftest.er1 >conftest.err
24773   rm -f conftest.er1
24774   cat conftest.err >&5
24775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776   (exit $ac_status); } && {
24777          test -z "$ac_c_werror_flag" ||
24778          test ! -s conftest.err
24779        } && test -s conftest.$ac_objext; then
24780   ac_lo=$ac_mid; break
24781 else
24782   $as_echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24784
24785         ac_hi=`expr '(' $ac_mid ')' - 1`
24786                         if test $ac_mid -le $ac_hi; then
24787                           ac_lo= ac_hi=
24788                           break
24789                         fi
24790                         ac_mid=`expr 2 '*' $ac_mid`
24791 fi
24792
24793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24794   done
24795 else
24796   $as_echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24798
24799         ac_lo= ac_hi=
24800 fi
24801
24802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24803 fi
24804
24805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24806 # Binary search between lo and hi bounds.
24807 while test "x$ac_lo" != "x$ac_hi"; do
24808   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24809   cat >conftest.$ac_ext <<_ACEOF
24810 /* confdefs.h.  */
24811 _ACEOF
24812 cat confdefs.h >>conftest.$ac_ext
24813 cat >>conftest.$ac_ext <<_ACEOF
24814 /* end confdefs.h.  */
24815 $ac_includes_default
24816 int
24817 main ()
24818 {
24819 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24820 test_array [0] = 0
24821
24822   ;
24823   return 0;
24824 }
24825 _ACEOF
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830   *) ac_try_echo=$ac_try;;
24831 esac
24832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24833 $as_echo "$ac_try_echo") >&5
24834   (eval "$ac_compile") 2>conftest.er1
24835   ac_status=$?
24836   grep -v '^ *+' conftest.er1 >conftest.err
24837   rm -f conftest.er1
24838   cat conftest.err >&5
24839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840   (exit $ac_status); } && {
24841          test -z "$ac_c_werror_flag" ||
24842          test ! -s conftest.err
24843        } && test -s conftest.$ac_objext; then
24844   ac_hi=$ac_mid
24845 else
24846   $as_echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24848
24849         ac_lo=`expr '(' $ac_mid ')' + 1`
24850 fi
24851
24852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24853 done
24854 case $ac_lo in
24855 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24856 '') if test "$ac_cv_type_void_p" = yes; then
24857      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24859 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24860 See \`config.log' for more details." >&5
24861 $as_echo "$as_me: error: cannot compute sizeof (void *)
24862 See \`config.log' for more details." >&2;}
24863    { (exit 77); exit 77; }; }; }
24864    else
24865      ac_cv_sizeof_void_p=0
24866    fi ;;
24867 esac
24868 else
24869   cat >conftest.$ac_ext <<_ACEOF
24870 /* confdefs.h.  */
24871 _ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h.  */
24875 $ac_includes_default
24876 static long int longval () { return (long int) (sizeof (void *)); }
24877 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24878 #include <stdio.h>
24879 #include <stdlib.h>
24880 int
24881 main ()
24882 {
24883
24884   FILE *f = fopen ("conftest.val", "w");
24885   if (! f)
24886     return 1;
24887   if (((long int) (sizeof (void *))) < 0)
24888     {
24889       long int i = longval ();
24890       if (i != ((long int) (sizeof (void *))))
24891         return 1;
24892       fprintf (f, "%ld", i);
24893     }
24894   else
24895     {
24896       unsigned long int i = ulongval ();
24897       if (i != ((long int) (sizeof (void *))))
24898         return 1;
24899       fprintf (f, "%lu", i);
24900     }
24901   /* Do not output a trailing newline, as this causes \r\n confusion
24902      on some platforms.  */
24903   return ferror (f) || fclose (f) != 0;
24904
24905   ;
24906   return 0;
24907 }
24908 _ACEOF
24909 rm -f conftest$ac_exeext
24910 if { (ac_try="$ac_link"
24911 case "(($ac_try" in
24912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913   *) ac_try_echo=$ac_try;;
24914 esac
24915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24916 $as_echo "$ac_try_echo") >&5
24917   (eval "$ac_link") 2>&5
24918   ac_status=$?
24919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24921   { (case "(($ac_try" in
24922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923   *) ac_try_echo=$ac_try;;
24924 esac
24925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24926 $as_echo "$ac_try_echo") >&5
24927   (eval "$ac_try") 2>&5
24928   ac_status=$?
24929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930   (exit $ac_status); }; }; then
24931   ac_cv_sizeof_void_p=`cat conftest.val`
24932 else
24933   $as_echo "$as_me: program exited with status $ac_status" >&5
24934 $as_echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24936
24937 ( exit $ac_status )
24938 if test "$ac_cv_type_void_p" = yes; then
24939      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24941 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24942 See \`config.log' for more details." >&5
24943 $as_echo "$as_me: error: cannot compute sizeof (void *)
24944 See \`config.log' for more details." >&2;}
24945    { (exit 77); exit 77; }; }; }
24946    else
24947      ac_cv_sizeof_void_p=0
24948    fi
24949 fi
24950 rm -rf conftest.dSYM
24951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24952 fi
24953 rm -f conftest.val
24954 fi
24955 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24956 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24957
24958
24959
24960 cat >>confdefs.h <<_ACEOF
24961 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24962 _ACEOF
24963
24964
24965 # The cast to long int works around a bug in the HP C Compiler
24966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24968 # This bug is HP SR number 8606223364.
24969 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24970 $as_echo_n "checking size of size_t... " >&6; }
24971 if test "${ac_cv_sizeof_size_t+set}" = set; then
24972   $as_echo_n "(cached) " >&6
24973 else
24974   if test "$cross_compiling" = yes; then
24975   # Depending upon the size, compute the lo and hi bounds.
24976 cat >conftest.$ac_ext <<_ACEOF
24977 /* confdefs.h.  */
24978 _ACEOF
24979 cat confdefs.h >>conftest.$ac_ext
24980 cat >>conftest.$ac_ext <<_ACEOF
24981 /* end confdefs.h.  */
24982 $ac_includes_default
24983 int
24984 main ()
24985 {
24986 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24987 test_array [0] = 0
24988
24989   ;
24990   return 0;
24991 }
24992 _ACEOF
24993 rm -f conftest.$ac_objext
24994 if { (ac_try="$ac_compile"
24995 case "(($ac_try" in
24996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997   *) ac_try_echo=$ac_try;;
24998 esac
24999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25000 $as_echo "$ac_try_echo") >&5
25001   (eval "$ac_compile") 2>conftest.er1
25002   ac_status=$?
25003   grep -v '^ *+' conftest.er1 >conftest.err
25004   rm -f conftest.er1
25005   cat conftest.err >&5
25006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007   (exit $ac_status); } && {
25008          test -z "$ac_c_werror_flag" ||
25009          test ! -s conftest.err
25010        } && test -s conftest.$ac_objext; then
25011   ac_lo=0 ac_mid=0
25012   while :; do
25013     cat >conftest.$ac_ext <<_ACEOF
25014 /* confdefs.h.  */
25015 _ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h.  */
25019 $ac_includes_default
25020 int
25021 main ()
25022 {
25023 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25024 test_array [0] = 0
25025
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 rm -f conftest.$ac_objext
25031 if { (ac_try="$ac_compile"
25032 case "(($ac_try" in
25033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034   *) ac_try_echo=$ac_try;;
25035 esac
25036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25037 $as_echo "$ac_try_echo") >&5
25038   (eval "$ac_compile") 2>conftest.er1
25039   ac_status=$?
25040   grep -v '^ *+' conftest.er1 >conftest.err
25041   rm -f conftest.er1
25042   cat conftest.err >&5
25043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044   (exit $ac_status); } && {
25045          test -z "$ac_c_werror_flag" ||
25046          test ! -s conftest.err
25047        } && test -s conftest.$ac_objext; then
25048   ac_hi=$ac_mid; break
25049 else
25050   $as_echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.$ac_ext >&5
25052
25053         ac_lo=`expr $ac_mid + 1`
25054                         if test $ac_lo -le $ac_mid; then
25055                           ac_lo= ac_hi=
25056                           break
25057                         fi
25058                         ac_mid=`expr 2 '*' $ac_mid + 1`
25059 fi
25060
25061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25062   done
25063 else
25064   $as_echo "$as_me: failed program was:" >&5
25065 sed 's/^/| /' conftest.$ac_ext >&5
25066
25067         cat >conftest.$ac_ext <<_ACEOF
25068 /* confdefs.h.  */
25069 _ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h.  */
25073 $ac_includes_default
25074 int
25075 main ()
25076 {
25077 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25078 test_array [0] = 0
25079
25080   ;
25081   return 0;
25082 }
25083 _ACEOF
25084 rm -f conftest.$ac_objext
25085 if { (ac_try="$ac_compile"
25086 case "(($ac_try" in
25087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25088   *) ac_try_echo=$ac_try;;
25089 esac
25090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25091 $as_echo "$ac_try_echo") >&5
25092   (eval "$ac_compile") 2>conftest.er1
25093   ac_status=$?
25094   grep -v '^ *+' conftest.er1 >conftest.err
25095   rm -f conftest.er1
25096   cat conftest.err >&5
25097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098   (exit $ac_status); } && {
25099          test -z "$ac_c_werror_flag" ||
25100          test ! -s conftest.err
25101        } && test -s conftest.$ac_objext; then
25102   ac_hi=-1 ac_mid=-1
25103   while :; do
25104     cat >conftest.$ac_ext <<_ACEOF
25105 /* confdefs.h.  */
25106 _ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h.  */
25110 $ac_includes_default
25111 int
25112 main ()
25113 {
25114 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25115 test_array [0] = 0
25116
25117   ;
25118   return 0;
25119 }
25120 _ACEOF
25121 rm -f conftest.$ac_objext
25122 if { (ac_try="$ac_compile"
25123 case "(($ac_try" in
25124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25125   *) ac_try_echo=$ac_try;;
25126 esac
25127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25128 $as_echo "$ac_try_echo") >&5
25129   (eval "$ac_compile") 2>conftest.er1
25130   ac_status=$?
25131   grep -v '^ *+' conftest.er1 >conftest.err
25132   rm -f conftest.er1
25133   cat conftest.err >&5
25134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135   (exit $ac_status); } && {
25136          test -z "$ac_c_werror_flag" ||
25137          test ! -s conftest.err
25138        } && test -s conftest.$ac_objext; then
25139   ac_lo=$ac_mid; break
25140 else
25141   $as_echo "$as_me: failed program was:" >&5
25142 sed 's/^/| /' conftest.$ac_ext >&5
25143
25144         ac_hi=`expr '(' $ac_mid ')' - 1`
25145                         if test $ac_mid -le $ac_hi; then
25146                           ac_lo= ac_hi=
25147                           break
25148                         fi
25149                         ac_mid=`expr 2 '*' $ac_mid`
25150 fi
25151
25152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25153   done
25154 else
25155   $as_echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25157
25158         ac_lo= ac_hi=
25159 fi
25160
25161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162 fi
25163
25164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25165 # Binary search between lo and hi bounds.
25166 while test "x$ac_lo" != "x$ac_hi"; do
25167   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25168   cat >conftest.$ac_ext <<_ACEOF
25169 /* confdefs.h.  */
25170 _ACEOF
25171 cat confdefs.h >>conftest.$ac_ext
25172 cat >>conftest.$ac_ext <<_ACEOF
25173 /* end confdefs.h.  */
25174 $ac_includes_default
25175 int
25176 main ()
25177 {
25178 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25179 test_array [0] = 0
25180
25181   ;
25182   return 0;
25183 }
25184 _ACEOF
25185 rm -f conftest.$ac_objext
25186 if { (ac_try="$ac_compile"
25187 case "(($ac_try" in
25188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189   *) ac_try_echo=$ac_try;;
25190 esac
25191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25192 $as_echo "$ac_try_echo") >&5
25193   (eval "$ac_compile") 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } && {
25200          test -z "$ac_c_werror_flag" ||
25201          test ! -s conftest.err
25202        } && test -s conftest.$ac_objext; then
25203   ac_hi=$ac_mid
25204 else
25205   $as_echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25207
25208         ac_lo=`expr '(' $ac_mid ')' + 1`
25209 fi
25210
25211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25212 done
25213 case $ac_lo in
25214 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25215 '') if test "$ac_cv_type_size_t" = yes; then
25216      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25218 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25219 See \`config.log' for more details." >&5
25220 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25221 See \`config.log' for more details." >&2;}
25222    { (exit 77); exit 77; }; }; }
25223    else
25224      ac_cv_sizeof_size_t=0
25225    fi ;;
25226 esac
25227 else
25228   cat >conftest.$ac_ext <<_ACEOF
25229 /* confdefs.h.  */
25230 _ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h.  */
25234 $ac_includes_default
25235 static long int longval () { return (long int) (sizeof (size_t)); }
25236 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25237 #include <stdio.h>
25238 #include <stdlib.h>
25239 int
25240 main ()
25241 {
25242
25243   FILE *f = fopen ("conftest.val", "w");
25244   if (! f)
25245     return 1;
25246   if (((long int) (sizeof (size_t))) < 0)
25247     {
25248       long int i = longval ();
25249       if (i != ((long int) (sizeof (size_t))))
25250         return 1;
25251       fprintf (f, "%ld", i);
25252     }
25253   else
25254     {
25255       unsigned long int i = ulongval ();
25256       if (i != ((long int) (sizeof (size_t))))
25257         return 1;
25258       fprintf (f, "%lu", i);
25259     }
25260   /* Do not output a trailing newline, as this causes \r\n confusion
25261      on some platforms.  */
25262   return ferror (f) || fclose (f) != 0;
25263
25264   ;
25265   return 0;
25266 }
25267 _ACEOF
25268 rm -f conftest$ac_exeext
25269 if { (ac_try="$ac_link"
25270 case "(($ac_try" in
25271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25272   *) ac_try_echo=$ac_try;;
25273 esac
25274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25275 $as_echo "$ac_try_echo") >&5
25276   (eval "$ac_link") 2>&5
25277   ac_status=$?
25278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
25287   ac_status=$?
25288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); }; }; then
25290   ac_cv_sizeof_size_t=`cat conftest.val`
25291 else
25292   $as_echo "$as_me: program exited with status $ac_status" >&5
25293 $as_echo "$as_me: failed program was:" >&5
25294 sed 's/^/| /' conftest.$ac_ext >&5
25295
25296 ( exit $ac_status )
25297 if test "$ac_cv_type_size_t" = yes; then
25298      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25300 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25301 See \`config.log' for more details." >&5
25302 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25303 See \`config.log' for more details." >&2;}
25304    { (exit 77); exit 77; }; }; }
25305    else
25306      ac_cv_sizeof_size_t=0
25307    fi
25308 fi
25309 rm -rf conftest.dSYM
25310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25311 fi
25312 rm -f conftest.val
25313 fi
25314 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25315 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25316
25317
25318
25319 cat >>confdefs.h <<_ACEOF
25320 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25321 _ACEOF
25322
25323
25324 # The cast to long int works around a bug in the HP C Compiler
25325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25327 # This bug is HP SR number 8606223364.
25328 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25329 $as_echo_n "checking size of long... " >&6; }
25330 if test "${ac_cv_sizeof_long+set}" = set; then
25331   $as_echo_n "(cached) " >&6
25332 else
25333   if test "$cross_compiling" = yes; then
25334   # Depending upon the size, compute the lo and hi bounds.
25335 cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h.  */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h.  */
25341 $ac_includes_default
25342 int
25343 main ()
25344 {
25345 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25346 test_array [0] = 0
25347
25348   ;
25349   return 0;
25350 }
25351 _ACEOF
25352 rm -f conftest.$ac_objext
25353 if { (ac_try="$ac_compile"
25354 case "(($ac_try" in
25355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25356   *) ac_try_echo=$ac_try;;
25357 esac
25358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25359 $as_echo "$ac_try_echo") >&5
25360   (eval "$ac_compile") 2>conftest.er1
25361   ac_status=$?
25362   grep -v '^ *+' conftest.er1 >conftest.err
25363   rm -f conftest.er1
25364   cat conftest.err >&5
25365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); } && {
25367          test -z "$ac_c_werror_flag" ||
25368          test ! -s conftest.err
25369        } && test -s conftest.$ac_objext; then
25370   ac_lo=0 ac_mid=0
25371   while :; do
25372     cat >conftest.$ac_ext <<_ACEOF
25373 /* confdefs.h.  */
25374 _ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h.  */
25378 $ac_includes_default
25379 int
25380 main ()
25381 {
25382 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25383 test_array [0] = 0
25384
25385   ;
25386   return 0;
25387 }
25388 _ACEOF
25389 rm -f conftest.$ac_objext
25390 if { (ac_try="$ac_compile"
25391 case "(($ac_try" in
25392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25393   *) ac_try_echo=$ac_try;;
25394 esac
25395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25396 $as_echo "$ac_try_echo") >&5
25397   (eval "$ac_compile") 2>conftest.er1
25398   ac_status=$?
25399   grep -v '^ *+' conftest.er1 >conftest.err
25400   rm -f conftest.er1
25401   cat conftest.err >&5
25402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); } && {
25404          test -z "$ac_c_werror_flag" ||
25405          test ! -s conftest.err
25406        } && test -s conftest.$ac_objext; then
25407   ac_hi=$ac_mid; break
25408 else
25409   $as_echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25411
25412         ac_lo=`expr $ac_mid + 1`
25413                         if test $ac_lo -le $ac_mid; then
25414                           ac_lo= ac_hi=
25415                           break
25416                         fi
25417                         ac_mid=`expr 2 '*' $ac_mid + 1`
25418 fi
25419
25420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25421   done
25422 else
25423   $as_echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25425
25426         cat >conftest.$ac_ext <<_ACEOF
25427 /* confdefs.h.  */
25428 _ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h.  */
25432 $ac_includes_default
25433 int
25434 main ()
25435 {
25436 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25437 test_array [0] = 0
25438
25439   ;
25440   return 0;
25441 }
25442 _ACEOF
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447   *) ac_try_echo=$ac_try;;
25448 esac
25449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25450 $as_echo "$ac_try_echo") >&5
25451   (eval "$ac_compile") 2>conftest.er1
25452   ac_status=$?
25453   grep -v '^ *+' conftest.er1 >conftest.err
25454   rm -f conftest.er1
25455   cat conftest.err >&5
25456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25457   (exit $ac_status); } && {
25458          test -z "$ac_c_werror_flag" ||
25459          test ! -s conftest.err
25460        } && test -s conftest.$ac_objext; then
25461   ac_hi=-1 ac_mid=-1
25462   while :; do
25463     cat >conftest.$ac_ext <<_ACEOF
25464 /* confdefs.h.  */
25465 _ACEOF
25466 cat confdefs.h >>conftest.$ac_ext
25467 cat >>conftest.$ac_ext <<_ACEOF
25468 /* end confdefs.h.  */
25469 $ac_includes_default
25470 int
25471 main ()
25472 {
25473 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25474 test_array [0] = 0
25475
25476   ;
25477   return 0;
25478 }
25479 _ACEOF
25480 rm -f conftest.$ac_objext
25481 if { (ac_try="$ac_compile"
25482 case "(($ac_try" in
25483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484   *) ac_try_echo=$ac_try;;
25485 esac
25486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25487 $as_echo "$ac_try_echo") >&5
25488   (eval "$ac_compile") 2>conftest.er1
25489   ac_status=$?
25490   grep -v '^ *+' conftest.er1 >conftest.err
25491   rm -f conftest.er1
25492   cat conftest.err >&5
25493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494   (exit $ac_status); } && {
25495          test -z "$ac_c_werror_flag" ||
25496          test ! -s conftest.err
25497        } && test -s conftest.$ac_objext; then
25498   ac_lo=$ac_mid; break
25499 else
25500   $as_echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25502
25503         ac_hi=`expr '(' $ac_mid ')' - 1`
25504                         if test $ac_mid -le $ac_hi; then
25505                           ac_lo= ac_hi=
25506                           break
25507                         fi
25508                         ac_mid=`expr 2 '*' $ac_mid`
25509 fi
25510
25511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25512   done
25513 else
25514   $as_echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25516
25517         ac_lo= ac_hi=
25518 fi
25519
25520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25521 fi
25522
25523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25524 # Binary search between lo and hi bounds.
25525 while test "x$ac_lo" != "x$ac_hi"; do
25526   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25527   cat >conftest.$ac_ext <<_ACEOF
25528 /* confdefs.h.  */
25529 _ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h.  */
25533 $ac_includes_default
25534 int
25535 main ()
25536 {
25537 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25538 test_array [0] = 0
25539
25540   ;
25541   return 0;
25542 }
25543 _ACEOF
25544 rm -f conftest.$ac_objext
25545 if { (ac_try="$ac_compile"
25546 case "(($ac_try" in
25547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25548   *) ac_try_echo=$ac_try;;
25549 esac
25550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25551 $as_echo "$ac_try_echo") >&5
25552   (eval "$ac_compile") 2>conftest.er1
25553   ac_status=$?
25554   grep -v '^ *+' conftest.er1 >conftest.err
25555   rm -f conftest.er1
25556   cat conftest.err >&5
25557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558   (exit $ac_status); } && {
25559          test -z "$ac_c_werror_flag" ||
25560          test ! -s conftest.err
25561        } && test -s conftest.$ac_objext; then
25562   ac_hi=$ac_mid
25563 else
25564   $as_echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25566
25567         ac_lo=`expr '(' $ac_mid ')' + 1`
25568 fi
25569
25570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25571 done
25572 case $ac_lo in
25573 ?*) ac_cv_sizeof_long=$ac_lo;;
25574 '') if test "$ac_cv_type_long" = yes; then
25575      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25577 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25578 See \`config.log' for more details." >&5
25579 $as_echo "$as_me: error: cannot compute sizeof (long)
25580 See \`config.log' for more details." >&2;}
25581    { (exit 77); exit 77; }; }; }
25582    else
25583      ac_cv_sizeof_long=0
25584    fi ;;
25585 esac
25586 else
25587   cat >conftest.$ac_ext <<_ACEOF
25588 /* confdefs.h.  */
25589 _ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h.  */
25593 $ac_includes_default
25594 static long int longval () { return (long int) (sizeof (long)); }
25595 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25596 #include <stdio.h>
25597 #include <stdlib.h>
25598 int
25599 main ()
25600 {
25601
25602   FILE *f = fopen ("conftest.val", "w");
25603   if (! f)
25604     return 1;
25605   if (((long int) (sizeof (long))) < 0)
25606     {
25607       long int i = longval ();
25608       if (i != ((long int) (sizeof (long))))
25609         return 1;
25610       fprintf (f, "%ld", i);
25611     }
25612   else
25613     {
25614       unsigned long int i = ulongval ();
25615       if (i != ((long int) (sizeof (long))))
25616         return 1;
25617       fprintf (f, "%lu", i);
25618     }
25619   /* Do not output a trailing newline, as this causes \r\n confusion
25620      on some platforms.  */
25621   return ferror (f) || fclose (f) != 0;
25622
25623   ;
25624   return 0;
25625 }
25626 _ACEOF
25627 rm -f conftest$ac_exeext
25628 if { (ac_try="$ac_link"
25629 case "(($ac_try" in
25630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631   *) ac_try_echo=$ac_try;;
25632 esac
25633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25634 $as_echo "$ac_try_echo") >&5
25635   (eval "$ac_link") 2>&5
25636   ac_status=$?
25637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
25646   ac_status=$?
25647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); }; }; then
25649   ac_cv_sizeof_long=`cat conftest.val`
25650 else
25651   $as_echo "$as_me: program exited with status $ac_status" >&5
25652 $as_echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655 ( exit $ac_status )
25656 if test "$ac_cv_type_long" = yes; then
25657      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25659 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25660 See \`config.log' for more details." >&5
25661 $as_echo "$as_me: error: cannot compute sizeof (long)
25662 See \`config.log' for more details." >&2;}
25663    { (exit 77); exit 77; }; }; }
25664    else
25665      ac_cv_sizeof_long=0
25666    fi
25667 fi
25668 rm -rf conftest.dSYM
25669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25670 fi
25671 rm -f conftest.val
25672 fi
25673 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25674 $as_echo "$ac_cv_sizeof_long" >&6; }
25675
25676
25677
25678 cat >>confdefs.h <<_ACEOF
25679 #define SIZEOF_LONG $ac_cv_sizeof_long
25680 _ACEOF
25681
25682
25683
25684 # Decide whether float4 is passed by value: user-selectable, enabled by default
25685 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25686 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25687
25688
25689 # Check whether --enable-float4-byval was given.
25690 if test "${enable_float4_byval+set}" = set; then
25691   enableval=$enable_float4_byval;
25692   case $enableval in
25693     yes)
25694
25695 cat >>confdefs.h <<\_ACEOF
25696 #define USE_FLOAT4_BYVAL 1
25697 _ACEOF
25698
25699                float4passbyval=true
25700       ;;
25701     no)
25702       float4passbyval=false
25703       ;;
25704     *)
25705       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25706 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25707    { (exit 1); exit 1; }; }
25708       ;;
25709   esac
25710
25711 else
25712   enable_float4_byval=yes
25713
25714 cat >>confdefs.h <<\_ACEOF
25715 #define USE_FLOAT4_BYVAL 1
25716 _ACEOF
25717
25718                float4passbyval=true
25719 fi
25720
25721
25722 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25723 $as_echo "$enable_float4_byval" >&6; }
25724
25725 cat >>confdefs.h <<_ACEOF
25726 #define FLOAT4PASSBYVAL $float4passbyval
25727 _ACEOF
25728
25729
25730 # Decide whether float8 is passed by value.
25731 # Note: this setting also controls int8 and related types such as timestamp.
25732 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25733 # If not, trying to select it is an error.
25734 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25735 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25736 if test $ac_cv_sizeof_void_p -ge 8 ; then
25737
25738
25739 # Check whether --enable-float8-byval was given.
25740 if test "${enable_float8_byval+set}" = set; then
25741   enableval=$enable_float8_byval;
25742   case $enableval in
25743     yes)
25744       :
25745       ;;
25746     no)
25747       :
25748       ;;
25749     *)
25750       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25751 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25752    { (exit 1); exit 1; }; }
25753       ;;
25754   esac
25755
25756 else
25757   enable_float8_byval=yes
25758
25759 fi
25760
25761
25762 else
25763
25764
25765 # Check whether --enable-float8-byval was given.
25766 if test "${enable_float8_byval+set}" = set; then
25767   enableval=$enable_float8_byval;
25768   case $enableval in
25769     yes)
25770       :
25771       ;;
25772     no)
25773       :
25774       ;;
25775     *)
25776       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25777 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25778    { (exit 1); exit 1; }; }
25779       ;;
25780   esac
25781
25782 else
25783   enable_float8_byval=no
25784
25785 fi
25786
25787
25788   if test "$enable_float8_byval" = yes ; then
25789     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25790 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25791    { (exit 1); exit 1; }; }
25792   fi
25793 fi
25794 if test "$enable_float8_byval" = yes ; then
25795
25796 cat >>confdefs.h <<\_ACEOF
25797 #define USE_FLOAT8_BYVAL 1
25798 _ACEOF
25799
25800   float8passbyval=true
25801 else
25802   float8passbyval=false
25803 fi
25804 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25805 $as_echo "$enable_float8_byval" >&6; }
25806
25807 cat >>confdefs.h <<_ACEOF
25808 #define FLOAT8PASSBYVAL $float8passbyval
25809 _ACEOF
25810
25811
25812 # Determine memory alignment requirements for the basic C data types.
25813
25814 # The cast to long int works around a bug in the HP C Compiler,
25815 # see AC_CHECK_SIZEOF for more information.
25816 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25817 $as_echo_n "checking alignment of short... " >&6; }
25818 if test "${ac_cv_alignof_short+set}" = set; then
25819   $as_echo_n "(cached) " >&6
25820 else
25821   if test "$cross_compiling" = yes; then
25822   # Depending upon the size, compute the lo and hi bounds.
25823 cat >conftest.$ac_ext <<_ACEOF
25824 /* confdefs.h.  */
25825 _ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h.  */
25829 $ac_includes_default
25830 #ifndef offsetof
25831 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25832 #endif
25833 typedef struct { char x; short y; } ac__type_alignof_;
25834 int
25835 main ()
25836 {
25837 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25838 test_array [0] = 0
25839
25840   ;
25841   return 0;
25842 }
25843 _ACEOF
25844 rm -f conftest.$ac_objext
25845 if { (ac_try="$ac_compile"
25846 case "(($ac_try" in
25847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848   *) ac_try_echo=$ac_try;;
25849 esac
25850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25851 $as_echo "$ac_try_echo") >&5
25852   (eval "$ac_compile") 2>conftest.er1
25853   ac_status=$?
25854   grep -v '^ *+' conftest.er1 >conftest.err
25855   rm -f conftest.er1
25856   cat conftest.err >&5
25857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); } && {
25859          test -z "$ac_c_werror_flag" ||
25860          test ! -s conftest.err
25861        } && test -s conftest.$ac_objext; then
25862   ac_lo=0 ac_mid=0
25863   while :; do
25864     cat >conftest.$ac_ext <<_ACEOF
25865 /* confdefs.h.  */
25866 _ACEOF
25867 cat confdefs.h >>conftest.$ac_ext
25868 cat >>conftest.$ac_ext <<_ACEOF
25869 /* end confdefs.h.  */
25870 $ac_includes_default
25871 #ifndef offsetof
25872 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25873 #endif
25874 typedef struct { char x; short y; } ac__type_alignof_;
25875 int
25876 main ()
25877 {
25878 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25879 test_array [0] = 0
25880
25881   ;
25882   return 0;
25883 }
25884 _ACEOF
25885 rm -f conftest.$ac_objext
25886 if { (ac_try="$ac_compile"
25887 case "(($ac_try" in
25888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25889   *) ac_try_echo=$ac_try;;
25890 esac
25891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25892 $as_echo "$ac_try_echo") >&5
25893   (eval "$ac_compile") 2>conftest.er1
25894   ac_status=$?
25895   grep -v '^ *+' conftest.er1 >conftest.err
25896   rm -f conftest.er1
25897   cat conftest.err >&5
25898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899   (exit $ac_status); } && {
25900          test -z "$ac_c_werror_flag" ||
25901          test ! -s conftest.err
25902        } && test -s conftest.$ac_objext; then
25903   ac_hi=$ac_mid; break
25904 else
25905   $as_echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.$ac_ext >&5
25907
25908         ac_lo=`expr $ac_mid + 1`
25909                         if test $ac_lo -le $ac_mid; then
25910                           ac_lo= ac_hi=
25911                           break
25912                         fi
25913                         ac_mid=`expr 2 '*' $ac_mid + 1`
25914 fi
25915
25916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25917   done
25918 else
25919   $as_echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25921
25922         cat >conftest.$ac_ext <<_ACEOF
25923 /* confdefs.h.  */
25924 _ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h.  */
25928 $ac_includes_default
25929 #ifndef offsetof
25930 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25931 #endif
25932 typedef struct { char x; short y; } ac__type_alignof_;
25933 int
25934 main ()
25935 {
25936 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25937 test_array [0] = 0
25938
25939   ;
25940   return 0;
25941 }
25942 _ACEOF
25943 rm -f conftest.$ac_objext
25944 if { (ac_try="$ac_compile"
25945 case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25950 $as_echo "$ac_try_echo") >&5
25951   (eval "$ac_compile") 2>conftest.er1
25952   ac_status=$?
25953   grep -v '^ *+' conftest.er1 >conftest.err
25954   rm -f conftest.er1
25955   cat conftest.err >&5
25956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957   (exit $ac_status); } && {
25958          test -z "$ac_c_werror_flag" ||
25959          test ! -s conftest.err
25960        } && test -s conftest.$ac_objext; then
25961   ac_hi=-1 ac_mid=-1
25962   while :; do
25963     cat >conftest.$ac_ext <<_ACEOF
25964 /* confdefs.h.  */
25965 _ACEOF
25966 cat confdefs.h >>conftest.$ac_ext
25967 cat >>conftest.$ac_ext <<_ACEOF
25968 /* end confdefs.h.  */
25969 $ac_includes_default
25970 #ifndef offsetof
25971 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25972 #endif
25973 typedef struct { char x; short y; } ac__type_alignof_;
25974 int
25975 main ()
25976 {
25977 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25978 test_array [0] = 0
25979
25980   ;
25981   return 0;
25982 }
25983 _ACEOF
25984 rm -f conftest.$ac_objext
25985 if { (ac_try="$ac_compile"
25986 case "(($ac_try" in
25987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25988   *) ac_try_echo=$ac_try;;
25989 esac
25990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25991 $as_echo "$ac_try_echo") >&5
25992   (eval "$ac_compile") 2>conftest.er1
25993   ac_status=$?
25994   grep -v '^ *+' conftest.er1 >conftest.err
25995   rm -f conftest.er1
25996   cat conftest.err >&5
25997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); } && {
25999          test -z "$ac_c_werror_flag" ||
26000          test ! -s conftest.err
26001        } && test -s conftest.$ac_objext; then
26002   ac_lo=$ac_mid; break
26003 else
26004   $as_echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26006
26007         ac_hi=`expr '(' $ac_mid ')' - 1`
26008                         if test $ac_mid -le $ac_hi; then
26009                           ac_lo= ac_hi=
26010                           break
26011                         fi
26012                         ac_mid=`expr 2 '*' $ac_mid`
26013 fi
26014
26015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26016   done
26017 else
26018   $as_echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26020
26021         ac_lo= ac_hi=
26022 fi
26023
26024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26025 fi
26026
26027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26028 # Binary search between lo and hi bounds.
26029 while test "x$ac_lo" != "x$ac_hi"; do
26030   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26031   cat >conftest.$ac_ext <<_ACEOF
26032 /* confdefs.h.  */
26033 _ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h.  */
26037 $ac_includes_default
26038 #ifndef offsetof
26039 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26040 #endif
26041 typedef struct { char x; short y; } ac__type_alignof_;
26042 int
26043 main ()
26044 {
26045 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26046 test_array [0] = 0
26047
26048   ;
26049   return 0;
26050 }
26051 _ACEOF
26052 rm -f conftest.$ac_objext
26053 if { (ac_try="$ac_compile"
26054 case "(($ac_try" in
26055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26056   *) ac_try_echo=$ac_try;;
26057 esac
26058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26059 $as_echo "$ac_try_echo") >&5
26060   (eval "$ac_compile") 2>conftest.er1
26061   ac_status=$?
26062   grep -v '^ *+' conftest.er1 >conftest.err
26063   rm -f conftest.er1
26064   cat conftest.err >&5
26065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); } && {
26067          test -z "$ac_c_werror_flag" ||
26068          test ! -s conftest.err
26069        } && test -s conftest.$ac_objext; then
26070   ac_hi=$ac_mid
26071 else
26072   $as_echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26074
26075         ac_lo=`expr '(' $ac_mid ')' + 1`
26076 fi
26077
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26079 done
26080 case $ac_lo in
26081 ?*) ac_cv_alignof_short=$ac_lo;;
26082 '') if test "$ac_cv_type_short" = yes; then
26083      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26085 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26086 See \`config.log' for more details." >&5
26087 $as_echo "$as_me: error: cannot compute alignment of short
26088 See \`config.log' for more details." >&2;}
26089    { (exit 77); exit 77; }; }; }
26090    else
26091      ac_cv_alignof_short=0
26092    fi ;;
26093 esac
26094 else
26095   cat >conftest.$ac_ext <<_ACEOF
26096 /* confdefs.h.  */
26097 _ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h.  */
26101 $ac_includes_default
26102 #ifndef offsetof
26103 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26104 #endif
26105 typedef struct { char x; short y; } ac__type_alignof_;
26106 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26107 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26108 #include <stdio.h>
26109 #include <stdlib.h>
26110 int
26111 main ()
26112 {
26113
26114   FILE *f = fopen ("conftest.val", "w");
26115   if (! f)
26116     return 1;
26117   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26118     {
26119       long int i = longval ();
26120       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26121         return 1;
26122       fprintf (f, "%ld", i);
26123     }
26124   else
26125     {
26126       unsigned long int i = ulongval ();
26127       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26128         return 1;
26129       fprintf (f, "%lu", i);
26130     }
26131   /* Do not output a trailing newline, as this causes \r\n confusion
26132      on some platforms.  */
26133   return ferror (f) || fclose (f) != 0;
26134
26135   ;
26136   return 0;
26137 }
26138 _ACEOF
26139 rm -f conftest$ac_exeext
26140 if { (ac_try="$ac_link"
26141 case "(($ac_try" in
26142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143   *) ac_try_echo=$ac_try;;
26144 esac
26145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26146 $as_echo "$ac_try_echo") >&5
26147   (eval "$ac_link") 2>&5
26148   ac_status=$?
26149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26151   { (case "(($ac_try" in
26152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153   *) ac_try_echo=$ac_try;;
26154 esac
26155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26156 $as_echo "$ac_try_echo") >&5
26157   (eval "$ac_try") 2>&5
26158   ac_status=$?
26159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160   (exit $ac_status); }; }; then
26161   ac_cv_alignof_short=`cat conftest.val`
26162 else
26163   $as_echo "$as_me: program exited with status $ac_status" >&5
26164 $as_echo "$as_me: failed program was:" >&5
26165 sed 's/^/| /' conftest.$ac_ext >&5
26166
26167 ( exit $ac_status )
26168 if test "$ac_cv_type_short" = yes; then
26169      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26171 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26172 See \`config.log' for more details." >&5
26173 $as_echo "$as_me: error: cannot compute alignment of short
26174 See \`config.log' for more details." >&2;}
26175    { (exit 77); exit 77; }; }; }
26176    else
26177      ac_cv_alignof_short=0
26178    fi
26179 fi
26180 rm -rf conftest.dSYM
26181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26182 fi
26183 rm -f conftest.val
26184 fi
26185 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26186 $as_echo "$ac_cv_alignof_short" >&6; }
26187
26188
26189
26190 cat >>confdefs.h <<_ACEOF
26191 #define ALIGNOF_SHORT $ac_cv_alignof_short
26192 _ACEOF
26193
26194
26195 # The cast to long int works around a bug in the HP C Compiler,
26196 # see AC_CHECK_SIZEOF for more information.
26197 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26198 $as_echo_n "checking alignment of int... " >&6; }
26199 if test "${ac_cv_alignof_int+set}" = set; then
26200   $as_echo_n "(cached) " >&6
26201 else
26202   if test "$cross_compiling" = yes; then
26203   # Depending upon the size, compute the lo and hi bounds.
26204 cat >conftest.$ac_ext <<_ACEOF
26205 /* confdefs.h.  */
26206 _ACEOF
26207 cat confdefs.h >>conftest.$ac_ext
26208 cat >>conftest.$ac_ext <<_ACEOF
26209 /* end confdefs.h.  */
26210 $ac_includes_default
26211 #ifndef offsetof
26212 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26213 #endif
26214 typedef struct { char x; int y; } ac__type_alignof_;
26215 int
26216 main ()
26217 {
26218 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26219 test_array [0] = 0
26220
26221   ;
26222   return 0;
26223 }
26224 _ACEOF
26225 rm -f conftest.$ac_objext
26226 if { (ac_try="$ac_compile"
26227 case "(($ac_try" in
26228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26229   *) ac_try_echo=$ac_try;;
26230 esac
26231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26232 $as_echo "$ac_try_echo") >&5
26233   (eval "$ac_compile") 2>conftest.er1
26234   ac_status=$?
26235   grep -v '^ *+' conftest.er1 >conftest.err
26236   rm -f conftest.er1
26237   cat conftest.err >&5
26238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239   (exit $ac_status); } && {
26240          test -z "$ac_c_werror_flag" ||
26241          test ! -s conftest.err
26242        } && test -s conftest.$ac_objext; then
26243   ac_lo=0 ac_mid=0
26244   while :; do
26245     cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251 $ac_includes_default
26252 #ifndef offsetof
26253 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26254 #endif
26255 typedef struct { char x; int y; } ac__type_alignof_;
26256 int
26257 main ()
26258 {
26259 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26260 test_array [0] = 0
26261
26262   ;
26263   return 0;
26264 }
26265 _ACEOF
26266 rm -f conftest.$ac_objext
26267 if { (ac_try="$ac_compile"
26268 case "(($ac_try" in
26269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26270   *) ac_try_echo=$ac_try;;
26271 esac
26272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26273 $as_echo "$ac_try_echo") >&5
26274   (eval "$ac_compile") 2>conftest.er1
26275   ac_status=$?
26276   grep -v '^ *+' conftest.er1 >conftest.err
26277   rm -f conftest.er1
26278   cat conftest.err >&5
26279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280   (exit $ac_status); } && {
26281          test -z "$ac_c_werror_flag" ||
26282          test ! -s conftest.err
26283        } && test -s conftest.$ac_objext; then
26284   ac_hi=$ac_mid; break
26285 else
26286   $as_echo "$as_me: failed program was:" >&5
26287 sed 's/^/| /' conftest.$ac_ext >&5
26288
26289         ac_lo=`expr $ac_mid + 1`
26290                         if test $ac_lo -le $ac_mid; then
26291                           ac_lo= ac_hi=
26292                           break
26293                         fi
26294                         ac_mid=`expr 2 '*' $ac_mid + 1`
26295 fi
26296
26297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26298   done
26299 else
26300   $as_echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26302
26303         cat >conftest.$ac_ext <<_ACEOF
26304 /* confdefs.h.  */
26305 _ACEOF
26306 cat confdefs.h >>conftest.$ac_ext
26307 cat >>conftest.$ac_ext <<_ACEOF
26308 /* end confdefs.h.  */
26309 $ac_includes_default
26310 #ifndef offsetof
26311 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26312 #endif
26313 typedef struct { char x; int y; } ac__type_alignof_;
26314 int
26315 main ()
26316 {
26317 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26318 test_array [0] = 0
26319
26320   ;
26321   return 0;
26322 }
26323 _ACEOF
26324 rm -f conftest.$ac_objext
26325 if { (ac_try="$ac_compile"
26326 case "(($ac_try" in
26327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328   *) ac_try_echo=$ac_try;;
26329 esac
26330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26331 $as_echo "$ac_try_echo") >&5
26332   (eval "$ac_compile") 2>conftest.er1
26333   ac_status=$?
26334   grep -v '^ *+' conftest.er1 >conftest.err
26335   rm -f conftest.er1
26336   cat conftest.err >&5
26337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338   (exit $ac_status); } && {
26339          test -z "$ac_c_werror_flag" ||
26340          test ! -s conftest.err
26341        } && test -s conftest.$ac_objext; then
26342   ac_hi=-1 ac_mid=-1
26343   while :; do
26344     cat >conftest.$ac_ext <<_ACEOF
26345 /* confdefs.h.  */
26346 _ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h.  */
26350 $ac_includes_default
26351 #ifndef offsetof
26352 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26353 #endif
26354 typedef struct { char x; int y; } ac__type_alignof_;
26355 int
26356 main ()
26357 {
26358 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26359 test_array [0] = 0
26360
26361   ;
26362   return 0;
26363 }
26364 _ACEOF
26365 rm -f conftest.$ac_objext
26366 if { (ac_try="$ac_compile"
26367 case "(($ac_try" in
26368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26369   *) ac_try_echo=$ac_try;;
26370 esac
26371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26372 $as_echo "$ac_try_echo") >&5
26373   (eval "$ac_compile") 2>conftest.er1
26374   ac_status=$?
26375   grep -v '^ *+' conftest.er1 >conftest.err
26376   rm -f conftest.er1
26377   cat conftest.err >&5
26378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379   (exit $ac_status); } && {
26380          test -z "$ac_c_werror_flag" ||
26381          test ! -s conftest.err
26382        } && test -s conftest.$ac_objext; then
26383   ac_lo=$ac_mid; break
26384 else
26385   $as_echo "$as_me: failed program was:" >&5
26386 sed 's/^/| /' conftest.$ac_ext >&5
26387
26388         ac_hi=`expr '(' $ac_mid ')' - 1`
26389                         if test $ac_mid -le $ac_hi; then
26390                           ac_lo= ac_hi=
26391                           break
26392                         fi
26393                         ac_mid=`expr 2 '*' $ac_mid`
26394 fi
26395
26396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26397   done
26398 else
26399   $as_echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26401
26402         ac_lo= ac_hi=
26403 fi
26404
26405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26406 fi
26407
26408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26409 # Binary search between lo and hi bounds.
26410 while test "x$ac_lo" != "x$ac_hi"; do
26411   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26412   cat >conftest.$ac_ext <<_ACEOF
26413 /* confdefs.h.  */
26414 _ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h.  */
26418 $ac_includes_default
26419 #ifndef offsetof
26420 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26421 #endif
26422 typedef struct { char x; int y; } ac__type_alignof_;
26423 int
26424 main ()
26425 {
26426 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26427 test_array [0] = 0
26428
26429   ;
26430   return 0;
26431 }
26432 _ACEOF
26433 rm -f conftest.$ac_objext
26434 if { (ac_try="$ac_compile"
26435 case "(($ac_try" in
26436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437   *) ac_try_echo=$ac_try;;
26438 esac
26439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26440 $as_echo "$ac_try_echo") >&5
26441   (eval "$ac_compile") 2>conftest.er1
26442   ac_status=$?
26443   grep -v '^ *+' conftest.er1 >conftest.err
26444   rm -f conftest.er1
26445   cat conftest.err >&5
26446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } && {
26448          test -z "$ac_c_werror_flag" ||
26449          test ! -s conftest.err
26450        } && test -s conftest.$ac_objext; then
26451   ac_hi=$ac_mid
26452 else
26453   $as_echo "$as_me: failed program was:" >&5
26454 sed 's/^/| /' conftest.$ac_ext >&5
26455
26456         ac_lo=`expr '(' $ac_mid ')' + 1`
26457 fi
26458
26459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26460 done
26461 case $ac_lo in
26462 ?*) ac_cv_alignof_int=$ac_lo;;
26463 '') if test "$ac_cv_type_int" = yes; then
26464      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26466 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26467 See \`config.log' for more details." >&5
26468 $as_echo "$as_me: error: cannot compute alignment of int
26469 See \`config.log' for more details." >&2;}
26470    { (exit 77); exit 77; }; }; }
26471    else
26472      ac_cv_alignof_int=0
26473    fi ;;
26474 esac
26475 else
26476   cat >conftest.$ac_ext <<_ACEOF
26477 /* confdefs.h.  */
26478 _ACEOF
26479 cat confdefs.h >>conftest.$ac_ext
26480 cat >>conftest.$ac_ext <<_ACEOF
26481 /* end confdefs.h.  */
26482 $ac_includes_default
26483 #ifndef offsetof
26484 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26485 #endif
26486 typedef struct { char x; int y; } ac__type_alignof_;
26487 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26488 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26489 #include <stdio.h>
26490 #include <stdlib.h>
26491 int
26492 main ()
26493 {
26494
26495   FILE *f = fopen ("conftest.val", "w");
26496   if (! f)
26497     return 1;
26498   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26499     {
26500       long int i = longval ();
26501       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26502         return 1;
26503       fprintf (f, "%ld", i);
26504     }
26505   else
26506     {
26507       unsigned long int i = ulongval ();
26508       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26509         return 1;
26510       fprintf (f, "%lu", i);
26511     }
26512   /* Do not output a trailing newline, as this causes \r\n confusion
26513      on some platforms.  */
26514   return ferror (f) || fclose (f) != 0;
26515
26516   ;
26517   return 0;
26518 }
26519 _ACEOF
26520 rm -f conftest$ac_exeext
26521 if { (ac_try="$ac_link"
26522 case "(($ac_try" in
26523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524   *) ac_try_echo=$ac_try;;
26525 esac
26526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26527 $as_echo "$ac_try_echo") >&5
26528   (eval "$ac_link") 2>&5
26529   ac_status=$?
26530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26532   { (case "(($ac_try" in
26533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534   *) ac_try_echo=$ac_try;;
26535 esac
26536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26537 $as_echo "$ac_try_echo") >&5
26538   (eval "$ac_try") 2>&5
26539   ac_status=$?
26540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541   (exit $ac_status); }; }; then
26542   ac_cv_alignof_int=`cat conftest.val`
26543 else
26544   $as_echo "$as_me: program exited with status $ac_status" >&5
26545 $as_echo "$as_me: failed program was:" >&5
26546 sed 's/^/| /' conftest.$ac_ext >&5
26547
26548 ( exit $ac_status )
26549 if test "$ac_cv_type_int" = yes; then
26550      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26552 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26553 See \`config.log' for more details." >&5
26554 $as_echo "$as_me: error: cannot compute alignment of int
26555 See \`config.log' for more details." >&2;}
26556    { (exit 77); exit 77; }; }; }
26557    else
26558      ac_cv_alignof_int=0
26559    fi
26560 fi
26561 rm -rf conftest.dSYM
26562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26563 fi
26564 rm -f conftest.val
26565 fi
26566 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26567 $as_echo "$ac_cv_alignof_int" >&6; }
26568
26569
26570
26571 cat >>confdefs.h <<_ACEOF
26572 #define ALIGNOF_INT $ac_cv_alignof_int
26573 _ACEOF
26574
26575
26576 # The cast to long int works around a bug in the HP C Compiler,
26577 # see AC_CHECK_SIZEOF for more information.
26578 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26579 $as_echo_n "checking alignment of long... " >&6; }
26580 if test "${ac_cv_alignof_long+set}" = set; then
26581   $as_echo_n "(cached) " >&6
26582 else
26583   if test "$cross_compiling" = yes; then
26584   # Depending upon the size, compute the lo and hi bounds.
26585 cat >conftest.$ac_ext <<_ACEOF
26586 /* confdefs.h.  */
26587 _ACEOF
26588 cat confdefs.h >>conftest.$ac_ext
26589 cat >>conftest.$ac_ext <<_ACEOF
26590 /* end confdefs.h.  */
26591 $ac_includes_default
26592 #ifndef offsetof
26593 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26594 #endif
26595 typedef struct { char x; long y; } ac__type_alignof_;
26596 int
26597 main ()
26598 {
26599 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26600 test_array [0] = 0
26601
26602   ;
26603   return 0;
26604 }
26605 _ACEOF
26606 rm -f conftest.$ac_objext
26607 if { (ac_try="$ac_compile"
26608 case "(($ac_try" in
26609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26610   *) ac_try_echo=$ac_try;;
26611 esac
26612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26613 $as_echo "$ac_try_echo") >&5
26614   (eval "$ac_compile") 2>conftest.er1
26615   ac_status=$?
26616   grep -v '^ *+' conftest.er1 >conftest.err
26617   rm -f conftest.er1
26618   cat conftest.err >&5
26619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620   (exit $ac_status); } && {
26621          test -z "$ac_c_werror_flag" ||
26622          test ! -s conftest.err
26623        } && test -s conftest.$ac_objext; then
26624   ac_lo=0 ac_mid=0
26625   while :; do
26626     cat >conftest.$ac_ext <<_ACEOF
26627 /* confdefs.h.  */
26628 _ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h.  */
26632 $ac_includes_default
26633 #ifndef offsetof
26634 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26635 #endif
26636 typedef struct { char x; long y; } ac__type_alignof_;
26637 int
26638 main ()
26639 {
26640 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26641 test_array [0] = 0
26642
26643   ;
26644   return 0;
26645 }
26646 _ACEOF
26647 rm -f conftest.$ac_objext
26648 if { (ac_try="$ac_compile"
26649 case "(($ac_try" in
26650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26651   *) ac_try_echo=$ac_try;;
26652 esac
26653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26654 $as_echo "$ac_try_echo") >&5
26655   (eval "$ac_compile") 2>conftest.er1
26656   ac_status=$?
26657   grep -v '^ *+' conftest.er1 >conftest.err
26658   rm -f conftest.er1
26659   cat conftest.err >&5
26660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26661   (exit $ac_status); } && {
26662          test -z "$ac_c_werror_flag" ||
26663          test ! -s conftest.err
26664        } && test -s conftest.$ac_objext; then
26665   ac_hi=$ac_mid; break
26666 else
26667   $as_echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26669
26670         ac_lo=`expr $ac_mid + 1`
26671                         if test $ac_lo -le $ac_mid; then
26672                           ac_lo= ac_hi=
26673                           break
26674                         fi
26675                         ac_mid=`expr 2 '*' $ac_mid + 1`
26676 fi
26677
26678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26679   done
26680 else
26681   $as_echo "$as_me: failed program was:" >&5
26682 sed 's/^/| /' conftest.$ac_ext >&5
26683
26684         cat >conftest.$ac_ext <<_ACEOF
26685 /* confdefs.h.  */
26686 _ACEOF
26687 cat confdefs.h >>conftest.$ac_ext
26688 cat >>conftest.$ac_ext <<_ACEOF
26689 /* end confdefs.h.  */
26690 $ac_includes_default
26691 #ifndef offsetof
26692 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26693 #endif
26694 typedef struct { char x; long y; } ac__type_alignof_;
26695 int
26696 main ()
26697 {
26698 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26699 test_array [0] = 0
26700
26701   ;
26702   return 0;
26703 }
26704 _ACEOF
26705 rm -f conftest.$ac_objext
26706 if { (ac_try="$ac_compile"
26707 case "(($ac_try" in
26708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26709   *) ac_try_echo=$ac_try;;
26710 esac
26711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26712 $as_echo "$ac_try_echo") >&5
26713   (eval "$ac_compile") 2>conftest.er1
26714   ac_status=$?
26715   grep -v '^ *+' conftest.er1 >conftest.err
26716   rm -f conftest.er1
26717   cat conftest.err >&5
26718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719   (exit $ac_status); } && {
26720          test -z "$ac_c_werror_flag" ||
26721          test ! -s conftest.err
26722        } && test -s conftest.$ac_objext; then
26723   ac_hi=-1 ac_mid=-1
26724   while :; do
26725     cat >conftest.$ac_ext <<_ACEOF
26726 /* confdefs.h.  */
26727 _ACEOF
26728 cat confdefs.h >>conftest.$ac_ext
26729 cat >>conftest.$ac_ext <<_ACEOF
26730 /* end confdefs.h.  */
26731 $ac_includes_default
26732 #ifndef offsetof
26733 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26734 #endif
26735 typedef struct { char x; long y; } ac__type_alignof_;
26736 int
26737 main ()
26738 {
26739 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26740 test_array [0] = 0
26741
26742   ;
26743   return 0;
26744 }
26745 _ACEOF
26746 rm -f conftest.$ac_objext
26747 if { (ac_try="$ac_compile"
26748 case "(($ac_try" in
26749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26750   *) ac_try_echo=$ac_try;;
26751 esac
26752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26753 $as_echo "$ac_try_echo") >&5
26754   (eval "$ac_compile") 2>conftest.er1
26755   ac_status=$?
26756   grep -v '^ *+' conftest.er1 >conftest.err
26757   rm -f conftest.er1
26758   cat conftest.err >&5
26759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760   (exit $ac_status); } && {
26761          test -z "$ac_c_werror_flag" ||
26762          test ! -s conftest.err
26763        } && test -s conftest.$ac_objext; then
26764   ac_lo=$ac_mid; break
26765 else
26766   $as_echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26768
26769         ac_hi=`expr '(' $ac_mid ')' - 1`
26770                         if test $ac_mid -le $ac_hi; then
26771                           ac_lo= ac_hi=
26772                           break
26773                         fi
26774                         ac_mid=`expr 2 '*' $ac_mid`
26775 fi
26776
26777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26778   done
26779 else
26780   $as_echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26782
26783         ac_lo= ac_hi=
26784 fi
26785
26786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26787 fi
26788
26789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26790 # Binary search between lo and hi bounds.
26791 while test "x$ac_lo" != "x$ac_hi"; do
26792   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26793   cat >conftest.$ac_ext <<_ACEOF
26794 /* confdefs.h.  */
26795 _ACEOF
26796 cat confdefs.h >>conftest.$ac_ext
26797 cat >>conftest.$ac_ext <<_ACEOF
26798 /* end confdefs.h.  */
26799 $ac_includes_default
26800 #ifndef offsetof
26801 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26802 #endif
26803 typedef struct { char x; long y; } ac__type_alignof_;
26804 int
26805 main ()
26806 {
26807 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26808 test_array [0] = 0
26809
26810   ;
26811   return 0;
26812 }
26813 _ACEOF
26814 rm -f conftest.$ac_objext
26815 if { (ac_try="$ac_compile"
26816 case "(($ac_try" in
26817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818   *) ac_try_echo=$ac_try;;
26819 esac
26820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26821 $as_echo "$ac_try_echo") >&5
26822   (eval "$ac_compile") 2>conftest.er1
26823   ac_status=$?
26824   grep -v '^ *+' conftest.er1 >conftest.err
26825   rm -f conftest.er1
26826   cat conftest.err >&5
26827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828   (exit $ac_status); } && {
26829          test -z "$ac_c_werror_flag" ||
26830          test ! -s conftest.err
26831        } && test -s conftest.$ac_objext; then
26832   ac_hi=$ac_mid
26833 else
26834   $as_echo "$as_me: failed program was:" >&5
26835 sed 's/^/| /' conftest.$ac_ext >&5
26836
26837         ac_lo=`expr '(' $ac_mid ')' + 1`
26838 fi
26839
26840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26841 done
26842 case $ac_lo in
26843 ?*) ac_cv_alignof_long=$ac_lo;;
26844 '') if test "$ac_cv_type_long" = yes; then
26845      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26847 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26848 See \`config.log' for more details." >&5
26849 $as_echo "$as_me: error: cannot compute alignment of long
26850 See \`config.log' for more details." >&2;}
26851    { (exit 77); exit 77; }; }; }
26852    else
26853      ac_cv_alignof_long=0
26854    fi ;;
26855 esac
26856 else
26857   cat >conftest.$ac_ext <<_ACEOF
26858 /* confdefs.h.  */
26859 _ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h.  */
26863 $ac_includes_default
26864 #ifndef offsetof
26865 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26866 #endif
26867 typedef struct { char x; long y; } ac__type_alignof_;
26868 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26869 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26870 #include <stdio.h>
26871 #include <stdlib.h>
26872 int
26873 main ()
26874 {
26875
26876   FILE *f = fopen ("conftest.val", "w");
26877   if (! f)
26878     return 1;
26879   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26880     {
26881       long int i = longval ();
26882       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26883         return 1;
26884       fprintf (f, "%ld", i);
26885     }
26886   else
26887     {
26888       unsigned long int i = ulongval ();
26889       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26890         return 1;
26891       fprintf (f, "%lu", i);
26892     }
26893   /* Do not output a trailing newline, as this causes \r\n confusion
26894      on some platforms.  */
26895   return ferror (f) || fclose (f) != 0;
26896
26897   ;
26898   return 0;
26899 }
26900 _ACEOF
26901 rm -f conftest$ac_exeext
26902 if { (ac_try="$ac_link"
26903 case "(($ac_try" in
26904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905   *) ac_try_echo=$ac_try;;
26906 esac
26907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26908 $as_echo "$ac_try_echo") >&5
26909   (eval "$ac_link") 2>&5
26910   ac_status=$?
26911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26913   { (case "(($ac_try" in
26914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915   *) ac_try_echo=$ac_try;;
26916 esac
26917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26918 $as_echo "$ac_try_echo") >&5
26919   (eval "$ac_try") 2>&5
26920   ac_status=$?
26921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922   (exit $ac_status); }; }; then
26923   ac_cv_alignof_long=`cat conftest.val`
26924 else
26925   $as_echo "$as_me: program exited with status $ac_status" >&5
26926 $as_echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26928
26929 ( exit $ac_status )
26930 if test "$ac_cv_type_long" = yes; then
26931      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26933 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26934 See \`config.log' for more details." >&5
26935 $as_echo "$as_me: error: cannot compute alignment of long
26936 See \`config.log' for more details." >&2;}
26937    { (exit 77); exit 77; }; }; }
26938    else
26939      ac_cv_alignof_long=0
26940    fi
26941 fi
26942 rm -rf conftest.dSYM
26943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26944 fi
26945 rm -f conftest.val
26946 fi
26947 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26948 $as_echo "$ac_cv_alignof_long" >&6; }
26949
26950
26951
26952 cat >>confdefs.h <<_ACEOF
26953 #define ALIGNOF_LONG $ac_cv_alignof_long
26954 _ACEOF
26955
26956
26957 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26958   # The cast to long int works around a bug in the HP C Compiler,
26959 # see AC_CHECK_SIZEOF for more information.
26960 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26961 $as_echo_n "checking alignment of long long int... " >&6; }
26962 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26963   $as_echo_n "(cached) " >&6
26964 else
26965   if test "$cross_compiling" = yes; then
26966   # Depending upon the size, compute the lo and hi bounds.
26967 cat >conftest.$ac_ext <<_ACEOF
26968 /* confdefs.h.  */
26969 _ACEOF
26970 cat confdefs.h >>conftest.$ac_ext
26971 cat >>conftest.$ac_ext <<_ACEOF
26972 /* end confdefs.h.  */
26973 $ac_includes_default
26974 #ifndef offsetof
26975 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26976 #endif
26977 typedef struct { char x; long long int y; } ac__type_alignof_;
26978 int
26979 main ()
26980 {
26981 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26982 test_array [0] = 0
26983
26984   ;
26985   return 0;
26986 }
26987 _ACEOF
26988 rm -f conftest.$ac_objext
26989 if { (ac_try="$ac_compile"
26990 case "(($ac_try" in
26991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992   *) ac_try_echo=$ac_try;;
26993 esac
26994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26995 $as_echo "$ac_try_echo") >&5
26996   (eval "$ac_compile") 2>conftest.er1
26997   ac_status=$?
26998   grep -v '^ *+' conftest.er1 >conftest.err
26999   rm -f conftest.er1
27000   cat conftest.err >&5
27001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); } && {
27003          test -z "$ac_c_werror_flag" ||
27004          test ! -s conftest.err
27005        } && test -s conftest.$ac_objext; then
27006   ac_lo=0 ac_mid=0
27007   while :; do
27008     cat >conftest.$ac_ext <<_ACEOF
27009 /* confdefs.h.  */
27010 _ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h.  */
27014 $ac_includes_default
27015 #ifndef offsetof
27016 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27017 #endif
27018 typedef struct { char x; long long int y; } ac__type_alignof_;
27019 int
27020 main ()
27021 {
27022 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27023 test_array [0] = 0
27024
27025   ;
27026   return 0;
27027 }
27028 _ACEOF
27029 rm -f conftest.$ac_objext
27030 if { (ac_try="$ac_compile"
27031 case "(($ac_try" in
27032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033   *) ac_try_echo=$ac_try;;
27034 esac
27035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27036 $as_echo "$ac_try_echo") >&5
27037   (eval "$ac_compile") 2>conftest.er1
27038   ac_status=$?
27039   grep -v '^ *+' conftest.er1 >conftest.err
27040   rm -f conftest.er1
27041   cat conftest.err >&5
27042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043   (exit $ac_status); } && {
27044          test -z "$ac_c_werror_flag" ||
27045          test ! -s conftest.err
27046        } && test -s conftest.$ac_objext; then
27047   ac_hi=$ac_mid; break
27048 else
27049   $as_echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27051
27052         ac_lo=`expr $ac_mid + 1`
27053                         if test $ac_lo -le $ac_mid; then
27054                           ac_lo= ac_hi=
27055                           break
27056                         fi
27057                         ac_mid=`expr 2 '*' $ac_mid + 1`
27058 fi
27059
27060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27061   done
27062 else
27063   $as_echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27065
27066         cat >conftest.$ac_ext <<_ACEOF
27067 /* confdefs.h.  */
27068 _ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h.  */
27072 $ac_includes_default
27073 #ifndef offsetof
27074 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27075 #endif
27076 typedef struct { char x; long long int y; } ac__type_alignof_;
27077 int
27078 main ()
27079 {
27080 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27081 test_array [0] = 0
27082
27083   ;
27084   return 0;
27085 }
27086 _ACEOF
27087 rm -f conftest.$ac_objext
27088 if { (ac_try="$ac_compile"
27089 case "(($ac_try" in
27090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091   *) ac_try_echo=$ac_try;;
27092 esac
27093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27094 $as_echo "$ac_try_echo") >&5
27095   (eval "$ac_compile") 2>conftest.er1
27096   ac_status=$?
27097   grep -v '^ *+' conftest.er1 >conftest.err
27098   rm -f conftest.er1
27099   cat conftest.err >&5
27100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101   (exit $ac_status); } && {
27102          test -z "$ac_c_werror_flag" ||
27103          test ! -s conftest.err
27104        } && test -s conftest.$ac_objext; then
27105   ac_hi=-1 ac_mid=-1
27106   while :; do
27107     cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113 $ac_includes_default
27114 #ifndef offsetof
27115 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27116 #endif
27117 typedef struct { char x; long long int y; } ac__type_alignof_;
27118 int
27119 main ()
27120 {
27121 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27122 test_array [0] = 0
27123
27124   ;
27125   return 0;
27126 }
27127 _ACEOF
27128 rm -f conftest.$ac_objext
27129 if { (ac_try="$ac_compile"
27130 case "(($ac_try" in
27131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132   *) ac_try_echo=$ac_try;;
27133 esac
27134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27135 $as_echo "$ac_try_echo") >&5
27136   (eval "$ac_compile") 2>conftest.er1
27137   ac_status=$?
27138   grep -v '^ *+' conftest.er1 >conftest.err
27139   rm -f conftest.er1
27140   cat conftest.err >&5
27141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142   (exit $ac_status); } && {
27143          test -z "$ac_c_werror_flag" ||
27144          test ! -s conftest.err
27145        } && test -s conftest.$ac_objext; then
27146   ac_lo=$ac_mid; break
27147 else
27148   $as_echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27150
27151         ac_hi=`expr '(' $ac_mid ')' - 1`
27152                         if test $ac_mid -le $ac_hi; then
27153                           ac_lo= ac_hi=
27154                           break
27155                         fi
27156                         ac_mid=`expr 2 '*' $ac_mid`
27157 fi
27158
27159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27160   done
27161 else
27162   $as_echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27164
27165         ac_lo= ac_hi=
27166 fi
27167
27168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27169 fi
27170
27171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27172 # Binary search between lo and hi bounds.
27173 while test "x$ac_lo" != "x$ac_hi"; do
27174   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27175   cat >conftest.$ac_ext <<_ACEOF
27176 /* confdefs.h.  */
27177 _ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h.  */
27181 $ac_includes_default
27182 #ifndef offsetof
27183 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27184 #endif
27185 typedef struct { char x; long long int y; } ac__type_alignof_;
27186 int
27187 main ()
27188 {
27189 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27190 test_array [0] = 0
27191
27192   ;
27193   return 0;
27194 }
27195 _ACEOF
27196 rm -f conftest.$ac_objext
27197 if { (ac_try="$ac_compile"
27198 case "(($ac_try" in
27199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200   *) ac_try_echo=$ac_try;;
27201 esac
27202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27203 $as_echo "$ac_try_echo") >&5
27204   (eval "$ac_compile") 2>conftest.er1
27205   ac_status=$?
27206   grep -v '^ *+' conftest.er1 >conftest.err
27207   rm -f conftest.er1
27208   cat conftest.err >&5
27209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210   (exit $ac_status); } && {
27211          test -z "$ac_c_werror_flag" ||
27212          test ! -s conftest.err
27213        } && test -s conftest.$ac_objext; then
27214   ac_hi=$ac_mid
27215 else
27216   $as_echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27218
27219         ac_lo=`expr '(' $ac_mid ')' + 1`
27220 fi
27221
27222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27223 done
27224 case $ac_lo in
27225 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27226 '') if test "$ac_cv_type_long_long_int" = yes; then
27227      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27229 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27230 See \`config.log' for more details." >&5
27231 $as_echo "$as_me: error: cannot compute alignment of long long int
27232 See \`config.log' for more details." >&2;}
27233    { (exit 77); exit 77; }; }; }
27234    else
27235      ac_cv_alignof_long_long_int=0
27236    fi ;;
27237 esac
27238 else
27239   cat >conftest.$ac_ext <<_ACEOF
27240 /* confdefs.h.  */
27241 _ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h.  */
27245 $ac_includes_default
27246 #ifndef offsetof
27247 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27248 #endif
27249 typedef struct { char x; long long int y; } ac__type_alignof_;
27250 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27251 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27252 #include <stdio.h>
27253 #include <stdlib.h>
27254 int
27255 main ()
27256 {
27257
27258   FILE *f = fopen ("conftest.val", "w");
27259   if (! f)
27260     return 1;
27261   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27262     {
27263       long int i = longval ();
27264       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27265         return 1;
27266       fprintf (f, "%ld", i);
27267     }
27268   else
27269     {
27270       unsigned long int i = ulongval ();
27271       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27272         return 1;
27273       fprintf (f, "%lu", i);
27274     }
27275   /* Do not output a trailing newline, as this causes \r\n confusion
27276      on some platforms.  */
27277   return ferror (f) || fclose (f) != 0;
27278
27279   ;
27280   return 0;
27281 }
27282 _ACEOF
27283 rm -f conftest$ac_exeext
27284 if { (ac_try="$ac_link"
27285 case "(($ac_try" in
27286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27287   *) ac_try_echo=$ac_try;;
27288 esac
27289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27290 $as_echo "$ac_try_echo") >&5
27291   (eval "$ac_link") 2>&5
27292   ac_status=$?
27293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27295   { (case "(($ac_try" in
27296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297   *) ac_try_echo=$ac_try;;
27298 esac
27299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27300 $as_echo "$ac_try_echo") >&5
27301   (eval "$ac_try") 2>&5
27302   ac_status=$?
27303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304   (exit $ac_status); }; }; then
27305   ac_cv_alignof_long_long_int=`cat conftest.val`
27306 else
27307   $as_echo "$as_me: program exited with status $ac_status" >&5
27308 $as_echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27310
27311 ( exit $ac_status )
27312 if test "$ac_cv_type_long_long_int" = yes; then
27313      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27315 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27316 See \`config.log' for more details." >&5
27317 $as_echo "$as_me: error: cannot compute alignment of long long int
27318 See \`config.log' for more details." >&2;}
27319    { (exit 77); exit 77; }; }; }
27320    else
27321      ac_cv_alignof_long_long_int=0
27322    fi
27323 fi
27324 rm -rf conftest.dSYM
27325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27326 fi
27327 rm -f conftest.val
27328 fi
27329 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27330 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27331
27332
27333
27334 cat >>confdefs.h <<_ACEOF
27335 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27336 _ACEOF
27337
27338
27339 fi
27340 # The cast to long int works around a bug in the HP C Compiler,
27341 # see AC_CHECK_SIZEOF for more information.
27342 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27343 $as_echo_n "checking alignment of double... " >&6; }
27344 if test "${ac_cv_alignof_double+set}" = set; then
27345   $as_echo_n "(cached) " >&6
27346 else
27347   if test "$cross_compiling" = yes; then
27348   # Depending upon the size, compute the lo and hi bounds.
27349 cat >conftest.$ac_ext <<_ACEOF
27350 /* confdefs.h.  */
27351 _ACEOF
27352 cat confdefs.h >>conftest.$ac_ext
27353 cat >>conftest.$ac_ext <<_ACEOF
27354 /* end confdefs.h.  */
27355 $ac_includes_default
27356 #ifndef offsetof
27357 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27358 #endif
27359 typedef struct { char x; double y; } ac__type_alignof_;
27360 int
27361 main ()
27362 {
27363 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27364 test_array [0] = 0
27365
27366   ;
27367   return 0;
27368 }
27369 _ACEOF
27370 rm -f conftest.$ac_objext
27371 if { (ac_try="$ac_compile"
27372 case "(($ac_try" in
27373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374   *) ac_try_echo=$ac_try;;
27375 esac
27376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27377 $as_echo "$ac_try_echo") >&5
27378   (eval "$ac_compile") 2>conftest.er1
27379   ac_status=$?
27380   grep -v '^ *+' conftest.er1 >conftest.err
27381   rm -f conftest.er1
27382   cat conftest.err >&5
27383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); } && {
27385          test -z "$ac_c_werror_flag" ||
27386          test ! -s conftest.err
27387        } && test -s conftest.$ac_objext; then
27388   ac_lo=0 ac_mid=0
27389   while :; do
27390     cat >conftest.$ac_ext <<_ACEOF
27391 /* confdefs.h.  */
27392 _ACEOF
27393 cat confdefs.h >>conftest.$ac_ext
27394 cat >>conftest.$ac_ext <<_ACEOF
27395 /* end confdefs.h.  */
27396 $ac_includes_default
27397 #ifndef offsetof
27398 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27399 #endif
27400 typedef struct { char x; double y; } ac__type_alignof_;
27401 int
27402 main ()
27403 {
27404 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27405 test_array [0] = 0
27406
27407   ;
27408   return 0;
27409 }
27410 _ACEOF
27411 rm -f conftest.$ac_objext
27412 if { (ac_try="$ac_compile"
27413 case "(($ac_try" in
27414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415   *) ac_try_echo=$ac_try;;
27416 esac
27417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27418 $as_echo "$ac_try_echo") >&5
27419   (eval "$ac_compile") 2>conftest.er1
27420   ac_status=$?
27421   grep -v '^ *+' conftest.er1 >conftest.err
27422   rm -f conftest.er1
27423   cat conftest.err >&5
27424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); } && {
27426          test -z "$ac_c_werror_flag" ||
27427          test ! -s conftest.err
27428        } && test -s conftest.$ac_objext; then
27429   ac_hi=$ac_mid; break
27430 else
27431   $as_echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27433
27434         ac_lo=`expr $ac_mid + 1`
27435                         if test $ac_lo -le $ac_mid; then
27436                           ac_lo= ac_hi=
27437                           break
27438                         fi
27439                         ac_mid=`expr 2 '*' $ac_mid + 1`
27440 fi
27441
27442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27443   done
27444 else
27445   $as_echo "$as_me: failed program was:" >&5
27446 sed 's/^/| /' conftest.$ac_ext >&5
27447
27448         cat >conftest.$ac_ext <<_ACEOF
27449 /* confdefs.h.  */
27450 _ACEOF
27451 cat confdefs.h >>conftest.$ac_ext
27452 cat >>conftest.$ac_ext <<_ACEOF
27453 /* end confdefs.h.  */
27454 $ac_includes_default
27455 #ifndef offsetof
27456 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27457 #endif
27458 typedef struct { char x; double y; } ac__type_alignof_;
27459 int
27460 main ()
27461 {
27462 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27463 test_array [0] = 0
27464
27465   ;
27466   return 0;
27467 }
27468 _ACEOF
27469 rm -f conftest.$ac_objext
27470 if { (ac_try="$ac_compile"
27471 case "(($ac_try" in
27472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473   *) ac_try_echo=$ac_try;;
27474 esac
27475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27476 $as_echo "$ac_try_echo") >&5
27477   (eval "$ac_compile") 2>conftest.er1
27478   ac_status=$?
27479   grep -v '^ *+' conftest.er1 >conftest.err
27480   rm -f conftest.er1
27481   cat conftest.err >&5
27482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); } && {
27484          test -z "$ac_c_werror_flag" ||
27485          test ! -s conftest.err
27486        } && test -s conftest.$ac_objext; then
27487   ac_hi=-1 ac_mid=-1
27488   while :; do
27489     cat >conftest.$ac_ext <<_ACEOF
27490 /* confdefs.h.  */
27491 _ACEOF
27492 cat confdefs.h >>conftest.$ac_ext
27493 cat >>conftest.$ac_ext <<_ACEOF
27494 /* end confdefs.h.  */
27495 $ac_includes_default
27496 #ifndef offsetof
27497 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27498 #endif
27499 typedef struct { char x; double y; } ac__type_alignof_;
27500 int
27501 main ()
27502 {
27503 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27504 test_array [0] = 0
27505
27506   ;
27507   return 0;
27508 }
27509 _ACEOF
27510 rm -f conftest.$ac_objext
27511 if { (ac_try="$ac_compile"
27512 case "(($ac_try" in
27513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514   *) ac_try_echo=$ac_try;;
27515 esac
27516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27517 $as_echo "$ac_try_echo") >&5
27518   (eval "$ac_compile") 2>conftest.er1
27519   ac_status=$?
27520   grep -v '^ *+' conftest.er1 >conftest.err
27521   rm -f conftest.er1
27522   cat conftest.err >&5
27523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); } && {
27525          test -z "$ac_c_werror_flag" ||
27526          test ! -s conftest.err
27527        } && test -s conftest.$ac_objext; then
27528   ac_lo=$ac_mid; break
27529 else
27530   $as_echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27532
27533         ac_hi=`expr '(' $ac_mid ')' - 1`
27534                         if test $ac_mid -le $ac_hi; then
27535                           ac_lo= ac_hi=
27536                           break
27537                         fi
27538                         ac_mid=`expr 2 '*' $ac_mid`
27539 fi
27540
27541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27542   done
27543 else
27544   $as_echo "$as_me: failed program was:" >&5
27545 sed 's/^/| /' conftest.$ac_ext >&5
27546
27547         ac_lo= ac_hi=
27548 fi
27549
27550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27551 fi
27552
27553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27554 # Binary search between lo and hi bounds.
27555 while test "x$ac_lo" != "x$ac_hi"; do
27556   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27557   cat >conftest.$ac_ext <<_ACEOF
27558 /* confdefs.h.  */
27559 _ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h.  */
27563 $ac_includes_default
27564 #ifndef offsetof
27565 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27566 #endif
27567 typedef struct { char x; double y; } ac__type_alignof_;
27568 int
27569 main ()
27570 {
27571 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27572 test_array [0] = 0
27573
27574   ;
27575   return 0;
27576 }
27577 _ACEOF
27578 rm -f conftest.$ac_objext
27579 if { (ac_try="$ac_compile"
27580 case "(($ac_try" in
27581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582   *) ac_try_echo=$ac_try;;
27583 esac
27584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27585 $as_echo "$ac_try_echo") >&5
27586   (eval "$ac_compile") 2>conftest.er1
27587   ac_status=$?
27588   grep -v '^ *+' conftest.er1 >conftest.err
27589   rm -f conftest.er1
27590   cat conftest.err >&5
27591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592   (exit $ac_status); } && {
27593          test -z "$ac_c_werror_flag" ||
27594          test ! -s conftest.err
27595        } && test -s conftest.$ac_objext; then
27596   ac_hi=$ac_mid
27597 else
27598   $as_echo "$as_me: failed program was:" >&5
27599 sed 's/^/| /' conftest.$ac_ext >&5
27600
27601         ac_lo=`expr '(' $ac_mid ')' + 1`
27602 fi
27603
27604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27605 done
27606 case $ac_lo in
27607 ?*) ac_cv_alignof_double=$ac_lo;;
27608 '') if test "$ac_cv_type_double" = yes; then
27609      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27611 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27612 See \`config.log' for more details." >&5
27613 $as_echo "$as_me: error: cannot compute alignment of double
27614 See \`config.log' for more details." >&2;}
27615    { (exit 77); exit 77; }; }; }
27616    else
27617      ac_cv_alignof_double=0
27618    fi ;;
27619 esac
27620 else
27621   cat >conftest.$ac_ext <<_ACEOF
27622 /* confdefs.h.  */
27623 _ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h.  */
27627 $ac_includes_default
27628 #ifndef offsetof
27629 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27630 #endif
27631 typedef struct { char x; double y; } ac__type_alignof_;
27632 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27633 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27634 #include <stdio.h>
27635 #include <stdlib.h>
27636 int
27637 main ()
27638 {
27639
27640   FILE *f = fopen ("conftest.val", "w");
27641   if (! f)
27642     return 1;
27643   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27644     {
27645       long int i = longval ();
27646       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27647         return 1;
27648       fprintf (f, "%ld", i);
27649     }
27650   else
27651     {
27652       unsigned long int i = ulongval ();
27653       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27654         return 1;
27655       fprintf (f, "%lu", i);
27656     }
27657   /* Do not output a trailing newline, as this causes \r\n confusion
27658      on some platforms.  */
27659   return ferror (f) || fclose (f) != 0;
27660
27661   ;
27662   return 0;
27663 }
27664 _ACEOF
27665 rm -f conftest$ac_exeext
27666 if { (ac_try="$ac_link"
27667 case "(($ac_try" in
27668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27669   *) ac_try_echo=$ac_try;;
27670 esac
27671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27672 $as_echo "$ac_try_echo") >&5
27673   (eval "$ac_link") 2>&5
27674   ac_status=$?
27675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27677   { (case "(($ac_try" in
27678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679   *) ac_try_echo=$ac_try;;
27680 esac
27681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27682 $as_echo "$ac_try_echo") >&5
27683   (eval "$ac_try") 2>&5
27684   ac_status=$?
27685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); }; }; then
27687   ac_cv_alignof_double=`cat conftest.val`
27688 else
27689   $as_echo "$as_me: program exited with status $ac_status" >&5
27690 $as_echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27692
27693 ( exit $ac_status )
27694 if test "$ac_cv_type_double" = yes; then
27695      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27697 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27698 See \`config.log' for more details." >&5
27699 $as_echo "$as_me: error: cannot compute alignment of double
27700 See \`config.log' for more details." >&2;}
27701    { (exit 77); exit 77; }; }; }
27702    else
27703      ac_cv_alignof_double=0
27704    fi
27705 fi
27706 rm -rf conftest.dSYM
27707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27708 fi
27709 rm -f conftest.val
27710 fi
27711 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27712 $as_echo "$ac_cv_alignof_double" >&6; }
27713
27714
27715
27716 cat >>confdefs.h <<_ACEOF
27717 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27718 _ACEOF
27719
27720
27721
27722 # Compute maximum alignment of any basic type.
27723 # We assume long's alignment is at least as strong as char, short, or int;
27724 # but we must check long long (if it exists) and double.
27725
27726 MAX_ALIGNOF=$ac_cv_alignof_long
27727 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27728   MAX_ALIGNOF=$ac_cv_alignof_double
27729 fi
27730 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27731   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27732 fi
27733
27734 cat >>confdefs.h <<_ACEOF
27735 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27736 _ACEOF
27737
27738
27739
27740 # Some platforms predefine the types int8, int16, etc.  Only check
27741 # a (hopefully) representative subset.
27742 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27743 $as_echo_n "checking for int8... " >&6; }
27744 if test "${ac_cv_type_int8+set}" = set; then
27745   $as_echo_n "(cached) " >&6
27746 else
27747   ac_cv_type_int8=no
27748 cat >conftest.$ac_ext <<_ACEOF
27749 /* confdefs.h.  */
27750 _ACEOF
27751 cat confdefs.h >>conftest.$ac_ext
27752 cat >>conftest.$ac_ext <<_ACEOF
27753 /* end confdefs.h.  */
27754 #include <stdio.h>
27755
27756 int
27757 main ()
27758 {
27759 if (sizeof (int8))
27760        return 0;
27761   ;
27762   return 0;
27763 }
27764 _ACEOF
27765 rm -f conftest.$ac_objext
27766 if { (ac_try="$ac_compile"
27767 case "(($ac_try" in
27768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769   *) ac_try_echo=$ac_try;;
27770 esac
27771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27772 $as_echo "$ac_try_echo") >&5
27773   (eval "$ac_compile") 2>conftest.er1
27774   ac_status=$?
27775   grep -v '^ *+' conftest.er1 >conftest.err
27776   rm -f conftest.er1
27777   cat conftest.err >&5
27778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); } && {
27780          test -z "$ac_c_werror_flag" ||
27781          test ! -s conftest.err
27782        } && test -s conftest.$ac_objext; then
27783   cat >conftest.$ac_ext <<_ACEOF
27784 /* confdefs.h.  */
27785 _ACEOF
27786 cat confdefs.h >>conftest.$ac_ext
27787 cat >>conftest.$ac_ext <<_ACEOF
27788 /* end confdefs.h.  */
27789 #include <stdio.h>
27790
27791 int
27792 main ()
27793 {
27794 if (sizeof ((int8)))
27795           return 0;
27796   ;
27797   return 0;
27798 }
27799 _ACEOF
27800 rm -f conftest.$ac_objext
27801 if { (ac_try="$ac_compile"
27802 case "(($ac_try" in
27803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804   *) ac_try_echo=$ac_try;;
27805 esac
27806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27807 $as_echo "$ac_try_echo") >&5
27808   (eval "$ac_compile") 2>conftest.er1
27809   ac_status=$?
27810   grep -v '^ *+' conftest.er1 >conftest.err
27811   rm -f conftest.er1
27812   cat conftest.err >&5
27813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814   (exit $ac_status); } && {
27815          test -z "$ac_c_werror_flag" ||
27816          test ! -s conftest.err
27817        } && test -s conftest.$ac_objext; then
27818   :
27819 else
27820   $as_echo "$as_me: failed program was:" >&5
27821 sed 's/^/| /' conftest.$ac_ext >&5
27822
27823         ac_cv_type_int8=yes
27824 fi
27825
27826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27827 else
27828   $as_echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27830
27831
27832 fi
27833
27834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27835 fi
27836 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27837 $as_echo "$ac_cv_type_int8" >&6; }
27838 if test "x$ac_cv_type_int8" = x""yes; then
27839
27840 cat >>confdefs.h <<_ACEOF
27841 #define HAVE_INT8 1
27842 _ACEOF
27843
27844
27845 fi
27846 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27847 $as_echo_n "checking for uint8... " >&6; }
27848 if test "${ac_cv_type_uint8+set}" = set; then
27849   $as_echo_n "(cached) " >&6
27850 else
27851   ac_cv_type_uint8=no
27852 cat >conftest.$ac_ext <<_ACEOF
27853 /* confdefs.h.  */
27854 _ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h.  */
27858 #include <stdio.h>
27859
27860 int
27861 main ()
27862 {
27863 if (sizeof (uint8))
27864        return 0;
27865   ;
27866   return 0;
27867 }
27868 _ACEOF
27869 rm -f conftest.$ac_objext
27870 if { (ac_try="$ac_compile"
27871 case "(($ac_try" in
27872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873   *) ac_try_echo=$ac_try;;
27874 esac
27875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27876 $as_echo "$ac_try_echo") >&5
27877   (eval "$ac_compile") 2>conftest.er1
27878   ac_status=$?
27879   grep -v '^ *+' conftest.er1 >conftest.err
27880   rm -f conftest.er1
27881   cat conftest.err >&5
27882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); } && {
27884          test -z "$ac_c_werror_flag" ||
27885          test ! -s conftest.err
27886        } && test -s conftest.$ac_objext; then
27887   cat >conftest.$ac_ext <<_ACEOF
27888 /* confdefs.h.  */
27889 _ACEOF
27890 cat confdefs.h >>conftest.$ac_ext
27891 cat >>conftest.$ac_ext <<_ACEOF
27892 /* end confdefs.h.  */
27893 #include <stdio.h>
27894
27895 int
27896 main ()
27897 {
27898 if (sizeof ((uint8)))
27899           return 0;
27900   ;
27901   return 0;
27902 }
27903 _ACEOF
27904 rm -f conftest.$ac_objext
27905 if { (ac_try="$ac_compile"
27906 case "(($ac_try" in
27907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27908   *) ac_try_echo=$ac_try;;
27909 esac
27910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27911 $as_echo "$ac_try_echo") >&5
27912   (eval "$ac_compile") 2>conftest.er1
27913   ac_status=$?
27914   grep -v '^ *+' conftest.er1 >conftest.err
27915   rm -f conftest.er1
27916   cat conftest.err >&5
27917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918   (exit $ac_status); } && {
27919          test -z "$ac_c_werror_flag" ||
27920          test ! -s conftest.err
27921        } && test -s conftest.$ac_objext; then
27922   :
27923 else
27924   $as_echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27926
27927         ac_cv_type_uint8=yes
27928 fi
27929
27930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27931 else
27932   $as_echo "$as_me: failed program was:" >&5
27933 sed 's/^/| /' conftest.$ac_ext >&5
27934
27935
27936 fi
27937
27938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27939 fi
27940 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27941 $as_echo "$ac_cv_type_uint8" >&6; }
27942 if test "x$ac_cv_type_uint8" = x""yes; then
27943
27944 cat >>confdefs.h <<_ACEOF
27945 #define HAVE_UINT8 1
27946 _ACEOF
27947
27948
27949 fi
27950 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27951 $as_echo_n "checking for int64... " >&6; }
27952 if test "${ac_cv_type_int64+set}" = set; then
27953   $as_echo_n "(cached) " >&6
27954 else
27955   ac_cv_type_int64=no
27956 cat >conftest.$ac_ext <<_ACEOF
27957 /* confdefs.h.  */
27958 _ACEOF
27959 cat confdefs.h >>conftest.$ac_ext
27960 cat >>conftest.$ac_ext <<_ACEOF
27961 /* end confdefs.h.  */
27962 #include <stdio.h>
27963
27964 int
27965 main ()
27966 {
27967 if (sizeof (int64))
27968        return 0;
27969   ;
27970   return 0;
27971 }
27972 _ACEOF
27973 rm -f conftest.$ac_objext
27974 if { (ac_try="$ac_compile"
27975 case "(($ac_try" in
27976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977   *) ac_try_echo=$ac_try;;
27978 esac
27979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27980 $as_echo "$ac_try_echo") >&5
27981   (eval "$ac_compile") 2>conftest.er1
27982   ac_status=$?
27983   grep -v '^ *+' conftest.er1 >conftest.err
27984   rm -f conftest.er1
27985   cat conftest.err >&5
27986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987   (exit $ac_status); } && {
27988          test -z "$ac_c_werror_flag" ||
27989          test ! -s conftest.err
27990        } && test -s conftest.$ac_objext; then
27991   cat >conftest.$ac_ext <<_ACEOF
27992 /* confdefs.h.  */
27993 _ACEOF
27994 cat confdefs.h >>conftest.$ac_ext
27995 cat >>conftest.$ac_ext <<_ACEOF
27996 /* end confdefs.h.  */
27997 #include <stdio.h>
27998
27999 int
28000 main ()
28001 {
28002 if (sizeof ((int64)))
28003           return 0;
28004   ;
28005   return 0;
28006 }
28007 _ACEOF
28008 rm -f conftest.$ac_objext
28009 if { (ac_try="$ac_compile"
28010 case "(($ac_try" in
28011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28012   *) ac_try_echo=$ac_try;;
28013 esac
28014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28015 $as_echo "$ac_try_echo") >&5
28016   (eval "$ac_compile") 2>conftest.er1
28017   ac_status=$?
28018   grep -v '^ *+' conftest.er1 >conftest.err
28019   rm -f conftest.er1
28020   cat conftest.err >&5
28021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); } && {
28023          test -z "$ac_c_werror_flag" ||
28024          test ! -s conftest.err
28025        } && test -s conftest.$ac_objext; then
28026   :
28027 else
28028   $as_echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28030
28031         ac_cv_type_int64=yes
28032 fi
28033
28034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28035 else
28036   $as_echo "$as_me: failed program was:" >&5
28037 sed 's/^/| /' conftest.$ac_ext >&5
28038
28039
28040 fi
28041
28042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28043 fi
28044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28045 $as_echo "$ac_cv_type_int64" >&6; }
28046 if test "x$ac_cv_type_int64" = x""yes; then
28047
28048 cat >>confdefs.h <<_ACEOF
28049 #define HAVE_INT64 1
28050 _ACEOF
28051
28052
28053 fi
28054 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28055 $as_echo_n "checking for uint64... " >&6; }
28056 if test "${ac_cv_type_uint64+set}" = set; then
28057   $as_echo_n "(cached) " >&6
28058 else
28059   ac_cv_type_uint64=no
28060 cat >conftest.$ac_ext <<_ACEOF
28061 /* confdefs.h.  */
28062 _ACEOF
28063 cat confdefs.h >>conftest.$ac_ext
28064 cat >>conftest.$ac_ext <<_ACEOF
28065 /* end confdefs.h.  */
28066 #include <stdio.h>
28067
28068 int
28069 main ()
28070 {
28071 if (sizeof (uint64))
28072        return 0;
28073   ;
28074   return 0;
28075 }
28076 _ACEOF
28077 rm -f conftest.$ac_objext
28078 if { (ac_try="$ac_compile"
28079 case "(($ac_try" in
28080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28081   *) ac_try_echo=$ac_try;;
28082 esac
28083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28084 $as_echo "$ac_try_echo") >&5
28085   (eval "$ac_compile") 2>conftest.er1
28086   ac_status=$?
28087   grep -v '^ *+' conftest.er1 >conftest.err
28088   rm -f conftest.er1
28089   cat conftest.err >&5
28090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091   (exit $ac_status); } && {
28092          test -z "$ac_c_werror_flag" ||
28093          test ! -s conftest.err
28094        } && test -s conftest.$ac_objext; then
28095   cat >conftest.$ac_ext <<_ACEOF
28096 /* confdefs.h.  */
28097 _ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h.  */
28101 #include <stdio.h>
28102
28103 int
28104 main ()
28105 {
28106 if (sizeof ((uint64)))
28107           return 0;
28108   ;
28109   return 0;
28110 }
28111 _ACEOF
28112 rm -f conftest.$ac_objext
28113 if { (ac_try="$ac_compile"
28114 case "(($ac_try" in
28115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116   *) ac_try_echo=$ac_try;;
28117 esac
28118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28119 $as_echo "$ac_try_echo") >&5
28120   (eval "$ac_compile") 2>conftest.er1
28121   ac_status=$?
28122   grep -v '^ *+' conftest.er1 >conftest.err
28123   rm -f conftest.er1
28124   cat conftest.err >&5
28125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126   (exit $ac_status); } && {
28127          test -z "$ac_c_werror_flag" ||
28128          test ! -s conftest.err
28129        } && test -s conftest.$ac_objext; then
28130   :
28131 else
28132   $as_echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28134
28135         ac_cv_type_uint64=yes
28136 fi
28137
28138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28139 else
28140   $as_echo "$as_me: failed program was:" >&5
28141 sed 's/^/| /' conftest.$ac_ext >&5
28142
28143
28144 fi
28145
28146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28147 fi
28148 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28149 $as_echo "$ac_cv_type_uint64" >&6; }
28150 if test "x$ac_cv_type_uint64" = x""yes; then
28151
28152 cat >>confdefs.h <<_ACEOF
28153 #define HAVE_UINT64 1
28154 _ACEOF
28155
28156
28157 fi
28158
28159
28160 # We also check for sig_atomic_t, which *should* be defined per ANSI
28161 # C, but is missing on some old platforms.
28162 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28163 $as_echo_n "checking for sig_atomic_t... " >&6; }
28164 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28165   $as_echo_n "(cached) " >&6
28166 else
28167   ac_cv_type_sig_atomic_t=no
28168 cat >conftest.$ac_ext <<_ACEOF
28169 /* confdefs.h.  */
28170 _ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h.  */
28174 #include <signal.h>
28175
28176 int
28177 main ()
28178 {
28179 if (sizeof (sig_atomic_t))
28180        return 0;
28181   ;
28182   return 0;
28183 }
28184 _ACEOF
28185 rm -f conftest.$ac_objext
28186 if { (ac_try="$ac_compile"
28187 case "(($ac_try" in
28188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189   *) ac_try_echo=$ac_try;;
28190 esac
28191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28192 $as_echo "$ac_try_echo") >&5
28193   (eval "$ac_compile") 2>conftest.er1
28194   ac_status=$?
28195   grep -v '^ *+' conftest.er1 >conftest.err
28196   rm -f conftest.er1
28197   cat conftest.err >&5
28198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); } && {
28200          test -z "$ac_c_werror_flag" ||
28201          test ! -s conftest.err
28202        } && test -s conftest.$ac_objext; then
28203   cat >conftest.$ac_ext <<_ACEOF
28204 /* confdefs.h.  */
28205 _ACEOF
28206 cat confdefs.h >>conftest.$ac_ext
28207 cat >>conftest.$ac_ext <<_ACEOF
28208 /* end confdefs.h.  */
28209 #include <signal.h>
28210
28211 int
28212 main ()
28213 {
28214 if (sizeof ((sig_atomic_t)))
28215           return 0;
28216   ;
28217   return 0;
28218 }
28219 _ACEOF
28220 rm -f conftest.$ac_objext
28221 if { (ac_try="$ac_compile"
28222 case "(($ac_try" in
28223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224   *) ac_try_echo=$ac_try;;
28225 esac
28226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28227 $as_echo "$ac_try_echo") >&5
28228   (eval "$ac_compile") 2>conftest.er1
28229   ac_status=$?
28230   grep -v '^ *+' conftest.er1 >conftest.err
28231   rm -f conftest.er1
28232   cat conftest.err >&5
28233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); } && {
28235          test -z "$ac_c_werror_flag" ||
28236          test ! -s conftest.err
28237        } && test -s conftest.$ac_objext; then
28238   :
28239 else
28240   $as_echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28242
28243         ac_cv_type_sig_atomic_t=yes
28244 fi
28245
28246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28247 else
28248   $as_echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28250
28251
28252 fi
28253
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28255 fi
28256 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28257 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28258 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28259
28260 cat >>confdefs.h <<_ACEOF
28261 #define HAVE_SIG_ATOMIC_T 1
28262 _ACEOF
28263
28264
28265 fi
28266
28267
28268
28269 if test "$PORTNAME" != "win32"
28270 then
28271 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28272 $as_echo_n "checking for POSIX signal interface... " >&6; }
28273 if test "${pgac_cv_func_posix_signals+set}" = set; then
28274   $as_echo_n "(cached) " >&6
28275 else
28276   cat >conftest.$ac_ext <<_ACEOF
28277 /* confdefs.h.  */
28278 _ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h.  */
28282 #include <signal.h>
28283
28284 int
28285 main ()
28286 {
28287 struct sigaction act, oact;
28288 sigemptyset(&act.sa_mask);
28289 act.sa_flags = SA_RESTART;
28290 sigaction(0, &act, &oact);
28291   ;
28292   return 0;
28293 }
28294 _ACEOF
28295 rm -f conftest.$ac_objext conftest$ac_exeext
28296 if { (ac_try="$ac_link"
28297 case "(($ac_try" in
28298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299   *) ac_try_echo=$ac_try;;
28300 esac
28301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28302 $as_echo "$ac_try_echo") >&5
28303   (eval "$ac_link") 2>conftest.er1
28304   ac_status=$?
28305   grep -v '^ *+' conftest.er1 >conftest.err
28306   rm -f conftest.er1
28307   cat conftest.err >&5
28308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309   (exit $ac_status); } && {
28310          test -z "$ac_c_werror_flag" ||
28311          test ! -s conftest.err
28312        } && test -s conftest$ac_exeext && {
28313          test "$cross_compiling" = yes ||
28314          $as_test_x conftest$ac_exeext
28315        }; then
28316   pgac_cv_func_posix_signals=yes
28317 else
28318   $as_echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28320
28321         pgac_cv_func_posix_signals=no
28322 fi
28323
28324 rm -rf conftest.dSYM
28325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28326       conftest$ac_exeext conftest.$ac_ext
28327 fi
28328 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28329 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28330 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28331
28332 cat >>confdefs.h <<\_ACEOF
28333 #define HAVE_POSIX_SIGNALS /**/
28334 _ACEOF
28335
28336 fi
28337 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28338
28339 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28340   { { $as_echo "$as_me:$LINENO: error:
28341 Thread-safety requires POSIX signals, which are not supported by this
28342 operating system;  use --disable-thread-safety to disable thread safety." >&5
28343 $as_echo "$as_me: error:
28344 Thread-safety requires POSIX signals, which are not supported by this
28345 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28346    { (exit 1); exit 1; }; }
28347 fi
28348 fi
28349
28350 # SunOS doesn't handle negative byte comparisons properly with +/- return
28351 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28352 $as_echo_n "checking for working memcmp... " >&6; }
28353 if test "${ac_cv_func_memcmp_working+set}" = set; then
28354   $as_echo_n "(cached) " >&6
28355 else
28356   if test "$cross_compiling" = yes; then
28357   ac_cv_func_memcmp_working=no
28358 else
28359   cat >conftest.$ac_ext <<_ACEOF
28360 /* confdefs.h.  */
28361 _ACEOF
28362 cat confdefs.h >>conftest.$ac_ext
28363 cat >>conftest.$ac_ext <<_ACEOF
28364 /* end confdefs.h.  */
28365 $ac_includes_default
28366 int
28367 main ()
28368 {
28369
28370   /* Some versions of memcmp are not 8-bit clean.  */
28371   char c0 = '\100', c1 = '\200', c2 = '\201';
28372   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28373     return 1;
28374
28375   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28376      or more and with at least one buffer not starting on a 4-byte boundary.
28377      William Lewis provided this test program.   */
28378   {
28379     char foo[21];
28380     char bar[21];
28381     int i;
28382     for (i = 0; i < 4; i++)
28383       {
28384         char *a = foo + i;
28385         char *b = bar + i;
28386         strcpy (a, "--------01111111");
28387         strcpy (b, "--------10000000");
28388         if (memcmp (a, b, 16) >= 0)
28389           return 1;
28390       }
28391     return 0;
28392   }
28393
28394   ;
28395   return 0;
28396 }
28397 _ACEOF
28398 rm -f conftest$ac_exeext
28399 if { (ac_try="$ac_link"
28400 case "(($ac_try" in
28401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402   *) ac_try_echo=$ac_try;;
28403 esac
28404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28405 $as_echo "$ac_try_echo") >&5
28406   (eval "$ac_link") 2>&5
28407   ac_status=$?
28408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28410   { (case "(($ac_try" in
28411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412   *) ac_try_echo=$ac_try;;
28413 esac
28414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28415 $as_echo "$ac_try_echo") >&5
28416   (eval "$ac_try") 2>&5
28417   ac_status=$?
28418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419   (exit $ac_status); }; }; then
28420   ac_cv_func_memcmp_working=yes
28421 else
28422   $as_echo "$as_me: program exited with status $ac_status" >&5
28423 $as_echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28425
28426 ( exit $ac_status )
28427 ac_cv_func_memcmp_working=no
28428 fi
28429 rm -rf conftest.dSYM
28430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28431 fi
28432
28433
28434 fi
28435 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28436 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28437 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28438   *" memcmp.$ac_objext "* ) ;;
28439   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28440  ;;
28441 esac
28442
28443
28444
28445
28446 # Select semaphore implementation type.
28447 if test "$PORTNAME" != "win32"; then
28448   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28449
28450 cat >>confdefs.h <<\_ACEOF
28451 #define USE_NAMED_POSIX_SEMAPHORES 1
28452 _ACEOF
28453
28454     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28455   else
28456     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28457
28458 cat >>confdefs.h <<\_ACEOF
28459 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28460 _ACEOF
28461
28462       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28463     else
28464
28465 cat >>confdefs.h <<\_ACEOF
28466 #define USE_SYSV_SEMAPHORES 1
28467 _ACEOF
28468
28469       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28470     fi
28471   fi
28472 else
28473
28474 cat >>confdefs.h <<\_ACEOF
28475 #define USE_WIN32_SEMAPHORES 1
28476 _ACEOF
28477
28478   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28479 fi
28480
28481
28482 # Select shared-memory implementation type.
28483 if test "$PORTNAME" != "win32"; then
28484
28485 cat >>confdefs.h <<\_ACEOF
28486 #define USE_SYSV_SHARED_MEMORY 1
28487 _ACEOF
28488
28489   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28490 else
28491
28492 cat >>confdefs.h <<\_ACEOF
28493 #define USE_WIN32_SHARED_MEMORY 1
28494 _ACEOF
28495
28496   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28497 fi
28498
28499 # Select latch implementation type.
28500 if test "$PORTNAME" != "win32"; then
28501   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28502 else
28503   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28504 fi
28505
28506 # If not set in template file, set bytes to use libc memset()
28507 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28508   MEMSET_LOOP_LIMIT=1024
28509 fi
28510
28511 cat >>confdefs.h <<_ACEOF
28512 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28513 _ACEOF
28514
28515
28516
28517 if test "$enable_nls" = yes ; then
28518
28519   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28520 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28521 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28522   $as_echo_n "(cached) " >&6
28523 else
28524   ac_func_search_save_LIBS=$LIBS
28525 cat >conftest.$ac_ext <<_ACEOF
28526 /* confdefs.h.  */
28527 _ACEOF
28528 cat confdefs.h >>conftest.$ac_ext
28529 cat >>conftest.$ac_ext <<_ACEOF
28530 /* end confdefs.h.  */
28531
28532 /* Override any GCC internal prototype to avoid an error.
28533    Use char because int might match the return type of a GCC
28534    builtin and then its argument prototype would still apply.  */
28535 #ifdef __cplusplus
28536 extern "C"
28537 #endif
28538 char bind_textdomain_codeset ();
28539 int
28540 main ()
28541 {
28542 return bind_textdomain_codeset ();
28543   ;
28544   return 0;
28545 }
28546 _ACEOF
28547 for ac_lib in '' intl; do
28548   if test -z "$ac_lib"; then
28549     ac_res="none required"
28550   else
28551     ac_res=-l$ac_lib
28552     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28553   fi
28554   rm -f conftest.$ac_objext conftest$ac_exeext
28555 if { (ac_try="$ac_link"
28556 case "(($ac_try" in
28557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28558   *) ac_try_echo=$ac_try;;
28559 esac
28560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28561 $as_echo "$ac_try_echo") >&5
28562   (eval "$ac_link") 2>conftest.er1
28563   ac_status=$?
28564   grep -v '^ *+' conftest.er1 >conftest.err
28565   rm -f conftest.er1
28566   cat conftest.err >&5
28567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568   (exit $ac_status); } && {
28569          test -z "$ac_c_werror_flag" ||
28570          test ! -s conftest.err
28571        } && test -s conftest$ac_exeext && {
28572          test "$cross_compiling" = yes ||
28573          $as_test_x conftest$ac_exeext
28574        }; then
28575   ac_cv_search_bind_textdomain_codeset=$ac_res
28576 else
28577   $as_echo "$as_me: failed program was:" >&5
28578 sed 's/^/| /' conftest.$ac_ext >&5
28579
28580
28581 fi
28582
28583 rm -rf conftest.dSYM
28584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28585       conftest$ac_exeext
28586   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28587   break
28588 fi
28589 done
28590 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28591   :
28592 else
28593   ac_cv_search_bind_textdomain_codeset=no
28594 fi
28595 rm conftest.$ac_ext
28596 LIBS=$ac_func_search_save_LIBS
28597 fi
28598 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28599 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28600 ac_res=$ac_cv_search_bind_textdomain_codeset
28601 if test "$ac_res" != no; then
28602   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28603
28604 else
28605   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28606 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28607    { (exit 1); exit 1; }; }
28608 fi
28609
28610   if test "${ac_cv_header_libintl_h+set}" = set; then
28611   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28612 $as_echo_n "checking for libintl.h... " >&6; }
28613 if test "${ac_cv_header_libintl_h+set}" = set; then
28614   $as_echo_n "(cached) " >&6
28615 fi
28616 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28617 $as_echo "$ac_cv_header_libintl_h" >&6; }
28618 else
28619   # Is the header compilable?
28620 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28621 $as_echo_n "checking libintl.h usability... " >&6; }
28622 cat >conftest.$ac_ext <<_ACEOF
28623 /* confdefs.h.  */
28624 _ACEOF
28625 cat confdefs.h >>conftest.$ac_ext
28626 cat >>conftest.$ac_ext <<_ACEOF
28627 /* end confdefs.h.  */
28628 $ac_includes_default
28629 #include <libintl.h>
28630 _ACEOF
28631 rm -f conftest.$ac_objext
28632 if { (ac_try="$ac_compile"
28633 case "(($ac_try" in
28634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28635   *) ac_try_echo=$ac_try;;
28636 esac
28637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28638 $as_echo "$ac_try_echo") >&5
28639   (eval "$ac_compile") 2>conftest.er1
28640   ac_status=$?
28641   grep -v '^ *+' conftest.er1 >conftest.err
28642   rm -f conftest.er1
28643   cat conftest.err >&5
28644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645   (exit $ac_status); } && {
28646          test -z "$ac_c_werror_flag" ||
28647          test ! -s conftest.err
28648        } && test -s conftest.$ac_objext; then
28649   ac_header_compiler=yes
28650 else
28651   $as_echo "$as_me: failed program was:" >&5
28652 sed 's/^/| /' conftest.$ac_ext >&5
28653
28654         ac_header_compiler=no
28655 fi
28656
28657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28659 $as_echo "$ac_header_compiler" >&6; }
28660
28661 # Is the header present?
28662 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28663 $as_echo_n "checking libintl.h presence... " >&6; }
28664 cat >conftest.$ac_ext <<_ACEOF
28665 /* confdefs.h.  */
28666 _ACEOF
28667 cat confdefs.h >>conftest.$ac_ext
28668 cat >>conftest.$ac_ext <<_ACEOF
28669 /* end confdefs.h.  */
28670 #include <libintl.h>
28671 _ACEOF
28672 if { (ac_try="$ac_cpp conftest.$ac_ext"
28673 case "(($ac_try" in
28674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675   *) ac_try_echo=$ac_try;;
28676 esac
28677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28678 $as_echo "$ac_try_echo") >&5
28679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28680   ac_status=$?
28681   grep -v '^ *+' conftest.er1 >conftest.err
28682   rm -f conftest.er1
28683   cat conftest.err >&5
28684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685   (exit $ac_status); } >/dev/null && {
28686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28687          test ! -s conftest.err
28688        }; then
28689   ac_header_preproc=yes
28690 else
28691   $as_echo "$as_me: failed program was:" >&5
28692 sed 's/^/| /' conftest.$ac_ext >&5
28693
28694   ac_header_preproc=no
28695 fi
28696
28697 rm -f conftest.err conftest.$ac_ext
28698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28699 $as_echo "$ac_header_preproc" >&6; }
28700
28701 # So?  What about this header?
28702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28703   yes:no: )
28704     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28705 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28706     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28707 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28708     ac_header_preproc=yes
28709     ;;
28710   no:yes:* )
28711     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28712 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28713     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28714 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28715     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28716 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28717     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28718 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28719     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28720 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28721     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28722 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28723     ( cat <<\_ASBOX
28724 ## ---------------------------------------- ##
28725 ## Report this to pgsql-bugs@postgresql.org ##
28726 ## ---------------------------------------- ##
28727 _ASBOX
28728      ) | sed "s/^/$as_me: WARNING:     /" >&2
28729     ;;
28730 esac
28731 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28732 $as_echo_n "checking for libintl.h... " >&6; }
28733 if test "${ac_cv_header_libintl_h+set}" = set; then
28734   $as_echo_n "(cached) " >&6
28735 else
28736   ac_cv_header_libintl_h=$ac_header_preproc
28737 fi
28738 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28739 $as_echo "$ac_cv_header_libintl_h" >&6; }
28740
28741 fi
28742 if test "x$ac_cv_header_libintl_h" = x""yes; then
28743   :
28744 else
28745   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28746 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28747    { (exit 1); exit 1; }; }
28748 fi
28749
28750
28751   for ac_prog in msgfmt
28752 do
28753   # Extract the first word of "$ac_prog", so it can be a program name with args.
28754 set dummy $ac_prog; ac_word=$2
28755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28756 $as_echo_n "checking for $ac_word... " >&6; }
28757 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28758   $as_echo_n "(cached) " >&6
28759 else
28760   if test -n "$MSGFMT"; then
28761   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28762 else
28763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28764 for as_dir in $PATH
28765 do
28766   IFS=$as_save_IFS
28767   test -z "$as_dir" && as_dir=.
28768   for ac_exec_ext in '' $ac_executable_extensions; do
28769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28770     ac_cv_prog_MSGFMT="$ac_prog"
28771     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28772     break 2
28773   fi
28774 done
28775 done
28776 IFS=$as_save_IFS
28777
28778 fi
28779 fi
28780 MSGFMT=$ac_cv_prog_MSGFMT
28781 if test -n "$MSGFMT"; then
28782   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28783 $as_echo "$MSGFMT" >&6; }
28784 else
28785   { $as_echo "$as_me:$LINENO: result: no" >&5
28786 $as_echo "no" >&6; }
28787 fi
28788
28789
28790   test -n "$MSGFMT" && break
28791 done
28792
28793   if test -z "$MSGFMT"; then
28794     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28795 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28796    { (exit 1); exit 1; }; }
28797   fi
28798   for ac_prog in msgmerge
28799 do
28800   # Extract the first word of "$ac_prog", so it can be a program name with args.
28801 set dummy $ac_prog; ac_word=$2
28802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28803 $as_echo_n "checking for $ac_word... " >&6; }
28804 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28805   $as_echo_n "(cached) " >&6
28806 else
28807   if test -n "$MSGMERGE"; then
28808   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28809 else
28810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28811 for as_dir in $PATH
28812 do
28813   IFS=$as_save_IFS
28814   test -z "$as_dir" && as_dir=.
28815   for ac_exec_ext in '' $ac_executable_extensions; do
28816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28817     ac_cv_prog_MSGMERGE="$ac_prog"
28818     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28819     break 2
28820   fi
28821 done
28822 done
28823 IFS=$as_save_IFS
28824
28825 fi
28826 fi
28827 MSGMERGE=$ac_cv_prog_MSGMERGE
28828 if test -n "$MSGMERGE"; then
28829   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28830 $as_echo "$MSGMERGE" >&6; }
28831 else
28832   { $as_echo "$as_me:$LINENO: result: no" >&5
28833 $as_echo "no" >&6; }
28834 fi
28835
28836
28837   test -n "$MSGMERGE" && break
28838 done
28839
28840   for ac_prog in xgettext
28841 do
28842   # Extract the first word of "$ac_prog", so it can be a program name with args.
28843 set dummy $ac_prog; ac_word=$2
28844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28845 $as_echo_n "checking for $ac_word... " >&6; }
28846 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28847   $as_echo_n "(cached) " >&6
28848 else
28849   if test -n "$XGETTEXT"; then
28850   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28851 else
28852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28853 for as_dir in $PATH
28854 do
28855   IFS=$as_save_IFS
28856   test -z "$as_dir" && as_dir=.
28857   for ac_exec_ext in '' $ac_executable_extensions; do
28858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28859     ac_cv_prog_XGETTEXT="$ac_prog"
28860     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28861     break 2
28862   fi
28863 done
28864 done
28865 IFS=$as_save_IFS
28866
28867 fi
28868 fi
28869 XGETTEXT=$ac_cv_prog_XGETTEXT
28870 if test -n "$XGETTEXT"; then
28871   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28872 $as_echo "$XGETTEXT" >&6; }
28873 else
28874   { $as_echo "$as_me:$LINENO: result: no" >&5
28875 $as_echo "no" >&6; }
28876 fi
28877
28878
28879   test -n "$XGETTEXT" && break
28880 done
28881
28882
28883 fi
28884
28885 # Check for Tcl configuration script tclConfig.sh
28886 if test "$with_tcl" = yes; then
28887     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28888 do
28889   # Extract the first word of "$ac_prog", so it can be a program name with args.
28890 set dummy $ac_prog; ac_word=$2
28891 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28892 $as_echo_n "checking for $ac_word... " >&6; }
28893 if test "${ac_cv_path_TCLSH+set}" = set; then
28894   $as_echo_n "(cached) " >&6
28895 else
28896   case $TCLSH in
28897   [\\/]* | ?:[\\/]*)
28898   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28899   ;;
28900   *)
28901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28902 for as_dir in $PATH
28903 do
28904   IFS=$as_save_IFS
28905   test -z "$as_dir" && as_dir=.
28906   for ac_exec_ext in '' $ac_executable_extensions; do
28907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28908     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28909     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28910     break 2
28911   fi
28912 done
28913 done
28914 IFS=$as_save_IFS
28915
28916   ;;
28917 esac
28918 fi
28919 TCLSH=$ac_cv_path_TCLSH
28920 if test -n "$TCLSH"; then
28921   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28922 $as_echo "$TCLSH" >&6; }
28923 else
28924   { $as_echo "$as_me:$LINENO: result: no" >&5
28925 $as_echo "no" >&6; }
28926 fi
28927
28928
28929   test -n "$TCLSH" && break
28930 done
28931
28932 if test x"$TCLSH" = x""; then
28933   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28934 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28935    { (exit 1); exit 1; }; }
28936 fi
28937
28938 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28939 $as_echo_n "checking for tclConfig.sh... " >&6; }
28940 # Let user override test
28941 if test -z "$TCL_CONFIG_SH"; then
28942     pgac_test_dirs="$with_tclconfig"
28943
28944     set X $pgac_test_dirs; shift
28945     if test $# -eq 0; then
28946         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28947 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28948    { (exit 1); exit 1; }; }
28949         set X `echo 'puts $auto_path' | $TCLSH`; shift
28950     fi
28951
28952     for pgac_dir do
28953         if test -r "$pgac_dir/tclConfig.sh"; then
28954             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28955             break
28956         fi
28957     done
28958 fi
28959
28960 if test -z "$TCL_CONFIG_SH"; then
28961     { $as_echo "$as_me:$LINENO: result: no" >&5
28962 $as_echo "no" >&6; }
28963     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28964 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28965    { (exit 1); exit 1; }; }
28966 else
28967     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28968 $as_echo "$TCL_CONFIG_SH" >&6; }
28969 fi
28970
28971
28972
28973     . "$TCL_CONFIG_SH"
28974 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28975 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28976 eval TCL_LIBS=\"$TCL_LIBS\"
28977 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28978 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28979
28980         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28981     ac_save_CPPFLAGS=$CPPFLAGS
28982     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28983     if test "${ac_cv_header_tcl_h+set}" = set; then
28984   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28985 $as_echo_n "checking for tcl.h... " >&6; }
28986 if test "${ac_cv_header_tcl_h+set}" = set; then
28987   $as_echo_n "(cached) " >&6
28988 fi
28989 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28990 $as_echo "$ac_cv_header_tcl_h" >&6; }
28991 else
28992   # Is the header compilable?
28993 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28994 $as_echo_n "checking tcl.h usability... " >&6; }
28995 cat >conftest.$ac_ext <<_ACEOF
28996 /* confdefs.h.  */
28997 _ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h.  */
29001 $ac_includes_default
29002 #include <tcl.h>
29003 _ACEOF
29004 rm -f conftest.$ac_objext
29005 if { (ac_try="$ac_compile"
29006 case "(($ac_try" in
29007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008   *) ac_try_echo=$ac_try;;
29009 esac
29010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29011 $as_echo "$ac_try_echo") >&5
29012   (eval "$ac_compile") 2>conftest.er1
29013   ac_status=$?
29014   grep -v '^ *+' conftest.er1 >conftest.err
29015   rm -f conftest.er1
29016   cat conftest.err >&5
29017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); } && {
29019          test -z "$ac_c_werror_flag" ||
29020          test ! -s conftest.err
29021        } && test -s conftest.$ac_objext; then
29022   ac_header_compiler=yes
29023 else
29024   $as_echo "$as_me: failed program was:" >&5
29025 sed 's/^/| /' conftest.$ac_ext >&5
29026
29027         ac_header_compiler=no
29028 fi
29029
29030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29031 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29032 $as_echo "$ac_header_compiler" >&6; }
29033
29034 # Is the header present?
29035 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29036 $as_echo_n "checking tcl.h presence... " >&6; }
29037 cat >conftest.$ac_ext <<_ACEOF
29038 /* confdefs.h.  */
29039 _ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h.  */
29043 #include <tcl.h>
29044 _ACEOF
29045 if { (ac_try="$ac_cpp conftest.$ac_ext"
29046 case "(($ac_try" in
29047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29048   *) ac_try_echo=$ac_try;;
29049 esac
29050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29051 $as_echo "$ac_try_echo") >&5
29052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29053   ac_status=$?
29054   grep -v '^ *+' conftest.er1 >conftest.err
29055   rm -f conftest.er1
29056   cat conftest.err >&5
29057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); } >/dev/null && {
29059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29060          test ! -s conftest.err
29061        }; then
29062   ac_header_preproc=yes
29063 else
29064   $as_echo "$as_me: failed program was:" >&5
29065 sed 's/^/| /' conftest.$ac_ext >&5
29066
29067   ac_header_preproc=no
29068 fi
29069
29070 rm -f conftest.err conftest.$ac_ext
29071 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29072 $as_echo "$ac_header_preproc" >&6; }
29073
29074 # So?  What about this header?
29075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29076   yes:no: )
29077     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29078 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29079     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29080 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29081     ac_header_preproc=yes
29082     ;;
29083   no:yes:* )
29084     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29085 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29086     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
29087 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
29088     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29089 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29090     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
29091 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29092     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29093 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29094     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29095 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29096     ( cat <<\_ASBOX
29097 ## ---------------------------------------- ##
29098 ## Report this to pgsql-bugs@postgresql.org ##
29099 ## ---------------------------------------- ##
29100 _ASBOX
29101      ) | sed "s/^/$as_me: WARNING:     /" >&2
29102     ;;
29103 esac
29104 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29105 $as_echo_n "checking for tcl.h... " >&6; }
29106 if test "${ac_cv_header_tcl_h+set}" = set; then
29107   $as_echo_n "(cached) " >&6
29108 else
29109   ac_cv_header_tcl_h=$ac_header_preproc
29110 fi
29111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29112 $as_echo "$ac_cv_header_tcl_h" >&6; }
29113
29114 fi
29115 if test "x$ac_cv_header_tcl_h" = x""yes; then
29116   :
29117 else
29118   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29119 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29120    { (exit 1); exit 1; }; }
29121 fi
29122
29123
29124     CPPFLAGS=$ac_save_CPPFLAGS
29125 fi
29126
29127 # check for <Python.h>
29128 if test "$with_python" = yes; then
29129   ac_save_CPPFLAGS=$CPPFLAGS
29130   CPPFLAGS="$python_includespec $CPPFLAGS"
29131   if test "${ac_cv_header_Python_h+set}" = set; then
29132   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29133 $as_echo_n "checking for Python.h... " >&6; }
29134 if test "${ac_cv_header_Python_h+set}" = set; then
29135   $as_echo_n "(cached) " >&6
29136 fi
29137 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29138 $as_echo "$ac_cv_header_Python_h" >&6; }
29139 else
29140   # Is the header compilable?
29141 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29142 $as_echo_n "checking Python.h usability... " >&6; }
29143 cat >conftest.$ac_ext <<_ACEOF
29144 /* confdefs.h.  */
29145 _ACEOF
29146 cat confdefs.h >>conftest.$ac_ext
29147 cat >>conftest.$ac_ext <<_ACEOF
29148 /* end confdefs.h.  */
29149 $ac_includes_default
29150 #include <Python.h>
29151 _ACEOF
29152 rm -f conftest.$ac_objext
29153 if { (ac_try="$ac_compile"
29154 case "(($ac_try" in
29155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29156   *) ac_try_echo=$ac_try;;
29157 esac
29158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29159 $as_echo "$ac_try_echo") >&5
29160   (eval "$ac_compile") 2>conftest.er1
29161   ac_status=$?
29162   grep -v '^ *+' conftest.er1 >conftest.err
29163   rm -f conftest.er1
29164   cat conftest.err >&5
29165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166   (exit $ac_status); } && {
29167          test -z "$ac_c_werror_flag" ||
29168          test ! -s conftest.err
29169        } && test -s conftest.$ac_objext; then
29170   ac_header_compiler=yes
29171 else
29172   $as_echo "$as_me: failed program was:" >&5
29173 sed 's/^/| /' conftest.$ac_ext >&5
29174
29175         ac_header_compiler=no
29176 fi
29177
29178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29179 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29180 $as_echo "$ac_header_compiler" >&6; }
29181
29182 # Is the header present?
29183 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29184 $as_echo_n "checking Python.h presence... " >&6; }
29185 cat >conftest.$ac_ext <<_ACEOF
29186 /* confdefs.h.  */
29187 _ACEOF
29188 cat confdefs.h >>conftest.$ac_ext
29189 cat >>conftest.$ac_ext <<_ACEOF
29190 /* end confdefs.h.  */
29191 #include <Python.h>
29192 _ACEOF
29193 if { (ac_try="$ac_cpp conftest.$ac_ext"
29194 case "(($ac_try" in
29195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29196   *) ac_try_echo=$ac_try;;
29197 esac
29198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29199 $as_echo "$ac_try_echo") >&5
29200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29201   ac_status=$?
29202   grep -v '^ *+' conftest.er1 >conftest.err
29203   rm -f conftest.er1
29204   cat conftest.err >&5
29205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206   (exit $ac_status); } >/dev/null && {
29207          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29208          test ! -s conftest.err
29209        }; then
29210   ac_header_preproc=yes
29211 else
29212   $as_echo "$as_me: failed program was:" >&5
29213 sed 's/^/| /' conftest.$ac_ext >&5
29214
29215   ac_header_preproc=no
29216 fi
29217
29218 rm -f conftest.err conftest.$ac_ext
29219 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29220 $as_echo "$ac_header_preproc" >&6; }
29221
29222 # So?  What about this header?
29223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29224   yes:no: )
29225     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29226 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29227     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29228 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29229     ac_header_preproc=yes
29230     ;;
29231   no:yes:* )
29232     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29233 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29234     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29235 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29236     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29237 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29238     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29239 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29240     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29241 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29242     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29243 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29244     ( cat <<\_ASBOX
29245 ## ---------------------------------------- ##
29246 ## Report this to pgsql-bugs@postgresql.org ##
29247 ## ---------------------------------------- ##
29248 _ASBOX
29249      ) | sed "s/^/$as_me: WARNING:     /" >&2
29250     ;;
29251 esac
29252 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29253 $as_echo_n "checking for Python.h... " >&6; }
29254 if test "${ac_cv_header_Python_h+set}" = set; then
29255   $as_echo_n "(cached) " >&6
29256 else
29257   ac_cv_header_Python_h=$ac_header_preproc
29258 fi
29259 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29260 $as_echo "$ac_cv_header_Python_h" >&6; }
29261
29262 fi
29263 if test "x$ac_cv_header_Python_h" = x""yes; then
29264   :
29265 else
29266   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29267 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29268    { (exit 1); exit 1; }; }
29269 fi
29270
29271
29272   CPPFLAGS=$ac_save_CPPFLAGS
29273 fi
29274
29275 #
29276 # Check for DocBook and tools
29277 #
29278 for ac_prog in onsgmls nsgmls
29279 do
29280   # Extract the first word of "$ac_prog", so it can be a program name with args.
29281 set dummy $ac_prog; ac_word=$2
29282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29283 $as_echo_n "checking for $ac_word... " >&6; }
29284 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29285   $as_echo_n "(cached) " >&6
29286 else
29287   if test -n "$NSGMLS"; then
29288   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29289 else
29290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29291 for as_dir in $PATH
29292 do
29293   IFS=$as_save_IFS
29294   test -z "$as_dir" && as_dir=.
29295   for ac_exec_ext in '' $ac_executable_extensions; do
29296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29297     ac_cv_prog_NSGMLS="$ac_prog"
29298     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29299     break 2
29300   fi
29301 done
29302 done
29303 IFS=$as_save_IFS
29304
29305 fi
29306 fi
29307 NSGMLS=$ac_cv_prog_NSGMLS
29308 if test -n "$NSGMLS"; then
29309   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29310 $as_echo "$NSGMLS" >&6; }
29311 else
29312   { $as_echo "$as_me:$LINENO: result: no" >&5
29313 $as_echo "no" >&6; }
29314 fi
29315
29316
29317   test -n "$NSGMLS" && break
29318 done
29319
29320 for ac_prog in openjade jade
29321 do
29322   # Extract the first word of "$ac_prog", so it can be a program name with args.
29323 set dummy $ac_prog; ac_word=$2
29324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29325 $as_echo_n "checking for $ac_word... " >&6; }
29326 if test "${ac_cv_prog_JADE+set}" = set; then
29327   $as_echo_n "(cached) " >&6
29328 else
29329   if test -n "$JADE"; then
29330   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29331 else
29332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29333 for as_dir in $PATH
29334 do
29335   IFS=$as_save_IFS
29336   test -z "$as_dir" && as_dir=.
29337   for ac_exec_ext in '' $ac_executable_extensions; do
29338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29339     ac_cv_prog_JADE="$ac_prog"
29340     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29341     break 2
29342   fi
29343 done
29344 done
29345 IFS=$as_save_IFS
29346
29347 fi
29348 fi
29349 JADE=$ac_cv_prog_JADE
29350 if test -n "$JADE"; then
29351   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29352 $as_echo "$JADE" >&6; }
29353 else
29354   { $as_echo "$as_me:$LINENO: result: no" >&5
29355 $as_echo "no" >&6; }
29356 fi
29357
29358
29359   test -n "$JADE" && break
29360 done
29361
29362
29363 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29364 $as_echo_n "checking for DocBook V4.2... " >&6; }
29365 if test "${pgac_cv_check_docbook+set}" = set; then
29366   $as_echo_n "(cached) " >&6
29367 else
29368   cat >conftest.sgml <<EOF
29369 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29370 <book>
29371  <title>test</title>
29372  <chapter>
29373   <title>random</title>
29374    <sect1>
29375     <title>testsect</title>
29376     <para>text</para>
29377   </sect1>
29378  </chapter>
29379 </book>
29380 EOF
29381
29382 pgac_cv_check_docbook=no
29383
29384 if test -n "$NSGMLS"; then
29385   $NSGMLS -s conftest.sgml 1>&5 2>&1
29386   if test $? -eq 0; then
29387     pgac_cv_check_docbook=yes
29388   fi
29389 fi
29390 rm -f conftest.sgml
29391 fi
29392 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29393 $as_echo "$pgac_cv_check_docbook" >&6; }
29394
29395 have_docbook=$pgac_cv_check_docbook
29396
29397
29398 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29399 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29400 if test "${pgac_cv_path_stylesheets+set}" = set; then
29401   $as_echo_n "(cached) " >&6
29402 else
29403   if test -n "$DOCBOOKSTYLE"; then
29404   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29405 else
29406   for pgac_prefix in /usr /usr/local /opt /sw; do
29407     for pgac_infix in share lib; do
29408       for pgac_postfix in \
29409         sgml/stylesheets/nwalsh-modular \
29410         sgml/stylesheets/docbook \
29411         sgml/stylesheets/dsssl/docbook \
29412         sgml/docbook-dsssl \
29413         sgml/docbook/dsssl/modular \
29414         sgml/docbook/stylesheet/dsssl/modular \
29415         sgml/docbook/dsssl-stylesheets \
29416         sgml/dsssl/docbook-dsssl-nwalsh
29417       do
29418         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29419         if test -r "$pgac_candidate/html/docbook.dsl" \
29420            && test -r "$pgac_candidate/print/docbook.dsl"
29421         then
29422           pgac_cv_path_stylesheets=$pgac_candidate
29423           break 3
29424         fi
29425       done
29426     done
29427   done
29428 fi
29429 fi
29430
29431 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29432
29433 if test -n "$DOCBOOKSTYLE"; then
29434   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29435 $as_echo "$DOCBOOKSTYLE" >&6; }
29436 else
29437   { $as_echo "$as_me:$LINENO: result: no" >&5
29438 $as_echo "no" >&6; }
29439 fi
29440 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29441   COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29442
29443 else
29444   # Extract the first word of "collateindex.pl", so it can be a program name with args.
29445 set dummy collateindex.pl; ac_word=$2
29446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29447 $as_echo_n "checking for $ac_word... " >&6; }
29448 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29449   $as_echo_n "(cached) " >&6
29450 else
29451   case $COLLATEINDEX in
29452   [\\/]* | ?:[\\/]*)
29453   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29454   ;;
29455   *)
29456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29457 for as_dir in $PATH
29458 do
29459   IFS=$as_save_IFS
29460   test -z "$as_dir" && as_dir=.
29461   for ac_exec_ext in '' $ac_executable_extensions; do
29462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29463     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29464     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29465     break 2
29466   fi
29467 done
29468 done
29469 IFS=$as_save_IFS
29470
29471   ;;
29472 esac
29473 fi
29474 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29475 if test -n "$COLLATEINDEX"; then
29476   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29477 $as_echo "$COLLATEINDEX" >&6; }
29478 else
29479   { $as_echo "$as_me:$LINENO: result: no" >&5
29480 $as_echo "no" >&6; }
29481 fi
29482
29483
29484 fi
29485 for ac_prog in xsltproc
29486 do
29487   # Extract the first word of "$ac_prog", so it can be a program name with args.
29488 set dummy $ac_prog; ac_word=$2
29489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29490 $as_echo_n "checking for $ac_word... " >&6; }
29491 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29492   $as_echo_n "(cached) " >&6
29493 else
29494   if test -n "$XSLTPROC"; then
29495   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29496 else
29497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29498 for as_dir in $PATH
29499 do
29500   IFS=$as_save_IFS
29501   test -z "$as_dir" && as_dir=.
29502   for ac_exec_ext in '' $ac_executable_extensions; do
29503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29504     ac_cv_prog_XSLTPROC="$ac_prog"
29505     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29506     break 2
29507   fi
29508 done
29509 done
29510 IFS=$as_save_IFS
29511
29512 fi
29513 fi
29514 XSLTPROC=$ac_cv_prog_XSLTPROC
29515 if test -n "$XSLTPROC"; then
29516   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29517 $as_echo "$XSLTPROC" >&6; }
29518 else
29519   { $as_echo "$as_me:$LINENO: result: no" >&5
29520 $as_echo "no" >&6; }
29521 fi
29522
29523
29524   test -n "$XSLTPROC" && break
29525 done
29526
29527 for ac_prog in osx sgml2xml sx
29528 do
29529   # Extract the first word of "$ac_prog", so it can be a program name with args.
29530 set dummy $ac_prog; ac_word=$2
29531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29532 $as_echo_n "checking for $ac_word... " >&6; }
29533 if test "${ac_cv_prog_OSX+set}" = set; then
29534   $as_echo_n "(cached) " >&6
29535 else
29536   if test -n "$OSX"; then
29537   ac_cv_prog_OSX="$OSX" # Let the user override the test.
29538 else
29539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29540 for as_dir in $PATH
29541 do
29542   IFS=$as_save_IFS
29543   test -z "$as_dir" && as_dir=.
29544   for ac_exec_ext in '' $ac_executable_extensions; do
29545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29546     ac_cv_prog_OSX="$ac_prog"
29547     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29548     break 2
29549   fi
29550 done
29551 done
29552 IFS=$as_save_IFS
29553
29554 fi
29555 fi
29556 OSX=$ac_cv_prog_OSX
29557 if test -n "$OSX"; then
29558   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29559 $as_echo "$OSX" >&6; }
29560 else
29561   { $as_echo "$as_me:$LINENO: result: no" >&5
29562 $as_echo "no" >&6; }
29563 fi
29564
29565
29566   test -n "$OSX" && break
29567 done
29568
29569
29570 # Thread testing
29571
29572 # We have to run the thread test near the end so we have all our symbols
29573 # defined.  Cross compiling throws a warning.
29574 #
29575 if test "$enable_thread_safety" = yes; then
29576 if test "$PORTNAME" != "win32"
29577 then
29578 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29579 $as_echo_n "checking thread safety of required library functions... " >&6; }
29580
29581 _CFLAGS="$CFLAGS"
29582 _LIBS="$LIBS"
29583 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29584 LIBS="$LIBS $PTHREAD_LIBS"
29585 if test "$cross_compiling" = yes; then
29586   { $as_echo "$as_me:$LINENO: result: maybe" >&5
29587 $as_echo "maybe" >&6; }
29588   { $as_echo "$as_me:$LINENO: WARNING:
29589 *** Skipping thread test program because of cross-compile build.
29590 *** Run the program in src/test/thread on the target machine.
29591 " >&5
29592 $as_echo "$as_me: WARNING:
29593 *** Skipping thread test program because of cross-compile build.
29594 *** Run the program in src/test/thread on the target machine.
29595 " >&2;}
29596 else
29597   cat >conftest.$ac_ext <<_ACEOF
29598 /* confdefs.h.  */
29599 _ACEOF
29600 cat confdefs.h >>conftest.$ac_ext
29601 cat >>conftest.$ac_ext <<_ACEOF
29602 /* end confdefs.h.  */
29603 #include "$srcdir/src/test/thread/thread_test.c"
29604 _ACEOF
29605 rm -f conftest$ac_exeext
29606 if { (ac_try="$ac_link"
29607 case "(($ac_try" in
29608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609   *) ac_try_echo=$ac_try;;
29610 esac
29611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29612 $as_echo "$ac_try_echo") >&5
29613   (eval "$ac_link") 2>&5
29614   ac_status=$?
29615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29617   { (case "(($ac_try" in
29618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619   *) ac_try_echo=$ac_try;;
29620 esac
29621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29622 $as_echo "$ac_try_echo") >&5
29623   (eval "$ac_try") 2>&5
29624   ac_status=$?
29625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); }; }; then
29627   { $as_echo "$as_me:$LINENO: result: yes" >&5
29628 $as_echo "yes" >&6; }
29629 else
29630   $as_echo "$as_me: program exited with status $ac_status" >&5
29631 $as_echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29633
29634 ( exit $ac_status )
29635 { $as_echo "$as_me:$LINENO: result: no" >&5
29636 $as_echo "no" >&6; }
29637   { { $as_echo "$as_me:$LINENO: error: thread test program failed
29638 This platform is not thread-safe.  Check the file 'config.log' or compile
29639 and run src/test/thread/thread_test for the exact reason.
29640 Use --disable-thread-safety to disable thread safety." >&5
29641 $as_echo "$as_me: error: thread test program failed
29642 This platform is not thread-safe.  Check the file 'config.log' or compile
29643 and run src/test/thread/thread_test for the exact reason.
29644 Use --disable-thread-safety to disable thread safety." >&2;}
29645    { (exit 1); exit 1; }; }
29646 fi
29647 rm -rf conftest.dSYM
29648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29649 fi
29650
29651
29652 CFLAGS="$_CFLAGS"
29653 LIBS="$_LIBS"
29654 else
29655 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29656 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29657 fi
29658 fi
29659
29660 # If compiler will take -Wl,--as-needed (or various platform-specific
29661 # spellings thereof) then add that to LDFLAGS.  This is much easier than
29662 # trying to filter LIBS to the minimum for each executable.
29663 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29664 # libreadline; therefore we postpone testing it until we know what library
29665 # dependencies readline has.  The test code will try to link with $LIBS.
29666 if test "$with_readline" = yes; then
29667   link_test_func=readline
29668 else
29669   link_test_func=exit
29670 fi
29671
29672 if test "$PORTNAME" = "darwin"; then
29673   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29674 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29675 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29676   $as_echo_n "(cached) " >&6
29677 else
29678   pgac_save_LDFLAGS=$LDFLAGS
29679 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29680 if test "$cross_compiling" = yes; then
29681   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29682 else
29683   cat >conftest.$ac_ext <<_ACEOF
29684 /* confdefs.h.  */
29685 _ACEOF
29686 cat confdefs.h >>conftest.$ac_ext
29687 cat >>conftest.$ac_ext <<_ACEOF
29688 /* end confdefs.h.  */
29689 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29690 int
29691 main ()
29692 {
29693
29694   ;
29695   return 0;
29696 }
29697 _ACEOF
29698 rm -f conftest$ac_exeext
29699 if { (ac_try="$ac_link"
29700 case "(($ac_try" in
29701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702   *) ac_try_echo=$ac_try;;
29703 esac
29704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29705 $as_echo "$ac_try_echo") >&5
29706   (eval "$ac_link") 2>&5
29707   ac_status=$?
29708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29710   { (case "(($ac_try" in
29711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29712   *) ac_try_echo=$ac_try;;
29713 esac
29714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29715 $as_echo "$ac_try_echo") >&5
29716   (eval "$ac_try") 2>&5
29717   ac_status=$?
29718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719   (exit $ac_status); }; }; then
29720   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29721 else
29722   $as_echo "$as_me: program exited with status $ac_status" >&5
29723 $as_echo "$as_me: failed program was:" >&5
29724 sed 's/^/| /' conftest.$ac_ext >&5
29725
29726 ( exit $ac_status )
29727 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29728 fi
29729 rm -rf conftest.dSYM
29730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29731 fi
29732
29733
29734 LDFLAGS="$pgac_save_LDFLAGS"
29735 fi
29736 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29737 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29738 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29739   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29740 fi
29741
29742 elif test "$PORTNAME" = "openbsd"; then
29743   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29744 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29745 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29746   $as_echo_n "(cached) " >&6
29747 else
29748   pgac_save_LDFLAGS=$LDFLAGS
29749 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29750 if test "$cross_compiling" = yes; then
29751   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29752 else
29753   cat >conftest.$ac_ext <<_ACEOF
29754 /* confdefs.h.  */
29755 _ACEOF
29756 cat confdefs.h >>conftest.$ac_ext
29757 cat >>conftest.$ac_ext <<_ACEOF
29758 /* end confdefs.h.  */
29759 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29760 int
29761 main ()
29762 {
29763
29764   ;
29765   return 0;
29766 }
29767 _ACEOF
29768 rm -f conftest$ac_exeext
29769 if { (ac_try="$ac_link"
29770 case "(($ac_try" in
29771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29772   *) ac_try_echo=$ac_try;;
29773 esac
29774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29775 $as_echo "$ac_try_echo") >&5
29776   (eval "$ac_link") 2>&5
29777   ac_status=$?
29778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29780   { (case "(($ac_try" in
29781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782   *) ac_try_echo=$ac_try;;
29783 esac
29784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29785 $as_echo "$ac_try_echo") >&5
29786   (eval "$ac_try") 2>&5
29787   ac_status=$?
29788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789   (exit $ac_status); }; }; then
29790   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29791 else
29792   $as_echo "$as_me: program exited with status $ac_status" >&5
29793 $as_echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29795
29796 ( exit $ac_status )
29797 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29798 fi
29799 rm -rf conftest.dSYM
29800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29801 fi
29802
29803
29804 LDFLAGS="$pgac_save_LDFLAGS"
29805 fi
29806 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29807 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29808 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29809   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29810 fi
29811
29812 else
29813   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29814 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29815 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29816   $as_echo_n "(cached) " >&6
29817 else
29818   pgac_save_LDFLAGS=$LDFLAGS
29819 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29820 if test "$cross_compiling" = yes; then
29821   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29822 else
29823   cat >conftest.$ac_ext <<_ACEOF
29824 /* confdefs.h.  */
29825 _ACEOF
29826 cat confdefs.h >>conftest.$ac_ext
29827 cat >>conftest.$ac_ext <<_ACEOF
29828 /* end confdefs.h.  */
29829 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29830 int
29831 main ()
29832 {
29833
29834   ;
29835   return 0;
29836 }
29837 _ACEOF
29838 rm -f conftest$ac_exeext
29839 if { (ac_try="$ac_link"
29840 case "(($ac_try" in
29841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842   *) ac_try_echo=$ac_try;;
29843 esac
29844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29845 $as_echo "$ac_try_echo") >&5
29846   (eval "$ac_link") 2>&5
29847   ac_status=$?
29848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29850   { (case "(($ac_try" in
29851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29852   *) ac_try_echo=$ac_try;;
29853 esac
29854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29855 $as_echo "$ac_try_echo") >&5
29856   (eval "$ac_try") 2>&5
29857   ac_status=$?
29858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); }; }; then
29860   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29861 else
29862   $as_echo "$as_me: program exited with status $ac_status" >&5
29863 $as_echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29865
29866 ( exit $ac_status )
29867 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29868 fi
29869 rm -rf conftest.dSYM
29870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29871 fi
29872
29873
29874 LDFLAGS="$pgac_save_LDFLAGS"
29875 fi
29876 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29877 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29878 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29879   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29880 fi
29881
29882 fi
29883
29884 # Create compiler version string
29885 if test x"$GCC" = x"yes" ; then
29886   cc_string=`${CC} --version | sed q`
29887   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29888 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29889   cc_string=`${CC} -V 2>&1 | sed q`
29890 else
29891   cc_string=$CC
29892 fi
29893
29894
29895 cat >>confdefs.h <<_ACEOF
29896 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29897 _ACEOF
29898
29899
29900 # Supply a numeric version string for use by 3rd party add-ons
29901 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29902 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29903 tr '.' '        ' |
29904 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29905
29906 cat >>confdefs.h <<_ACEOF
29907 #define PG_VERSION_NUM $PG_VERSION_NUM
29908 _ACEOF
29909
29910
29911
29912 # Begin output steps
29913
29914 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29915 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29916 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29917 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29918 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29919 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29920 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29921 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29922
29923 # prepare build tree if outside source tree
29924 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29925 # Note 2: /bin/pwd might be better than shell's built-in at getting
29926 #         a symlink-free name.
29927 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29928   vpath_build=no
29929 else
29930   vpath_build=yes
29931   if test "$no_create" != yes; then
29932     $as_echo_n "preparing build tree... " >&6
29933     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29934     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29935       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29936 $as_echo "$as_me: error: failed" >&2;}
29937    { (exit 1); exit 1; }; }
29938     { $as_echo "$as_me:$LINENO: result: done" >&5
29939 $as_echo "done" >&6; }
29940   fi
29941 fi
29942
29943
29944
29945 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29946
29947
29948 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}"
29949
29950
29951 if test "$PORTNAME" = "win32"; then
29952 ac_config_commands="$ac_config_commands check_win32_symlinks"
29953
29954 fi
29955
29956 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29957
29958
29959 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
29960
29961
29962 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29963
29964
29965 cat >confcache <<\_ACEOF
29966 # This file is a shell script that caches the results of configure
29967 # tests run on this system so they can be shared between configure
29968 # scripts and configure runs, see configure's option --config-cache.
29969 # It is not useful on other systems.  If it contains results you don't
29970 # want to keep, you may remove or edit it.
29971 #
29972 # config.status only pays attention to the cache file if you give it
29973 # the --recheck option to rerun configure.
29974 #
29975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29977 # following values.
29978
29979 _ACEOF
29980
29981 # The following way of writing the cache mishandles newlines in values,
29982 # but we know of no workaround that is simple, portable, and efficient.
29983 # So, we kill variables containing newlines.
29984 # Ultrix sh set writes to stderr and can't be redirected directly,
29985 # and sets the high bit in the cache file unless we assign to the vars.
29986 (
29987   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29988     eval ac_val=\$$ac_var
29989     case $ac_val in #(
29990     *${as_nl}*)
29991       case $ac_var in #(
29992       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29994       esac
29995       case $ac_var in #(
29996       _ | IFS | as_nl) ;; #(
29997       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29998       *) $as_unset $ac_var ;;
29999       esac ;;
30000     esac
30001   done
30002
30003   (set) 2>&1 |
30004     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30005     *${as_nl}ac_space=\ *)
30006       # `set' does not quote correctly, so add quotes (double-quote
30007       # substitution turns \\\\ into \\, and sed turns \\ into \).
30008       sed -n \
30009         "s/'/'\\\\''/g;
30010           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30011       ;; #(
30012     *)
30013       # `set' quotes correctly as required by POSIX, so do not add quotes.
30014       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30015       ;;
30016     esac |
30017     sort
30018 ) |
30019   sed '
30020      /^ac_cv_env_/b end
30021      t clear
30022      :clear
30023      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30024      t end
30025      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30026      :end' >>confcache
30027 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30028   if test -w "$cache_file"; then
30029     test "x$cache_file" != "x/dev/null" &&
30030       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30031 $as_echo "$as_me: updating cache $cache_file" >&6;}
30032     cat confcache >$cache_file
30033   else
30034     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30036   fi
30037 fi
30038 rm -f confcache
30039
30040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30041 # Let make expand exec_prefix.
30042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30043
30044 DEFS=-DHAVE_CONFIG_H
30045
30046 ac_libobjs=
30047 ac_ltlibobjs=
30048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30049   # 1. Remove the extension, and $U if already installed.
30050   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30051   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30052   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30053   #    will be set to the directory where LIBOBJS objects are built.
30054   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30055   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30056 done
30057 LIBOBJS=$ac_libobjs
30058
30059 LTLIBOBJS=$ac_ltlibobjs
30060
30061
30062
30063
30064 : ${CONFIG_STATUS=./config.status}
30065 ac_write_fail=0
30066 ac_clean_files_save=$ac_clean_files
30067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30068 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30070 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30071 #! $SHELL
30072 # Generated by $as_me.
30073 # Run this file to recreate the current configuration.
30074 # Compiler output produced by configure, useful for debugging
30075 # configure, is in config.log if it exists.
30076
30077 debug=false
30078 ac_cs_recheck=false
30079 ac_cs_silent=false
30080 SHELL=\${CONFIG_SHELL-$SHELL}
30081 _ACEOF
30082
30083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30084 ## --------------------- ##
30085 ## M4sh Initialization.  ##
30086 ## --------------------- ##
30087
30088 # Be more Bourne compatible
30089 DUALCASE=1; export DUALCASE # for MKS sh
30090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30091   emulate sh
30092   NULLCMD=:
30093   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30094   # is contrary to our usage.  Disable this feature.
30095   alias -g '${1+"$@"}'='"$@"'
30096   setopt NO_GLOB_SUBST
30097 else
30098   case `(set -o) 2>/dev/null` in
30099   *posix*) set -o posix ;;
30100 esac
30101
30102 fi
30103
30104
30105
30106
30107 # PATH needs CR
30108 # Avoid depending upon Character Ranges.
30109 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30110 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30111 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30112 as_cr_digits='0123456789'
30113 as_cr_alnum=$as_cr_Letters$as_cr_digits
30114
30115 as_nl='
30116 '
30117 export as_nl
30118 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30119 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30120 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30122 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30123   as_echo='printf %s\n'
30124   as_echo_n='printf %s'
30125 else
30126   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30127     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30128     as_echo_n='/usr/ucb/echo -n'
30129   else
30130     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30131     as_echo_n_body='eval
30132       arg=$1;
30133       case $arg in
30134       *"$as_nl"*)
30135         expr "X$arg" : "X\\(.*\\)$as_nl";
30136         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30137       esac;
30138       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30139     '
30140     export as_echo_n_body
30141     as_echo_n='sh -c $as_echo_n_body as_echo'
30142   fi
30143   export as_echo_body
30144   as_echo='sh -c $as_echo_body as_echo'
30145 fi
30146
30147 # The user is always right.
30148 if test "${PATH_SEPARATOR+set}" != set; then
30149   PATH_SEPARATOR=:
30150   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30151     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30152       PATH_SEPARATOR=';'
30153   }
30154 fi
30155
30156 # Support unset when possible.
30157 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30158   as_unset=unset
30159 else
30160   as_unset=false
30161 fi
30162
30163
30164 # IFS
30165 # We need space, tab and new line, in precisely that order.  Quoting is
30166 # there to prevent editors from complaining about space-tab.
30167 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30168 # splitting by setting IFS to empty value.)
30169 IFS=" ""        $as_nl"
30170
30171 # Find who we are.  Look in the path if we contain no directory separator.
30172 case $0 in
30173   *[\\/]* ) as_myself=$0 ;;
30174   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30175 for as_dir in $PATH
30176 do
30177   IFS=$as_save_IFS
30178   test -z "$as_dir" && as_dir=.
30179   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30180 done
30181 IFS=$as_save_IFS
30182
30183      ;;
30184 esac
30185 # We did not find ourselves, most probably we were run as `sh COMMAND'
30186 # in which case we are not to be found in the path.
30187 if test "x$as_myself" = x; then
30188   as_myself=$0
30189 fi
30190 if test ! -f "$as_myself"; then
30191   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30192   { (exit 1); exit 1; }
30193 fi
30194
30195 # Work around bugs in pre-3.0 UWIN ksh.
30196 for as_var in ENV MAIL MAILPATH
30197 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30198 done
30199 PS1='$ '
30200 PS2='> '
30201 PS4='+ '
30202
30203 # NLS nuisances.
30204 LC_ALL=C
30205 export LC_ALL
30206 LANGUAGE=C
30207 export LANGUAGE
30208
30209 # Required to use basename.
30210 if expr a : '\(a\)' >/dev/null 2>&1 &&
30211    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30212   as_expr=expr
30213 else
30214   as_expr=false
30215 fi
30216
30217 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30218   as_basename=basename
30219 else
30220   as_basename=false
30221 fi
30222
30223
30224 # Name of the executable.
30225 as_me=`$as_basename -- "$0" ||
30226 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30227          X"$0" : 'X\(//\)$' \| \
30228          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30229 $as_echo X/"$0" |
30230     sed '/^.*\/\([^/][^/]*\)\/*$/{
30231             s//\1/
30232             q
30233           }
30234           /^X\/\(\/\/\)$/{
30235             s//\1/
30236             q
30237           }
30238           /^X\/\(\/\).*/{
30239             s//\1/
30240             q
30241           }
30242           s/.*/./; q'`
30243
30244 # CDPATH.
30245 $as_unset CDPATH
30246
30247
30248
30249   as_lineno_1=$LINENO
30250   as_lineno_2=$LINENO
30251   test "x$as_lineno_1" != "x$as_lineno_2" &&
30252   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30253
30254   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30255   # uniformly replaced by the line number.  The first 'sed' inserts a
30256   # line-number line after each line using $LINENO; the second 'sed'
30257   # does the real work.  The second script uses 'N' to pair each
30258   # line-number line with the line containing $LINENO, and appends
30259   # trailing '-' during substitution so that $LINENO is not a special
30260   # case at line end.
30261   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30262   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30263   # E. McMahon (1931-1989) for sed's syntax.  :-)
30264   sed -n '
30265     p
30266     /[$]LINENO/=
30267   ' <$as_myself |
30268     sed '
30269       s/[$]LINENO.*/&-/
30270       t lineno
30271       b
30272       :lineno
30273       N
30274       :loop
30275       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30276       t loop
30277       s/-\n.*//
30278     ' >$as_me.lineno &&
30279   chmod +x "$as_me.lineno" ||
30280     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30281    { (exit 1); exit 1; }; }
30282
30283   # Don't try to exec as it changes $[0], causing all sort of problems
30284   # (the dirname of $[0] is not the place where we might find the
30285   # original and so on.  Autoconf is especially sensitive to this).
30286   . "./$as_me.lineno"
30287   # Exit status is that of the last command.
30288   exit
30289 }
30290
30291
30292 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30293   as_dirname=dirname
30294 else
30295   as_dirname=false
30296 fi
30297
30298 ECHO_C= ECHO_N= ECHO_T=
30299 case `echo -n x` in
30300 -n*)
30301   case `echo 'x\c'` in
30302   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30303   *)   ECHO_C='\c';;
30304   esac;;
30305 *)
30306   ECHO_N='-n';;
30307 esac
30308 if expr a : '\(a\)' >/dev/null 2>&1 &&
30309    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30310   as_expr=expr
30311 else
30312   as_expr=false
30313 fi
30314
30315 rm -f conf$$ conf$$.exe conf$$.file
30316 if test -d conf$$.dir; then
30317   rm -f conf$$.dir/conf$$.file
30318 else
30319   rm -f conf$$.dir
30320   mkdir conf$$.dir 2>/dev/null
30321 fi
30322 if (echo >conf$$.file) 2>/dev/null; then
30323   if ln -s conf$$.file conf$$ 2>/dev/null; then
30324     as_ln_s='ln -s'
30325     # ... but there are two gotchas:
30326     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30327     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30328     # In both cases, we have to default to `cp -p'.
30329     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30330       as_ln_s='cp -p'
30331   elif ln conf$$.file conf$$ 2>/dev/null; then
30332     as_ln_s=ln
30333   else
30334     as_ln_s='cp -p'
30335   fi
30336 else
30337   as_ln_s='cp -p'
30338 fi
30339 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30340 rmdir conf$$.dir 2>/dev/null
30341
30342 if mkdir -p . 2>/dev/null; then
30343   as_mkdir_p=:
30344 else
30345   test -d ./-p && rmdir ./-p
30346   as_mkdir_p=false
30347 fi
30348
30349 if test -x / >/dev/null 2>&1; then
30350   as_test_x='test -x'
30351 else
30352   if ls -dL / >/dev/null 2>&1; then
30353     as_ls_L_option=L
30354   else
30355     as_ls_L_option=
30356   fi
30357   as_test_x='
30358     eval sh -c '\''
30359       if test -d "$1"; then
30360         test -d "$1/.";
30361       else
30362         case $1 in
30363         -*)set "./$1";;
30364         esac;
30365         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30366         ???[sx]*):;;*)false;;esac;fi
30367     '\'' sh
30368   '
30369 fi
30370 as_executable_p=$as_test_x
30371
30372 # Sed expression to map a string onto a valid CPP name.
30373 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30374
30375 # Sed expression to map a string onto a valid variable name.
30376 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30377
30378
30379 exec 6>&1
30380
30381 # Save the log message, to keep $[0] and so on meaningful, and to
30382 # report actual input values of CONFIG_FILES etc. instead of their
30383 # values after options handling.
30384 ac_log="
30385 This file was extended by PostgreSQL $as_me 9.3devel, which was
30386 generated by GNU Autoconf 2.63.  Invocation command line was
30387
30388   CONFIG_FILES    = $CONFIG_FILES
30389   CONFIG_HEADERS  = $CONFIG_HEADERS
30390   CONFIG_LINKS    = $CONFIG_LINKS
30391   CONFIG_COMMANDS = $CONFIG_COMMANDS
30392   $ $0 $@
30393
30394 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30395 "
30396
30397 _ACEOF
30398
30399 case $ac_config_files in *"
30400 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30401 esac
30402
30403 case $ac_config_headers in *"
30404 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30405 esac
30406
30407
30408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30409 # Files that config.status was made for.
30410 config_files="$ac_config_files"
30411 config_headers="$ac_config_headers"
30412 config_links="$ac_config_links"
30413 config_commands="$ac_config_commands"
30414
30415 _ACEOF
30416
30417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30418 ac_cs_usage="\
30419 \`$as_me' instantiates files from templates according to the
30420 current configuration.
30421
30422 Usage: $0 [OPTION]... [FILE]...
30423
30424   -h, --help       print this help, then exit
30425   -V, --version    print version number and configuration settings, then exit
30426   -q, --quiet, --silent
30427                    do not print progress messages
30428   -d, --debug      don't remove temporary files
30429       --recheck    update $as_me by reconfiguring in the same conditions
30430       --file=FILE[:TEMPLATE]
30431                    instantiate the configuration file FILE
30432       --header=FILE[:TEMPLATE]
30433                    instantiate the configuration header FILE
30434
30435 Configuration files:
30436 $config_files
30437
30438 Configuration headers:
30439 $config_headers
30440
30441 Configuration links:
30442 $config_links
30443
30444 Configuration commands:
30445 $config_commands
30446
30447 Report bugs to <bug-autoconf@gnu.org>."
30448
30449 _ACEOF
30450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30451 ac_cs_version="\\
30452 PostgreSQL config.status 9.3devel
30453 configured by $0, generated by GNU Autoconf 2.63,
30454   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30455
30456 Copyright (C) 2008 Free Software Foundation, Inc.
30457 This config.status script is free software; the Free Software Foundation
30458 gives unlimited permission to copy, distribute and modify it."
30459
30460 ac_pwd='$ac_pwd'
30461 srcdir='$srcdir'
30462 INSTALL='$INSTALL'
30463 MKDIR_P='$MKDIR_P'
30464 AWK='$AWK'
30465 test -n "\$AWK" || AWK=awk
30466 _ACEOF
30467
30468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30469 # The default lists apply if the user does not specify any file.
30470 ac_need_defaults=:
30471 while test $# != 0
30472 do
30473   case $1 in
30474   --*=*)
30475     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30476     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30477     ac_shift=:
30478     ;;
30479   *)
30480     ac_option=$1
30481     ac_optarg=$2
30482     ac_shift=shift
30483     ;;
30484   esac
30485
30486   case $ac_option in
30487   # Handling of the options.
30488   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30489     ac_cs_recheck=: ;;
30490   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30491     $as_echo "$ac_cs_version"; exit ;;
30492   --debug | --debu | --deb | --de | --d | -d )
30493     debug=: ;;
30494   --file | --fil | --fi | --f )
30495     $ac_shift
30496     case $ac_optarg in
30497     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30498     esac
30499     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30500     ac_need_defaults=false;;
30501   --header | --heade | --head | --hea )
30502     $ac_shift
30503     case $ac_optarg in
30504     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30505     esac
30506     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30507     ac_need_defaults=false;;
30508   --he | --h)
30509     # Conflict between --help and --header
30510     { $as_echo "$as_me: error: ambiguous option: $1
30511 Try \`$0 --help' for more information." >&2
30512    { (exit 1); exit 1; }; };;
30513   --help | --hel | -h )
30514     $as_echo "$ac_cs_usage"; exit ;;
30515   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30516   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30517     ac_cs_silent=: ;;
30518
30519   # This is an error.
30520   -*) { $as_echo "$as_me: error: unrecognized option: $1
30521 Try \`$0 --help' for more information." >&2
30522    { (exit 1); exit 1; }; } ;;
30523
30524   *) ac_config_targets="$ac_config_targets $1"
30525      ac_need_defaults=false ;;
30526
30527   esac
30528   shift
30529 done
30530
30531 ac_configure_extra_args=
30532
30533 if $ac_cs_silent; then
30534   exec 6>/dev/null
30535   ac_configure_extra_args="$ac_configure_extra_args --silent"
30536 fi
30537
30538 _ACEOF
30539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30540 if \$ac_cs_recheck; then
30541   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30542   shift
30543   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30544   CONFIG_SHELL='$SHELL'
30545   export CONFIG_SHELL
30546   exec "\$@"
30547 fi
30548
30549 _ACEOF
30550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30551 exec 5>>config.log
30552 {
30553   echo
30554   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30555 ## Running $as_me. ##
30556 _ASBOX
30557   $as_echo "$ac_log"
30558 } >&5
30559
30560 _ACEOF
30561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30562 _ACEOF
30563
30564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30565
30566 # Handling of arguments.
30567 for ac_config_target in $ac_config_targets
30568 do
30569   case $ac_config_target in
30570     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30571     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30572     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30573     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30574     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30575     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30576     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30577     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30578     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30579     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30580     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30581     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30582     "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
30583     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30584
30585   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30586 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30587    { (exit 1); exit 1; }; };;
30588   esac
30589 done
30590
30591
30592 # If the user did not use the arguments to specify the items to instantiate,
30593 # then the envvar interface is used.  Set only those that are not.
30594 # We use the long form for the default assignment because of an extremely
30595 # bizarre bug on SunOS 4.1.3.
30596 if $ac_need_defaults; then
30597   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30598   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30599   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30600   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30601 fi
30602
30603 # Have a temporary directory for convenience.  Make it in the build tree
30604 # simply because there is no reason against having it here, and in addition,
30605 # creating and moving files from /tmp can sometimes cause problems.
30606 # Hook for its removal unless debugging.
30607 # Note that there is a small window in which the directory will not be cleaned:
30608 # after its creation but before its name has been assigned to `$tmp'.
30609 $debug ||
30610 {
30611   tmp=
30612   trap 'exit_status=$?
30613   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30614 ' 0
30615   trap '{ (exit 1); exit 1; }' 1 2 13 15
30616 }
30617 # Create a (secure) tmp directory for tmp files.
30618
30619 {
30620   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30621   test -n "$tmp" && test -d "$tmp"
30622 }  ||
30623 {
30624   tmp=./conf$$-$RANDOM
30625   (umask 077 && mkdir "$tmp")
30626 } ||
30627 {
30628    $as_echo "$as_me: cannot create a temporary directory in ." >&2
30629    { (exit 1); exit 1; }
30630 }
30631
30632 # Set up the scripts for CONFIG_FILES section.
30633 # No need to generate them if there are no CONFIG_FILES.
30634 # This happens for instance with `./config.status config.h'.
30635 if test -n "$CONFIG_FILES"; then
30636
30637
30638 ac_cr='\r'
30639 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30640 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30641   ac_cs_awk_cr='\\r'
30642 else
30643   ac_cs_awk_cr=$ac_cr
30644 fi
30645
30646 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30647 _ACEOF
30648
30649
30650 {
30651   echo "cat >conf$$subs.awk <<_ACEOF" &&
30652   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30653   echo "_ACEOF"
30654 } >conf$$subs.sh ||
30655   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30656 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30657    { (exit 1); exit 1; }; }
30658 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30659 ac_delim='%!_!# '
30660 for ac_last_try in false false false false false :; do
30661   . ./conf$$subs.sh ||
30662     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30663 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30664    { (exit 1); exit 1; }; }
30665
30666   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30667   if test $ac_delim_n = $ac_delim_num; then
30668     break
30669   elif $ac_last_try; then
30670     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30671 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30672    { (exit 1); exit 1; }; }
30673   else
30674     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30675   fi
30676 done
30677 rm -f conf$$subs.sh
30678
30679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30680 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30681 _ACEOF
30682 sed -n '
30683 h
30684 s/^/S["/; s/!.*/"]=/
30685 p
30686 g
30687 s/^[^!]*!//
30688 :repl
30689 t repl
30690 s/'"$ac_delim"'$//
30691 t delim
30692 :nl
30693 h
30694 s/\(.\{148\}\).*/\1/
30695 t more1
30696 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30697 p
30698 n
30699 b repl
30700 :more1
30701 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30702 p
30703 g
30704 s/.\{148\}//
30705 t nl
30706 :delim
30707 h
30708 s/\(.\{148\}\).*/\1/
30709 t more2
30710 s/["\\]/\\&/g; s/^/"/; s/$/"/
30711 p
30712 b
30713 :more2
30714 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30715 p
30716 g
30717 s/.\{148\}//
30718 t delim
30719 ' <conf$$subs.awk | sed '
30720 /^[^""]/{
30721   N
30722   s/\n//
30723 }
30724 ' >>$CONFIG_STATUS || ac_write_fail=1
30725 rm -f conf$$subs.awk
30726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30727 _ACAWK
30728 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30729   for (key in S) S_is_set[key] = 1
30730   FS = "\a"
30731
30732 }
30733 {
30734   line = $ 0
30735   nfields = split(line, field, "@")
30736   substed = 0
30737   len = length(field[1])
30738   for (i = 2; i < nfields; i++) {
30739     key = field[i]
30740     keylen = length(key)
30741     if (S_is_set[key]) {
30742       value = S[key]
30743       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30744       len += length(value) + length(field[++i])
30745       substed = 1
30746     } else
30747       len += 1 + keylen
30748   }
30749
30750   print line
30751 }
30752
30753 _ACAWK
30754 _ACEOF
30755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30756 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30757   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30758 else
30759   cat
30760 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30761   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30762 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30763    { (exit 1); exit 1; }; }
30764 _ACEOF
30765
30766 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30767 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30768 # trailing colons and then remove the whole line if VPATH becomes empty
30769 # (actually we leave an empty line to preserve line numbers).
30770 if test "x$srcdir" = x.; then
30771   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30772 s/:*\$(srcdir):*/:/
30773 s/:*\${srcdir}:*/:/
30774 s/:*@srcdir@:*/:/
30775 s/^\([^=]*=[     ]*\):*/\1/
30776 s/:*$//
30777 s/^[^=]*=[       ]*$//
30778 }'
30779 fi
30780
30781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30782 fi # test -n "$CONFIG_FILES"
30783
30784 # Set up the scripts for CONFIG_HEADERS section.
30785 # No need to generate them if there are no CONFIG_HEADERS.
30786 # This happens for instance with `./config.status Makefile'.
30787 if test -n "$CONFIG_HEADERS"; then
30788 cat >"$tmp/defines.awk" <<\_ACAWK ||
30789 BEGIN {
30790 _ACEOF
30791
30792 # Transform confdefs.h into an awk script `defines.awk', embedded as
30793 # here-document in config.status, that substitutes the proper values into
30794 # config.h.in to produce config.h.
30795
30796 # Create a delimiter string that does not exist in confdefs.h, to ease
30797 # handling of long lines.
30798 ac_delim='%!_!# '
30799 for ac_last_try in false false :; do
30800   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30801   if test -z "$ac_t"; then
30802     break
30803   elif $ac_last_try; then
30804     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30805 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30806    { (exit 1); exit 1; }; }
30807   else
30808     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30809   fi
30810 done
30811
30812 # For the awk script, D is an array of macro values keyed by name,
30813 # likewise P contains macro parameters if any.  Preserve backslash
30814 # newline sequences.
30815
30816 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30817 sed -n '
30818 s/.\{148\}/&'"$ac_delim"'/g
30819 t rset
30820 :rset
30821 s/^[     ]*#[    ]*define[       ][      ]*/ /
30822 t def
30823 d
30824 :def
30825 s/\\$//
30826 t bsnl
30827 s/["\\]/\\&/g
30828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30829 D["\1"]=" \3"/p
30830 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30831 d
30832 :bsnl
30833 s/["\\]/\\&/g
30834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30835 D["\1"]=" \3\\\\\\n"\\/p
30836 t cont
30837 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30838 t cont
30839 d
30840 :cont
30841 n
30842 s/.\{148\}/&'"$ac_delim"'/g
30843 t clear
30844 :clear
30845 s/\\$//
30846 t bsnlc
30847 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30848 d
30849 :bsnlc
30850 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30851 b cont
30852 ' <confdefs.h | sed '
30853 s/'"$ac_delim"'/"\\\
30854 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30855
30856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30857   for (key in D) D_is_set[key] = 1
30858   FS = "\a"
30859 }
30860 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30861   line = \$ 0
30862   split(line, arg, " ")
30863   if (arg[1] == "#") {
30864     defundef = arg[2]
30865     mac1 = arg[3]
30866   } else {
30867     defundef = substr(arg[1], 2)
30868     mac1 = arg[2]
30869   }
30870   split(mac1, mac2, "(") #)
30871   macro = mac2[1]
30872   prefix = substr(line, 1, index(line, defundef) - 1)
30873   if (D_is_set[macro]) {
30874     # Preserve the white space surrounding the "#".
30875     print prefix "define", macro P[macro] D[macro]
30876     next
30877   } else {
30878     # Replace #undef with comments.  This is necessary, for example,
30879     # in the case of _POSIX_SOURCE, which is predefined and required
30880     # on some systems where configure will not decide to define it.
30881     if (defundef == "undef") {
30882       print "/*", prefix defundef, macro, "*/"
30883       next
30884     }
30885   }
30886 }
30887 { print }
30888 _ACAWK
30889 _ACEOF
30890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30891   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30892 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30893    { (exit 1); exit 1; }; }
30894 fi # test -n "$CONFIG_HEADERS"
30895
30896
30897 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30898 shift
30899 for ac_tag
30900 do
30901   case $ac_tag in
30902   :[FHLC]) ac_mode=$ac_tag; continue;;
30903   esac
30904   case $ac_mode$ac_tag in
30905   :[FHL]*:*);;
30906   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30907 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30908    { (exit 1); exit 1; }; };;
30909   :[FH]-) ac_tag=-:-;;
30910   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30911   esac
30912   ac_save_IFS=$IFS
30913   IFS=:
30914   set x $ac_tag
30915   IFS=$ac_save_IFS
30916   shift
30917   ac_file=$1
30918   shift
30919
30920   case $ac_mode in
30921   :L) ac_source=$1;;
30922   :[FH])
30923     ac_file_inputs=
30924     for ac_f
30925     do
30926       case $ac_f in
30927       -) ac_f="$tmp/stdin";;
30928       *) # Look for the file first in the build tree, then in the source tree
30929          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30930          # because $ac_f cannot contain `:'.
30931          test -f "$ac_f" ||
30932            case $ac_f in
30933            [\\/$]*) false;;
30934            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30935            esac ||
30936            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30937 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30938    { (exit 1); exit 1; }; };;
30939       esac
30940       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30941       ac_file_inputs="$ac_file_inputs '$ac_f'"
30942     done
30943
30944     # Let's still pretend it is `configure' which instantiates (i.e., don't
30945     # use $as_me), people would be surprised to read:
30946     #    /* config.h.  Generated by config.status.  */
30947     configure_input='Generated from '`
30948           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30949         `' by configure.'
30950     if test x"$ac_file" != x-; then
30951       configure_input="$ac_file.  $configure_input"
30952       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30953 $as_echo "$as_me: creating $ac_file" >&6;}
30954     fi
30955     # Neutralize special characters interpreted by sed in replacement strings.
30956     case $configure_input in #(
30957     *\&* | *\|* | *\\* )
30958        ac_sed_conf_input=`$as_echo "$configure_input" |
30959        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30960     *) ac_sed_conf_input=$configure_input;;
30961     esac
30962
30963     case $ac_tag in
30964     *:-:* | *:-) cat >"$tmp/stdin" \
30965       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30966 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30967    { (exit 1); exit 1; }; } ;;
30968     esac
30969     ;;
30970   esac
30971
30972   ac_dir=`$as_dirname -- "$ac_file" ||
30973 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30974          X"$ac_file" : 'X\(//\)[^/]' \| \
30975          X"$ac_file" : 'X\(//\)$' \| \
30976          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30977 $as_echo X"$ac_file" |
30978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30979             s//\1/
30980             q
30981           }
30982           /^X\(\/\/\)[^/].*/{
30983             s//\1/
30984             q
30985           }
30986           /^X\(\/\/\)$/{
30987             s//\1/
30988             q
30989           }
30990           /^X\(\/\).*/{
30991             s//\1/
30992             q
30993           }
30994           s/.*/./; q'`
30995   { as_dir="$ac_dir"
30996   case $as_dir in #(
30997   -*) as_dir=./$as_dir;;
30998   esac
30999   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31000     as_dirs=
31001     while :; do
31002       case $as_dir in #(
31003       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31004       *) as_qdir=$as_dir;;
31005       esac
31006       as_dirs="'$as_qdir' $as_dirs"
31007       as_dir=`$as_dirname -- "$as_dir" ||
31008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31009          X"$as_dir" : 'X\(//\)[^/]' \| \
31010          X"$as_dir" : 'X\(//\)$' \| \
31011          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31012 $as_echo X"$as_dir" |
31013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31014             s//\1/
31015             q
31016           }
31017           /^X\(\/\/\)[^/].*/{
31018             s//\1/
31019             q
31020           }
31021           /^X\(\/\/\)$/{
31022             s//\1/
31023             q
31024           }
31025           /^X\(\/\).*/{
31026             s//\1/
31027             q
31028           }
31029           s/.*/./; q'`
31030       test -d "$as_dir" && break
31031     done
31032     test -z "$as_dirs" || eval "mkdir $as_dirs"
31033   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31034 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31035    { (exit 1); exit 1; }; }; }
31036   ac_builddir=.
31037
31038 case "$ac_dir" in
31039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31040 *)
31041   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31042   # A ".." for each directory in $ac_dir_suffix.
31043   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31044   case $ac_top_builddir_sub in
31045   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31046   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31047   esac ;;
31048 esac
31049 ac_abs_top_builddir=$ac_pwd
31050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31051 # for backward compatibility:
31052 ac_top_builddir=$ac_top_build_prefix
31053
31054 case $srcdir in
31055   .)  # We are building in place.
31056     ac_srcdir=.
31057     ac_top_srcdir=$ac_top_builddir_sub
31058     ac_abs_top_srcdir=$ac_pwd ;;
31059   [\\/]* | ?:[\\/]* )  # Absolute name.
31060     ac_srcdir=$srcdir$ac_dir_suffix;
31061     ac_top_srcdir=$srcdir
31062     ac_abs_top_srcdir=$srcdir ;;
31063   *) # Relative name.
31064     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31065     ac_top_srcdir=$ac_top_build_prefix$srcdir
31066     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31067 esac
31068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31069
31070
31071   case $ac_mode in
31072   :F)
31073   #
31074   # CONFIG_FILE
31075   #
31076
31077   case $INSTALL in
31078   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31079   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31080   esac
31081   ac_MKDIR_P=$MKDIR_P
31082   case $MKDIR_P in
31083   [\\/$]* | ?:[\\/]* ) ;;
31084   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31085   esac
31086 _ACEOF
31087
31088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31089 # If the template does not know about datarootdir, expand it.
31090 # FIXME: This hack should be removed a few years after 2.60.
31091 ac_datarootdir_hack=; ac_datarootdir_seen=
31092
31093 ac_sed_dataroot='
31094 /datarootdir/ {
31095   p
31096   q
31097 }
31098 /@datadir@/p
31099 /@docdir@/p
31100 /@infodir@/p
31101 /@localedir@/p
31102 /@mandir@/p
31103 '
31104 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31105 *datarootdir*) ac_datarootdir_seen=yes;;
31106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31107   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31108 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31109 _ACEOF
31110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31111   ac_datarootdir_hack='
31112   s&@datadir@&$datadir&g
31113   s&@docdir@&$docdir&g
31114   s&@infodir@&$infodir&g
31115   s&@localedir@&$localedir&g
31116   s&@mandir@&$mandir&g
31117     s&\\\${datarootdir}&$datarootdir&g' ;;
31118 esac
31119 _ACEOF
31120
31121 # Neutralize VPATH when `$srcdir' = `.'.
31122 # Shell code in configure.ac might set extrasub.
31123 # FIXME: do we really want to maintain this feature?
31124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31125 ac_sed_extra="$ac_vpsub
31126 $extrasub
31127 _ACEOF
31128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31129 :t
31130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31131 s|@configure_input@|$ac_sed_conf_input|;t t
31132 s&@top_builddir@&$ac_top_builddir_sub&;t t
31133 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31134 s&@srcdir@&$ac_srcdir&;t t
31135 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31136 s&@top_srcdir@&$ac_top_srcdir&;t t
31137 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31138 s&@builddir@&$ac_builddir&;t t
31139 s&@abs_builddir@&$ac_abs_builddir&;t t
31140 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31141 s&@INSTALL@&$ac_INSTALL&;t t
31142 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31143 $ac_datarootdir_hack
31144 "
31145 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31146   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31147 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31148    { (exit 1); exit 1; }; }
31149
31150 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31151   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31152   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31153   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31154 which seems to be undefined.  Please make sure it is defined." >&5
31155 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31156 which seems to be undefined.  Please make sure it is defined." >&2;}
31157
31158   rm -f "$tmp/stdin"
31159   case $ac_file in
31160   -) cat "$tmp/out" && rm -f "$tmp/out";;
31161   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31162   esac \
31163   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31164 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31165    { (exit 1); exit 1; }; }
31166  ;;
31167   :H)
31168   #
31169   # CONFIG_HEADER
31170   #
31171   if test x"$ac_file" != x-; then
31172     {
31173       $as_echo "/* $configure_input  */" \
31174       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31175     } >"$tmp/config.h" \
31176       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31177 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31178    { (exit 1); exit 1; }; }
31179     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31180       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31181 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31182     else
31183       rm -f "$ac_file"
31184       mv "$tmp/config.h" "$ac_file" \
31185         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31186 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31187    { (exit 1); exit 1; }; }
31188     fi
31189   else
31190     $as_echo "/* $configure_input  */" \
31191       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31192       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31193 $as_echo "$as_me: error: could not create -" >&2;}
31194    { (exit 1); exit 1; }; }
31195   fi
31196  ;;
31197   :L)
31198   #
31199   # CONFIG_LINK
31200   #
31201
31202   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31203     :
31204   else
31205     # Prefer the file from the source tree if names are identical.
31206     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31207       ac_source=$srcdir/$ac_source
31208     fi
31209
31210     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31211 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31212
31213     if test ! -r "$ac_source"; then
31214       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31215 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31216    { (exit 1); exit 1; }; }
31217     fi
31218     rm -f "$ac_file"
31219
31220     # Try a relative symlink, then a hard link, then a copy.
31221     case $srcdir in
31222     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31223         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31224     esac
31225     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31226       ln "$ac_source" "$ac_file" 2>/dev/null ||
31227       cp -p "$ac_source" "$ac_file" ||
31228       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31229 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31230    { (exit 1); exit 1; }; }
31231   fi
31232  ;;
31233   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31234 $as_echo "$as_me: executing $ac_file commands" >&6;}
31235  ;;
31236   esac
31237
31238
31239   case $ac_file$ac_mode in
31240     "check_win32_symlinks":C)
31241 # Links sometimes fail undetected on Mingw -
31242 # so here we detect it and warn the user
31243 for FILE in $CONFIG_LINKS
31244  do
31245         # test -e works for symlinks in the MinGW console
31246         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31247 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31248  done
31249  ;;
31250     "src/include/pg_config.h":H)
31251 # Update timestamp for pg_config.h (see Makefile.global)
31252 echo >src/include/stamp-h
31253  ;;
31254     "src/include/pg_config_ext.h":H)
31255 # Update timestamp for pg_config_ext.h (see Makefile.global)
31256 echo >src/include/stamp-ext-h
31257  ;;
31258     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31259
31260   esac
31261 done # for ac_tag
31262
31263
31264 { (exit 0); exit 0; }
31265 _ACEOF
31266 chmod +x $CONFIG_STATUS
31267 ac_clean_files=$ac_clean_files_save
31268
31269 test $ac_write_fail = 0 ||
31270   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31271 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31272    { (exit 1); exit 1; }; }
31273
31274
31275 # configure is writing to config.log, and then calls config.status.
31276 # config.status does its own redirection, appending to config.log.
31277 # Unfortunately, on DOS this fails, as config.log is still kept open
31278 # by configure, so config.status won't be able to write to it; its
31279 # output is simply discarded.  So we exec the FD to /dev/null,
31280 # effectively closing config.log, so it can be properly (re)opened and
31281 # appended to by config.status.  When coming back to configure, we
31282 # need to make the FD available again.
31283 if test "$no_create" != yes; then
31284   ac_cs_success=:
31285   ac_config_status_args=
31286   test "$silent" = yes &&
31287     ac_config_status_args="$ac_config_status_args --quiet"
31288   exec 5>/dev/null
31289   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31290   exec 5>>config.log
31291   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31292   # would make configure fail if this is the last instruction.
31293   $ac_cs_success || { (exit 1); exit 1; }
31294 fi
31295 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31296   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31297 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31298 fi
31299