]> granicus.if.org Git - postgresql/blob - configure
Fix up getopt() reset management so it works on recent mingw.
[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.1devel.
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-2010, 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.1devel'
602 PACKAGE_STRING='PostgreSQL 9.1devel'
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_IPV6
671 LIBOBJS
672 OSSP_UUID_LIBS
673 ZIC
674 python_additional_libs
675 python_libspec
676 python_libdir
677 python_includespec
678 python_configdir
679 python_version
680 python_majorversion
681 PYTHON
682 perl_embed_ldflags
683 perl_useshrplib
684 perl_privlibexp
685 perl_archlibexp
686 PERL
687 FLEXFLAGS
688 FLEX
689 BISONFLAGS
690 BISON
691 MKDIR_P
692 AWK
693 LN_S
694 TAR
695 WINDRES
696 DLLWRAP
697 DLLTOOL
698 AR
699 STRIP_SHARED_LIB
700 STRIP_STATIC_LIB
701 STRIP
702 RANLIB
703 ld_R_works
704 with_gnu_ld
705 LD
706 LDFLAGS_SL
707 LDFLAGS_EX
708 ELF_SYS
709 EGREP
710 GREP
711 with_zlib
712 with_system_tzdata
713 with_libxslt
714 with_libxml
715 XML2_CONFIG
716 with_ossp_uuid
717 with_openssl
718 with_bonjour
719 with_ldap
720 with_pam
721 krb_srvtab
722 with_krb5
723 with_gssapi
724 with_python
725 with_perl
726 with_tcl
727 enable_thread_safety
728 INCLUDES
729 autodepend
730 TAS
731 GCC
732 CPP
733 SUN_STUDIO_CC
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
740 CC
741 enable_dtrace
742 DTRACEFLAGS
743 DTRACE
744 enable_coverage
745 GENHTML
746 LCOV
747 GCOV
748 enable_profiling
749 enable_debug
750 enable_rpath
751 enable_shared
752 default_port
753 WANTED_LANGUAGES
754 enable_nls
755 PORTNAME
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 PG_MAJORVERSION
765 configure_args
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 with_template
807 with_includes
808 with_libraries
809 with_libs
810 enable_integer_datetimes
811 enable_nls
812 with_pgport
813 enable_shared
814 enable_rpath
815 enable_spinlocks
816 enable_debug
817 enable_profiling
818 enable_coverage
819 enable_dtrace
820 with_blocksize
821 with_segsize
822 with_wal_blocksize
823 with_wal_segsize
824 with_CC
825 enable_depend
826 enable_cassert
827 enable_thread_safety
828 with_tcl
829 with_tclconfig
830 with_perl
831 with_python
832 with_gssapi
833 with_krb5
834 with_krb_srvnam
835 with_pam
836 with_ldap
837 with_bonjour
838 with_openssl
839 with_readline
840 with_libedit_preferred
841 with_ossp_uuid
842 with_libxml
843 with_libxslt
844 with_system_tzdata
845 with_zlib
846 with_gnu_ld
847 enable_largefile
848 enable_float4_byval
849 enable_float8_byval
850 '
851       ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CPP
860 LDFLAGS_EX
861 LDFLAGS_SL
862 DOCBOOKSTYLE'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
912
913 ac_prev=
914 ac_dashdash=
915 for ac_option
916 do
917   # If the previous option needs an argument, assign it.
918   if test -n "$ac_prev"; then
919     eval $ac_prev=\$ac_option
920     ac_prev=
921     continue
922   fi
923
924   case $ac_option in
925   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926   *)    ac_optarg=yes ;;
927   esac
928
929   # Accept the important Cygnus configure options, so we can diagnose typos.
930
931   case $ac_dashdash$ac_option in
932   --)
933     ac_dashdash=yes ;;
934
935   -bindir | --bindir | --bindi | --bind | --bin | --bi)
936     ac_prev=bindir ;;
937   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938     bindir=$ac_optarg ;;
939
940   -build | --build | --buil | --bui | --bu)
941     ac_prev=build_alias ;;
942   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943     build_alias=$ac_optarg ;;
944
945   -cache-file | --cache-file | --cache-fil | --cache-fi \
946   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947     ac_prev=cache_file ;;
948   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950     cache_file=$ac_optarg ;;
951
952   --config-cache | -C)
953     cache_file=config.cache ;;
954
955   -datadir | --datadir | --datadi | --datad)
956     ac_prev=datadir ;;
957   -datadir=* | --datadir=* | --datadi=* | --datad=*)
958     datadir=$ac_optarg ;;
959
960   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961   | --dataroo | --dataro | --datar)
962     ac_prev=datarootdir ;;
963   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965     datarootdir=$ac_optarg ;;
966
967   -disable-* | --disable-*)
968     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969     # Reject names that are not valid shell variable names.
970     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972    { (exit 1); exit 1; }; }
973     ac_useropt_orig=$ac_useropt
974     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975     case $ac_user_opts in
976       *"
977 "enable_$ac_useropt"
978 "*) ;;
979       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980          ac_unrecognized_sep=', ';;
981     esac
982     eval enable_$ac_useropt=no ;;
983
984   -docdir | --docdir | --docdi | --doc | --do)
985     ac_prev=docdir ;;
986   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987     docdir=$ac_optarg ;;
988
989   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990     ac_prev=dvidir ;;
991   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992     dvidir=$ac_optarg ;;
993
994   -enable-* | --enable-*)
995     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996     # Reject names that are not valid shell variable names.
997     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
999    { (exit 1); exit 1; }; }
1000     ac_useropt_orig=$ac_useropt
1001     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002     case $ac_user_opts in
1003       *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007          ac_unrecognized_sep=', ';;
1008     esac
1009     eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013   | --exec | --exe | --ex)
1014     ac_prev=exec_prefix ;;
1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017   | --exec=* | --exe=* | --ex=*)
1018     exec_prefix=$ac_optarg ;;
1019
1020   -gas | --gas | --ga | --g)
1021     # Obsolete; use --with-gas.
1022     with_gas=yes ;;
1023
1024   -help | --help | --hel | --he | -h)
1025     ac_init_help=long ;;
1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027     ac_init_help=recursive ;;
1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029     ac_init_help=short ;;
1030
1031   -host | --host | --hos | --ho)
1032     ac_prev=host_alias ;;
1033   -host=* | --host=* | --hos=* | --ho=*)
1034     host_alias=$ac_optarg ;;
1035
1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037     ac_prev=htmldir ;;
1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039   | --ht=*)
1040     htmldir=$ac_optarg ;;
1041
1042   -includedir | --includedir | --includedi | --included | --include \
1043   | --includ | --inclu | --incl | --inc)
1044     ac_prev=includedir ;;
1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
1047     includedir=$ac_optarg ;;
1048
1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
1050     ac_prev=infodir ;;
1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052     infodir=$ac_optarg ;;
1053
1054   -libdir | --libdir | --libdi | --libd)
1055     ac_prev=libdir ;;
1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057     libdir=$ac_optarg ;;
1058
1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060   | --libexe | --libex | --libe)
1061     ac_prev=libexecdir ;;
1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063   | --libexe=* | --libex=* | --libe=*)
1064     libexecdir=$ac_optarg ;;
1065
1066   -localedir | --localedir | --localedi | --localed | --locale)
1067     ac_prev=localedir ;;
1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069     localedir=$ac_optarg ;;
1070
1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
1072   | --localstate | --localstat | --localsta | --localst | --locals)
1073     ac_prev=localstatedir ;;
1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076     localstatedir=$ac_optarg ;;
1077
1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079     ac_prev=mandir ;;
1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081     mandir=$ac_optarg ;;
1082
1083   -nfp | --nfp | --nf)
1084     # Obsolete; use --without-fp.
1085     with_fp=no ;;
1086
1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088   | --no-cr | --no-c | -n)
1089     no_create=yes ;;
1090
1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093     no_recursion=yes ;;
1094
1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097   | --oldin | --oldi | --old | --ol | --o)
1098     ac_prev=oldincludedir ;;
1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102     oldincludedir=$ac_optarg ;;
1103
1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105     ac_prev=prefix ;;
1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107     prefix=$ac_optarg ;;
1108
1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110   | --program-pre | --program-pr | --program-p)
1111     ac_prev=program_prefix ;;
1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114     program_prefix=$ac_optarg ;;
1115
1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117   | --program-suf | --program-su | --program-s)
1118     ac_prev=program_suffix ;;
1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121     program_suffix=$ac_optarg ;;
1122
1123   -program-transform-name | --program-transform-name \
1124   | --program-transform-nam | --program-transform-na \
1125   | --program-transform-n | --program-transform- \
1126   | --program-transform | --program-transfor \
1127   | --program-transfo | --program-transf \
1128   | --program-trans | --program-tran \
1129   | --progr-tra | --program-tr | --program-t)
1130     ac_prev=program_transform_name ;;
1131   -program-transform-name=* | --program-transform-name=* \
1132   | --program-transform-nam=* | --program-transform-na=* \
1133   | --program-transform-n=* | --program-transform-=* \
1134   | --program-transform=* | --program-transfor=* \
1135   | --program-transfo=* | --program-transf=* \
1136   | --program-trans=* | --program-tran=* \
1137   | --progr-tra=* | --program-tr=* | --program-t=*)
1138     program_transform_name=$ac_optarg ;;
1139
1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141     ac_prev=pdfdir ;;
1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143     pdfdir=$ac_optarg ;;
1144
1145   -psdir | --psdir | --psdi | --psd | --ps)
1146     ac_prev=psdir ;;
1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148     psdir=$ac_optarg ;;
1149
1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151   | -silent | --silent | --silen | --sile | --sil)
1152     silent=yes ;;
1153
1154   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155     ac_prev=sbindir ;;
1156   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157   | --sbi=* | --sb=*)
1158     sbindir=$ac_optarg ;;
1159
1160   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162   | --sharedst | --shareds | --shared | --share | --shar \
1163   | --sha | --sh)
1164     ac_prev=sharedstatedir ;;
1165   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168   | --sha=* | --sh=*)
1169     sharedstatedir=$ac_optarg ;;
1170
1171   -site | --site | --sit)
1172     ac_prev=site ;;
1173   -site=* | --site=* | --sit=*)
1174     site=$ac_optarg ;;
1175
1176   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177     ac_prev=srcdir ;;
1178   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179     srcdir=$ac_optarg ;;
1180
1181   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182   | --syscon | --sysco | --sysc | --sys | --sy)
1183     ac_prev=sysconfdir ;;
1184   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186     sysconfdir=$ac_optarg ;;
1187
1188   -target | --target | --targe | --targ | --tar | --ta | --t)
1189     ac_prev=target_alias ;;
1190   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191     target_alias=$ac_optarg ;;
1192
1193   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194     verbose=yes ;;
1195
1196   -version | --version | --versio | --versi | --vers | -V)
1197     ac_init_version=: ;;
1198
1199   -with-* | --with-*)
1200     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_useropt_orig=$ac_useropt
1206     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207     case $ac_user_opts in
1208       *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212          ac_unrecognized_sep=', ';;
1213     esac
1214     eval with_$ac_useropt=\$ac_optarg ;;
1215
1216   -without-* | --without-*)
1217     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1221    { (exit 1); exit 1; }; }
1222     ac_useropt_orig=$ac_useropt
1223     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224     case $ac_user_opts in
1225       *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229          ac_unrecognized_sep=', ';;
1230     esac
1231     eval with_$ac_useropt=no ;;
1232
1233   --x)
1234     # Obsolete; use --with-x.
1235     with_x=yes ;;
1236
1237   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238   | --x-incl | --x-inc | --x-in | --x-i)
1239     ac_prev=x_includes ;;
1240   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242     x_includes=$ac_optarg ;;
1243
1244   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246     ac_prev=x_libraries ;;
1247   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249     x_libraries=$ac_optarg ;;
1250
1251   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253    { (exit 1); exit 1; }; }
1254     ;;
1255
1256   *=*)
1257     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261    { (exit 1); exit 1; }; }
1262     eval $ac_envvar=\$ac_optarg
1263     export $ac_envvar ;;
1264
1265   *)
1266     # FIXME: should be removed in autoconf 3.0.
1267     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271     ;;
1272
1273   esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1279    { (exit 1); exit 1; }; }
1280 fi
1281
1282 if test -n "$ac_unrecognized_opts"; then
1283   case $enable_option_checking in
1284     no) ;;
1285     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1286    { (exit 1); exit 1; }; } ;;
1287     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288   esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                 datadir sysconfdir sharedstatedir localstatedir includedir \
1294                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                 libdir localedir mandir
1296 do
1297   eval ac_val=\$$ac_var
1298   # Remove trailing slashes.
1299   case $ac_val in
1300     */ )
1301       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302       eval $ac_var=\$ac_val;;
1303   esac
1304   # Be sure to have absolute directory names.
1305   case $ac_val in
1306     [\\/$]* | ?:[\\/]* )  continue;;
1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308   esac
1309   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310    { (exit 1); exit 1; }; }
1311 done
1312
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1319
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322   if test "x$build_alias" = x; then
1323     cross_compiling=maybe
1324     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325     If a cross compiler is detected then cross compile mode will be used." >&2
1326   elif test "x$build_alias" != "x$host_alias"; then
1327     cross_compiling=yes
1328   fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1341    { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1344    { (exit 1); exit 1; }; }
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$as_myself" : 'X\(//\)[^/]' \| \
1354          X"$as_myself" : 'X\(//\)$' \| \
1355          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384    { (exit 1); exit 1; }; }
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1389    { (exit 1); exit 1; }; }
1390         pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393   srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_env_${ac_var}_value=\$${ac_var}
1404   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412   # Omit some internal or obsolete options to make the list less imposing.
1413   # This message is too long to be a string in the A/UX 3.1 sh.
1414   cat <<_ACEOF
1415 \`configure' configures PostgreSQL 9.1devel to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425   -h, --help              display this help and exit
1426       --help=short        display options specific to this package
1427       --help=recursive    display the short help of all the included packages
1428   -V, --version           display version information and exit
1429   -q, --quiet, --silent   do not print \`checking...' messages
1430       --cache-file=FILE   cache test results in FILE [disabled]
1431   -C, --config-cache      alias for \`--cache-file=config.cache'
1432   -n, --no-create         do not create output files
1433       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436   --prefix=PREFIX         install architecture-independent files in PREFIX
1437                           [$ac_default_prefix]
1438   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                           [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449   --bindir=DIR            user executables [EPREFIX/bin]
1450   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1451   --libexecdir=DIR        program executables [EPREFIX/libexec]
1452   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1453   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1454   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1455   --libdir=DIR            object code libraries [EPREFIX/lib]
1456   --includedir=DIR        C header files [PREFIX/include]
1457   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR           info documentation [DATAROOTDIR/info]
1461   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR            man documentation [DATAROOTDIR/man]
1463   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1464   --htmldir=DIR           html documentation [DOCDIR]
1465   --dvidir=DIR            dvi documentation [DOCDIR]
1466   --pdfdir=DIR            pdf documentation [DOCDIR]
1467   --psdir=DIR             ps documentation [DOCDIR]
1468 _ACEOF
1469
1470   cat <<\_ACEOF
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479   case $ac_init_help in
1480      short | recursive ) echo "Configuration of PostgreSQL 9.1devel:";;
1481    esac
1482   cat <<\_ACEOF
1483
1484 Optional Features:
1485   --disable-option-checking  ignore unrecognized --enable/--with options
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --disable-integer-datetimes
1489                           disable 64-bit integer date/time support
1490   --enable-nls[=LANGUAGES]
1491                           enable Native Language Support
1492   --disable-shared        do not build shared libraries
1493   --disable-rpath         do not embed shared library search path in
1494                           executables
1495   --disable-spinlocks     do not use spinlocks
1496   --enable-debug          build with debugging symbols (-g)
1497   --enable-profiling      build with profiling enabled
1498   --enable-coverage       build with coverage testing instrumentation
1499   --enable-dtrace         build with DTrace support
1500   --enable-depend         turn on automatic dependency tracking
1501   --enable-cassert        enable assertion checks (for debugging)
1502   --disable-thread-safety disable thread-safety in client libraries
1503   --disable-largefile     omit support for large files
1504   --disable-float4-byval  disable float4 passed by value
1505   --disable-float8-byval  disable float8 passed by value
1506
1507 Optional Packages:
1508   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1509   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1510   --with-template=NAME    override operating system template
1511   --with-includes=DIRS    look for additional header files in DIRS
1512   --with-libraries=DIRS   look for additional libraries in DIRS
1513   --with-libs=DIRS        alternative spelling of --with-libraries
1514   --with-pgport=PORTNUM   set default port number [5432]
1515   --with-blocksize=BLOCKSIZE
1516                           set table block size in kB [8]
1517   --with-segsize=SEGSIZE  set table segment size in GB [1]
1518   --with-wal-blocksize=BLOCKSIZE
1519                           set WAL block size in kB [8]
1520   --with-wal-segsize=SEGSIZE
1521                           set WAL segment size in MB [16]
1522   --with-CC=CMD           set compiler (deprecated)
1523   --with-tcl              build Tcl modules (PL/Tcl)
1524   --with-tclconfig=DIR    tclConfig.sh is in DIR
1525   --with-perl             build Perl modules (PL/Perl)
1526   --with-python           build Python modules (PL/Python)
1527   --with-gssapi           build with GSSAPI support
1528   --with-krb5             build with Kerberos 5 support
1529   --with-krb-srvnam=NAME  default service principal name in Kerberos
1530                           [postgres]
1531   --with-pam              build with PAM support
1532   --with-ldap             build with LDAP support
1533   --with-bonjour          build with Bonjour support
1534   --with-openssl          build with OpenSSL support
1535   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1536   --with-libedit-preferred
1537                           prefer BSD Libedit over GNU Readline
1538   --with-ossp-uuid        use OSSP UUID library when building
1539                           contrib/uuid-ossp
1540   --with-libxml           build with XML support
1541   --with-libxslt          use XSLT support when building contrib/xml2
1542   --with-system-tzdata=DIR
1543                           use system time zone data in DIR
1544   --without-zlib          do not use Zlib
1545   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546
1547 Some influential environment variables:
1548   CC          C compiler command
1549   CFLAGS      C compiler flags
1550   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551               nonstandard directory <lib dir>
1552   LIBS        libraries to pass to the linker, e.g. -l<library>
1553   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554               you have headers in a nonstandard directory <include dir>
1555   CPP         C preprocessor
1556   LDFLAGS_EX  extra linker flags for linking executables only
1557   LDFLAGS_SL  extra linker flags for linking shared libraries only
1558   DOCBOOKSTYLE
1559               location of DocBook stylesheets
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to <pgsql-bugs@postgresql.org>.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570   # If there are subdirs, report their specific --help.
1571   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572     test -d "$ac_dir" ||
1573       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574       continue
1575     ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581   # A ".." for each directory in $ac_dir_suffix.
1582   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583   case $ac_top_builddir_sub in
1584   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586   esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594   .)  # We are building in place.
1595     ac_srcdir=.
1596     ac_top_srcdir=$ac_top_builddir_sub
1597     ac_abs_top_srcdir=$ac_pwd ;;
1598   [\\/]* | ?:[\\/]* )  # Absolute name.
1599     ac_srcdir=$srcdir$ac_dir_suffix;
1600     ac_top_srcdir=$srcdir
1601     ac_abs_top_srcdir=$srcdir ;;
1602   *) # Relative name.
1603     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604     ac_top_srcdir=$ac_top_build_prefix$srcdir
1605     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609     cd "$ac_dir" || { ac_status=$?; continue; }
1610     # Check for guested configure.
1611     if test -f "$ac_srcdir/configure.gnu"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614     elif test -f "$ac_srcdir/configure"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure" --help=recursive
1617     else
1618       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619     fi || ac_status=$?
1620     cd "$ac_pwd" || { ac_status=$?; break; }
1621   done
1622 fi
1623
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626   cat <<\_ACEOF
1627 PostgreSQL configure 9.1devel
1628 generated by GNU Autoconf 2.63
1629
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634
1635 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1636 _ACEOF
1637   exit
1638 fi
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1642
1643 It was created by PostgreSQL $as_me 9.1devel, which was
1644 generated by GNU Autoconf 2.63.  Invocation command line was
1645
1646   $ $0 $@
1647
1648 _ACEOF
1649 exec 5>>config.log
1650 {
1651 cat <<_ASUNAME
1652 ## --------- ##
1653 ## Platform. ##
1654 ## --------- ##
1655
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1661
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1664
1665 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1666 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1669 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1670 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1671 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1672
1673 _ASUNAME
1674
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   $as_echo "PATH: $as_dir"
1681 done
1682 IFS=$as_save_IFS
1683
1684 } >&5
1685
1686 cat >&5 <<_ACEOF
1687
1688
1689 ## ----------- ##
1690 ## Core tests. ##
1691 ## ----------- ##
1692
1693 _ACEOF
1694
1695
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_configure_args=
1702 ac_configure_args0=
1703 ac_configure_args1=
1704 ac_must_keep_next=false
1705 for ac_pass in 1 2
1706 do
1707   for ac_arg
1708   do
1709     case $ac_arg in
1710     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712     | -silent | --silent | --silen | --sile | --sil)
1713       continue ;;
1714     *\'*)
1715       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716     esac
1717     case $ac_pass in
1718     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1719     2)
1720       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721       if test $ac_must_keep_next = true; then
1722         ac_must_keep_next=false # Got value, back to normal.
1723       else
1724         case $ac_arg in
1725           *=* | --config-cache | -C | -disable-* | --disable-* \
1726           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728           | -with-* | --with-* | -without-* | --without-* | --x)
1729             case "$ac_configure_args0 " in
1730               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731             esac
1732             ;;
1733           -* ) ac_must_keep_next=true ;;
1734         esac
1735       fi
1736       ac_configure_args="$ac_configure_args '$ac_arg'"
1737       ;;
1738     esac
1739   done
1740 done
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1743
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log.  We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750   # Save into config.log some information that might help in debugging.
1751   {
1752     echo
1753
1754     cat <<\_ASBOX
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1758 _ASBOX
1759     echo
1760     # The following way of writing the cache mishandles newlines in values,
1761 (
1762   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763     eval ac_val=\$$ac_var
1764     case $ac_val in #(
1765     *${as_nl}*)
1766       case $ac_var in #(
1767       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769       esac
1770       case $ac_var in #(
1771       _ | IFS | as_nl) ;; #(
1772       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773       *) $as_unset $ac_var ;;
1774       esac ;;
1775     esac
1776   done
1777   (set) 2>&1 |
1778     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779     *${as_nl}ac_space=\ *)
1780       sed -n \
1781         "s/'\''/'\''\\\\'\'''\''/g;
1782           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783       ;; #(
1784     *)
1785       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786       ;;
1787     esac |
1788     sort
1789 )
1790     echo
1791
1792     cat <<\_ASBOX
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1796 _ASBOX
1797     echo
1798     for ac_var in $ac_subst_vars
1799     do
1800       eval ac_val=\$$ac_var
1801       case $ac_val in
1802       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803       esac
1804       $as_echo "$ac_var='\''$ac_val'\''"
1805     done | sort
1806     echo
1807
1808     if test -n "$ac_subst_files"; then
1809       cat <<\_ASBOX
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1813 _ASBOX
1814       echo
1815       for ac_var in $ac_subst_files
1816       do
1817         eval ac_val=\$$ac_var
1818         case $ac_val in
1819         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820         esac
1821         $as_echo "$ac_var='\''$ac_val'\''"
1822       done | sort
1823       echo
1824     fi
1825
1826     if test -s confdefs.h; then
1827       cat <<\_ASBOX
1828 ## ----------- ##
1829 ## confdefs.h. ##
1830 ## ----------- ##
1831 _ASBOX
1832       echo
1833       cat confdefs.h
1834       echo
1835     fi
1836     test "$ac_signal" != 0 &&
1837       $as_echo "$as_me: caught signal $ac_signal"
1838     $as_echo "$as_me: exit $exit_status"
1839   } >&5
1840   rm -f core *.core core.conftest.* &&
1841     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842     exit $exit_status
1843 ' 0
1844 for ac_signal in 1 2 13 15; do
1845   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1846 done
1847 ac_signal=0
1848
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1851
1852 # Predefined preprocessor variables.
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1856 _ACEOF
1857
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1871 _ACEOF
1872
1873
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1876 _ACEOF
1877
1878
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer an explicitly selected file to automatically selected ones.
1881 ac_site_file1=NONE
1882 ac_site_file2=NONE
1883 if test -n "$CONFIG_SITE"; then
1884   ac_site_file1=$CONFIG_SITE
1885 elif test "x$prefix" != xNONE; then
1886   ac_site_file1=$prefix/share/config.site
1887   ac_site_file2=$prefix/etc/config.site
1888 else
1889   ac_site_file1=$ac_default_prefix/share/config.site
1890   ac_site_file2=$ac_default_prefix/etc/config.site
1891 fi
1892 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1893 do
1894   test "x$ac_site_file" = xNONE && continue
1895   if test -r "$ac_site_file"; then
1896     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1898     sed 's/^/| /' "$ac_site_file" >&5
1899     . "$ac_site_file"
1900   fi
1901 done
1902
1903 if test -r "$cache_file"; then
1904   # Some versions of bash will fail to source /dev/null (special
1905   # files actually), so we avoid doing that.
1906   if test -f "$cache_file"; then
1907     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 $as_echo "$as_me: loading cache $cache_file" >&6;}
1909     case $cache_file in
1910       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911       *)                      . "./$cache_file";;
1912     esac
1913   fi
1914 else
1915   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 $as_echo "$as_me: creating cache $cache_file" >&6;}
1917   >$cache_file
1918 fi
1919
1920 # Check that the precious variables saved in the cache have kept the same
1921 # value.
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925   eval ac_new_set=\$ac_env_${ac_var}_set
1926   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927   eval ac_new_val=\$ac_env_${ac_var}_value
1928   case $ac_old_set,$ac_new_set in
1929     set,)
1930       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932       ac_cache_corrupted=: ;;
1933     ,set)
1934       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936       ac_cache_corrupted=: ;;
1937     ,);;
1938     *)
1939       if test "x$ac_old_val" != "x$ac_new_val"; then
1940         # differences in whitespace do not lead to failure.
1941         ac_old_val_w=`echo x $ac_old_val`
1942         ac_new_val_w=`echo x $ac_new_val`
1943         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1944           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946           ac_cache_corrupted=:
1947         else
1948           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1949 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1950           eval $ac_var=\$ac_old_val
1951         fi
1952         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1953 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1954         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1955 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1956       fi;;
1957   esac
1958   # Pass precious variables to config.status.
1959   if test "$ac_new_set" = set; then
1960     case $ac_new_val in
1961     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962     *) ac_arg=$ac_var=$ac_new_val ;;
1963     esac
1964     case " $ac_configure_args " in
1965       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1966       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967     esac
1968   fi
1969 done
1970 if $ac_cache_corrupted; then
1971   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977    { (exit 1); exit 1; }; }
1978 fi
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009
2010
2011
2012
2013
2014
2015 ac_aux_dir=
2016 for ac_dir in config "$srcdir"/config; do
2017   if test -f "$ac_dir/install-sh"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/install-sh -c"
2020     break
2021   elif test -f "$ac_dir/install.sh"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/install.sh -c"
2024     break
2025   elif test -f "$ac_dir/shtool"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/shtool install -c"
2028     break
2029   fi
2030 done
2031 if test -z "$ac_aux_dir"; then
2032   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2033 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2034    { (exit 1); exit 1; }; }
2035 fi
2036
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2044
2045
2046
2047 configure_args=$ac_configure_args
2048
2049
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PG_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2054
2055 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2056
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2060 _ACEOF
2061
2062
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067    { (exit 1); exit 1; }; }
2068
2069 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2070 $as_echo_n "checking build system type... " >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072   $as_echo_n "(cached) " >&6
2073 else
2074   ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080    { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 fi
2087 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 $as_echo "$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2090 *-*-*) ;;
2091 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2093    { (exit 1); exit 1; }; };;
2094 esac
2095 build=$ac_cv_build
2096 ac_save_IFS=$IFS; IFS='-'
2097 set x $ac_cv_build
2098 shift
2099 build_cpu=$1
2100 build_vendor=$2
2101 shift; shift
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2104 build_os=$*
2105 IFS=$ac_save_IFS
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2107
2108
2109 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2110 $as_echo_n "checking host system type... " >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112   $as_echo_n "(cached) " >&6
2113 else
2114   if test "x$host_alias" = x; then
2115   ac_cv_host=$ac_cv_build
2116 else
2117   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123 fi
2124 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 $as_echo "$ac_cv_host" >&6; }
2126 case $ac_cv_host in
2127 *-*-*) ;;
2128 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2130    { (exit 1); exit 1; }; };;
2131 esac
2132 host=$ac_cv_host
2133 ac_save_IFS=$IFS; IFS='-'
2134 set x $ac_cv_host
2135 shift
2136 host_cpu=$1
2137 host_vendor=$2
2138 shift; shift
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2141 host_os=$*
2142 IFS=$ac_save_IFS
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2144
2145
2146
2147 template=
2148 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2149 $as_echo_n "checking which template to use... " >&6; }
2150
2151
2152
2153
2154 # Check whether --with-template was given.
2155 if test "${with_template+set}" = set; then
2156   withval=$with_template;
2157   case $withval in
2158     yes)
2159       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2160 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2161    { (exit 1); exit 1; }; }
2162       ;;
2163     no)
2164       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2165 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2166    { (exit 1); exit 1; }; }
2167       ;;
2168     *)
2169
2170   case $withval in
2171     list)   echo; ls "$srcdir/src/template"; exit;;
2172     *)      if test -f "$srcdir/src/template/$with_template" ; then
2173               template=$withval
2174             else
2175               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2176 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2177    { (exit 1); exit 1; }; }
2178             fi;;
2179   esac
2180
2181       ;;
2182   esac
2183
2184 else
2185
2186 # --with-template not given
2187
2188 case $host_os in
2189      aix*) template=aix ;;
2190     bsdi*) template=bsdi ;;
2191   cygwin*) template=cygwin ;;
2192   darwin*) template=darwin ;;
2193     dgux*) template=dgux ;;
2194  freebsd*) template=freebsd ;;
2195     hpux*) template=hpux ;;
2196     irix*) template=irix ;;
2197  linux*|gnu*|k*bsd*-gnu)
2198            template=linux ;;
2199    mingw*) template=win32 ;;
2200   netbsd*) template=netbsd ;;
2201 nextstep*) template=nextstep ;;
2202  openbsd*) template=openbsd ;;
2203      osf*) template=osf ;;
2204      sco*) template=sco ;;
2205  solaris*) template=solaris ;;
2206    sunos*) template=sunos4 ;;
2207  sysv4.2*)
2208         case $host_vendor in
2209           univel) template=univel ;;
2210         esac ;;
2211    sysv4*) template=svr4 ;;
2212    sysv5*) template=unixware ;;
2213   ultrix*) template=ultrix4 ;;
2214 esac
2215
2216   if test x"$template" = x"" ; then
2217     { { $as_echo "$as_me:$LINENO: 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 " >&5
2228 $as_echo "$as_me: error:
2229 *******************************************************************
2230 PostgreSQL has apparently not been ported to your platform yet.
2231 To try a manual configuration, look into the src/template directory
2232 for a similar platform and use the '--with-template=' option.
2233
2234 Please also contact <pgsql-bugs@postgresql.org> to see about
2235 rectifying this.  Include the above 'checking host system type...'
2236 line.
2237 *******************************************************************
2238 " >&2;}
2239    { (exit 1); exit 1; }; }
2240   fi
2241
2242
2243 fi
2244
2245
2246
2247 { $as_echo "$as_me:$LINENO: result: $template" >&5
2248 $as_echo "$template" >&6; }
2249
2250 PORTNAME=$template
2251
2252
2253 # Initialize default assumption that we do not need separate assembly code
2254 # for TAS (test-and-set).  This can be overridden by the template file
2255 # when it's executed.
2256 need_tas=no
2257 tas_file=dummy.s
2258
2259
2260
2261 ##
2262 ## Command line options
2263 ##
2264
2265 #
2266 # Add non-standard directories to the include path
2267 #
2268
2269
2270
2271 # Check whether --with-includes was given.
2272 if test "${with_includes+set}" = set; then
2273   withval=$with_includes;
2274   case $withval in
2275     yes)
2276       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2277 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2278    { (exit 1); exit 1; }; }
2279       ;;
2280     no)
2281       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2282 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2283    { (exit 1); exit 1; }; }
2284       ;;
2285     *)
2286
2287       ;;
2288   esac
2289
2290 fi
2291
2292
2293
2294
2295 #
2296 # Add non-standard directories to the library search path
2297 #
2298
2299
2300
2301 # Check whether --with-libraries was given.
2302 if test "${with_libraries+set}" = set; then
2303   withval=$with_libraries;
2304   case $withval in
2305     yes)
2306       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2307 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2308    { (exit 1); exit 1; }; }
2309       ;;
2310     no)
2311       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2312 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2313    { (exit 1); exit 1; }; }
2314       ;;
2315     *)
2316       LIBRARY_DIRS=$withval
2317       ;;
2318   esac
2319
2320 fi
2321
2322
2323
2324
2325
2326
2327 # Check whether --with-libs was given.
2328 if test "${with_libs+set}" = set; then
2329   withval=$with_libs;
2330   case $withval in
2331     yes)
2332       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2333 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2334    { (exit 1); exit 1; }; }
2335       ;;
2336     no)
2337       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2338 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2339    { (exit 1); exit 1; }; }
2340       ;;
2341     *)
2342       LIBRARY_DIRS=$withval
2343       ;;
2344   esac
2345
2346 fi
2347
2348
2349
2350
2351 #
2352 # 64-bit integer date/time storage: enabled by default.
2353 #
2354 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2355 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2356
2357
2358 # Check whether --enable-integer-datetimes was given.
2359 if test "${enable_integer_datetimes+set}" = set; then
2360   enableval=$enable_integer_datetimes;
2361   case $enableval in
2362     yes)
2363
2364 cat >>confdefs.h <<\_ACEOF
2365 #define USE_INTEGER_DATETIMES 1
2366 _ACEOF
2367
2368       ;;
2369     no)
2370       :
2371       ;;
2372     *)
2373       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2374 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2375    { (exit 1); exit 1; }; }
2376       ;;
2377   esac
2378
2379 else
2380   enable_integer_datetimes=yes
2381
2382 cat >>confdefs.h <<\_ACEOF
2383 #define USE_INTEGER_DATETIMES 1
2384 _ACEOF
2385
2386 fi
2387
2388
2389 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2390 $as_echo "$enable_integer_datetimes" >&6; }
2391
2392
2393 #
2394 # NLS
2395 #
2396 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2397 $as_echo_n "checking whether NLS is wanted... " >&6; }
2398
2399
2400 # Check whether --enable-nls was given.
2401 if test "${enable_nls+set}" = set; then
2402   enableval=$enable_nls;
2403   case $enableval in
2404     yes)
2405       :
2406       ;;
2407     no)
2408       :
2409       ;;
2410     *)
2411       enable_nls=yes
2412 WANTED_LANGUAGES=$enableval
2413       ;;
2414   esac
2415
2416 else
2417   enable_nls=no
2418 fi
2419
2420
2421
2422 if test "$enable_nls" = yes; then
2423
2424 cat >>confdefs.h <<\_ACEOF
2425 #define ENABLE_NLS 1
2426 _ACEOF
2427
2428 fi
2429
2430 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2431 $as_echo "$enable_nls" >&6; }
2432
2433
2434
2435 #
2436 # Default port number (--with-pgport), default 5432
2437 #
2438 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2439 $as_echo_n "checking for default port number... " >&6; }
2440
2441
2442
2443 # Check whether --with-pgport was given.
2444 if test "${with_pgport+set}" = set; then
2445   withval=$with_pgport;
2446   case $withval in
2447     yes)
2448       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2449 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2450    { (exit 1); exit 1; }; }
2451       ;;
2452     no)
2453       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2454 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2455    { (exit 1); exit 1; }; }
2456       ;;
2457     *)
2458       default_port=$withval
2459       ;;
2460   esac
2461
2462 else
2463   default_port=5432
2464 fi
2465
2466
2467 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2468 $as_echo "$default_port" >&6; }
2469 # Need both of these because some places want an integer and some a string
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define DEF_PGPORT ${default_port}
2473 _ACEOF
2474
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define DEF_PGPORT_STR "${default_port}"
2478 _ACEOF
2479
2480
2481
2482 #
2483 # Option to disable shared libraries
2484 #
2485
2486
2487 # Check whether --enable-shared was given.
2488 if test "${enable_shared+set}" = set; then
2489   enableval=$enable_shared;
2490   case $enableval in
2491     yes)
2492       :
2493       ;;
2494     no)
2495       :
2496       ;;
2497     *)
2498       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2499 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2500    { (exit 1); exit 1; }; }
2501       ;;
2502   esac
2503
2504 else
2505   enable_shared=yes
2506
2507 fi
2508
2509
2510
2511
2512 #
2513 # '-rpath'-like feature can be disabled
2514 #
2515
2516
2517 # Check whether --enable-rpath was given.
2518 if test "${enable_rpath+set}" = set; then
2519   enableval=$enable_rpath;
2520   case $enableval in
2521     yes)
2522       :
2523       ;;
2524     no)
2525       :
2526       ;;
2527     *)
2528       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2529 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2530    { (exit 1); exit 1; }; }
2531       ;;
2532   esac
2533
2534 else
2535   enable_rpath=yes
2536
2537 fi
2538
2539
2540
2541
2542 #
2543 # Spinlocks
2544 #
2545
2546
2547 # Check whether --enable-spinlocks was given.
2548 if test "${enable_spinlocks+set}" = set; then
2549   enableval=$enable_spinlocks;
2550   case $enableval in
2551     yes)
2552       :
2553       ;;
2554     no)
2555       :
2556       ;;
2557     *)
2558       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2559 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2560    { (exit 1); exit 1; }; }
2561       ;;
2562   esac
2563
2564 else
2565   enable_spinlocks=yes
2566
2567 fi
2568
2569
2570
2571 #
2572 # --enable-debug adds -g to compiler flags
2573 #
2574
2575
2576 # Check whether --enable-debug was given.
2577 if test "${enable_debug+set}" = set; then
2578   enableval=$enable_debug;
2579   case $enableval in
2580     yes)
2581       :
2582       ;;
2583     no)
2584       :
2585       ;;
2586     *)
2587       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2588 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2589    { (exit 1); exit 1; }; }
2590       ;;
2591   esac
2592
2593 else
2594   enable_debug=no
2595
2596 fi
2597
2598
2599
2600
2601 #
2602 # --enable-profiling enables gcc profiling
2603 #
2604
2605
2606 # Check whether --enable-profiling was given.
2607 if test "${enable_profiling+set}" = set; then
2608   enableval=$enable_profiling;
2609   case $enableval in
2610     yes)
2611       :
2612       ;;
2613     no)
2614       :
2615       ;;
2616     *)
2617       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2618 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2619    { (exit 1); exit 1; }; }
2620       ;;
2621   esac
2622
2623 else
2624   enable_profiling=no
2625
2626 fi
2627
2628
2629
2630
2631 #
2632 # --enable-coverage enables generation of code coverage metrics with gcov
2633 #
2634
2635
2636 # Check whether --enable-coverage was given.
2637 if test "${enable_coverage+set}" = set; then
2638   enableval=$enable_coverage;
2639   case $enableval in
2640     yes)
2641       for ac_prog in gcov
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_GCOV+set}" = set; then
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$GCOV"; then
2651   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658   for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_GCOV="$ac_prog"
2661     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 GCOV=$ac_cv_prog_GCOV
2671 if test -n "$GCOV"; then
2672   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2673 $as_echo "$GCOV" >&6; }
2674 else
2675   { $as_echo "$as_me:$LINENO: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680   test -n "$GCOV" && break
2681 done
2682
2683 if test -z "$GCOV"; then
2684   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2685 $as_echo "$as_me: error: gcov not found" >&2;}
2686    { (exit 1); exit 1; }; }
2687 fi
2688 for ac_prog in lcov
2689 do
2690   # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_LCOV+set}" = set; then
2695   $as_echo_n "(cached) " >&6
2696 else
2697   if test -n "$LCOV"; then
2698   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705   for ac_exec_ext in '' $ac_executable_extensions; do
2706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707     ac_cv_prog_LCOV="$ac_prog"
2708     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709     break 2
2710   fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 LCOV=$ac_cv_prog_LCOV
2718 if test -n "$LCOV"; then
2719   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2720 $as_echo "$LCOV" >&6; }
2721 else
2722   { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727   test -n "$LCOV" && break
2728 done
2729
2730 if test -z "$LCOV"; then
2731   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2732 $as_echo "$as_me: error: lcov not found" >&2;}
2733    { (exit 1); exit 1; }; }
2734 fi
2735 for ac_prog in genhtml
2736 do
2737   # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_GENHTML+set}" = set; then
2742   $as_echo_n "(cached) " >&6
2743 else
2744   if test -n "$GENHTML"; then
2745   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752   for ac_exec_ext in '' $ac_executable_extensions; do
2753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754     ac_cv_prog_GENHTML="$ac_prog"
2755     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756     break 2
2757   fi
2758 done
2759 done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 GENHTML=$ac_cv_prog_GENHTML
2765 if test -n "$GENHTML"; then
2766   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2767 $as_echo "$GENHTML" >&6; }
2768 else
2769   { $as_echo "$as_me:$LINENO: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774   test -n "$GENHTML" && break
2775 done
2776
2777 if test -z "$GENHTML"; then
2778   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2779 $as_echo "$as_me: error: genhtml not found" >&2;}
2780    { (exit 1); exit 1; }; }
2781 fi
2782       ;;
2783     no)
2784       :
2785       ;;
2786     *)
2787       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2788 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2789    { (exit 1); exit 1; }; }
2790       ;;
2791   esac
2792
2793 else
2794   enable_coverage=no
2795
2796 fi
2797
2798
2799
2800
2801 #
2802 # DTrace
2803 #
2804
2805
2806 # Check whether --enable-dtrace was given.
2807 if test "${enable_dtrace+set}" = set; then
2808   enableval=$enable_dtrace;
2809   case $enableval in
2810     yes)
2811
2812 cat >>confdefs.h <<\_ACEOF
2813 #define ENABLE_DTRACE 1
2814 _ACEOF
2815
2816 for ac_prog in dtrace
2817 do
2818   # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_DTRACE+set}" = set; then
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$DTRACE"; then
2826   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833   for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_DTRACE="$ac_prog"
2836     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 DTRACE=$ac_cv_prog_DTRACE
2846 if test -n "$DTRACE"; then
2847   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2848 $as_echo "$DTRACE" >&6; }
2849 else
2850   { $as_echo "$as_me:$LINENO: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855   test -n "$DTRACE" && break
2856 done
2857
2858 if test -z "$DTRACE"; then
2859   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2860 $as_echo "$as_me: error: dtrace not found" >&2;}
2861    { (exit 1); exit 1; }; }
2862 fi
2863
2864       ;;
2865     no)
2866       :
2867       ;;
2868     *)
2869       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2870 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2871    { (exit 1); exit 1; }; }
2872       ;;
2873   esac
2874
2875 else
2876   enable_dtrace=no
2877
2878 fi
2879
2880
2881
2882
2883 #
2884 # Block size
2885 #
2886 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2887 $as_echo_n "checking for block size... " >&6; }
2888
2889
2890
2891 # Check whether --with-blocksize was given.
2892 if test "${with_blocksize+set}" = set; then
2893   withval=$with_blocksize;
2894   case $withval in
2895     yes)
2896       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2897 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2898    { (exit 1); exit 1; }; }
2899       ;;
2900     no)
2901       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2903    { (exit 1); exit 1; }; }
2904       ;;
2905     *)
2906       blocksize=$withval
2907       ;;
2908   esac
2909
2910 else
2911   blocksize=8
2912 fi
2913
2914
2915 case ${blocksize} in
2916   1) BLCKSZ=1024;;
2917   2) BLCKSZ=2048;;
2918   4) BLCKSZ=4096;;
2919   8) BLCKSZ=8192;;
2920  16) BLCKSZ=16384;;
2921  32) BLCKSZ=32768;;
2922   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2923 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2924    { (exit 1); exit 1; }; }
2925 esac
2926 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2927 $as_echo "${blocksize}kB" >&6; }
2928
2929
2930 cat >>confdefs.h <<_ACEOF
2931 #define BLCKSZ ${BLCKSZ}
2932 _ACEOF
2933
2934
2935 #
2936 # Relation segment size
2937 #
2938 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2939 $as_echo_n "checking for segment size... " >&6; }
2940
2941
2942
2943 # Check whether --with-segsize was given.
2944 if test "${with_segsize+set}" = set; then
2945   withval=$with_segsize;
2946   case $withval in
2947     yes)
2948       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2949 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2950    { (exit 1); exit 1; }; }
2951       ;;
2952     no)
2953       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2954 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2955    { (exit 1); exit 1; }; }
2956       ;;
2957     *)
2958       segsize=$withval
2959       ;;
2960   esac
2961
2962 else
2963   segsize=1
2964 fi
2965
2966
2967 # this expression is set up to avoid unnecessary integer overflow
2968 # blocksize is already guaranteed to be a factor of 1024
2969 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2970 test $? -eq 0 || exit 1
2971 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2972 $as_echo "${segsize}GB" >&6; }
2973
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define RELSEG_SIZE ${RELSEG_SIZE}
2977 _ACEOF
2978
2979
2980 #
2981 # WAL block size
2982 #
2983 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2984 $as_echo_n "checking for WAL block size... " >&6; }
2985
2986
2987
2988 # Check whether --with-wal-blocksize was given.
2989 if test "${with_wal_blocksize+set}" = set; then
2990   withval=$with_wal_blocksize;
2991   case $withval in
2992     yes)
2993       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2994 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2995    { (exit 1); exit 1; }; }
2996       ;;
2997     no)
2998       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2999 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3000    { (exit 1); exit 1; }; }
3001       ;;
3002     *)
3003       wal_blocksize=$withval
3004       ;;
3005   esac
3006
3007 else
3008   wal_blocksize=8
3009 fi
3010
3011
3012 case ${wal_blocksize} in
3013   1) XLOG_BLCKSZ=1024;;
3014   2) XLOG_BLCKSZ=2048;;
3015   4) XLOG_BLCKSZ=4096;;
3016   8) XLOG_BLCKSZ=8192;;
3017  16) XLOG_BLCKSZ=16384;;
3018  32) XLOG_BLCKSZ=32768;;
3019  64) XLOG_BLCKSZ=65536;;
3020   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3021 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3022    { (exit 1); exit 1; }; }
3023 esac
3024 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3025 $as_echo "${wal_blocksize}kB" >&6; }
3026
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3030 _ACEOF
3031
3032
3033 #
3034 # WAL segment size
3035 #
3036 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3037 $as_echo_n "checking for WAL segment size... " >&6; }
3038
3039
3040
3041 # Check whether --with-wal-segsize was given.
3042 if test "${with_wal_segsize+set}" = set; then
3043   withval=$with_wal_segsize;
3044   case $withval in
3045     yes)
3046       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3047 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3048    { (exit 1); exit 1; }; }
3049       ;;
3050     no)
3051       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3052 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3053    { (exit 1); exit 1; }; }
3054       ;;
3055     *)
3056       wal_segsize=$withval
3057       ;;
3058   esac
3059
3060 else
3061   wal_segsize=16
3062 fi
3063
3064
3065 case ${wal_segsize} in
3066   1) ;;
3067   2) ;;
3068   4) ;;
3069   8) ;;
3070  16) ;;
3071  32) ;;
3072  64) ;;
3073   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3074 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3075    { (exit 1); exit 1; }; }
3076 esac
3077 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3078 $as_echo "${wal_segsize}MB" >&6; }
3079
3080
3081 cat >>confdefs.h <<_ACEOF
3082 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3083 _ACEOF
3084
3085
3086 #
3087 # C compiler
3088 #
3089
3090 # For historical reasons you can also use --with-CC to specify the C compiler
3091 # to use, although the standard way to do this is to set the CC environment
3092 # variable.
3093
3094
3095
3096 # Check whether --with-CC was given.
3097 if test "${with_CC+set}" = set; then
3098   withval=$with_CC;
3099   case $withval in
3100     yes)
3101       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3102 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3103    { (exit 1); exit 1; }; }
3104       ;;
3105     no)
3106       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3107 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3108    { (exit 1); exit 1; }; }
3109       ;;
3110     *)
3111       CC=$with_CC
3112       ;;
3113   esac
3114
3115 fi
3116
3117
3118
3119 case $template in
3120   aix) pgac_cc_list="gcc xlc";;
3121  irix) pgac_cc_list="cc";; # no gcc
3122     *) pgac_cc_list="gcc cc";;
3123 esac
3124
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131   for ac_prog in $pgac_cc_list
3132   do
3133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test -n "$CC"; then
3141   ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148   for ac_exec_ext in '' $ac_executable_extensions; do
3149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165   { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169
3170     test -n "$CC" && break
3171   done
3172 fi
3173 if test -z "$CC"; then
3174   ac_ct_CC=$CC
3175   for ac_prog in $pgac_cc_list
3176 do
3177   # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3182   $as_echo_n "(cached) " >&6
3183 else
3184   if test -n "$ac_ct_CC"; then
3185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194     ac_cv_prog_ac_ct_CC="$ac_prog"
3195     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3208 else
3209   { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213
3214   test -n "$ac_ct_CC" && break
3215 done
3216
3217   if test "x$ac_ct_CC" = x; then
3218     CC=""
3219   else
3220     case $cross_compiling:$ac_tool_warned in
3221 yes:)
3222 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3225 esac
3226     CC=$ac_ct_CC
3227   fi
3228 fi
3229
3230
3231 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&5
3235 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details." >&2;}
3237    { (exit 1); exit 1; }; }; }
3238
3239 # Provide some information about the compiler.
3240 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3241 set X $ac_compile
3242 ac_compiler=$2
3243 { (ac_try="$ac_compiler --version >&5"
3244 case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250   (eval "$ac_compiler --version >&5") 2>&5
3251   ac_status=$?
3252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }
3254 { (ac_try="$ac_compiler -v >&5"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261   (eval "$ac_compiler -v >&5") 2>&5
3262   ac_status=$?
3263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }
3265 { (ac_try="$ac_compiler -V >&5"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272   (eval "$ac_compiler -V >&5") 2>&5
3273   ac_status=$?
3274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }
3276
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3296 # of exeext.
3297 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3303
3304 ac_rmfiles=
3305 for ac_file in $ac_files
3306 do
3307   case $ac_file in
3308     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3310   esac
3311 done
3312 rm -f $ac_rmfiles
3313
3314 if { (ac_try="$ac_link_default"
3315 case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321   (eval "$ac_link_default") 2>&5
3322   ac_status=$?
3323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; then
3325   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3329 # Autoconf.
3330 for ac_file in $ac_files ''
3331 do
3332   test -f "$ac_file" || continue
3333   case $ac_file in
3334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3335         ;;
3336     [ab].out )
3337         # We found the default executable, but exeext='' is most
3338         # certainly right.
3339         break;;
3340     *.* )
3341         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3342         then :; else
3343            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344         fi
3345         # We set ac_cv_exeext here because the later test for it is not
3346         # safe: cross compilers may not add the suffix if given an `-o'
3347         # argument, so we may need to know it at that point already.
3348         # Even if this section looks crufty: it has the advantage of
3349         # actually working.
3350         break;;
3351     * )
3352         break;;
3353   esac
3354 done
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3356
3357 else
3358   ac_file=''
3359 fi
3360
3361 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3362 $as_echo "$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364   $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&5
3371 $as_echo "$as_me: error: C compiler cannot create executables
3372 See \`config.log' for more details." >&2;}
3373    { (exit 77); exit 77; }; }; }
3374 fi
3375
3376 ac_exeext=$ac_cv_exeext
3377
3378 # Check that the compiler produces executables we can run.  If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383 # If not cross compiling, check that we can run a simple program.
3384 if test "$cross_compiling" != yes; then
3385   if { ac_try='./$ac_file'
3386   { (case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392   (eval "$ac_try") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; }; then
3396     cross_compiling=no
3397   else
3398     if test "$cross_compiling" = maybe; then
3399         cross_compiling=yes
3400     else
3401         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." >&2;}
3409    { (exit 1); exit 1; }; }; }
3410     fi
3411   fi
3412 fi
3413 { $as_echo "$as_me:$LINENO: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 # Check that the compiler produces executables we can run.  If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3421 $as_echo_n "checking whether we are cross compiling... " >&6; }
3422 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3424
3425 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { (ac_try="$ac_link"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434   (eval "$ac_link") 2>&5
3435   ac_status=$?
3436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; then
3438   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 # `rm'.
3442 for ac_file in conftest.exe conftest conftest.*; do
3443   test -f "$ac_file" || continue
3444   case $ac_file in
3445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447           break;;
3448     * ) break;;
3449   esac
3450 done
3451 else
3452   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&5
3456 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details." >&2;}
3458    { (exit 1); exit 1; }; }; }
3459 fi
3460
3461 rm -f conftest$ac_cv_exeext
3462 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3463 $as_echo "$ac_cv_exeext" >&6; }
3464
3465 rm -f conftest.$ac_ext
3466 EXEEXT=$ac_cv_exeext
3467 ac_exeext=$EXEEXT
3468 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if test "${ac_cv_objext+set}" = set; then
3471   $as_echo_n "(cached) " >&6
3472 else
3473   cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479
3480 int
3481 main ()
3482 {
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.o conftest.obj
3489 if { (ac_try="$ac_compile"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496   (eval "$ac_compile") 2>&5
3497   ac_status=$?
3498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; then
3500   for ac_file in conftest.o conftest.obj conftest.*; do
3501   test -f "$ac_file" || continue;
3502   case $ac_file in
3503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505        break;;
3506   esac
3507 done
3508 else
3509   $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details." >&2;}
3518    { (exit 1); exit 1; }; }; }
3519 fi
3520
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3522 fi
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3526 ac_objext=$OBJEXT
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530   $as_echo_n "(cached) " >&6
3531 else
3532   cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h.  */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h.  */
3538
3539 int
3540 main ()
3541 {
3542 #ifndef __GNUC__
3543        choke me
3544 #endif
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558   (eval "$ac_compile") 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } && {
3565          test -z "$ac_c_werror_flag" ||
3566          test ! -s conftest.err
3567        } && test -s conftest.$ac_objext; then
3568   ac_compiler_gnu=yes
3569 else
3570   $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573         ac_compiler_gnu=no
3574 fi
3575
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3578
3579 fi
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3583   GCC=yes
3584 else
3585   GCC=
3586 fi
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592   $as_echo_n "(cached) " >&6
3593 else
3594   ac_save_c_werror_flag=$ac_c_werror_flag
3595    ac_c_werror_flag=yes
3596    ac_cv_prog_cc_g=no
3597    CFLAGS="-g"
3598    cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604
3605 int
3606 main ()
3607 {
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621   (eval "$ac_compile") 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } && {
3628          test -z "$ac_c_werror_flag" ||
3629          test ! -s conftest.err
3630        } && test -s conftest.$ac_objext; then
3631   ac_cv_prog_cc_g=yes
3632 else
3633   $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636         CFLAGS=""
3637       cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h.  */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h.  */
3643
3644 int
3645 main ()
3646 {
3647
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660   (eval "$ac_compile") 2>conftest.er1
3661   ac_status=$?
3662   grep -v '^ *+' conftest.er1 >conftest.err
3663   rm -f conftest.er1
3664   cat conftest.err >&5
3665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } && {
3667          test -z "$ac_c_werror_flag" ||
3668          test ! -s conftest.err
3669        } && test -s conftest.$ac_objext; then
3670   :
3671 else
3672   $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675         ac_c_werror_flag=$ac_save_c_werror_flag
3676          CFLAGS="-g"
3677          cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h.  */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h.  */
3683
3684 int
3685 main ()
3686 {
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700   (eval "$ac_compile") 2>conftest.er1
3701   ac_status=$?
3702   grep -v '^ *+' conftest.er1 >conftest.err
3703   rm -f conftest.er1
3704   cat conftest.err >&5
3705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); } && {
3707          test -z "$ac_c_werror_flag" ||
3708          test ! -s conftest.err
3709        } && test -s conftest.$ac_objext; then
3710   ac_cv_prog_cc_g=yes
3711 else
3712   $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715
3716 fi
3717
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725    ac_c_werror_flag=$ac_save_c_werror_flag
3726 fi
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730   CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732   if test "$GCC" = yes; then
3733     CFLAGS="-g -O2"
3734   else
3735     CFLAGS="-g"
3736   fi
3737 else
3738   if test "$GCC" = yes; then
3739     CFLAGS="-O2"
3740   else
3741     CFLAGS=
3742   fi
3743 fi
3744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747   $as_echo_n "(cached) " >&6
3748 else
3749   ac_cv_prog_cc_c89=no
3750 ac_save_CC=$CC
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757 #include <stdarg.h>
3758 #include <stdio.h>
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3765      char **p;
3766      int i;
3767 {
3768   return p[i];
3769 }
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3771 {
3772   char *s;
3773   va_list v;
3774   va_start (v,p);
3775   s = g (p, va_arg (v,int));
3776   va_end (v);
3777   return s;
3778 }
3779
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3781    function prototypes and stuff, but not '\xHH' hex character constants.
3782    These don't provoke an error unfortunately, instead are silently treated
3783    as 'x'.  The following induces an error, until -std is added to get
3784    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3785    array size at least.  It's necessary to write '\x00'==0 to get something
3786    that's true only with -std.  */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3788
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790    inside strings and character constants.  */
3791 #define FOO(x) 'x'
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3793
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3800 int
3801 main ()
3802 {
3803 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3810 do
3811   CC="$ac_save_CC $ac_arg"
3812   rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3814 case "(($ac_try" in
3815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816   *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820   (eval "$ac_compile") 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } && {
3827          test -z "$ac_c_werror_flag" ||
3828          test ! -s conftest.err
3829        } && test -s conftest.$ac_objext; then
3830   ac_cv_prog_cc_c89=$ac_arg
3831 else
3832   $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835
3836 fi
3837
3838 rm -f core conftest.err conftest.$ac_objext
3839   test "x$ac_cv_prog_cc_c89" != "xno" && break
3840 done
3841 rm -f conftest.$ac_ext
3842 CC=$ac_save_CC
3843
3844 fi
3845 # AC_CACHE_VAL
3846 case "x$ac_cv_prog_cc_c89" in
3847   x)
3848     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3850   xno)
3851     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3853   *)
3854     CC="$CC $ac_cv_prog_cc_c89"
3855     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3857 esac
3858
3859
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865
3866
3867 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3868 # but has idiosyncrasies of its own.  We assume icc will define
3869 # __INTEL_COMPILER regardless of CFLAGS.
3870
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 __INTEL_COMPILER
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   ICC=yes
3907 else
3908   $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911         ICC=no
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916 # Check if it's Sun Studio compiler. We assume that
3917 # __SUNPRO_C will be defined for Sun Studio compilers
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924
3925 int
3926 main ()
3927 {
3928 #ifndef __SUNPRO_C
3929 choke me
3930 #endif
3931   ;
3932   return 0;
3933 }
3934 _ACEOF
3935 rm -f conftest.$ac_objext
3936 if { (ac_try="$ac_compile"
3937 case "(($ac_try" in
3938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939   *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943   (eval "$ac_compile") 2>conftest.er1
3944   ac_status=$?
3945   grep -v '^ *+' conftest.er1 >conftest.err
3946   rm -f conftest.er1
3947   cat conftest.err >&5
3948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } && {
3950          test -z "$ac_c_werror_flag" ||
3951          test ! -s conftest.err
3952        } && test -s conftest.$ac_objext; then
3953   SUN_STUDIO_CC=yes
3954 else
3955   $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958         SUN_STUDIO_CC=no
3959 fi
3960
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962
3963
3964
3965 unset CFLAGS
3966
3967 #
3968 # Read the template
3969 #
3970 . "$srcdir/src/template/$template" || exit
3971
3972 # CFLAGS are selected so:
3973 # If the user specifies something in the environment, that is used.
3974 # else:  If the template file set something, that is used.
3975 # else:  If coverage was enabled, don't set anything.
3976 # else:  If the compiler is GCC, then we use -O2.
3977 # else:  If the compiler is something else, then we use -O, unless debugging.
3978
3979 if test "$ac_env_CFLAGS_set" = set; then
3980   CFLAGS=$ac_env_CFLAGS_value
3981 elif test "${CFLAGS+set}" = set; then
3982   : # (keep what template set)
3983 elif test "$enable_coverage" = yes; then
3984   : # no optimization by default
3985 elif test "$GCC" = yes; then
3986   CFLAGS="-O2"
3987 else
3988   # if the user selected debug mode, don't use -O
3989   if test "$enable_debug" != yes; then
3990     CFLAGS="-O"
3991   fi
3992 fi
3993
3994 # Some versions of GCC support some additional useful warning flags.
3995 # Check whether they are supported, and add them to CFLAGS if so.
3996 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3997 # but has its own.  Also check other compiler-specific flags here.
3998
3999 if test "$GCC" = yes -a "$ICC" = no; then
4000   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4001   # These work in some but not all gcc versions
4002   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
4003 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
4004 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
4005   $as_echo_n "(cached) " >&6
4006 else
4007   pgac_save_CFLAGS=$CFLAGS
4008 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4009 cat >conftest.$ac_ext <<_ACEOF
4010 /* confdefs.h.  */
4011 _ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h.  */
4015
4016 int
4017 main ()
4018 {
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4026 case "(($ac_try" in
4027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028   *) ac_try_echo=$ac_try;;
4029 esac
4030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4031 $as_echo "$ac_try_echo") >&5
4032   (eval "$ac_compile") 2>conftest.er1
4033   ac_status=$?
4034   grep -v '^ *+' conftest.er1 >conftest.err
4035   rm -f conftest.er1
4036   cat conftest.err >&5
4037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } && {
4039          test -z "$ac_c_werror_flag" ||
4040          test ! -s conftest.err
4041        } && test -s conftest.$ac_objext; then
4042   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4043 else
4044   $as_echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4048 fi
4049
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 CFLAGS="$pgac_save_CFLAGS"
4052 fi
4053 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4054 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4055 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4056   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4057 fi
4058
4059   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4060 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4061 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4062   $as_echo_n "(cached) " >&6
4063 else
4064   pgac_save_CFLAGS=$CFLAGS
4065 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4066 cat >conftest.$ac_ext <<_ACEOF
4067 /* confdefs.h.  */
4068 _ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h.  */
4072
4073 int
4074 main ()
4075 {
4076
4077   ;
4078   return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088 $as_echo "$ac_try_echo") >&5
4089   (eval "$ac_compile") 2>conftest.er1
4090   ac_status=$?
4091   grep -v '^ *+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } && {
4096          test -z "$ac_c_werror_flag" ||
4097          test ! -s conftest.err
4098        } && test -s conftest.$ac_objext; then
4099   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4100 else
4101   $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104         pgac_cv_prog_cc_cflags__Wendif_labels=no
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 CFLAGS="$pgac_save_CFLAGS"
4109 fi
4110 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4111 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4112 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4113   CFLAGS="$CFLAGS -Wendif-labels"
4114 fi
4115
4116   # Disable strict-aliasing rules; needed for gcc 3.3+
4117   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4118 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4119 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4120   $as_echo_n "(cached) " >&6
4121 else
4122   pgac_save_CFLAGS=$CFLAGS
4123 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4124 cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h.  */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h.  */
4130
4131 int
4132 main ()
4133 {
4134
4135   ;
4136   return 0;
4137 }
4138 _ACEOF
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4141 case "(($ac_try" in
4142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143   *) ac_try_echo=$ac_try;;
4144 esac
4145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4146 $as_echo "$ac_try_echo") >&5
4147   (eval "$ac_compile") 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } && {
4154          test -z "$ac_c_werror_flag" ||
4155          test ! -s conftest.err
4156        } && test -s conftest.$ac_objext; then
4157   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4158 else
4159   $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4163 fi
4164
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 CFLAGS="$pgac_save_CFLAGS"
4167 fi
4168 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4169 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4170 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4171   CFLAGS="$CFLAGS -fno-strict-aliasing"
4172 fi
4173
4174   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4175   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4176 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4177 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4178   $as_echo_n "(cached) " >&6
4179 else
4180   pgac_save_CFLAGS=$CFLAGS
4181 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188
4189 int
4190 main ()
4191 {
4192
4193   ;
4194   return 0;
4195 }
4196 _ACEOF
4197 rm -f conftest.$ac_objext
4198 if { (ac_try="$ac_compile"
4199 case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4204 $as_echo "$ac_try_echo") >&5
4205   (eval "$ac_compile") 2>conftest.er1
4206   ac_status=$?
4207   grep -v '^ *+' conftest.er1 >conftest.err
4208   rm -f conftest.er1
4209   cat conftest.err >&5
4210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } && {
4212          test -z "$ac_c_werror_flag" ||
4213          test ! -s conftest.err
4214        } && test -s conftest.$ac_objext; then
4215   pgac_cv_prog_cc_cflags__fwrapv=yes
4216 else
4217   $as_echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220         pgac_cv_prog_cc_cflags__fwrapv=no
4221 fi
4222
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 CFLAGS="$pgac_save_CFLAGS"
4225 fi
4226 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4227 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4228 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4229   CFLAGS="$CFLAGS -fwrapv"
4230 fi
4231
4232 elif test "$ICC" = yes; then
4233   # Intel's compiler has a bug/misoptimization in checking for
4234   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4235   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4236 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4237 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4238   $as_echo_n "(cached) " >&6
4239 else
4240   pgac_save_CFLAGS=$CFLAGS
4241 CFLAGS="$pgac_save_CFLAGS -mp1"
4242 cat >conftest.$ac_ext <<_ACEOF
4243 /* confdefs.h.  */
4244 _ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h.  */
4248
4249 int
4250 main ()
4251 {
4252
4253   ;
4254   return 0;
4255 }
4256 _ACEOF
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4259 case "(($ac_try" in
4260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261   *) ac_try_echo=$ac_try;;
4262 esac
4263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264 $as_echo "$ac_try_echo") >&5
4265   (eval "$ac_compile") 2>conftest.er1
4266   ac_status=$?
4267   grep -v '^ *+' conftest.er1 >conftest.err
4268   rm -f conftest.er1
4269   cat conftest.err >&5
4270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); } && {
4272          test -z "$ac_c_werror_flag" ||
4273          test ! -s conftest.err
4274        } && test -s conftest.$ac_objext; then
4275   pgac_cv_prog_cc_cflags__mp1=yes
4276 else
4277   $as_echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280         pgac_cv_prog_cc_cflags__mp1=no
4281 fi
4282
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 CFLAGS="$pgac_save_CFLAGS"
4285 fi
4286 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4287 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4288 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4289   CFLAGS="$CFLAGS -mp1"
4290 fi
4291
4292   # Make sure strict aliasing is off (though this is said to be the default)
4293   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4294 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4295 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4296   $as_echo_n "(cached) " >&6
4297 else
4298   pgac_save_CFLAGS=$CFLAGS
4299 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306
4307 int
4308 main ()
4309 {
4310
4311   ;
4312   return 0;
4313 }
4314 _ACEOF
4315 rm -f conftest.$ac_objext
4316 if { (ac_try="$ac_compile"
4317 case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4322 $as_echo "$ac_try_echo") >&5
4323   (eval "$ac_compile") 2>conftest.er1
4324   ac_status=$?
4325   grep -v '^ *+' conftest.er1 >conftest.err
4326   rm -f conftest.er1
4327   cat conftest.err >&5
4328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); } && {
4330          test -z "$ac_c_werror_flag" ||
4331          test ! -s conftest.err
4332        } && test -s conftest.$ac_objext; then
4333   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4334 else
4335   $as_echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4339 fi
4340
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 CFLAGS="$pgac_save_CFLAGS"
4343 fi
4344 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4345 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4346 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4347   CFLAGS="$CFLAGS -fno-strict-aliasing"
4348 fi
4349
4350 elif test "$PORTNAME" = "aix"; then
4351   # AIX's xlc has to have strict aliasing turned off too
4352   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4353 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4354 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4355   $as_echo_n "(cached) " >&6
4356 else
4357   pgac_save_CFLAGS=$CFLAGS
4358 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4359 cat >conftest.$ac_ext <<_ACEOF
4360 /* confdefs.h.  */
4361 _ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h.  */
4365
4366 int
4367 main ()
4368 {
4369
4370   ;
4371   return 0;
4372 }
4373 _ACEOF
4374 rm -f conftest.$ac_objext
4375 if { (ac_try="$ac_compile"
4376 case "(($ac_try" in
4377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378   *) ac_try_echo=$ac_try;;
4379 esac
4380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4381 $as_echo "$ac_try_echo") >&5
4382   (eval "$ac_compile") 2>conftest.er1
4383   ac_status=$?
4384   grep -v '^ *+' conftest.er1 >conftest.err
4385   rm -f conftest.er1
4386   cat conftest.err >&5
4387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); } && {
4389          test -z "$ac_c_werror_flag" ||
4390          test ! -s conftest.err
4391        } && test -s conftest.$ac_objext; then
4392   pgac_cv_prog_cc_cflags__qnoansialias=yes
4393 else
4394   $as_echo "$as_me: failed program was:" >&5
4395 sed 's/^/| /' conftest.$ac_ext >&5
4396
4397         pgac_cv_prog_cc_cflags__qnoansialias=no
4398 fi
4399
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 CFLAGS="$pgac_save_CFLAGS"
4402 fi
4403 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4404 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4405 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4406   CFLAGS="$CFLAGS -qnoansialias"
4407 fi
4408
4409 fi
4410
4411 # supply -g if --enable-debug
4412 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4413   CFLAGS="$CFLAGS -g"
4414 fi
4415
4416 # enable code coverage if --enable-coverage
4417 if test "$enable_coverage" = yes; then
4418   if test "$GCC" = yes; then
4419     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4420   else
4421     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4422 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4423    { (exit 1); exit 1; }; }
4424   fi
4425 fi
4426
4427 # enable profiling if --enable-profiling
4428 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4429   if test "$GCC" = yes; then
4430
4431 cat >>confdefs.h <<\_ACEOF
4432 #define PROFILE_PID_DIR 1
4433 _ACEOF
4434
4435     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4436   else
4437     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4438 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4439    { (exit 1); exit 1; }; }
4440   fi
4441 fi
4442
4443 # We already have this in Makefile.win32, but configure needs it too
4444 if test "$PORTNAME" = "win32"; then
4445   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4446 fi
4447
4448 # Check if the compiler still works with the template settings
4449 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4450 $as_echo_n "checking whether the C compiler still works... " >&6; }
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h.  */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h.  */
4457
4458 int
4459 main ()
4460 {
4461 return 0;
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 rm -f conftest.$ac_objext conftest$ac_exeext
4467 if { (ac_try="$ac_link"
4468 case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4473 $as_echo "$ac_try_echo") >&5
4474   (eval "$ac_link") 2>conftest.er1
4475   ac_status=$?
4476   grep -v '^ *+' conftest.er1 >conftest.err
4477   rm -f conftest.er1
4478   cat conftest.err >&5
4479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); } && {
4481          test -z "$ac_c_werror_flag" ||
4482          test ! -s conftest.err
4483        } && test -s conftest$ac_exeext && {
4484          test "$cross_compiling" = yes ||
4485          $as_test_x conftest$ac_exeext
4486        }; then
4487   { $as_echo "$as_me:$LINENO: result: yes" >&5
4488 $as_echo "yes" >&6; }
4489 else
4490   $as_echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493         { $as_echo "$as_me:$LINENO: result: no" >&5
4494 $as_echo "no" >&6; }
4495    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4496 $as_echo "$as_me: error: cannot proceed" >&2;}
4497    { (exit 1); exit 1; }; }
4498 fi
4499
4500 rm -rf conftest.dSYM
4501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4502       conftest$ac_exeext conftest.$ac_ext
4503
4504 # Defend against gcc -ffast-math
4505 if test "$GCC" = yes; then
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h.  */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h.  */
4512
4513 int
4514 main ()
4515 {
4516 #ifdef __FAST_MATH__
4517 choke me
4518 #endif
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext
4524 if { (ac_try="$ac_compile"
4525 case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4530 $as_echo "$ac_try_echo") >&5
4531   (eval "$ac_compile") 2>conftest.er1
4532   ac_status=$?
4533   grep -v '^ *+' conftest.er1 >conftest.err
4534   rm -f conftest.er1
4535   cat conftest.err >&5
4536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); } && {
4538          test -z "$ac_c_werror_flag" ||
4539          test ! -s conftest.err
4540        } && test -s conftest.$ac_objext; then
4541   :
4542 else
4543   $as_echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4547 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4548    { (exit 1); exit 1; }; }
4549 fi
4550
4551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 fi
4553
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4560 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4561 # On Suns, sometimes $CPP names a directory.
4562 if test -n "$CPP" && test -d "$CPP"; then
4563   CPP=
4564 fi
4565 if test -z "$CPP"; then
4566   if test "${ac_cv_prog_CPP+set}" = set; then
4567   $as_echo_n "(cached) " >&6
4568 else
4569       # Double quotes because CPP needs to be expanded
4570     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4571     do
4572       ac_preproc_ok=false
4573 for ac_c_preproc_warn_flag in '' yes
4574 do
4575   # Use a header file that comes with gcc, so configuring glibc
4576   # with a fresh cross-compiler works.
4577   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578   # <limits.h> exists even on freestanding compilers.
4579   # On the NeXT, cc -E runs the code through the compiler's parser,
4580   # not just through cpp. "Syntax error" is here to catch this case.
4581   cat >conftest.$ac_ext <<_ACEOF
4582 /* confdefs.h.  */
4583 _ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h.  */
4587 #ifdef __STDC__
4588 # include <limits.h>
4589 #else
4590 # include <assert.h>
4591 #endif
4592                      Syntax error
4593 _ACEOF
4594 if { (ac_try="$ac_cpp conftest.$ac_ext"
4595 case "(($ac_try" in
4596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4597   *) ac_try_echo=$ac_try;;
4598 esac
4599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4600 $as_echo "$ac_try_echo") >&5
4601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4602   ac_status=$?
4603   grep -v '^ *+' conftest.er1 >conftest.err
4604   rm -f conftest.er1
4605   cat conftest.err >&5
4606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); } >/dev/null && {
4608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4609          test ! -s conftest.err
4610        }; then
4611   :
4612 else
4613   $as_echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616   # Broken: fails on valid input.
4617 continue
4618 fi
4619
4620 rm -f conftest.err conftest.$ac_ext
4621
4622   # OK, works on sane cases.  Now check whether nonexistent headers
4623   # can be detected and how.
4624   cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h.  */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h.  */
4630 #include <ac_nonexistent.h>
4631 _ACEOF
4632 if { (ac_try="$ac_cpp conftest.$ac_ext"
4633 case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4638 $as_echo "$ac_try_echo") >&5
4639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4640   ac_status=$?
4641   grep -v '^ *+' conftest.er1 >conftest.err
4642   rm -f conftest.er1
4643   cat conftest.err >&5
4644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); } >/dev/null && {
4646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4647          test ! -s conftest.err
4648        }; then
4649   # Broken: success on invalid input.
4650 continue
4651 else
4652   $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655   # Passes both tests.
4656 ac_preproc_ok=:
4657 break
4658 fi
4659
4660 rm -f conftest.err conftest.$ac_ext
4661
4662 done
4663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4664 rm -f conftest.err conftest.$ac_ext
4665 if $ac_preproc_ok; then
4666   break
4667 fi
4668
4669     done
4670     ac_cv_prog_CPP=$CPP
4671
4672 fi
4673   CPP=$ac_cv_prog_CPP
4674 else
4675   ac_cv_prog_CPP=$CPP
4676 fi
4677 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4678 $as_echo "$CPP" >&6; }
4679 ac_preproc_ok=false
4680 for ac_c_preproc_warn_flag in '' yes
4681 do
4682   # Use a header file that comes with gcc, so configuring glibc
4683   # with a fresh cross-compiler works.
4684   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4685   # <limits.h> exists even on freestanding compilers.
4686   # On the NeXT, cc -E runs the code through the compiler's parser,
4687   # not just through cpp. "Syntax error" is here to catch this case.
4688   cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h.  */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h.  */
4694 #ifdef __STDC__
4695 # include <limits.h>
4696 #else
4697 # include <assert.h>
4698 #endif
4699                      Syntax error
4700 _ACEOF
4701 if { (ac_try="$ac_cpp conftest.$ac_ext"
4702 case "(($ac_try" in
4703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704   *) ac_try_echo=$ac_try;;
4705 esac
4706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4707 $as_echo "$ac_try_echo") >&5
4708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4709   ac_status=$?
4710   grep -v '^ *+' conftest.er1 >conftest.err
4711   rm -f conftest.er1
4712   cat conftest.err >&5
4713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); } >/dev/null && {
4715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4716          test ! -s conftest.err
4717        }; then
4718   :
4719 else
4720   $as_echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723   # Broken: fails on valid input.
4724 continue
4725 fi
4726
4727 rm -f conftest.err conftest.$ac_ext
4728
4729   # OK, works on sane cases.  Now check whether nonexistent headers
4730   # can be detected and how.
4731   cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h.  */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h.  */
4737 #include <ac_nonexistent.h>
4738 _ACEOF
4739 if { (ac_try="$ac_cpp conftest.$ac_ext"
4740 case "(($ac_try" in
4741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742   *) ac_try_echo=$ac_try;;
4743 esac
4744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4745 $as_echo "$ac_try_echo") >&5
4746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4747   ac_status=$?
4748   grep -v '^ *+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } >/dev/null && {
4753          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4754          test ! -s conftest.err
4755        }; then
4756   # Broken: success on invalid input.
4757 continue
4758 else
4759   $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4761
4762   # Passes both tests.
4763 ac_preproc_ok=:
4764 break
4765 fi
4766
4767 rm -f conftest.err conftest.$ac_ext
4768
4769 done
4770 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4771 rm -f conftest.err conftest.$ac_ext
4772 if $ac_preproc_ok; then
4773   :
4774 else
4775   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4777 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4778 See \`config.log' for more details." >&5
4779 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4780 See \`config.log' for more details." >&2;}
4781    { (exit 1); exit 1; }; }; }
4782 fi
4783
4784 ac_ext=c
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789
4790
4791
4792
4793 #
4794 # Set up TAS assembly code if needed; the template file has now had its
4795 # chance to request this.
4796 #
4797 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4798
4799
4800 if test "$need_tas" = yes ; then
4801   TAS=tas.o
4802 else
4803   TAS=""
4804 fi
4805
4806
4807
4808 #
4809 # Automatic dependency tracking
4810 #
4811
4812
4813 # Check whether --enable-depend was given.
4814 if test "${enable_depend+set}" = set; then
4815   enableval=$enable_depend;
4816   case $enableval in
4817     yes)
4818       autodepend=yes
4819       ;;
4820     no)
4821       :
4822       ;;
4823     *)
4824       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4825 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4826    { (exit 1); exit 1; }; }
4827       ;;
4828   esac
4829
4830 else
4831   enable_depend=no
4832
4833 fi
4834
4835
4836
4837
4838
4839 #
4840 # Enable assert checks
4841 #
4842
4843
4844 # Check whether --enable-cassert was given.
4845 if test "${enable_cassert+set}" = set; then
4846   enableval=$enable_cassert;
4847   case $enableval in
4848     yes)
4849
4850 cat >>confdefs.h <<\_ACEOF
4851 #define USE_ASSERT_CHECKING 1
4852 _ACEOF
4853
4854       ;;
4855     no)
4856       :
4857       ;;
4858     *)
4859       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4860 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4861    { (exit 1); exit 1; }; }
4862       ;;
4863   esac
4864
4865 else
4866   enable_cassert=no
4867
4868 fi
4869
4870
4871
4872
4873 #
4874 # Include directories
4875 #
4876 ac_save_IFS=$IFS
4877 IFS="${IFS}${PATH_SEPARATOR}"
4878 # SRCH_INC comes from the template file
4879 for dir in $with_includes $SRCH_INC; do
4880   if test -d "$dir"; then
4881     INCLUDES="$INCLUDES -I$dir"
4882   else
4883     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4884 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4885   fi
4886 done
4887 IFS=$ac_save_IFS
4888
4889
4890
4891 #
4892 # Library directories
4893 #
4894 ac_save_IFS=$IFS
4895 IFS="${IFS}${PATH_SEPARATOR}"
4896 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4897 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4898   if test -d "$dir"; then
4899     LIBDIRS="$LIBDIRS -L$dir"
4900   else
4901     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4902 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4903   fi
4904 done
4905 IFS=$ac_save_IFS
4906
4907 #
4908 # Enable thread-safe client libraries
4909 #
4910 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4911 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4912
4913
4914 # Check whether --enable-thread-safety was given.
4915 if test "${enable_thread_safety+set}" = set; then
4916   enableval=$enable_thread_safety;
4917   case $enableval in
4918     yes)
4919       :
4920       ;;
4921     no)
4922       :
4923       ;;
4924     *)
4925       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4926 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4927    { (exit 1); exit 1; }; }
4928       ;;
4929   esac
4930
4931 else
4932   enable_thread_safety=yes
4933
4934 fi
4935
4936
4937 if test "$enable_thread_safety" = yes; then
4938
4939 cat >>confdefs.h <<\_ACEOF
4940 #define ENABLE_THREAD_SAFETY 1
4941 _ACEOF
4942
4943 fi
4944 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4945 $as_echo "$enable_thread_safety" >&6; }
4946
4947
4948 #
4949 # Optionally build Tcl modules (PL/Tcl)
4950 #
4951 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4952 $as_echo_n "checking whether to build with Tcl... " >&6; }
4953
4954
4955
4956 # Check whether --with-tcl was given.
4957 if test "${with_tcl+set}" = set; then
4958   withval=$with_tcl;
4959   case $withval in
4960     yes)
4961       :
4962       ;;
4963     no)
4964       :
4965       ;;
4966     *)
4967       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4968 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4969    { (exit 1); exit 1; }; }
4970       ;;
4971   esac
4972
4973 else
4974   with_tcl=no
4975
4976 fi
4977
4978
4979 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4980 $as_echo "$with_tcl" >&6; }
4981
4982
4983 # We see if the path to the Tcl/Tk configuration scripts is specified.
4984 # This will override the use of tclsh to find the paths to search.
4985
4986
4987
4988
4989 # Check whether --with-tclconfig was given.
4990 if test "${with_tclconfig+set}" = set; then
4991   withval=$with_tclconfig;
4992   case $withval in
4993     yes)
4994       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4995 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4996    { (exit 1); exit 1; }; }
4997       ;;
4998     no)
4999       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5000 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5001    { (exit 1); exit 1; }; }
5002       ;;
5003     *)
5004
5005       ;;
5006   esac
5007
5008 fi
5009
5010
5011
5012 #
5013 # Optionally build Perl modules (PL/Perl)
5014 #
5015 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5016 $as_echo_n "checking whether to build Perl modules... " >&6; }
5017
5018
5019
5020 # Check whether --with-perl was given.
5021 if test "${with_perl+set}" = set; then
5022   withval=$with_perl;
5023   case $withval in
5024     yes)
5025       :
5026       ;;
5027     no)
5028       :
5029       ;;
5030     *)
5031       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5032 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5033    { (exit 1); exit 1; }; }
5034       ;;
5035   esac
5036
5037 else
5038   with_perl=no
5039
5040 fi
5041
5042
5043 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5044 $as_echo "$with_perl" >&6; }
5045
5046
5047 #
5048 # Optionally build Python modules (PL/Python)
5049 #
5050 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5051 $as_echo_n "checking whether to build Python modules... " >&6; }
5052
5053
5054
5055 # Check whether --with-python was given.
5056 if test "${with_python+set}" = set; then
5057   withval=$with_python;
5058   case $withval in
5059     yes)
5060       :
5061       ;;
5062     no)
5063       :
5064       ;;
5065     *)
5066       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5067 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5068    { (exit 1); exit 1; }; }
5069       ;;
5070   esac
5071
5072 else
5073   with_python=no
5074
5075 fi
5076
5077
5078 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5079 $as_echo "$with_python" >&6; }
5080
5081
5082 #
5083 # GSSAPI
5084 #
5085 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5086 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5087
5088
5089
5090 # Check whether --with-gssapi was given.
5091 if test "${with_gssapi+set}" = set; then
5092   withval=$with_gssapi;
5093   case $withval in
5094     yes)
5095
5096
5097 cat >>confdefs.h <<\_ACEOF
5098 #define ENABLE_GSS 1
5099 _ACEOF
5100
5101   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5102
5103       ;;
5104     no)
5105       :
5106       ;;
5107     *)
5108       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5109 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5110    { (exit 1); exit 1; }; }
5111       ;;
5112   esac
5113
5114 else
5115   with_gssapi=no
5116
5117 fi
5118
5119
5120 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5121 $as_echo "$with_gssapi" >&6; }
5122
5123
5124 #
5125 # Kerberos 5
5126 #
5127 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5128 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5129
5130
5131
5132 # Check whether --with-krb5 was given.
5133 if test "${with_krb5+set}" = set; then
5134   withval=$with_krb5;
5135   case $withval in
5136     yes)
5137
5138
5139 cat >>confdefs.h <<\_ACEOF
5140 #define KRB5 1
5141 _ACEOF
5142
5143   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5144
5145       ;;
5146     no)
5147       :
5148       ;;
5149     *)
5150       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5151 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5152    { (exit 1); exit 1; }; }
5153       ;;
5154   esac
5155
5156 else
5157   with_krb5=no
5158
5159 fi
5160
5161
5162 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5163 $as_echo "$with_krb5" >&6; }
5164
5165
5166
5167
5168
5169
5170 #
5171 # Kerberos configuration parameters
5172 #
5173
5174
5175
5176 # Check whether --with-krb-srvnam was given.
5177 if test "${with_krb_srvnam+set}" = set; then
5178   withval=$with_krb_srvnam;
5179   case $withval in
5180     yes)
5181       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5182 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5183    { (exit 1); exit 1; }; }
5184       ;;
5185     no)
5186       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5187 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5188    { (exit 1); exit 1; }; }
5189       ;;
5190     *)
5191
5192       ;;
5193   esac
5194
5195 else
5196   with_krb_srvnam="postgres"
5197 fi
5198
5199
5200
5201 cat >>confdefs.h <<_ACEOF
5202 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5203 _ACEOF
5204
5205
5206
5207 #
5208 # PAM
5209 #
5210 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5211 $as_echo_n "checking whether to build with PAM support... " >&6; }
5212
5213
5214
5215 # Check whether --with-pam was given.
5216 if test "${with_pam+set}" = set; then
5217   withval=$with_pam;
5218   case $withval in
5219     yes)
5220
5221 cat >>confdefs.h <<\_ACEOF
5222 #define USE_PAM 1
5223 _ACEOF
5224
5225       ;;
5226     no)
5227       :
5228       ;;
5229     *)
5230       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5231 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5232    { (exit 1); exit 1; }; }
5233       ;;
5234   esac
5235
5236 else
5237   with_pam=no
5238
5239 fi
5240
5241
5242 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5243 $as_echo "$with_pam" >&6; }
5244
5245
5246
5247 #
5248 # LDAP
5249 #
5250 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5251 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5252
5253
5254
5255 # Check whether --with-ldap was given.
5256 if test "${with_ldap+set}" = set; then
5257   withval=$with_ldap;
5258   case $withval in
5259     yes)
5260
5261 cat >>confdefs.h <<\_ACEOF
5262 #define USE_LDAP 1
5263 _ACEOF
5264
5265       ;;
5266     no)
5267       :
5268       ;;
5269     *)
5270       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5271 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5272    { (exit 1); exit 1; }; }
5273       ;;
5274   esac
5275
5276 else
5277   with_ldap=no
5278
5279 fi
5280
5281
5282 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5283 $as_echo "$with_ldap" >&6; }
5284
5285
5286
5287 #
5288 # Bonjour
5289 #
5290 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5291 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5292
5293
5294
5295 # Check whether --with-bonjour was given.
5296 if test "${with_bonjour+set}" = set; then
5297   withval=$with_bonjour;
5298   case $withval in
5299     yes)
5300
5301 cat >>confdefs.h <<\_ACEOF
5302 #define USE_BONJOUR 1
5303 _ACEOF
5304
5305       ;;
5306     no)
5307       :
5308       ;;
5309     *)
5310       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5311 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5312    { (exit 1); exit 1; }; }
5313       ;;
5314   esac
5315
5316 else
5317   with_bonjour=no
5318
5319 fi
5320
5321
5322 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5323 $as_echo "$with_bonjour" >&6; }
5324
5325
5326
5327 #
5328 # OpenSSL
5329 #
5330 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5331 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5332
5333
5334
5335 # Check whether --with-openssl was given.
5336 if test "${with_openssl+set}" = set; then
5337   withval=$with_openssl;
5338   case $withval in
5339     yes)
5340
5341 cat >>confdefs.h <<\_ACEOF
5342 #define USE_SSL 1
5343 _ACEOF
5344
5345       ;;
5346     no)
5347       :
5348       ;;
5349     *)
5350       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5351 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5352    { (exit 1); exit 1; }; }
5353       ;;
5354   esac
5355
5356 else
5357   with_openssl=no
5358
5359 fi
5360
5361
5362 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5363 $as_echo "$with_openssl" >&6; }
5364
5365
5366
5367 #
5368 # Readline
5369 #
5370
5371
5372
5373 # Check whether --with-readline was given.
5374 if test "${with_readline+set}" = set; then
5375   withval=$with_readline;
5376   case $withval in
5377     yes)
5378       :
5379       ;;
5380     no)
5381       :
5382       ;;
5383     *)
5384       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5385 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5386    { (exit 1); exit 1; }; }
5387       ;;
5388   esac
5389
5390 else
5391   with_readline=yes
5392
5393 fi
5394
5395
5396 # readline on MinGW has problems with backslashes in psql and other bugs.
5397 # This is particularly a problem with non-US code pages.
5398 # Therefore disable its use until we understand the cause. 2004-07-20
5399 if test "$PORTNAME" = "win32"; then
5400   if test "$with_readline" = yes; then
5401     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5402 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5403     with_readline=no
5404   fi
5405 fi
5406
5407
5408 #
5409 # Prefer libedit
5410 #
5411
5412
5413
5414 # Check whether --with-libedit-preferred was given.
5415 if test "${with_libedit_preferred+set}" = set; then
5416   withval=$with_libedit_preferred;
5417   case $withval in
5418     yes)
5419       :
5420       ;;
5421     no)
5422       :
5423       ;;
5424     *)
5425       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5426 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5427    { (exit 1); exit 1; }; }
5428       ;;
5429   esac
5430
5431 else
5432   with_libedit_preferred=no
5433
5434 fi
5435
5436
5437
5438
5439 #
5440 # OSSP UUID library
5441 #
5442
5443
5444
5445 # Check whether --with-ossp-uuid was given.
5446 if test "${with_ossp_uuid+set}" = set; then
5447   withval=$with_ossp_uuid;
5448   case $withval in
5449     yes)
5450       :
5451       ;;
5452     no)
5453       :
5454       ;;
5455     *)
5456       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5457 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5458    { (exit 1); exit 1; }; }
5459       ;;
5460   esac
5461
5462 else
5463   with_ossp_uuid=no
5464
5465 fi
5466
5467
5468
5469
5470
5471 #
5472 # XML
5473 #
5474
5475
5476
5477 # Check whether --with-libxml was given.
5478 if test "${with_libxml+set}" = set; then
5479   withval=$with_libxml;
5480   case $withval in
5481     yes)
5482
5483 cat >>confdefs.h <<\_ACEOF
5484 #define USE_LIBXML 1
5485 _ACEOF
5486
5487       ;;
5488     no)
5489       :
5490       ;;
5491     *)
5492       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5493 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5494    { (exit 1); exit 1; }; }
5495       ;;
5496   esac
5497
5498 else
5499   with_libxml=no
5500
5501 fi
5502
5503
5504
5505 if test "$with_libxml" = yes ; then
5506   for ac_prog in xml2-config
5507 do
5508   # Extract the first word of "$ac_prog", so it can be a program name with args.
5509 set dummy $ac_prog; ac_word=$2
5510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5513   $as_echo_n "(cached) " >&6
5514 else
5515   if test -n "$XML2_CONFIG"; then
5516   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5520 do
5521   IFS=$as_save_IFS
5522   test -z "$as_dir" && as_dir=.
5523   for ac_exec_ext in '' $ac_executable_extensions; do
5524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525     ac_cv_prog_XML2_CONFIG="$ac_prog"
5526     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527     break 2
5528   fi
5529 done
5530 done
5531 IFS=$as_save_IFS
5532
5533 fi
5534 fi
5535 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5536 if test -n "$XML2_CONFIG"; then
5537   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5538 $as_echo "$XML2_CONFIG" >&6; }
5539 else
5540   { $as_echo "$as_me:$LINENO: result: no" >&5
5541 $as_echo "no" >&6; }
5542 fi
5543
5544
5545   test -n "$XML2_CONFIG" && break
5546 done
5547
5548   if test -n "$XML2_CONFIG"; then
5549     for pgac_option in `$XML2_CONFIG --cflags`; do
5550       case $pgac_option in
5551         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5552       esac
5553     done
5554     for pgac_option in `$XML2_CONFIG --libs`; do
5555       case $pgac_option in
5556         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5557       esac
5558     done
5559   fi
5560 fi
5561
5562
5563
5564 #
5565 # XSLT
5566 #
5567
5568
5569
5570 # Check whether --with-libxslt was given.
5571 if test "${with_libxslt+set}" = set; then
5572   withval=$with_libxslt;
5573   case $withval in
5574     yes)
5575
5576 cat >>confdefs.h <<\_ACEOF
5577 #define USE_LIBXSLT 1
5578 _ACEOF
5579
5580       ;;
5581     no)
5582       :
5583       ;;
5584     *)
5585       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5586 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5587    { (exit 1); exit 1; }; }
5588       ;;
5589   esac
5590
5591 else
5592   with_libxslt=no
5593
5594 fi
5595
5596
5597
5598
5599
5600
5601 #
5602 # tzdata
5603 #
5604
5605
5606
5607 # Check whether --with-system-tzdata was given.
5608 if test "${with_system_tzdata+set}" = set; then
5609   withval=$with_system_tzdata;
5610   case $withval in
5611     yes)
5612       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5613 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5614    { (exit 1); exit 1; }; }
5615       ;;
5616     no)
5617       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5618 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5619    { (exit 1); exit 1; }; }
5620       ;;
5621     *)
5622
5623       ;;
5624   esac
5625
5626 fi
5627
5628
5629
5630
5631 #
5632 # Zlib
5633 #
5634
5635
5636
5637 # Check whether --with-zlib was given.
5638 if test "${with_zlib+set}" = set; then
5639   withval=$with_zlib;
5640   case $withval in
5641     yes)
5642       :
5643       ;;
5644     no)
5645       :
5646       ;;
5647     *)
5648       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5649 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5650    { (exit 1); exit 1; }; }
5651       ;;
5652   esac
5653
5654 else
5655   with_zlib=yes
5656
5657 fi
5658
5659
5660
5661
5662 #
5663 # Elf
5664 #
5665
5666 # Assume system is ELF if it predefines __ELF__ as 1,
5667 # otherwise believe host_os based default.
5668 case $host_os in
5669     freebsd1*|freebsd2*) elf=no;;
5670     freebsd3*|freebsd4*) elf=yes;;
5671 esac
5672
5673
5674 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5675 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5676 if test "${ac_cv_path_GREP+set}" = set; then
5677   $as_echo_n "(cached) " >&6
5678 else
5679   if test -z "$GREP"; then
5680   ac_path_GREP_found=false
5681   # Loop through the user's path and test for each of PROGNAME-LIST
5682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5684 do
5685   IFS=$as_save_IFS
5686   test -z "$as_dir" && as_dir=.
5687   for ac_prog in grep ggrep; do
5688     for ac_exec_ext in '' $ac_executable_extensions; do
5689       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5690       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5691 # Check for GNU ac_path_GREP and select it if it is found.
5692   # Check for GNU $ac_path_GREP
5693 case `"$ac_path_GREP" --version 2>&1` in
5694 *GNU*)
5695   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5696 *)
5697   ac_count=0
5698   $as_echo_n 0123456789 >"conftest.in"
5699   while :
5700   do
5701     cat "conftest.in" "conftest.in" >"conftest.tmp"
5702     mv "conftest.tmp" "conftest.in"
5703     cp "conftest.in" "conftest.nl"
5704     $as_echo 'GREP' >> "conftest.nl"
5705     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5706     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5707     ac_count=`expr $ac_count + 1`
5708     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5709       # Best one so far, save it but keep looking for a better one
5710       ac_cv_path_GREP="$ac_path_GREP"
5711       ac_path_GREP_max=$ac_count
5712     fi
5713     # 10*(2^10) chars as input seems more than enough
5714     test $ac_count -gt 10 && break
5715   done
5716   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5717 esac
5718
5719       $ac_path_GREP_found && break 3
5720     done
5721   done
5722 done
5723 IFS=$as_save_IFS
5724   if test -z "$ac_cv_path_GREP"; then
5725     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5726 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5727    { (exit 1); exit 1; }; }
5728   fi
5729 else
5730   ac_cv_path_GREP=$GREP
5731 fi
5732
5733 fi
5734 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5735 $as_echo "$ac_cv_path_GREP" >&6; }
5736  GREP="$ac_cv_path_GREP"
5737
5738
5739 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5740 $as_echo_n "checking for egrep... " >&6; }
5741 if test "${ac_cv_path_EGREP+set}" = set; then
5742   $as_echo_n "(cached) " >&6
5743 else
5744   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5745    then ac_cv_path_EGREP="$GREP -E"
5746    else
5747      if test -z "$EGREP"; then
5748   ac_path_EGREP_found=false
5749   # Loop through the user's path and test for each of PROGNAME-LIST
5750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755   for ac_prog in egrep; do
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5758       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5759 # Check for GNU ac_path_EGREP and select it if it is found.
5760   # Check for GNU $ac_path_EGREP
5761 case `"$ac_path_EGREP" --version 2>&1` in
5762 *GNU*)
5763   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5764 *)
5765   ac_count=0
5766   $as_echo_n 0123456789 >"conftest.in"
5767   while :
5768   do
5769     cat "conftest.in" "conftest.in" >"conftest.tmp"
5770     mv "conftest.tmp" "conftest.in"
5771     cp "conftest.in" "conftest.nl"
5772     $as_echo 'EGREP' >> "conftest.nl"
5773     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5774     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5775     ac_count=`expr $ac_count + 1`
5776     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5777       # Best one so far, save it but keep looking for a better one
5778       ac_cv_path_EGREP="$ac_path_EGREP"
5779       ac_path_EGREP_max=$ac_count
5780     fi
5781     # 10*(2^10) chars as input seems more than enough
5782     test $ac_count -gt 10 && break
5783   done
5784   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5785 esac
5786
5787       $ac_path_EGREP_found && break 3
5788     done
5789   done
5790 done
5791 IFS=$as_save_IFS
5792   if test -z "$ac_cv_path_EGREP"; then
5793     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5794 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5795    { (exit 1); exit 1; }; }
5796   fi
5797 else
5798   ac_cv_path_EGREP=$EGREP
5799 fi
5800
5801    fi
5802 fi
5803 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5804 $as_echo "$ac_cv_path_EGREP" >&6; }
5805  EGREP="$ac_cv_path_EGREP"
5806
5807
5808 cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h.  */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h.  */
5814 #if __ELF__
5815   yes
5816 #endif
5817
5818 _ACEOF
5819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5820   $EGREP "yes" >/dev/null 2>&1; then
5821   ELF_SYS=true
5822 else
5823   if test "X$elf" = "Xyes" ; then
5824   ELF_SYS=true
5825 else
5826   ELF_SYS=
5827 fi
5828 fi
5829 rm -f conftest*
5830
5831
5832
5833 #
5834 # Assignments
5835 #
5836
5837 CPPFLAGS="$CPPFLAGS $INCLUDES"
5838 LDFLAGS="$LDFLAGS $LIBDIRS"
5839
5840
5841
5842
5843
5844 # Check whether --with-gnu-ld was given.
5845 if test "${with_gnu_ld+set}" = set; then
5846   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5847 else
5848   with_gnu_ld=no
5849 fi
5850
5851 ac_prog=ld
5852 if test "$GCC" = yes; then
5853   # Check if gcc -print-prog-name=ld gives a path.
5854   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5855 $as_echo_n "checking for ld used by GCC... " >&6; }
5856   case $host in
5857   *-*-mingw*)
5858     # gcc leaves a trailing carriage return which upsets mingw
5859     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5860   *)
5861     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5862   esac
5863   case "$ac_prog" in
5864     # Accept absolute paths.
5865     [\\/]* | [A-Za-z]:[\\/]*)
5866       re_direlt='/[^/][^/]*/\.\./'
5867       # Canonicalize the path of ld
5868       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5869       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5870         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5871       done
5872       test -z "$LD" && LD="$ac_prog"
5873       ;;
5874   "")
5875     # If it fails, then pretend we aren't using GCC.
5876     ac_prog=ld
5877     ;;
5878   *)
5879     # If it is relative, then search for the first ld in PATH.
5880     with_gnu_ld=unknown
5881     ;;
5882   esac
5883 elif test "$with_gnu_ld" = yes; then
5884   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5885 $as_echo_n "checking for GNU ld... " >&6; }
5886 else
5887   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5888 $as_echo_n "checking for non-GNU ld... " >&6; }
5889 fi
5890 if test "${ac_cv_path_LD+set}" = set; then
5891   $as_echo_n "(cached) " >&6
5892 else
5893   if test -z "$LD"; then
5894   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5895   for ac_dir in $PATH; do
5896     test -z "$ac_dir" && ac_dir=.
5897     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5898       ac_cv_path_LD="$ac_dir/$ac_prog"
5899       # Check to see if the program is GNU ld.  I'd rather use --version,
5900       # but apparently some GNU ld's only accept -v.
5901       # Break only if it was the GNU/non-GNU ld that we prefer.
5902       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5903         test "$with_gnu_ld" != no && break
5904       else
5905         test "$with_gnu_ld" != yes && break
5906       fi
5907     fi
5908   done
5909   IFS="$ac_save_ifs"
5910 else
5911   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5912 fi
5913 fi
5914
5915 LD="$ac_cv_path_LD"
5916 if test -n "$LD"; then
5917   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5918 $as_echo "$LD" >&6; }
5919 else
5920   { $as_echo "$as_me:$LINENO: result: no" >&5
5921 $as_echo "no" >&6; }
5922 fi
5923 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5924 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5925    { (exit 1); exit 1; }; }
5926 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5927 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5928 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5929   $as_echo_n "(cached) " >&6
5930 else
5931   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5932 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5933   ac_cv_prog_gnu_ld=yes
5934 else
5935   ac_cv_prog_gnu_ld=no
5936 fi
5937 fi
5938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5939 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5940 with_gnu_ld=$ac_cv_prog_gnu_ld
5941
5942
5943
5944
5945 case $host_os in sysv5*)
5946   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5947 $as_echo_n "checking whether ld -R works... " >&6; }
5948 if test "${pgac_cv_prog_ld_R+set}" = set; then
5949   $as_echo_n "(cached) " >&6
5950 else
5951
5952     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5953     cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959
5960 int
5961 main ()
5962 {
5963
5964   ;
5965   return 0;
5966 }
5967 _ACEOF
5968 rm -f conftest.$ac_objext conftest$ac_exeext
5969 if { (ac_try="$ac_link"
5970 case "(($ac_try" in
5971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972   *) ac_try_echo=$ac_try;;
5973 esac
5974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5975 $as_echo "$ac_try_echo") >&5
5976   (eval "$ac_link") 2>conftest.er1
5977   ac_status=$?
5978   grep -v '^ *+' conftest.er1 >conftest.err
5979   rm -f conftest.er1
5980   cat conftest.err >&5
5981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } && {
5983          test -z "$ac_c_werror_flag" ||
5984          test ! -s conftest.err
5985        } && test -s conftest$ac_exeext && {
5986          test "$cross_compiling" = yes ||
5987          $as_test_x conftest$ac_exeext
5988        }; then
5989   pgac_cv_prog_ld_R=yes
5990 else
5991   $as_echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994         pgac_cv_prog_ld_R=no
5995 fi
5996
5997 rm -rf conftest.dSYM
5998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5999       conftest$ac_exeext conftest.$ac_ext
6000     LDFLAGS=$pgac_save_LDFLAGS
6001
6002 fi
6003 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6004 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6005   ld_R_works=$pgac_cv_prog_ld_R
6006
6007 esac
6008 if test -n "$ac_tool_prefix"; then
6009   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6011 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if test "${ac_cv_prog_RANLIB+set}" = set; then
6014   $as_echo_n "(cached) " >&6
6015 else
6016   if test -n "$RANLIB"; then
6017   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022   IFS=$as_save_IFS
6023   test -z "$as_dir" && as_dir=.
6024   for ac_exec_ext in '' $ac_executable_extensions; do
6025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6027     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6028     break 2
6029   fi
6030 done
6031 done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 RANLIB=$ac_cv_prog_RANLIB
6037 if test -n "$RANLIB"; then
6038   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6039 $as_echo "$RANLIB" >&6; }
6040 else
6041   { $as_echo "$as_me:$LINENO: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045
6046 fi
6047 if test -z "$ac_cv_prog_RANLIB"; then
6048   ac_ct_RANLIB=$RANLIB
6049   # Extract the first word of "ranlib", so it can be a program name with args.
6050 set dummy ranlib; ac_word=$2
6051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6054   $as_echo_n "(cached) " >&6
6055 else
6056   if test -n "$ac_ct_RANLIB"; then
6057   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064   for ac_exec_ext in '' $ac_executable_extensions; do
6065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066     ac_cv_prog_ac_ct_RANLIB="ranlib"
6067     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6077 if test -n "$ac_ct_RANLIB"; then
6078   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6079 $as_echo "$ac_ct_RANLIB" >&6; }
6080 else
6081   { $as_echo "$as_me:$LINENO: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085   if test "x$ac_ct_RANLIB" = x; then
6086     RANLIB=":"
6087   else
6088     case $cross_compiling:$ac_tool_warned in
6089 yes:)
6090 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6093 esac
6094     RANLIB=$ac_ct_RANLIB
6095   fi
6096 else
6097   RANLIB="$ac_cv_prog_RANLIB"
6098 fi
6099
6100
6101   if test -n "$ac_tool_prefix"; then
6102   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6103 set dummy ${ac_tool_prefix}strip; ac_word=$2
6104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if test "${ac_cv_prog_STRIP+set}" = set; then
6107   $as_echo_n "(cached) " >&6
6108 else
6109   if test -n "$STRIP"; then
6110   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117   for ac_exec_ext in '' $ac_executable_extensions; do
6118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6120     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121     break 2
6122   fi
6123 done
6124 done
6125 IFS=$as_save_IFS
6126
6127 fi
6128 fi
6129 STRIP=$ac_cv_prog_STRIP
6130 if test -n "$STRIP"; then
6131   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6132 $as_echo "$STRIP" >&6; }
6133 else
6134   { $as_echo "$as_me:$LINENO: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6137
6138
6139 fi
6140 if test -z "$ac_cv_prog_STRIP"; then
6141   ac_ct_STRIP=$STRIP
6142   # Extract the first word of "strip", so it can be a program name with args.
6143 set dummy strip; ac_word=$2
6144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 $as_echo_n "checking for $ac_word... " >&6; }
6146 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6147   $as_echo_n "(cached) " >&6
6148 else
6149   if test -n "$ac_ct_STRIP"; then
6150   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6151 else
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 for as_dir in $PATH
6154 do
6155   IFS=$as_save_IFS
6156   test -z "$as_dir" && as_dir=.
6157   for ac_exec_ext in '' $ac_executable_extensions; do
6158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6159     ac_cv_prog_ac_ct_STRIP="strip"
6160     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161     break 2
6162   fi
6163 done
6164 done
6165 IFS=$as_save_IFS
6166
6167 fi
6168 fi
6169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6170 if test -n "$ac_ct_STRIP"; then
6171   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6172 $as_echo "$ac_ct_STRIP" >&6; }
6173 else
6174   { $as_echo "$as_me:$LINENO: result: no" >&5
6175 $as_echo "no" >&6; }
6176 fi
6177
6178   if test "x$ac_ct_STRIP" = x; then
6179     STRIP=":"
6180   else
6181     case $cross_compiling:$ac_tool_warned in
6182 yes:)
6183 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6185 ac_tool_warned=yes ;;
6186 esac
6187     STRIP=$ac_ct_STRIP
6188   fi
6189 else
6190   STRIP="$ac_cv_prog_STRIP"
6191 fi
6192
6193
6194   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6195 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6196   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6197     STRIP_STATIC_LIB="$STRIP -x"
6198     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6199     { $as_echo "$as_me:$LINENO: result: yes" >&5
6200 $as_echo "yes" >&6; }
6201   else
6202     STRIP_STATIC_LIB=:
6203     STRIP_SHARED_LIB=:
6204     { $as_echo "$as_me:$LINENO: result: no" >&5
6205 $as_echo "no" >&6; }
6206   fi
6207
6208
6209
6210 if test -n "$ac_tool_prefix"; then
6211   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6212 set dummy ${ac_tool_prefix}ar; ac_word=$2
6213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 $as_echo_n "checking for $ac_word... " >&6; }
6215 if test "${ac_cv_prog_AR+set}" = set; then
6216   $as_echo_n "(cached) " >&6
6217 else
6218   if test -n "$AR"; then
6219   ac_cv_prog_AR="$AR" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6223 do
6224   IFS=$as_save_IFS
6225   test -z "$as_dir" && as_dir=.
6226   for ac_exec_ext in '' $ac_executable_extensions; do
6227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228     ac_cv_prog_AR="${ac_tool_prefix}ar"
6229     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230     break 2
6231   fi
6232 done
6233 done
6234 IFS=$as_save_IFS
6235
6236 fi
6237 fi
6238 AR=$ac_cv_prog_AR
6239 if test -n "$AR"; then
6240   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6241 $as_echo "$AR" >&6; }
6242 else
6243   { $as_echo "$as_me:$LINENO: result: no" >&5
6244 $as_echo "no" >&6; }
6245 fi
6246
6247
6248 fi
6249 if test -z "$ac_cv_prog_AR"; then
6250   ac_ct_AR=$AR
6251   # Extract the first word of "ar", so it can be a program name with args.
6252 set dummy ar; ac_word=$2
6253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6256   $as_echo_n "(cached) " >&6
6257 else
6258   if test -n "$ac_ct_AR"; then
6259   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6260 else
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 for as_dir in $PATH
6263 do
6264   IFS=$as_save_IFS
6265   test -z "$as_dir" && as_dir=.
6266   for ac_exec_ext in '' $ac_executable_extensions; do
6267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268     ac_cv_prog_ac_ct_AR="ar"
6269     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270     break 2
6271   fi
6272 done
6273 done
6274 IFS=$as_save_IFS
6275
6276 fi
6277 fi
6278 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6279 if test -n "$ac_ct_AR"; then
6280   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6281 $as_echo "$ac_ct_AR" >&6; }
6282 else
6283   { $as_echo "$as_me:$LINENO: result: no" >&5
6284 $as_echo "no" >&6; }
6285 fi
6286
6287   if test "x$ac_ct_AR" = x; then
6288     AR="ar"
6289   else
6290     case $cross_compiling:$ac_tool_warned in
6291 yes:)
6292 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6294 ac_tool_warned=yes ;;
6295 esac
6296     AR=$ac_ct_AR
6297   fi
6298 else
6299   AR="$ac_cv_prog_AR"
6300 fi
6301
6302 if test "$PORTNAME" = "win32"; then
6303   if test -n "$ac_tool_prefix"; then
6304   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6305 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if test -n "$DLLTOOL"; then
6312   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319   for ac_exec_ext in '' $ac_executable_extensions; do
6320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6322     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326 done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 DLLTOOL=$ac_cv_prog_DLLTOOL
6332 if test -n "$DLLTOOL"; then
6333   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6334 $as_echo "$DLLTOOL" >&6; }
6335 else
6336   { $as_echo "$as_me:$LINENO: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340
6341 fi
6342 if test -z "$ac_cv_prog_DLLTOOL"; then
6343   ac_ct_DLLTOOL=$DLLTOOL
6344   # Extract the first word of "dlltool", so it can be a program name with args.
6345 set dummy dlltool; ac_word=$2
6346 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6349   $as_echo_n "(cached) " >&6
6350 else
6351   if test -n "$ac_ct_DLLTOOL"; then
6352   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359   for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6362     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6372 if test -n "$ac_ct_DLLTOOL"; then
6373   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6374 $as_echo "$ac_ct_DLLTOOL" >&6; }
6375 else
6376   { $as_echo "$as_me:$LINENO: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380   if test "x$ac_ct_DLLTOOL" = x; then
6381     DLLTOOL="dlltool"
6382   else
6383     case $cross_compiling:$ac_tool_warned in
6384 yes:)
6385 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned=yes ;;
6388 esac
6389     DLLTOOL=$ac_ct_DLLTOOL
6390   fi
6391 else
6392   DLLTOOL="$ac_cv_prog_DLLTOOL"
6393 fi
6394
6395   if test -n "$ac_tool_prefix"; then
6396   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6397 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6401   $as_echo_n "(cached) " >&6
6402 else
6403   if test -n "$DLLWRAP"; then
6404   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411   for ac_exec_ext in '' $ac_executable_extensions; do
6412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6414     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418 done
6419 IFS=$as_save_IFS
6420
6421 fi
6422 fi
6423 DLLWRAP=$ac_cv_prog_DLLWRAP
6424 if test -n "$DLLWRAP"; then
6425   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6426 $as_echo "$DLLWRAP" >&6; }
6427 else
6428   { $as_echo "$as_me:$LINENO: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431
6432
6433 fi
6434 if test -z "$ac_cv_prog_DLLWRAP"; then
6435   ac_ct_DLLWRAP=$DLLWRAP
6436   # Extract the first word of "dllwrap", so it can be a program name with args.
6437 set dummy dllwrap; ac_word=$2
6438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6441   $as_echo_n "(cached) " >&6
6442 else
6443   if test -n "$ac_ct_DLLWRAP"; then
6444   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449   IFS=$as_save_IFS
6450   test -z "$as_dir" && as_dir=.
6451   for ac_exec_ext in '' $ac_executable_extensions; do
6452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6454     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6455     break 2
6456   fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6464 if test -n "$ac_ct_DLLWRAP"; then
6465   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6466 $as_echo "$ac_ct_DLLWRAP" >&6; }
6467 else
6468   { $as_echo "$as_me:$LINENO: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472   if test "x$ac_ct_DLLWRAP" = x; then
6473     DLLWRAP="dllwrap"
6474   else
6475     case $cross_compiling:$ac_tool_warned in
6476 yes:)
6477 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned=yes ;;
6480 esac
6481     DLLWRAP=$ac_ct_DLLWRAP
6482   fi
6483 else
6484   DLLWRAP="$ac_cv_prog_DLLWRAP"
6485 fi
6486
6487   if test -n "$ac_tool_prefix"; then
6488   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}windres; ac_word=$2
6490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if test "${ac_cv_prog_WINDRES+set}" = set; then
6493   $as_echo_n "(cached) " >&6
6494 else
6495   if test -n "$WINDRES"; then
6496   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503   for ac_exec_ext in '' $ac_executable_extensions; do
6504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6505     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6506     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510 done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 WINDRES=$ac_cv_prog_WINDRES
6516 if test -n "$WINDRES"; then
6517   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6518 $as_echo "$WINDRES" >&6; }
6519 else
6520   { $as_echo "$as_me:$LINENO: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524
6525 fi
6526 if test -z "$ac_cv_prog_WINDRES"; then
6527   ac_ct_WINDRES=$WINDRES
6528   # Extract the first word of "windres", so it can be a program name with args.
6529 set dummy windres; ac_word=$2
6530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6533   $as_echo_n "(cached) " >&6
6534 else
6535   if test -n "$ac_ct_WINDRES"; then
6536   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543   for ac_exec_ext in '' $ac_executable_extensions; do
6544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545     ac_cv_prog_ac_ct_WINDRES="windres"
6546     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6556 if test -n "$ac_ct_WINDRES"; then
6557   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6558 $as_echo "$ac_ct_WINDRES" >&6; }
6559 else
6560   { $as_echo "$as_me:$LINENO: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564   if test "x$ac_ct_WINDRES" = x; then
6565     WINDRES="windres"
6566   else
6567     case $cross_compiling:$ac_tool_warned in
6568 yes:)
6569 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571 ac_tool_warned=yes ;;
6572 esac
6573     WINDRES=$ac_ct_WINDRES
6574   fi
6575 else
6576   WINDRES="$ac_cv_prog_WINDRES"
6577 fi
6578
6579 fi
6580
6581 # Extract the first word of "tar", so it can be a program name with args.
6582 set dummy tar; ac_word=$2
6583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if test "${ac_cv_path_TAR+set}" = set; then
6586   $as_echo_n "(cached) " >&6
6587 else
6588   case $TAR in
6589   [\\/]* | ?:[\\/]*)
6590   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6591   ;;
6592   *)
6593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598   for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6601     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608   ;;
6609 esac
6610 fi
6611 TAR=$ac_cv_path_TAR
6612 if test -n "$TAR"; then
6613   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6614 $as_echo "$TAR" >&6; }
6615 else
6616   { $as_echo "$as_me:$LINENO: result: no" >&5
6617 $as_echo "no" >&6; }
6618 fi
6619
6620
6621 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6622 $as_echo_n "checking whether ln -s works... " >&6; }
6623 LN_S=$as_ln_s
6624 if test "$LN_S" = "ln -s"; then
6625   { $as_echo "$as_me:$LINENO: result: yes" >&5
6626 $as_echo "yes" >&6; }
6627 else
6628   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6629 $as_echo "no, using $LN_S" >&6; }
6630 fi
6631
6632 for ac_prog in gawk mawk nawk awk
6633 do
6634   # Extract the first word of "$ac_prog", so it can be a program name with args.
6635 set dummy $ac_prog; ac_word=$2
6636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if test "${ac_cv_prog_AWK+set}" = set; then
6639   $as_echo_n "(cached) " >&6
6640 else
6641   if test -n "$AWK"; then
6642   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647   IFS=$as_save_IFS
6648   test -z "$as_dir" && as_dir=.
6649   for ac_exec_ext in '' $ac_executable_extensions; do
6650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651     ac_cv_prog_AWK="$ac_prog"
6652     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653     break 2
6654   fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 AWK=$ac_cv_prog_AWK
6662 if test -n "$AWK"; then
6663   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6664 $as_echo "$AWK" >&6; }
6665 else
6666   { $as_echo "$as_me:$LINENO: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670
6671   test -n "$AWK" && break
6672 done
6673
6674 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6675 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6676 if test -z "$MKDIR_P"; then
6677   if test "${ac_cv_path_mkdir+set}" = set; then
6678   $as_echo_n "(cached) " >&6
6679 else
6680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685   for ac_prog in mkdir gmkdir; do
6686          for ac_exec_ext in '' $ac_executable_extensions; do
6687            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6688            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6689              'mkdir (GNU coreutils) '* | \
6690              'mkdir (coreutils) '* | \
6691              'mkdir (fileutils) '4.1*)
6692                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6693                break 3;;
6694            esac
6695          done
6696        done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi
6701
6702   if test "${ac_cv_path_mkdir+set}" = set; then
6703     MKDIR_P="$ac_cv_path_mkdir -p"
6704   else
6705     # As a last resort, use the slow shell script.  Don't cache a
6706     # value for MKDIR_P within a source directory, because that will
6707     # break other packages using the cache if that directory is
6708     # removed, or if the value is a relative name.
6709     test -d ./--version && rmdir ./--version
6710     MKDIR_P="$ac_install_sh -d"
6711   fi
6712 fi
6713 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6714 $as_echo "$MKDIR_P" >&6; }
6715
6716 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6717 # a relative path to it in each makefile where it subsitutes it. This clashes
6718 # with our Makefile.global concept. This workaround helps.
6719 case $MKDIR_P in
6720   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6721 esac
6722
6723 # Let the user override the search
6724 if test -z "$BISON"; then
6725   for ac_prog in bison
6726 do
6727   # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; ac_word=$2
6729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if test "${ac_cv_path_BISON+set}" = set; then
6732   $as_echo_n "(cached) " >&6
6733 else
6734   case $BISON in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6747     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754   ;;
6755 esac
6756 fi
6757 BISON=$ac_cv_path_BISON
6758 if test -n "$BISON"; then
6759   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6760 $as_echo "$BISON" >&6; }
6761 else
6762   { $as_echo "$as_me:$LINENO: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766
6767   test -n "$BISON" && break
6768 done
6769
6770 fi
6771
6772 if test "$BISON"; then
6773   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6774   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6775 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6776   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6777   then
6778     { $as_echo "$as_me:$LINENO: WARNING:
6779 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6780 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6781 $as_echo "$as_me: WARNING:
6782 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6783 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6784     BISON=""
6785   fi
6786 fi
6787
6788 if test -z "$BISON"; then
6789   { $as_echo "$as_me:$LINENO: WARNING:
6790 *** Without Bison you will not be able to build PostgreSQL from Git nor
6791 *** change any of the parser definition files.  You can obtain Bison from
6792 *** a GNU mirror site.  (If you are using the official distribution of
6793 *** PostgreSQL then you do not need to worry about this, because the Bison
6794 *** output is pre-generated.)" >&5
6795 $as_echo "$as_me: WARNING:
6796 *** Without Bison you will not be able to build PostgreSQL from Git nor
6797 *** change any of the parser definition files.  You can obtain Bison from
6798 *** a GNU mirror site.  (If you are using the official distribution of
6799 *** PostgreSQL then you do not need to worry about this, because the Bison
6800 *** output is pre-generated.)" >&2;}
6801 fi
6802 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6803
6804
6805 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6806 $as_echo_n "checking for flex... " >&6; }
6807 if test "${pgac_cv_path_flex+set}" = set; then
6808   $as_echo_n "(cached) " >&6
6809 else
6810   # Let the user override the test
6811 if test -n "$FLEX"; then
6812   pgac_cv_path_flex=$FLEX
6813 else
6814   pgac_save_IFS=$IFS
6815   IFS=$PATH_SEPARATOR
6816   for pgac_dir in $PATH; do
6817     IFS=$pgac_save_IFS
6818     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6819       pgac_dir=`pwd`
6820     fi
6821     for pgac_prog in flex lex; do
6822       pgac_candidate="$pgac_dir/$pgac_prog"
6823       if test -f "$pgac_candidate" \
6824         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6825       then
6826         echo '%%'  > conftest.l
6827         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6828           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6829           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6830           then
6831             pgac_cv_path_flex=$pgac_candidate
6832             break 2
6833           else
6834             { $as_echo "$as_me:$LINENO: WARNING:
6835 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6836 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6837 $as_echo "$as_me: WARNING:
6838 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6839 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6840           fi
6841         fi
6842       fi
6843     done
6844   done
6845   rm -f conftest.l lex.yy.c
6846   : ${pgac_cv_path_flex=no}
6847 fi
6848
6849 fi
6850 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6851 $as_echo "$pgac_cv_path_flex" >&6; }
6852 if test x"$pgac_cv_path_flex" = x"no"; then
6853   { $as_echo "$as_me:$LINENO: WARNING:
6854 *** Without Flex you will not be able to build PostgreSQL from Git nor
6855 *** change any of the scanner definition files.  You can obtain Flex from
6856 *** a GNU mirror site.  (If you are using the official distribution of
6857 *** PostgreSQL then you do not need to worry about this because the Flex
6858 *** output is pre-generated.)" >&5
6859 $as_echo "$as_me: WARNING:
6860 *** Without Flex you will not be able to build PostgreSQL from Git nor
6861 *** change any of the scanner definition files.  You can obtain Flex from
6862 *** a GNU mirror site.  (If you are using the official distribution of
6863 *** PostgreSQL then you do not need to worry about this because the Flex
6864 *** output is pre-generated.)" >&2;}
6865
6866   FLEX=
6867 else
6868   FLEX=$pgac_cv_path_flex
6869   pgac_flex_version=`$FLEX --version 2>/dev/null`
6870   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6871 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6872 fi
6873
6874
6875
6876
6877
6878 # Let the user override the search
6879 if test -z "$PERL"; then
6880   # Extract the first word of "perl", so it can be a program name with args.
6881 set dummy perl; ac_word=$2
6882 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if test "${ac_cv_path_PERL+set}" = set; then
6885   $as_echo_n "(cached) " >&6
6886 else
6887   case $PERL in
6888   [\\/]* | ?:[\\/]*)
6889   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6890   ;;
6891   *)
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6900     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907   ;;
6908 esac
6909 fi
6910 PERL=$ac_cv_path_PERL
6911 if test -n "$PERL"; then
6912   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6913 $as_echo "$PERL" >&6; }
6914 else
6915   { $as_echo "$as_me:$LINENO: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921
6922 if test "$PERL"; then
6923   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'`
6924   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6925 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6926   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6927     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6928   then
6929     { $as_echo "$as_me:$LINENO: WARNING:
6930 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6931 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6932 $as_echo "$as_me: WARNING:
6933 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6934 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6935     PERL=""
6936   fi
6937 fi
6938
6939 if test -z "$PERL"; then
6940   { $as_echo "$as_me:$LINENO: WARNING:
6941 *** Without Perl you will not be able to build PostgreSQL from Git.
6942 *** You can obtain Perl from any CPAN mirror site.
6943 *** (If you are using the official distribution of PostgreSQL then you do not
6944 *** need to worry about this, because the Perl output is pre-generated.)" >&5
6945 $as_echo "$as_me: WARNING:
6946 *** Without Perl you will not be able to build PostgreSQL from Git.
6947 *** You can obtain Perl from any CPAN mirror site.
6948 *** (If you are using the official distribution of PostgreSQL then you do not
6949 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6950 fi
6951
6952 if test "$with_perl" = yes; then
6953   if test -z "$PERL"; then
6954     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6955 $as_echo "$as_me: error: Perl not found" >&2;}
6956    { (exit 1); exit 1; }; }
6957   fi
6958
6959 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6960 $as_echo_n "checking for Perl archlibexp... " >&6; }
6961 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6962 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6963 $as_echo "$perl_archlibexp" >&6; }
6964 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6965 $as_echo_n "checking for Perl privlibexp... " >&6; }
6966 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6967 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6968 $as_echo "$perl_privlibexp" >&6; }
6969 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6970 $as_echo_n "checking for Perl useshrplib... " >&6; }
6971 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6972 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6973 $as_echo "$perl_useshrplib" >&6; }
6974
6975 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6976 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6977 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6978 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6979 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6980 if test -z "$perl_embed_ldflags" ; then
6981         { $as_echo "$as_me:$LINENO: result: no" >&5
6982 $as_echo "no" >&6; }
6983         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6984 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6985 installed." >&5
6986 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6987 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6988 installed." >&2;}
6989    { (exit 1); exit 1; }; }
6990 else
6991         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6992 $as_echo "$perl_embed_ldflags" >&6; }
6993 fi
6994
6995 fi
6996
6997 if test "$with_python" = yes; then
6998   # Extract the first word of "python", so it can be a program name with args.
6999 set dummy python; ac_word=$2
7000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if test "${ac_cv_path_PYTHON+set}" = set; then
7003   $as_echo_n "(cached) " >&6
7004 else
7005   case $PYTHON in
7006   [\\/]* | ?:[\\/]*)
7007   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7008   ;;
7009   *)
7010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7012 do
7013   IFS=$as_save_IFS
7014   test -z "$as_dir" && as_dir=.
7015   for ac_exec_ext in '' $ac_executable_extensions; do
7016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7018     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019     break 2
7020   fi
7021 done
7022 done
7023 IFS=$as_save_IFS
7024
7025   ;;
7026 esac
7027 fi
7028 PYTHON=$ac_cv_path_PYTHON
7029 if test -n "$PYTHON"; then
7030   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7031 $as_echo "$PYTHON" >&6; }
7032 else
7033   { $as_echo "$as_me:$LINENO: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037
7038 if test x"$PYTHON" = x""; then
7039   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7040 $as_echo "$as_me: error: Python not found" >&2;}
7041    { (exit 1); exit 1; }; }
7042 fi
7043
7044
7045 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7046 $as_echo_n "checking for Python distutils module... " >&6; }
7047 if "${PYTHON}" -c 'import distutils' 2>&5
7048 then
7049     { $as_echo "$as_me:$LINENO: result: yes" >&5
7050 $as_echo "yes" >&6; }
7051 else
7052     { $as_echo "$as_me:$LINENO: result: no" >&5
7053 $as_echo "no" >&6; }
7054     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7055 $as_echo "$as_me: error: distutils module not found" >&2;}
7056    { (exit 1); exit 1; }; }
7057 fi
7058 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7059 $as_echo_n "checking Python configuration directory... " >&6; }
7060 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7061 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7062 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
7063 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7064
7065 # This should be enough of a message.
7066 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7067 $as_echo "$python_configdir" >&6; }
7068
7069
7070 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7071 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7072
7073 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7074 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7075 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7076 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7077
7078 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7079 then
7080         # New way: use the official shared library
7081         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7082         python_libspec="-L${python_libdir} -l${ldlibrary}"
7083 else
7084         # Old way: use libpython from python_configdir
7085         python_libdir="${python_configdir}"
7086         python_libspec="-L${python_libdir} -lpython${python_version}"
7087 fi
7088
7089 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7090
7091 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7092 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7093
7094
7095 # threaded python is not supported on bsd's
7096 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7097 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7098 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7099 if test "$pythreads" = "1"; then
7100   { $as_echo "$as_me:$LINENO: result: yes" >&5
7101 $as_echo "yes" >&6; }
7102   case $host_os in
7103   openbsd*|freebsd*)
7104     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7105 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7106    { (exit 1); exit 1; }; }
7107     ;;
7108   esac
7109 else
7110   { $as_echo "$as_me:$LINENO: result: no" >&5
7111 $as_echo "no" >&6; }
7112 fi
7113
7114
7115 fi
7116
7117 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7118   # Extract the first word of "zic", so it can be a program name with args.
7119 set dummy zic; ac_word=$2
7120 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if test "${ac_cv_path_ZIC+set}" = set; then
7123   $as_echo_n "(cached) " >&6
7124 else
7125   case $ZIC in
7126   [\\/]* | ?:[\\/]*)
7127   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7128   ;;
7129   *)
7130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135   for ac_exec_ext in '' $ac_executable_extensions; do
7136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7138     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145   ;;
7146 esac
7147 fi
7148 ZIC=$ac_cv_path_ZIC
7149 if test -n "$ZIC"; then
7150   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7151 $as_echo "$ZIC" >&6; }
7152 else
7153   { $as_echo "$as_me:$LINENO: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156
7157
7158   if test -z "$ZIC"; then
7159     { { $as_echo "$as_me:$LINENO: error:
7160 When cross-compiling, either use the option --with-system-tzdata to use
7161 existing time-zone data, or set the environment variable ZIC to a zic
7162 program to use during the build." >&5
7163 $as_echo "$as_me: error:
7164 When cross-compiling, either use the option --with-system-tzdata to use
7165 existing time-zone data, or set the environment variable ZIC to a zic
7166 program to use during the build." >&2;}
7167    { (exit 1); exit 1; }; }
7168   fi
7169 fi
7170
7171
7172 ##
7173 ## Libraries
7174 ##
7175 ## Most libraries are included only if they demonstrably provide a function
7176 ## we need, but libm is an exception: always include it, because there are
7177 ## too many compilers that play cute optimization games that will break
7178 ## probes for standard functions such as pow().
7179 ##
7180
7181
7182 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7183 $as_echo_n "checking for main in -lm... " >&6; }
7184 if test "${ac_cv_lib_m_main+set}" = set; then
7185   $as_echo_n "(cached) " >&6
7186 else
7187   ac_check_lib_save_LIBS=$LIBS
7188 LIBS="-lm  $LIBS"
7189 cat >conftest.$ac_ext <<_ACEOF
7190 /* confdefs.h.  */
7191 _ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h.  */
7195
7196
7197 int
7198 main ()
7199 {
7200 return main ();
7201   ;
7202   return 0;
7203 }
7204 _ACEOF
7205 rm -f conftest.$ac_objext conftest$ac_exeext
7206 if { (ac_try="$ac_link"
7207 case "(($ac_try" in
7208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7209   *) ac_try_echo=$ac_try;;
7210 esac
7211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7212 $as_echo "$ac_try_echo") >&5
7213   (eval "$ac_link") 2>conftest.er1
7214   ac_status=$?
7215   grep -v '^ *+' conftest.er1 >conftest.err
7216   rm -f conftest.er1
7217   cat conftest.err >&5
7218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); } && {
7220          test -z "$ac_c_werror_flag" ||
7221          test ! -s conftest.err
7222        } && test -s conftest$ac_exeext && {
7223          test "$cross_compiling" = yes ||
7224          $as_test_x conftest$ac_exeext
7225        }; then
7226   ac_cv_lib_m_main=yes
7227 else
7228   $as_echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.$ac_ext >&5
7230
7231         ac_cv_lib_m_main=no
7232 fi
7233
7234 rm -rf conftest.dSYM
7235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7236       conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7238 fi
7239 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7240 $as_echo "$ac_cv_lib_m_main" >&6; }
7241 if test "x$ac_cv_lib_m_main" = x""yes; then
7242   cat >>confdefs.h <<_ACEOF
7243 #define HAVE_LIBM 1
7244 _ACEOF
7245
7246   LIBS="-lm $LIBS"
7247
7248 fi
7249
7250 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7251 $as_echo_n "checking for library containing setproctitle... " >&6; }
7252 if test "${ac_cv_search_setproctitle+set}" = set; then
7253   $as_echo_n "(cached) " >&6
7254 else
7255   ac_func_search_save_LIBS=$LIBS
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h.  */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h.  */
7262
7263 /* Override any GCC internal prototype to avoid an error.
7264    Use char because int might match the return type of a GCC
7265    builtin and then its argument prototype would still apply.  */
7266 #ifdef __cplusplus
7267 extern "C"
7268 #endif
7269 char setproctitle ();
7270 int
7271 main ()
7272 {
7273 return setproctitle ();
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 for ac_lib in '' util; do
7279   if test -z "$ac_lib"; then
7280     ac_res="none required"
7281   else
7282     ac_res=-l$ac_lib
7283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7284   fi
7285   rm -f conftest.$ac_objext conftest$ac_exeext
7286 if { (ac_try="$ac_link"
7287 case "(($ac_try" in
7288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289   *) ac_try_echo=$ac_try;;
7290 esac
7291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7292 $as_echo "$ac_try_echo") >&5
7293   (eval "$ac_link") 2>conftest.er1
7294   ac_status=$?
7295   grep -v '^ *+' conftest.er1 >conftest.err
7296   rm -f conftest.er1
7297   cat conftest.err >&5
7298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); } && {
7300          test -z "$ac_c_werror_flag" ||
7301          test ! -s conftest.err
7302        } && test -s conftest$ac_exeext && {
7303          test "$cross_compiling" = yes ||
7304          $as_test_x conftest$ac_exeext
7305        }; then
7306   ac_cv_search_setproctitle=$ac_res
7307 else
7308   $as_echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311
7312 fi
7313
7314 rm -rf conftest.dSYM
7315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7316       conftest$ac_exeext
7317   if test "${ac_cv_search_setproctitle+set}" = set; then
7318   break
7319 fi
7320 done
7321 if test "${ac_cv_search_setproctitle+set}" = set; then
7322   :
7323 else
7324   ac_cv_search_setproctitle=no
7325 fi
7326 rm conftest.$ac_ext
7327 LIBS=$ac_func_search_save_LIBS
7328 fi
7329 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7330 $as_echo "$ac_cv_search_setproctitle" >&6; }
7331 ac_res=$ac_cv_search_setproctitle
7332 if test "$ac_res" != no; then
7333   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7334
7335 fi
7336
7337 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7338 $as_echo_n "checking for library containing dlopen... " >&6; }
7339 if test "${ac_cv_search_dlopen+set}" = set; then
7340   $as_echo_n "(cached) " >&6
7341 else
7342   ac_func_search_save_LIBS=$LIBS
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h.  */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h.  */
7349
7350 /* Override any GCC internal prototype to avoid an error.
7351    Use char because int might match the return type of a GCC
7352    builtin and then its argument prototype would still apply.  */
7353 #ifdef __cplusplus
7354 extern "C"
7355 #endif
7356 char dlopen ();
7357 int
7358 main ()
7359 {
7360 return dlopen ();
7361   ;
7362   return 0;
7363 }
7364 _ACEOF
7365 for ac_lib in '' dl; do
7366   if test -z "$ac_lib"; then
7367     ac_res="none required"
7368   else
7369     ac_res=-l$ac_lib
7370     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7371   fi
7372   rm -f conftest.$ac_objext conftest$ac_exeext
7373 if { (ac_try="$ac_link"
7374 case "(($ac_try" in
7375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7376   *) ac_try_echo=$ac_try;;
7377 esac
7378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7379 $as_echo "$ac_try_echo") >&5
7380   (eval "$ac_link") 2>conftest.er1
7381   ac_status=$?
7382   grep -v '^ *+' conftest.er1 >conftest.err
7383   rm -f conftest.er1
7384   cat conftest.err >&5
7385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); } && {
7387          test -z "$ac_c_werror_flag" ||
7388          test ! -s conftest.err
7389        } && test -s conftest$ac_exeext && {
7390          test "$cross_compiling" = yes ||
7391          $as_test_x conftest$ac_exeext
7392        }; then
7393   ac_cv_search_dlopen=$ac_res
7394 else
7395   $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398
7399 fi
7400
7401 rm -rf conftest.dSYM
7402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7403       conftest$ac_exeext
7404   if test "${ac_cv_search_dlopen+set}" = set; then
7405   break
7406 fi
7407 done
7408 if test "${ac_cv_search_dlopen+set}" = set; then
7409   :
7410 else
7411   ac_cv_search_dlopen=no
7412 fi
7413 rm conftest.$ac_ext
7414 LIBS=$ac_func_search_save_LIBS
7415 fi
7416 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7417 $as_echo "$ac_cv_search_dlopen" >&6; }
7418 ac_res=$ac_cv_search_dlopen
7419 if test "$ac_res" != no; then
7420   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7421
7422 fi
7423
7424 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7425 $as_echo_n "checking for library containing socket... " >&6; }
7426 if test "${ac_cv_search_socket+set}" = set; then
7427   $as_echo_n "(cached) " >&6
7428 else
7429   ac_func_search_save_LIBS=$LIBS
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h.  */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h.  */
7436
7437 /* Override any GCC internal prototype to avoid an error.
7438    Use char because int might match the return type of a GCC
7439    builtin and then its argument prototype would still apply.  */
7440 #ifdef __cplusplus
7441 extern "C"
7442 #endif
7443 char socket ();
7444 int
7445 main ()
7446 {
7447 return socket ();
7448   ;
7449   return 0;
7450 }
7451 _ACEOF
7452 for ac_lib in '' socket wsock32; do
7453   if test -z "$ac_lib"; then
7454     ac_res="none required"
7455   else
7456     ac_res=-l$ac_lib
7457     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7458   fi
7459   rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (ac_try="$ac_link"
7461 case "(($ac_try" in
7462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463   *) ac_try_echo=$ac_try;;
7464 esac
7465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7466 $as_echo "$ac_try_echo") >&5
7467   (eval "$ac_link") 2>conftest.er1
7468   ac_status=$?
7469   grep -v '^ *+' conftest.er1 >conftest.err
7470   rm -f conftest.er1
7471   cat conftest.err >&5
7472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); } && {
7474          test -z "$ac_c_werror_flag" ||
7475          test ! -s conftest.err
7476        } && test -s conftest$ac_exeext && {
7477          test "$cross_compiling" = yes ||
7478          $as_test_x conftest$ac_exeext
7479        }; then
7480   ac_cv_search_socket=$ac_res
7481 else
7482   $as_echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485
7486 fi
7487
7488 rm -rf conftest.dSYM
7489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7490       conftest$ac_exeext
7491   if test "${ac_cv_search_socket+set}" = set; then
7492   break
7493 fi
7494 done
7495 if test "${ac_cv_search_socket+set}" = set; then
7496   :
7497 else
7498   ac_cv_search_socket=no
7499 fi
7500 rm conftest.$ac_ext
7501 LIBS=$ac_func_search_save_LIBS
7502 fi
7503 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7504 $as_echo "$ac_cv_search_socket" >&6; }
7505 ac_res=$ac_cv_search_socket
7506 if test "$ac_res" != no; then
7507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7508
7509 fi
7510
7511 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7512 $as_echo_n "checking for library containing shl_load... " >&6; }
7513 if test "${ac_cv_search_shl_load+set}" = set; then
7514   $as_echo_n "(cached) " >&6
7515 else
7516   ac_func_search_save_LIBS=$LIBS
7517 cat >conftest.$ac_ext <<_ACEOF
7518 /* confdefs.h.  */
7519 _ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h.  */
7523
7524 /* Override any GCC internal prototype to avoid an error.
7525    Use char because int might match the return type of a GCC
7526    builtin and then its argument prototype would still apply.  */
7527 #ifdef __cplusplus
7528 extern "C"
7529 #endif
7530 char shl_load ();
7531 int
7532 main ()
7533 {
7534 return shl_load ();
7535   ;
7536   return 0;
7537 }
7538 _ACEOF
7539 for ac_lib in '' dld; do
7540   if test -z "$ac_lib"; then
7541     ac_res="none required"
7542   else
7543     ac_res=-l$ac_lib
7544     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7545   fi
7546   rm -f conftest.$ac_objext conftest$ac_exeext
7547 if { (ac_try="$ac_link"
7548 case "(($ac_try" in
7549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550   *) ac_try_echo=$ac_try;;
7551 esac
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554   (eval "$ac_link") 2>conftest.er1
7555   ac_status=$?
7556   grep -v '^ *+' conftest.er1 >conftest.err
7557   rm -f conftest.er1
7558   cat conftest.err >&5
7559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); } && {
7561          test -z "$ac_c_werror_flag" ||
7562          test ! -s conftest.err
7563        } && test -s conftest$ac_exeext && {
7564          test "$cross_compiling" = yes ||
7565          $as_test_x conftest$ac_exeext
7566        }; then
7567   ac_cv_search_shl_load=$ac_res
7568 else
7569   $as_echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572
7573 fi
7574
7575 rm -rf conftest.dSYM
7576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7577       conftest$ac_exeext
7578   if test "${ac_cv_search_shl_load+set}" = set; then
7579   break
7580 fi
7581 done
7582 if test "${ac_cv_search_shl_load+set}" = set; then
7583   :
7584 else
7585   ac_cv_search_shl_load=no
7586 fi
7587 rm conftest.$ac_ext
7588 LIBS=$ac_func_search_save_LIBS
7589 fi
7590 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7591 $as_echo "$ac_cv_search_shl_load" >&6; }
7592 ac_res=$ac_cv_search_shl_load
7593 if test "$ac_res" != no; then
7594   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7595
7596 fi
7597
7598 # We only use libld in port/dynloader/aix.c
7599 case $host_os in
7600      aix*)
7601         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7602 $as_echo_n "checking for library containing ldopen... " >&6; }
7603 if test "${ac_cv_search_ldopen+set}" = set; then
7604   $as_echo_n "(cached) " >&6
7605 else
7606   ac_func_search_save_LIBS=$LIBS
7607 cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h.  */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h.  */
7613
7614 /* Override any GCC internal prototype to avoid an error.
7615    Use char because int might match the return type of a GCC
7616    builtin and then its argument prototype would still apply.  */
7617 #ifdef __cplusplus
7618 extern "C"
7619 #endif
7620 char ldopen ();
7621 int
7622 main ()
7623 {
7624 return ldopen ();
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 for ac_lib in '' ld; do
7630   if test -z "$ac_lib"; then
7631     ac_res="none required"
7632   else
7633     ac_res=-l$ac_lib
7634     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7635   fi
7636   rm -f conftest.$ac_objext conftest$ac_exeext
7637 if { (ac_try="$ac_link"
7638 case "(($ac_try" in
7639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640   *) ac_try_echo=$ac_try;;
7641 esac
7642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7643 $as_echo "$ac_try_echo") >&5
7644   (eval "$ac_link") 2>conftest.er1
7645   ac_status=$?
7646   grep -v '^ *+' conftest.er1 >conftest.err
7647   rm -f conftest.er1
7648   cat conftest.err >&5
7649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); } && {
7651          test -z "$ac_c_werror_flag" ||
7652          test ! -s conftest.err
7653        } && test -s conftest$ac_exeext && {
7654          test "$cross_compiling" = yes ||
7655          $as_test_x conftest$ac_exeext
7656        }; then
7657   ac_cv_search_ldopen=$ac_res
7658 else
7659   $as_echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7661
7662
7663 fi
7664
7665 rm -rf conftest.dSYM
7666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7667       conftest$ac_exeext
7668   if test "${ac_cv_search_ldopen+set}" = set; then
7669   break
7670 fi
7671 done
7672 if test "${ac_cv_search_ldopen+set}" = set; then
7673   :
7674 else
7675   ac_cv_search_ldopen=no
7676 fi
7677 rm conftest.$ac_ext
7678 LIBS=$ac_func_search_save_LIBS
7679 fi
7680 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7681 $as_echo "$ac_cv_search_ldopen" >&6; }
7682 ac_res=$ac_cv_search_ldopen
7683 if test "$ac_res" != no; then
7684   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7685
7686 fi
7687
7688         ;;
7689 esac
7690 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7691 $as_echo_n "checking for library containing getopt_long... " >&6; }
7692 if test "${ac_cv_search_getopt_long+set}" = set; then
7693   $as_echo_n "(cached) " >&6
7694 else
7695   ac_func_search_save_LIBS=$LIBS
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h.  */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h.  */
7702
7703 /* Override any GCC internal prototype to avoid an error.
7704    Use char because int might match the return type of a GCC
7705    builtin and then its argument prototype would still apply.  */
7706 #ifdef __cplusplus
7707 extern "C"
7708 #endif
7709 char getopt_long ();
7710 int
7711 main ()
7712 {
7713 return getopt_long ();
7714   ;
7715   return 0;
7716 }
7717 _ACEOF
7718 for ac_lib in '' getopt gnugetopt; do
7719   if test -z "$ac_lib"; then
7720     ac_res="none required"
7721   else
7722     ac_res=-l$ac_lib
7723     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7724   fi
7725   rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (ac_try="$ac_link"
7727 case "(($ac_try" in
7728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729   *) ac_try_echo=$ac_try;;
7730 esac
7731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7732 $as_echo "$ac_try_echo") >&5
7733   (eval "$ac_link") 2>conftest.er1
7734   ac_status=$?
7735   grep -v '^ *+' conftest.er1 >conftest.err
7736   rm -f conftest.er1
7737   cat conftest.err >&5
7738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } && {
7740          test -z "$ac_c_werror_flag" ||
7741          test ! -s conftest.err
7742        } && test -s conftest$ac_exeext && {
7743          test "$cross_compiling" = yes ||
7744          $as_test_x conftest$ac_exeext
7745        }; then
7746   ac_cv_search_getopt_long=$ac_res
7747 else
7748   $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751
7752 fi
7753
7754 rm -rf conftest.dSYM
7755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7756       conftest$ac_exeext
7757   if test "${ac_cv_search_getopt_long+set}" = set; then
7758   break
7759 fi
7760 done
7761 if test "${ac_cv_search_getopt_long+set}" = set; then
7762   :
7763 else
7764   ac_cv_search_getopt_long=no
7765 fi
7766 rm conftest.$ac_ext
7767 LIBS=$ac_func_search_save_LIBS
7768 fi
7769 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7770 $as_echo "$ac_cv_search_getopt_long" >&6; }
7771 ac_res=$ac_cv_search_getopt_long
7772 if test "$ac_res" != no; then
7773   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7774
7775 fi
7776
7777 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7778 $as_echo_n "checking for library containing crypt... " >&6; }
7779 if test "${ac_cv_search_crypt+set}" = set; then
7780   $as_echo_n "(cached) " >&6
7781 else
7782   ac_func_search_save_LIBS=$LIBS
7783 cat >conftest.$ac_ext <<_ACEOF
7784 /* confdefs.h.  */
7785 _ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h.  */
7789
7790 /* Override any GCC internal prototype to avoid an error.
7791    Use char because int might match the return type of a GCC
7792    builtin and then its argument prototype would still apply.  */
7793 #ifdef __cplusplus
7794 extern "C"
7795 #endif
7796 char crypt ();
7797 int
7798 main ()
7799 {
7800 return crypt ();
7801   ;
7802   return 0;
7803 }
7804 _ACEOF
7805 for ac_lib in '' crypt; do
7806   if test -z "$ac_lib"; then
7807     ac_res="none required"
7808   else
7809     ac_res=-l$ac_lib
7810     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7811   fi
7812   rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (ac_try="$ac_link"
7814 case "(($ac_try" in
7815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816   *) ac_try_echo=$ac_try;;
7817 esac
7818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7819 $as_echo "$ac_try_echo") >&5
7820   (eval "$ac_link") 2>conftest.er1
7821   ac_status=$?
7822   grep -v '^ *+' conftest.er1 >conftest.err
7823   rm -f conftest.er1
7824   cat conftest.err >&5
7825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } && {
7827          test -z "$ac_c_werror_flag" ||
7828          test ! -s conftest.err
7829        } && test -s conftest$ac_exeext && {
7830          test "$cross_compiling" = yes ||
7831          $as_test_x conftest$ac_exeext
7832        }; then
7833   ac_cv_search_crypt=$ac_res
7834 else
7835   $as_echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838
7839 fi
7840
7841 rm -rf conftest.dSYM
7842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7843       conftest$ac_exeext
7844   if test "${ac_cv_search_crypt+set}" = set; then
7845   break
7846 fi
7847 done
7848 if test "${ac_cv_search_crypt+set}" = set; then
7849   :
7850 else
7851   ac_cv_search_crypt=no
7852 fi
7853 rm conftest.$ac_ext
7854 LIBS=$ac_func_search_save_LIBS
7855 fi
7856 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7857 $as_echo "$ac_cv_search_crypt" >&6; }
7858 ac_res=$ac_cv_search_crypt
7859 if test "$ac_res" != no; then
7860   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7861
7862 fi
7863
7864 # Solaris:
7865 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7866 $as_echo_n "checking for library containing fdatasync... " >&6; }
7867 if test "${ac_cv_search_fdatasync+set}" = set; then
7868   $as_echo_n "(cached) " >&6
7869 else
7870   ac_func_search_save_LIBS=$LIBS
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h.  */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h.  */
7877
7878 /* Override any GCC internal prototype to avoid an error.
7879    Use char because int might match the return type of a GCC
7880    builtin and then its argument prototype would still apply.  */
7881 #ifdef __cplusplus
7882 extern "C"
7883 #endif
7884 char fdatasync ();
7885 int
7886 main ()
7887 {
7888 return fdatasync ();
7889   ;
7890   return 0;
7891 }
7892 _ACEOF
7893 for ac_lib in '' rt posix4; do
7894   if test -z "$ac_lib"; then
7895     ac_res="none required"
7896   else
7897     ac_res=-l$ac_lib
7898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7899   fi
7900   rm -f conftest.$ac_objext conftest$ac_exeext
7901 if { (ac_try="$ac_link"
7902 case "(($ac_try" in
7903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904   *) ac_try_echo=$ac_try;;
7905 esac
7906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7907 $as_echo "$ac_try_echo") >&5
7908   (eval "$ac_link") 2>conftest.er1
7909   ac_status=$?
7910   grep -v '^ *+' conftest.er1 >conftest.err
7911   rm -f conftest.er1
7912   cat conftest.err >&5
7913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); } && {
7915          test -z "$ac_c_werror_flag" ||
7916          test ! -s conftest.err
7917        } && test -s conftest$ac_exeext && {
7918          test "$cross_compiling" = yes ||
7919          $as_test_x conftest$ac_exeext
7920        }; then
7921   ac_cv_search_fdatasync=$ac_res
7922 else
7923   $as_echo "$as_me: failed program was:" >&5
7924 sed 's/^/| /' conftest.$ac_ext >&5
7925
7926
7927 fi
7928
7929 rm -rf conftest.dSYM
7930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7931       conftest$ac_exeext
7932   if test "${ac_cv_search_fdatasync+set}" = set; then
7933   break
7934 fi
7935 done
7936 if test "${ac_cv_search_fdatasync+set}" = set; then
7937   :
7938 else
7939   ac_cv_search_fdatasync=no
7940 fi
7941 rm conftest.$ac_ext
7942 LIBS=$ac_func_search_save_LIBS
7943 fi
7944 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7945 $as_echo "$ac_cv_search_fdatasync" >&6; }
7946 ac_res=$ac_cv_search_fdatasync
7947 if test "$ac_res" != no; then
7948   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7949
7950 fi
7951
7952 # Required for thread_test.c on Solaris 2.5:
7953 # Other ports use it too (HP-UX) so test unconditionally
7954 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7955 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7956 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7957   $as_echo_n "(cached) " >&6
7958 else
7959   ac_func_search_save_LIBS=$LIBS
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h.  */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h.  */
7966
7967 /* Override any GCC internal prototype to avoid an error.
7968    Use char because int might match the return type of a GCC
7969    builtin and then its argument prototype would still apply.  */
7970 #ifdef __cplusplus
7971 extern "C"
7972 #endif
7973 char gethostbyname_r ();
7974 int
7975 main ()
7976 {
7977 return gethostbyname_r ();
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 for ac_lib in '' nsl; do
7983   if test -z "$ac_lib"; then
7984     ac_res="none required"
7985   else
7986     ac_res=-l$ac_lib
7987     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7988   fi
7989   rm -f conftest.$ac_objext conftest$ac_exeext
7990 if { (ac_try="$ac_link"
7991 case "(($ac_try" in
7992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7993   *) ac_try_echo=$ac_try;;
7994 esac
7995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7996 $as_echo "$ac_try_echo") >&5
7997   (eval "$ac_link") 2>conftest.er1
7998   ac_status=$?
7999   grep -v '^ *+' conftest.er1 >conftest.err
8000   rm -f conftest.er1
8001   cat conftest.err >&5
8002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003   (exit $ac_status); } && {
8004          test -z "$ac_c_werror_flag" ||
8005          test ! -s conftest.err
8006        } && test -s conftest$ac_exeext && {
8007          test "$cross_compiling" = yes ||
8008          $as_test_x conftest$ac_exeext
8009        }; then
8010   ac_cv_search_gethostbyname_r=$ac_res
8011 else
8012   $as_echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8014
8015
8016 fi
8017
8018 rm -rf conftest.dSYM
8019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8020       conftest$ac_exeext
8021   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8022   break
8023 fi
8024 done
8025 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8026   :
8027 else
8028   ac_cv_search_gethostbyname_r=no
8029 fi
8030 rm conftest.$ac_ext
8031 LIBS=$ac_func_search_save_LIBS
8032 fi
8033 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8034 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8035 ac_res=$ac_cv_search_gethostbyname_r
8036 if test "$ac_res" != no; then
8037   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8038
8039 fi
8040
8041 # Cygwin:
8042 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8043 $as_echo_n "checking for library containing shmget... " >&6; }
8044 if test "${ac_cv_search_shmget+set}" = set; then
8045   $as_echo_n "(cached) " >&6
8046 else
8047   ac_func_search_save_LIBS=$LIBS
8048 cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h.  */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h.  */
8054
8055 /* Override any GCC internal prototype to avoid an error.
8056    Use char because int might match the return type of a GCC
8057    builtin and then its argument prototype would still apply.  */
8058 #ifdef __cplusplus
8059 extern "C"
8060 #endif
8061 char shmget ();
8062 int
8063 main ()
8064 {
8065 return shmget ();
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 for ac_lib in '' cygipc; do
8071   if test -z "$ac_lib"; then
8072     ac_res="none required"
8073   else
8074     ac_res=-l$ac_lib
8075     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8076   fi
8077   rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (ac_try="$ac_link"
8079 case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8084 $as_echo "$ac_try_echo") >&5
8085   (eval "$ac_link") 2>conftest.er1
8086   ac_status=$?
8087   grep -v '^ *+' conftest.er1 >conftest.err
8088   rm -f conftest.er1
8089   cat conftest.err >&5
8090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } && {
8092          test -z "$ac_c_werror_flag" ||
8093          test ! -s conftest.err
8094        } && test -s conftest$ac_exeext && {
8095          test "$cross_compiling" = yes ||
8096          $as_test_x conftest$ac_exeext
8097        }; then
8098   ac_cv_search_shmget=$ac_res
8099 else
8100   $as_echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103
8104 fi
8105
8106 rm -rf conftest.dSYM
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8108       conftest$ac_exeext
8109   if test "${ac_cv_search_shmget+set}" = set; then
8110   break
8111 fi
8112 done
8113 if test "${ac_cv_search_shmget+set}" = set; then
8114   :
8115 else
8116   ac_cv_search_shmget=no
8117 fi
8118 rm conftest.$ac_ext
8119 LIBS=$ac_func_search_save_LIBS
8120 fi
8121 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8122 $as_echo "$ac_cv_search_shmget" >&6; }
8123 ac_res=$ac_cv_search_shmget
8124 if test "$ac_res" != no; then
8125   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8126
8127 fi
8128
8129
8130 if test "$with_readline" = yes; then
8131
8132
8133 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8134 $as_echo_n "checking for library containing readline... " >&6; }
8135 if test "${pgac_cv_check_readline+set}" = set; then
8136   $as_echo_n "(cached) " >&6
8137 else
8138   pgac_cv_check_readline=no
8139 pgac_save_LIBS=$LIBS
8140 if test x"$with_libedit_preferred" != x"yes"
8141 then    READLINE_ORDER="-lreadline -ledit"
8142 else    READLINE_ORDER="-ledit -lreadline"
8143 fi
8144 for pgac_rllib in $READLINE_ORDER ; do
8145   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8146     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8147     cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h.  */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h.  */
8153
8154 /* Override any GCC internal prototype to avoid an error.
8155    Use char because int might match the return type of a GCC
8156    builtin and then its argument prototype would still apply.  */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 char readline ();
8161 int
8162 main ()
8163 {
8164 return readline ();
8165   ;
8166   return 0;
8167 }
8168 _ACEOF
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (ac_try="$ac_link"
8171 case "(($ac_try" in
8172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173   *) ac_try_echo=$ac_try;;
8174 esac
8175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8176 $as_echo "$ac_try_echo") >&5
8177   (eval "$ac_link") 2>conftest.er1
8178   ac_status=$?
8179   grep -v '^ *+' conftest.er1 >conftest.err
8180   rm -f conftest.er1
8181   cat conftest.err >&5
8182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); } && {
8184          test -z "$ac_c_werror_flag" ||
8185          test ! -s conftest.err
8186        } && test -s conftest$ac_exeext && {
8187          test "$cross_compiling" = yes ||
8188          $as_test_x conftest$ac_exeext
8189        }; then
8190
8191       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8192       # recognize dependent libraries; assume curses is needed if we didn't
8193       # find any dependency.
8194       case $host_os in
8195         netbsd* | openbsd* | irix*)
8196           if test x"$pgac_lib" = x"" ; then
8197             pgac_lib=" -lcurses"
8198           fi ;;
8199       esac
8200
8201       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8202       break
8203
8204 else
8205   $as_echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208
8209 fi
8210
8211 rm -rf conftest.dSYM
8212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8213       conftest$ac_exeext conftest.$ac_ext
8214   done
8215   if test "$pgac_cv_check_readline" != no ; then
8216     break
8217   fi
8218 done
8219 LIBS=$pgac_save_LIBS
8220
8221 fi
8222 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8223 $as_echo "$pgac_cv_check_readline" >&6; }
8224 if test "$pgac_cv_check_readline" != no ; then
8225   LIBS="$pgac_cv_check_readline $LIBS"
8226
8227 cat >>confdefs.h <<\_ACEOF
8228 #define HAVE_LIBREADLINE 1
8229 _ACEOF
8230
8231 fi
8232
8233
8234   if test x"$pgac_cv_check_readline" = x"no"; then
8235     { { $as_echo "$as_me:$LINENO: error: readline library not found
8236 If you have readline already installed, see config.log for details on the
8237 failure.  It is possible the compiler isn't looking in the proper directory.
8238 Use --without-readline to disable readline support." >&5
8239 $as_echo "$as_me: error: readline library not found
8240 If you have readline already installed, see config.log for details on the
8241 failure.  It is possible the compiler isn't looking in the proper directory.
8242 Use --without-readline to disable readline support." >&2;}
8243    { (exit 1); exit 1; }; }
8244   fi
8245 fi
8246
8247 if test "$with_zlib" = yes; then
8248
8249 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8250 $as_echo_n "checking for inflate in -lz... " >&6; }
8251 if test "${ac_cv_lib_z_inflate+set}" = set; then
8252   $as_echo_n "(cached) " >&6
8253 else
8254   ac_check_lib_save_LIBS=$LIBS
8255 LIBS="-lz  $LIBS"
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h.  */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h.  */
8262
8263 /* Override any GCC internal prototype to avoid an error.
8264    Use char because int might match the return type of a GCC
8265    builtin and then its argument prototype would still apply.  */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 char inflate ();
8270 int
8271 main ()
8272 {
8273 return inflate ();
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (ac_try="$ac_link"
8280 case "(($ac_try" in
8281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282   *) ac_try_echo=$ac_try;;
8283 esac
8284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8285 $as_echo "$ac_try_echo") >&5
8286   (eval "$ac_link") 2>conftest.er1
8287   ac_status=$?
8288   grep -v '^ *+' conftest.er1 >conftest.err
8289   rm -f conftest.er1
8290   cat conftest.err >&5
8291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); } && {
8293          test -z "$ac_c_werror_flag" ||
8294          test ! -s conftest.err
8295        } && test -s conftest$ac_exeext && {
8296          test "$cross_compiling" = yes ||
8297          $as_test_x conftest$ac_exeext
8298        }; then
8299   ac_cv_lib_z_inflate=yes
8300 else
8301   $as_echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304         ac_cv_lib_z_inflate=no
8305 fi
8306
8307 rm -rf conftest.dSYM
8308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8309       conftest$ac_exeext conftest.$ac_ext
8310 LIBS=$ac_check_lib_save_LIBS
8311 fi
8312 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8313 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8314 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8315   cat >>confdefs.h <<_ACEOF
8316 #define HAVE_LIBZ 1
8317 _ACEOF
8318
8319   LIBS="-lz $LIBS"
8320
8321 else
8322   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8323 If you have zlib already installed, see config.log for details on the
8324 failure.  It is possible the compiler isn't looking in the proper directory.
8325 Use --without-zlib to disable zlib support." >&5
8326 $as_echo "$as_me: error: zlib library not found
8327 If you have zlib already installed, see config.log for details on the
8328 failure.  It is possible the compiler isn't looking in the proper directory.
8329 Use --without-zlib to disable zlib support." >&2;}
8330    { (exit 1); exit 1; }; }
8331 fi
8332
8333 fi
8334
8335 if test "$enable_spinlocks" = yes; then
8336
8337 cat >>confdefs.h <<\_ACEOF
8338 #define HAVE_SPINLOCKS 1
8339 _ACEOF
8340
8341 else
8342   { $as_echo "$as_me:$LINENO: WARNING:
8343 *** Not using spinlocks will cause poor performance." >&5
8344 $as_echo "$as_me: WARNING:
8345 *** Not using spinlocks will cause poor performance." >&2;}
8346 fi
8347
8348 if test "$with_gssapi" = yes ; then
8349   if test "$PORTNAME" != "win32"; then
8350     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8351 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8352 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8353   $as_echo_n "(cached) " >&6
8354 else
8355   ac_func_search_save_LIBS=$LIBS
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362
8363 /* Override any GCC internal prototype to avoid an error.
8364    Use char because int might match the return type of a GCC
8365    builtin and then its argument prototype would still apply.  */
8366 #ifdef __cplusplus
8367 extern "C"
8368 #endif
8369 char gss_init_sec_context ();
8370 int
8371 main ()
8372 {
8373 return gss_init_sec_context ();
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8379   if test -z "$ac_lib"; then
8380     ac_res="none required"
8381   else
8382     ac_res=-l$ac_lib
8383     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8384   fi
8385   rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (ac_try="$ac_link"
8387 case "(($ac_try" in
8388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389   *) ac_try_echo=$ac_try;;
8390 esac
8391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8392 $as_echo "$ac_try_echo") >&5
8393   (eval "$ac_link") 2>conftest.er1
8394   ac_status=$?
8395   grep -v '^ *+' conftest.er1 >conftest.err
8396   rm -f conftest.er1
8397   cat conftest.err >&5
8398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } && {
8400          test -z "$ac_c_werror_flag" ||
8401          test ! -s conftest.err
8402        } && test -s conftest$ac_exeext && {
8403          test "$cross_compiling" = yes ||
8404          $as_test_x conftest$ac_exeext
8405        }; then
8406   ac_cv_search_gss_init_sec_context=$ac_res
8407 else
8408   $as_echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411
8412 fi
8413
8414 rm -rf conftest.dSYM
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416       conftest$ac_exeext
8417   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8418   break
8419 fi
8420 done
8421 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8422   :
8423 else
8424   ac_cv_search_gss_init_sec_context=no
8425 fi
8426 rm conftest.$ac_ext
8427 LIBS=$ac_func_search_save_LIBS
8428 fi
8429 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8430 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8431 ac_res=$ac_cv_search_gss_init_sec_context
8432 if test "$ac_res" != no; then
8433   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8434
8435 else
8436   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8437 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8438    { (exit 1); exit 1; }; }
8439 fi
8440
8441   else
8442     LIBS="$LIBS -lgssapi32"
8443   fi
8444 fi
8445
8446 if test "$with_krb5" = yes ; then
8447   if test "$PORTNAME" != "win32"; then
8448      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8449 $as_echo_n "checking for library containing com_err... " >&6; }
8450 if test "${ac_cv_search_com_err+set}" = set; then
8451   $as_echo_n "(cached) " >&6
8452 else
8453   ac_func_search_save_LIBS=$LIBS
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h.  */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h.  */
8460
8461 /* Override any GCC internal prototype to avoid an error.
8462    Use char because int might match the return type of a GCC
8463    builtin and then its argument prototype would still apply.  */
8464 #ifdef __cplusplus
8465 extern "C"
8466 #endif
8467 char com_err ();
8468 int
8469 main ()
8470 {
8471 return com_err ();
8472   ;
8473   return 0;
8474 }
8475 _ACEOF
8476 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8477   if test -z "$ac_lib"; then
8478     ac_res="none required"
8479   else
8480     ac_res=-l$ac_lib
8481     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8482   fi
8483   rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8485 case "(($ac_try" in
8486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487   *) ac_try_echo=$ac_try;;
8488 esac
8489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8490 $as_echo "$ac_try_echo") >&5
8491   (eval "$ac_link") 2>conftest.er1
8492   ac_status=$?
8493   grep -v '^ *+' conftest.er1 >conftest.err
8494   rm -f conftest.er1
8495   cat conftest.err >&5
8496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } && {
8498          test -z "$ac_c_werror_flag" ||
8499          test ! -s conftest.err
8500        } && test -s conftest$ac_exeext && {
8501          test "$cross_compiling" = yes ||
8502          $as_test_x conftest$ac_exeext
8503        }; then
8504   ac_cv_search_com_err=$ac_res
8505 else
8506   $as_echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509
8510 fi
8511
8512 rm -rf conftest.dSYM
8513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8514       conftest$ac_exeext
8515   if test "${ac_cv_search_com_err+set}" = set; then
8516   break
8517 fi
8518 done
8519 if test "${ac_cv_search_com_err+set}" = set; then
8520   :
8521 else
8522   ac_cv_search_com_err=no
8523 fi
8524 rm conftest.$ac_ext
8525 LIBS=$ac_func_search_save_LIBS
8526 fi
8527 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8528 $as_echo "$ac_cv_search_com_err" >&6; }
8529 ac_res=$ac_cv_search_com_err
8530 if test "$ac_res" != no; then
8531   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8532
8533 else
8534   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8535 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8536    { (exit 1); exit 1; }; }
8537 fi
8538
8539      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8540 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8541 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8542   $as_echo_n "(cached) " >&6
8543 else
8544   ac_func_search_save_LIBS=$LIBS
8545 cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h.  */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h.  */
8551
8552 /* Override any GCC internal prototype to avoid an error.
8553    Use char because int might match the return type of a GCC
8554    builtin and then its argument prototype would still apply.  */
8555 #ifdef __cplusplus
8556 extern "C"
8557 #endif
8558 char krb5_sendauth ();
8559 int
8560 main ()
8561 {
8562 return krb5_sendauth ();
8563   ;
8564   return 0;
8565 }
8566 _ACEOF
8567 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8568   if test -z "$ac_lib"; then
8569     ac_res="none required"
8570   else
8571     ac_res=-l$ac_lib
8572     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8573   fi
8574   rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (ac_try="$ac_link"
8576 case "(($ac_try" in
8577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578   *) ac_try_echo=$ac_try;;
8579 esac
8580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8581 $as_echo "$ac_try_echo") >&5
8582   (eval "$ac_link") 2>conftest.er1
8583   ac_status=$?
8584   grep -v '^ *+' conftest.er1 >conftest.err
8585   rm -f conftest.er1
8586   cat conftest.err >&5
8587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588   (exit $ac_status); } && {
8589          test -z "$ac_c_werror_flag" ||
8590          test ! -s conftest.err
8591        } && test -s conftest$ac_exeext && {
8592          test "$cross_compiling" = yes ||
8593          $as_test_x conftest$ac_exeext
8594        }; then
8595   ac_cv_search_krb5_sendauth=$ac_res
8596 else
8597   $as_echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600
8601 fi
8602
8603 rm -rf conftest.dSYM
8604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8605       conftest$ac_exeext
8606   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8607   break
8608 fi
8609 done
8610 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8611   :
8612 else
8613   ac_cv_search_krb5_sendauth=no
8614 fi
8615 rm conftest.$ac_ext
8616 LIBS=$ac_func_search_save_LIBS
8617 fi
8618 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8619 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8620 ac_res=$ac_cv_search_krb5_sendauth
8621 if test "$ac_res" != no; then
8622   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8623
8624 else
8625   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8626 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8627    { (exit 1); exit 1; }; }
8628 fi
8629
8630   else
8631      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8632 $as_echo_n "checking for library containing com_err... " >&6; }
8633 if test "${ac_cv_search_com_err+set}" = set; then
8634   $as_echo_n "(cached) " >&6
8635 else
8636   ac_func_search_save_LIBS=$LIBS
8637 cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h.  */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h.  */
8643
8644 /* Override any GCC internal prototype to avoid an error.
8645    Use char because int might match the return type of a GCC
8646    builtin and then its argument prototype would still apply.  */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char com_err ();
8651 int
8652 main ()
8653 {
8654 return com_err ();
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8660   if test -z "$ac_lib"; then
8661     ac_res="none required"
8662   else
8663     ac_res=-l$ac_lib
8664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8665   fi
8666   rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8668 case "(($ac_try" in
8669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670   *) ac_try_echo=$ac_try;;
8671 esac
8672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8673 $as_echo "$ac_try_echo") >&5
8674   (eval "$ac_link") 2>conftest.er1
8675   ac_status=$?
8676   grep -v '^ *+' conftest.er1 >conftest.err
8677   rm -f conftest.er1
8678   cat conftest.err >&5
8679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); } && {
8681          test -z "$ac_c_werror_flag" ||
8682          test ! -s conftest.err
8683        } && test -s conftest$ac_exeext && {
8684          test "$cross_compiling" = yes ||
8685          $as_test_x conftest$ac_exeext
8686        }; then
8687   ac_cv_search_com_err=$ac_res
8688 else
8689   $as_echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692
8693 fi
8694
8695 rm -rf conftest.dSYM
8696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8697       conftest$ac_exeext
8698   if test "${ac_cv_search_com_err+set}" = set; then
8699   break
8700 fi
8701 done
8702 if test "${ac_cv_search_com_err+set}" = set; then
8703   :
8704 else
8705   ac_cv_search_com_err=no
8706 fi
8707 rm conftest.$ac_ext
8708 LIBS=$ac_func_search_save_LIBS
8709 fi
8710 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8711 $as_echo "$ac_cv_search_com_err" >&6; }
8712 ac_res=$ac_cv_search_com_err
8713 if test "$ac_res" != no; then
8714   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8715
8716 else
8717   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8718 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8719    { (exit 1); exit 1; }; }
8720 fi
8721
8722   fi
8723 fi
8724
8725 if test "$with_openssl" = yes ; then
8726     if test "$PORTNAME" != "win32"; then
8727
8728 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8729 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8730 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8731   $as_echo_n "(cached) " >&6
8732 else
8733   ac_check_lib_save_LIBS=$LIBS
8734 LIBS="-lcrypto  $LIBS"
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741
8742 /* Override any GCC internal prototype to avoid an error.
8743    Use char because int might match the return type of a GCC
8744    builtin and then its argument prototype would still apply.  */
8745 #ifdef __cplusplus
8746 extern "C"
8747 #endif
8748 char CRYPTO_new_ex_data ();
8749 int
8750 main ()
8751 {
8752 return CRYPTO_new_ex_data ();
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8759 case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8764 $as_echo "$ac_try_echo") >&5
8765   (eval "$ac_link") 2>conftest.er1
8766   ac_status=$?
8767   grep -v '^ *+' conftest.er1 >conftest.err
8768   rm -f conftest.er1
8769   cat conftest.err >&5
8770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } && {
8772          test -z "$ac_c_werror_flag" ||
8773          test ! -s conftest.err
8774        } && test -s conftest$ac_exeext && {
8775          test "$cross_compiling" = yes ||
8776          $as_test_x conftest$ac_exeext
8777        }; then
8778   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8779 else
8780   $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8784 fi
8785
8786 rm -rf conftest.dSYM
8787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8788       conftest$ac_exeext conftest.$ac_ext
8789 LIBS=$ac_check_lib_save_LIBS
8790 fi
8791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8792 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8793 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8794   cat >>confdefs.h <<_ACEOF
8795 #define HAVE_LIBCRYPTO 1
8796 _ACEOF
8797
8798   LIBS="-lcrypto $LIBS"
8799
8800 else
8801   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8802 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8803    { (exit 1); exit 1; }; }
8804 fi
8805
8806
8807 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8808 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8809 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8810   $as_echo_n "(cached) " >&6
8811 else
8812   ac_check_lib_save_LIBS=$LIBS
8813 LIBS="-lssl  $LIBS"
8814 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h.  */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h.  */
8820
8821 /* Override any GCC internal prototype to avoid an error.
8822    Use char because int might match the return type of a GCC
8823    builtin and then its argument prototype would still apply.  */
8824 #ifdef __cplusplus
8825 extern "C"
8826 #endif
8827 char SSL_library_init ();
8828 int
8829 main ()
8830 {
8831 return SSL_library_init ();
8832   ;
8833   return 0;
8834 }
8835 _ACEOF
8836 rm -f conftest.$ac_objext conftest$ac_exeext
8837 if { (ac_try="$ac_link"
8838 case "(($ac_try" in
8839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840   *) ac_try_echo=$ac_try;;
8841 esac
8842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8843 $as_echo "$ac_try_echo") >&5
8844   (eval "$ac_link") 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } && {
8851          test -z "$ac_c_werror_flag" ||
8852          test ! -s conftest.err
8853        } && test -s conftest$ac_exeext && {
8854          test "$cross_compiling" = yes ||
8855          $as_test_x conftest$ac_exeext
8856        }; then
8857   ac_cv_lib_ssl_SSL_library_init=yes
8858 else
8859   $as_echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862         ac_cv_lib_ssl_SSL_library_init=no
8863 fi
8864
8865 rm -rf conftest.dSYM
8866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8867       conftest$ac_exeext conftest.$ac_ext
8868 LIBS=$ac_check_lib_save_LIBS
8869 fi
8870 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8871 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8872 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8873   cat >>confdefs.h <<_ACEOF
8874 #define HAVE_LIBSSL 1
8875 _ACEOF
8876
8877   LIBS="-lssl $LIBS"
8878
8879 else
8880   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8881 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8882    { (exit 1); exit 1; }; }
8883 fi
8884
8885   else
8886
8887 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8888 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8889 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8890   $as_echo_n "(cached) " >&6
8891 else
8892   ac_check_lib_save_LIBS=$LIBS
8893 LIBS="-leay32  $LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 /* Override any GCC internal prototype to avoid an error.
8902    Use char because int might match the return type of a GCC
8903    builtin and then its argument prototype would still apply.  */
8904 #ifdef __cplusplus
8905 extern "C"
8906 #endif
8907 char CRYPTO_new_ex_data ();
8908 int
8909 main ()
8910 {
8911 return CRYPTO_new_ex_data ();
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8918 case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8923 $as_echo "$ac_try_echo") >&5
8924   (eval "$ac_link") 2>conftest.er1
8925   ac_status=$?
8926   grep -v '^ *+' conftest.er1 >conftest.err
8927   rm -f conftest.er1
8928   cat conftest.err >&5
8929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); } && {
8931          test -z "$ac_c_werror_flag" ||
8932          test ! -s conftest.err
8933        } && test -s conftest$ac_exeext && {
8934          test "$cross_compiling" = yes ||
8935          $as_test_x conftest$ac_exeext
8936        }; then
8937   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8938 else
8939   $as_echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8941
8942         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8943 fi
8944
8945 rm -rf conftest.dSYM
8946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8947       conftest$ac_exeext conftest.$ac_ext
8948 LIBS=$ac_check_lib_save_LIBS
8949 fi
8950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8951 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8952 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8953   cat >>confdefs.h <<_ACEOF
8954 #define HAVE_LIBEAY32 1
8955 _ACEOF
8956
8957   LIBS="-leay32 $LIBS"
8958
8959 else
8960   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8961 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8962    { (exit 1); exit 1; }; }
8963 fi
8964
8965
8966 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8967 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8968 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8969   $as_echo_n "(cached) " >&6
8970 else
8971   ac_check_lib_save_LIBS=$LIBS
8972 LIBS="-lssleay32  $LIBS"
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h.  */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h.  */
8979
8980 /* Override any GCC internal prototype to avoid an error.
8981    Use char because int might match the return type of a GCC
8982    builtin and then its argument prototype would still apply.  */
8983 #ifdef __cplusplus
8984 extern "C"
8985 #endif
8986 char SSL_library_init ();
8987 int
8988 main ()
8989 {
8990 return SSL_library_init ();
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (ac_try="$ac_link"
8997 case "(($ac_try" in
8998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999   *) ac_try_echo=$ac_try;;
9000 esac
9001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9002 $as_echo "$ac_try_echo") >&5
9003   (eval "$ac_link") 2>conftest.er1
9004   ac_status=$?
9005   grep -v '^ *+' conftest.er1 >conftest.err
9006   rm -f conftest.er1
9007   cat conftest.err >&5
9008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009   (exit $ac_status); } && {
9010          test -z "$ac_c_werror_flag" ||
9011          test ! -s conftest.err
9012        } && test -s conftest$ac_exeext && {
9013          test "$cross_compiling" = yes ||
9014          $as_test_x conftest$ac_exeext
9015        }; then
9016   ac_cv_lib_ssleay32_SSL_library_init=yes
9017 else
9018   $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9020
9021         ac_cv_lib_ssleay32_SSL_library_init=no
9022 fi
9023
9024 rm -rf conftest.dSYM
9025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9026       conftest$ac_exeext conftest.$ac_ext
9027 LIBS=$ac_check_lib_save_LIBS
9028 fi
9029 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9030 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9031 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9032   cat >>confdefs.h <<_ACEOF
9033 #define HAVE_LIBSSLEAY32 1
9034 _ACEOF
9035
9036   LIBS="-lssleay32 $LIBS"
9037
9038 else
9039   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9040 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9041    { (exit 1); exit 1; }; }
9042 fi
9043
9044   fi
9045 fi
9046
9047 if test "$with_pam" = yes ; then
9048
9049 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9050 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9051 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9052   $as_echo_n "(cached) " >&6
9053 else
9054   ac_check_lib_save_LIBS=$LIBS
9055 LIBS="-lpam  $LIBS"
9056 cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h.  */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h.  */
9062
9063 /* Override any GCC internal prototype to avoid an error.
9064    Use char because int might match the return type of a GCC
9065    builtin and then its argument prototype would still apply.  */
9066 #ifdef __cplusplus
9067 extern "C"
9068 #endif
9069 char pam_start ();
9070 int
9071 main ()
9072 {
9073 return pam_start ();
9074   ;
9075   return 0;
9076 }
9077 _ACEOF
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (ac_try="$ac_link"
9080 case "(($ac_try" in
9081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082   *) ac_try_echo=$ac_try;;
9083 esac
9084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9085 $as_echo "$ac_try_echo") >&5
9086   (eval "$ac_link") 2>conftest.er1
9087   ac_status=$?
9088   grep -v '^ *+' conftest.er1 >conftest.err
9089   rm -f conftest.er1
9090   cat conftest.err >&5
9091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); } && {
9093          test -z "$ac_c_werror_flag" ||
9094          test ! -s conftest.err
9095        } && test -s conftest$ac_exeext && {
9096          test "$cross_compiling" = yes ||
9097          $as_test_x conftest$ac_exeext
9098        }; then
9099   ac_cv_lib_pam_pam_start=yes
9100 else
9101   $as_echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104         ac_cv_lib_pam_pam_start=no
9105 fi
9106
9107 rm -rf conftest.dSYM
9108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9109       conftest$ac_exeext conftest.$ac_ext
9110 LIBS=$ac_check_lib_save_LIBS
9111 fi
9112 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9113 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9114 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9115   cat >>confdefs.h <<_ACEOF
9116 #define HAVE_LIBPAM 1
9117 _ACEOF
9118
9119   LIBS="-lpam $LIBS"
9120
9121 else
9122   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9123 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9124    { (exit 1); exit 1; }; }
9125 fi
9126
9127 fi
9128
9129 if test "$with_libxml" = yes ; then
9130
9131 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9132 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9133 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9134   $as_echo_n "(cached) " >&6
9135 else
9136   ac_check_lib_save_LIBS=$LIBS
9137 LIBS="-lxml2  $LIBS"
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h.  */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h.  */
9144
9145 /* Override any GCC internal prototype to avoid an error.
9146    Use char because int might match the return type of a GCC
9147    builtin and then its argument prototype would still apply.  */
9148 #ifdef __cplusplus
9149 extern "C"
9150 #endif
9151 char xmlSaveToBuffer ();
9152 int
9153 main ()
9154 {
9155 return xmlSaveToBuffer ();
9156   ;
9157   return 0;
9158 }
9159 _ACEOF
9160 rm -f conftest.$ac_objext conftest$ac_exeext
9161 if { (ac_try="$ac_link"
9162 case "(($ac_try" in
9163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164   *) ac_try_echo=$ac_try;;
9165 esac
9166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9167 $as_echo "$ac_try_echo") >&5
9168   (eval "$ac_link") 2>conftest.er1
9169   ac_status=$?
9170   grep -v '^ *+' conftest.er1 >conftest.err
9171   rm -f conftest.er1
9172   cat conftest.err >&5
9173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); } && {
9175          test -z "$ac_c_werror_flag" ||
9176          test ! -s conftest.err
9177        } && test -s conftest$ac_exeext && {
9178          test "$cross_compiling" = yes ||
9179          $as_test_x conftest$ac_exeext
9180        }; then
9181   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9182 else
9183   $as_echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9185
9186         ac_cv_lib_xml2_xmlSaveToBuffer=no
9187 fi
9188
9189 rm -rf conftest.dSYM
9190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9191       conftest$ac_exeext conftest.$ac_ext
9192 LIBS=$ac_check_lib_save_LIBS
9193 fi
9194 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9195 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9196 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9197   cat >>confdefs.h <<_ACEOF
9198 #define HAVE_LIBXML2 1
9199 _ACEOF
9200
9201   LIBS="-lxml2 $LIBS"
9202
9203 else
9204   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9205 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9206    { (exit 1); exit 1; }; }
9207 fi
9208
9209 fi
9210
9211 if test "$with_libxslt" = yes ; then
9212
9213 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9214 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9215 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9216   $as_echo_n "(cached) " >&6
9217 else
9218   ac_check_lib_save_LIBS=$LIBS
9219 LIBS="-lxslt  $LIBS"
9220 cat >conftest.$ac_ext <<_ACEOF
9221 /* confdefs.h.  */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h.  */
9226
9227 /* Override any GCC internal prototype to avoid an error.
9228    Use char because int might match the return type of a GCC
9229    builtin and then its argument prototype would still apply.  */
9230 #ifdef __cplusplus
9231 extern "C"
9232 #endif
9233 char xsltCleanupGlobals ();
9234 int
9235 main ()
9236 {
9237 return xsltCleanupGlobals ();
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (ac_try="$ac_link"
9244 case "(($ac_try" in
9245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9246   *) ac_try_echo=$ac_try;;
9247 esac
9248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9249 $as_echo "$ac_try_echo") >&5
9250   (eval "$ac_link") 2>conftest.er1
9251   ac_status=$?
9252   grep -v '^ *+' conftest.er1 >conftest.err
9253   rm -f conftest.er1
9254   cat conftest.err >&5
9255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } && {
9257          test -z "$ac_c_werror_flag" ||
9258          test ! -s conftest.err
9259        } && test -s conftest$ac_exeext && {
9260          test "$cross_compiling" = yes ||
9261          $as_test_x conftest$ac_exeext
9262        }; then
9263   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9264 else
9265   $as_echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9267
9268         ac_cv_lib_xslt_xsltCleanupGlobals=no
9269 fi
9270
9271 rm -rf conftest.dSYM
9272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9273       conftest$ac_exeext conftest.$ac_ext
9274 LIBS=$ac_check_lib_save_LIBS
9275 fi
9276 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9277 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9278 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9279   cat >>confdefs.h <<_ACEOF
9280 #define HAVE_LIBXSLT 1
9281 _ACEOF
9282
9283   LIBS="-lxslt $LIBS"
9284
9285 else
9286   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9287 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9288    { (exit 1); exit 1; }; }
9289 fi
9290
9291 fi
9292
9293 # for contrib/uuid-ossp
9294 if test "$with_ossp_uuid" = yes ; then
9295   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9296 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9297 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9298   $as_echo_n "(cached) " >&6
9299 else
9300   ac_check_lib_save_LIBS=$LIBS
9301 LIBS="-lossp-uuid  $LIBS"
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308
9309 /* Override any GCC internal prototype to avoid an error.
9310    Use char because int might match the return type of a GCC
9311    builtin and then its argument prototype would still apply.  */
9312 #ifdef __cplusplus
9313 extern "C"
9314 #endif
9315 char uuid_export ();
9316 int
9317 main ()
9318 {
9319 return uuid_export ();
9320   ;
9321   return 0;
9322 }
9323 _ACEOF
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (ac_try="$ac_link"
9326 case "(($ac_try" in
9327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328   *) ac_try_echo=$ac_try;;
9329 esac
9330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9331 $as_echo "$ac_try_echo") >&5
9332   (eval "$ac_link") 2>conftest.er1
9333   ac_status=$?
9334   grep -v '^ *+' conftest.er1 >conftest.err
9335   rm -f conftest.er1
9336   cat conftest.err >&5
9337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338   (exit $ac_status); } && {
9339          test -z "$ac_c_werror_flag" ||
9340          test ! -s conftest.err
9341        } && test -s conftest$ac_exeext && {
9342          test "$cross_compiling" = yes ||
9343          $as_test_x conftest$ac_exeext
9344        }; then
9345   ac_cv_lib_ossp_uuid_uuid_export=yes
9346 else
9347   $as_echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9349
9350         ac_cv_lib_ossp_uuid_uuid_export=no
9351 fi
9352
9353 rm -rf conftest.dSYM
9354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9355       conftest$ac_exeext conftest.$ac_ext
9356 LIBS=$ac_check_lib_save_LIBS
9357 fi
9358 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9359 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9360 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9361   OSSP_UUID_LIBS="-lossp-uuid"
9362 else
9363   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9364 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9365 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9366   $as_echo_n "(cached) " >&6
9367 else
9368   ac_check_lib_save_LIBS=$LIBS
9369 LIBS="-luuid  $LIBS"
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h.  */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h.  */
9376
9377 /* Override any GCC internal prototype to avoid an error.
9378    Use char because int might match the return type of a GCC
9379    builtin and then its argument prototype would still apply.  */
9380 #ifdef __cplusplus
9381 extern "C"
9382 #endif
9383 char uuid_export ();
9384 int
9385 main ()
9386 {
9387 return uuid_export ();
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9394 case "(($ac_try" in
9395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396   *) ac_try_echo=$ac_try;;
9397 esac
9398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9399 $as_echo "$ac_try_echo") >&5
9400   (eval "$ac_link") 2>conftest.er1
9401   ac_status=$?
9402   grep -v '^ *+' conftest.er1 >conftest.err
9403   rm -f conftest.er1
9404   cat conftest.err >&5
9405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } && {
9407          test -z "$ac_c_werror_flag" ||
9408          test ! -s conftest.err
9409        } && test -s conftest$ac_exeext && {
9410          test "$cross_compiling" = yes ||
9411          $as_test_x conftest$ac_exeext
9412        }; then
9413   ac_cv_lib_uuid_uuid_export=yes
9414 else
9415   $as_echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418         ac_cv_lib_uuid_uuid_export=no
9419 fi
9420
9421 rm -rf conftest.dSYM
9422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9423       conftest$ac_exeext conftest.$ac_ext
9424 LIBS=$ac_check_lib_save_LIBS
9425 fi
9426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9427 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9428 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9429   OSSP_UUID_LIBS="-luuid"
9430 else
9431   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9432 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9433    { (exit 1); exit 1; }; }
9434 fi
9435
9436 fi
9437
9438 fi
9439
9440
9441
9442 ##
9443 ## Header files
9444 ##
9445
9446 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9447 $as_echo_n "checking for ANSI C header files... " >&6; }
9448 if test "${ac_cv_header_stdc+set}" = set; then
9449   $as_echo_n "(cached) " >&6
9450 else
9451   cat >conftest.$ac_ext <<_ACEOF
9452 /* confdefs.h.  */
9453 _ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h.  */
9457 #include <stdlib.h>
9458 #include <stdarg.h>
9459 #include <string.h>
9460 #include <float.h>
9461
9462 int
9463 main ()
9464 {
9465
9466   ;
9467   return 0;
9468 }
9469 _ACEOF
9470 rm -f conftest.$ac_objext
9471 if { (ac_try="$ac_compile"
9472 case "(($ac_try" in
9473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474   *) ac_try_echo=$ac_try;;
9475 esac
9476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9477 $as_echo "$ac_try_echo") >&5
9478   (eval "$ac_compile") 2>conftest.er1
9479   ac_status=$?
9480   grep -v '^ *+' conftest.er1 >conftest.err
9481   rm -f conftest.er1
9482   cat conftest.err >&5
9483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); } && {
9485          test -z "$ac_c_werror_flag" ||
9486          test ! -s conftest.err
9487        } && test -s conftest.$ac_objext; then
9488   ac_cv_header_stdc=yes
9489 else
9490   $as_echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493         ac_cv_header_stdc=no
9494 fi
9495
9496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9497
9498 if test $ac_cv_header_stdc = yes; then
9499   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9500   cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h.  */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h.  */
9506 #include <string.h>
9507
9508 _ACEOF
9509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9510   $EGREP "memchr" >/dev/null 2>&1; then
9511   :
9512 else
9513   ac_cv_header_stdc=no
9514 fi
9515 rm -f conftest*
9516
9517 fi
9518
9519 if test $ac_cv_header_stdc = yes; then
9520   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9521   cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h.  */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h.  */
9527 #include <stdlib.h>
9528
9529 _ACEOF
9530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9531   $EGREP "free" >/dev/null 2>&1; then
9532   :
9533 else
9534   ac_cv_header_stdc=no
9535 fi
9536 rm -f conftest*
9537
9538 fi
9539
9540 if test $ac_cv_header_stdc = yes; then
9541   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9542   if test "$cross_compiling" = yes; then
9543   :
9544 else
9545   cat >conftest.$ac_ext <<_ACEOF
9546 /* confdefs.h.  */
9547 _ACEOF
9548 cat confdefs.h >>conftest.$ac_ext
9549 cat >>conftest.$ac_ext <<_ACEOF
9550 /* end confdefs.h.  */
9551 #include <ctype.h>
9552 #include <stdlib.h>
9553 #if ((' ' & 0x0FF) == 0x020)
9554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9556 #else
9557 # define ISLOWER(c) \
9558                    (('a' <= (c) && (c) <= 'i') \
9559                      || ('j' <= (c) && (c) <= 'r') \
9560                      || ('s' <= (c) && (c) <= 'z'))
9561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9562 #endif
9563
9564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9565 int
9566 main ()
9567 {
9568   int i;
9569   for (i = 0; i < 256; i++)
9570     if (XOR (islower (i), ISLOWER (i))
9571         || toupper (i) != TOUPPER (i))
9572       return 2;
9573   return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest$ac_exeext
9577 if { (ac_try="$ac_link"
9578 case "(($ac_try" in
9579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580   *) ac_try_echo=$ac_try;;
9581 esac
9582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9583 $as_echo "$ac_try_echo") >&5
9584   (eval "$ac_link") 2>&5
9585   ac_status=$?
9586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9588   { (case "(($ac_try" in
9589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590   *) ac_try_echo=$ac_try;;
9591 esac
9592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9593 $as_echo "$ac_try_echo") >&5
9594   (eval "$ac_try") 2>&5
9595   ac_status=$?
9596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; }; then
9598   :
9599 else
9600   $as_echo "$as_me: program exited with status $ac_status" >&5
9601 $as_echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 ( exit $ac_status )
9605 ac_cv_header_stdc=no
9606 fi
9607 rm -rf conftest.dSYM
9608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9609 fi
9610
9611
9612 fi
9613 fi
9614 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9615 $as_echo "$ac_cv_header_stdc" >&6; }
9616 if test $ac_cv_header_stdc = yes; then
9617
9618 cat >>confdefs.h <<\_ACEOF
9619 #define STDC_HEADERS 1
9620 _ACEOF
9621
9622 fi
9623
9624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9635                   inttypes.h stdint.h unistd.h
9636 do
9637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9639 $as_echo_n "checking for $ac_header... " >&6; }
9640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9641   $as_echo_n "(cached) " >&6
9642 else
9643   cat >conftest.$ac_ext <<_ACEOF
9644 /* confdefs.h.  */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h.  */
9649 $ac_includes_default
9650
9651 #include <$ac_header>
9652 _ACEOF
9653 rm -f conftest.$ac_objext
9654 if { (ac_try="$ac_compile"
9655 case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9660 $as_echo "$ac_try_echo") >&5
9661   (eval "$ac_compile") 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } && {
9668          test -z "$ac_c_werror_flag" ||
9669          test ! -s conftest.err
9670        } && test -s conftest.$ac_objext; then
9671   eval "$as_ac_Header=yes"
9672 else
9673   $as_echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676         eval "$as_ac_Header=no"
9677 fi
9678
9679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9680 fi
9681 ac_res=`eval 'as_val=${'$as_ac_Header'}
9682                  $as_echo "$as_val"'`
9683                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9684 $as_echo "$ac_res" >&6; }
9685 as_val=`eval 'as_val=${'$as_ac_Header'}
9686                  $as_echo "$as_val"'`
9687    if test "x$as_val" = x""yes; then
9688   cat >>confdefs.h <<_ACEOF
9689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9690 _ACEOF
9691
9692 fi
9693
9694 done
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9728 do
9729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9731   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9732 $as_echo_n "checking for $ac_header... " >&6; }
9733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9734   $as_echo_n "(cached) " >&6
9735 fi
9736 ac_res=`eval 'as_val=${'$as_ac_Header'}
9737                  $as_echo "$as_val"'`
9738                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9739 $as_echo "$ac_res" >&6; }
9740 else
9741   # Is the header compilable?
9742 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9743 $as_echo_n "checking $ac_header usability... " >&6; }
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h.  */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h.  */
9750 $ac_includes_default
9751 #include <$ac_header>
9752 _ACEOF
9753 rm -f conftest.$ac_objext
9754 if { (ac_try="$ac_compile"
9755 case "(($ac_try" in
9756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757   *) ac_try_echo=$ac_try;;
9758 esac
9759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760 $as_echo "$ac_try_echo") >&5
9761   (eval "$ac_compile") 2>conftest.er1
9762   ac_status=$?
9763   grep -v '^ *+' conftest.er1 >conftest.err
9764   rm -f conftest.er1
9765   cat conftest.err >&5
9766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); } && {
9768          test -z "$ac_c_werror_flag" ||
9769          test ! -s conftest.err
9770        } && test -s conftest.$ac_objext; then
9771   ac_header_compiler=yes
9772 else
9773   $as_echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9775
9776         ac_header_compiler=no
9777 fi
9778
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9781 $as_echo "$ac_header_compiler" >&6; }
9782
9783 # Is the header present?
9784 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9785 $as_echo_n "checking $ac_header presence... " >&6; }
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 #include <$ac_header>
9793 _ACEOF
9794 if { (ac_try="$ac_cpp conftest.$ac_ext"
9795 case "(($ac_try" in
9796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797   *) ac_try_echo=$ac_try;;
9798 esac
9799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9800 $as_echo "$ac_try_echo") >&5
9801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } >/dev/null && {
9808          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9809          test ! -s conftest.err
9810        }; then
9811   ac_header_preproc=yes
9812 else
9813   $as_echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816   ac_header_preproc=no
9817 fi
9818
9819 rm -f conftest.err conftest.$ac_ext
9820 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9821 $as_echo "$ac_header_preproc" >&6; }
9822
9823 # So?  What about this header?
9824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9825   yes:no: )
9826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9827 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9830     ac_header_preproc=yes
9831     ;;
9832   no:yes:* )
9833     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9834 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9835     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9836 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9837     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9838 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9839     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9840 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9841     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9843     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9844 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9845     ( cat <<\_ASBOX
9846 ## ---------------------------------------- ##
9847 ## Report this to pgsql-bugs@postgresql.org ##
9848 ## ---------------------------------------- ##
9849 _ASBOX
9850      ) | sed "s/^/$as_me: WARNING:     /" >&2
9851     ;;
9852 esac
9853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9854 $as_echo_n "checking for $ac_header... " >&6; }
9855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9856   $as_echo_n "(cached) " >&6
9857 else
9858   eval "$as_ac_Header=\$ac_header_preproc"
9859 fi
9860 ac_res=`eval 'as_val=${'$as_ac_Header'}
9861                  $as_echo "$as_val"'`
9862                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9863 $as_echo "$ac_res" >&6; }
9864
9865 fi
9866 as_val=`eval 'as_val=${'$as_ac_Header'}
9867                  $as_echo "$as_val"'`
9868    if test "x$as_val" = x""yes; then
9869   cat >>confdefs.h <<_ACEOF
9870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9871 _ACEOF
9872
9873 fi
9874
9875 done
9876
9877
9878 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9879 # is included first.
9880
9881 for ac_header in net/if.h
9882 do
9883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9885 $as_echo_n "checking for $ac_header... " >&6; }
9886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9887   $as_echo_n "(cached) " >&6
9888 else
9889   cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h.  */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h.  */
9895 $ac_includes_default
9896 #ifdef HAVE_SYS_SOCKET_H
9897 #include <sys/socket.h>
9898 #endif
9899
9900
9901 #include <$ac_header>
9902 _ACEOF
9903 rm -f conftest.$ac_objext
9904 if { (ac_try="$ac_compile"
9905 case "(($ac_try" in
9906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907   *) ac_try_echo=$ac_try;;
9908 esac
9909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9910 $as_echo "$ac_try_echo") >&5
9911   (eval "$ac_compile") 2>conftest.er1
9912   ac_status=$?
9913   grep -v '^ *+' conftest.er1 >conftest.err
9914   rm -f conftest.er1
9915   cat conftest.err >&5
9916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); } && {
9918          test -z "$ac_c_werror_flag" ||
9919          test ! -s conftest.err
9920        } && test -s conftest.$ac_objext; then
9921   eval "$as_ac_Header=yes"
9922 else
9923   $as_echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926         eval "$as_ac_Header=no"
9927 fi
9928
9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 fi
9931 ac_res=`eval 'as_val=${'$as_ac_Header'}
9932                  $as_echo "$as_val"'`
9933                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9934 $as_echo "$ac_res" >&6; }
9935 as_val=`eval 'as_val=${'$as_ac_Header'}
9936                  $as_echo "$as_val"'`
9937    if test "x$as_val" = x""yes; then
9938   cat >>confdefs.h <<_ACEOF
9939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9940 _ACEOF
9941
9942 fi
9943
9944 done
9945
9946
9947 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9948 # netinet/in.h is included first.
9949
9950 for ac_header in netinet/in.h
9951 do
9952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9954   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9955 $as_echo_n "checking for $ac_header... " >&6; }
9956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9957   $as_echo_n "(cached) " >&6
9958 fi
9959 ac_res=`eval 'as_val=${'$as_ac_Header'}
9960                  $as_echo "$as_val"'`
9961                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9962 $as_echo "$ac_res" >&6; }
9963 else
9964   # Is the header compilable?
9965 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9966 $as_echo_n "checking $ac_header usability... " >&6; }
9967 cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973 $ac_includes_default
9974 #include <$ac_header>
9975 _ACEOF
9976 rm -f conftest.$ac_objext
9977 if { (ac_try="$ac_compile"
9978 case "(($ac_try" in
9979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980   *) ac_try_echo=$ac_try;;
9981 esac
9982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9983 $as_echo "$ac_try_echo") >&5
9984   (eval "$ac_compile") 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } && {
9991          test -z "$ac_c_werror_flag" ||
9992          test ! -s conftest.err
9993        } && test -s conftest.$ac_objext; then
9994   ac_header_compiler=yes
9995 else
9996   $as_echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9998
9999         ac_header_compiler=no
10000 fi
10001
10002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10004 $as_echo "$ac_header_compiler" >&6; }
10005
10006 # Is the header present?
10007 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10008 $as_echo_n "checking $ac_header presence... " >&6; }
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015 #include <$ac_header>
10016 _ACEOF
10017 if { (ac_try="$ac_cpp conftest.$ac_ext"
10018 case "(($ac_try" in
10019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020   *) ac_try_echo=$ac_try;;
10021 esac
10022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10023 $as_echo "$ac_try_echo") >&5
10024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10025   ac_status=$?
10026   grep -v '^ *+' conftest.er1 >conftest.err
10027   rm -f conftest.er1
10028   cat conftest.err >&5
10029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } >/dev/null && {
10031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10032          test ! -s conftest.err
10033        }; then
10034   ac_header_preproc=yes
10035 else
10036   $as_echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10038
10039   ac_header_preproc=no
10040 fi
10041
10042 rm -f conftest.err conftest.$ac_ext
10043 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10044 $as_echo "$ac_header_preproc" >&6; }
10045
10046 # So?  What about this header?
10047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10048   yes:no: )
10049     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10050 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10051     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10053     ac_header_preproc=yes
10054     ;;
10055   no:yes:* )
10056     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10057 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10058     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10059 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10060     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10061 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10062     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10063 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10065 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10067 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10068     ( cat <<\_ASBOX
10069 ## ---------------------------------------- ##
10070 ## Report this to pgsql-bugs@postgresql.org ##
10071 ## ---------------------------------------- ##
10072 _ASBOX
10073      ) | sed "s/^/$as_me: WARNING:     /" >&2
10074     ;;
10075 esac
10076 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10077 $as_echo_n "checking for $ac_header... " >&6; }
10078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10079   $as_echo_n "(cached) " >&6
10080 else
10081   eval "$as_ac_Header=\$ac_header_preproc"
10082 fi
10083 ac_res=`eval 'as_val=${'$as_ac_Header'}
10084                  $as_echo "$as_val"'`
10085                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10086 $as_echo "$ac_res" >&6; }
10087
10088 fi
10089 as_val=`eval 'as_val=${'$as_ac_Header'}
10090                  $as_echo "$as_val"'`
10091    if test "x$as_val" = x""yes; then
10092   cat >>confdefs.h <<_ACEOF
10093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10094 _ACEOF
10095
10096 fi
10097
10098 done
10099
10100
10101 for ac_header in netinet/tcp.h
10102 do
10103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10105 $as_echo_n "checking for $ac_header... " >&6; }
10106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107   $as_echo_n "(cached) " >&6
10108 else
10109   cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h.  */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h.  */
10115 $ac_includes_default
10116 #ifdef HAVE_NETINET_IN_H
10117 #include <netinet/in.h>
10118 #endif
10119
10120
10121 #include <$ac_header>
10122 _ACEOF
10123 rm -f conftest.$ac_objext
10124 if { (ac_try="$ac_compile"
10125 case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10130 $as_echo "$ac_try_echo") >&5
10131   (eval "$ac_compile") 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } && {
10138          test -z "$ac_c_werror_flag" ||
10139          test ! -s conftest.err
10140        } && test -s conftest.$ac_objext; then
10141   eval "$as_ac_Header=yes"
10142 else
10143   $as_echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10145
10146         eval "$as_ac_Header=no"
10147 fi
10148
10149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150 fi
10151 ac_res=`eval 'as_val=${'$as_ac_Header'}
10152                  $as_echo "$as_val"'`
10153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10154 $as_echo "$ac_res" >&6; }
10155 as_val=`eval 'as_val=${'$as_ac_Header'}
10156                  $as_echo "$as_val"'`
10157    if test "x$as_val" = x""yes; then
10158   cat >>confdefs.h <<_ACEOF
10159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160 _ACEOF
10161
10162 fi
10163
10164 done
10165
10166
10167 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10168
10169 for ac_header in readline/readline.h
10170 do
10171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10173   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10174 $as_echo_n "checking for $ac_header... " >&6; }
10175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10176   $as_echo_n "(cached) " >&6
10177 fi
10178 ac_res=`eval 'as_val=${'$as_ac_Header'}
10179                  $as_echo "$as_val"'`
10180                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10181 $as_echo "$ac_res" >&6; }
10182 else
10183   # Is the header compilable?
10184 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10185 $as_echo_n "checking $ac_header usability... " >&6; }
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h.  */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h.  */
10192 $ac_includes_default
10193 #include <$ac_header>
10194 _ACEOF
10195 rm -f conftest.$ac_objext
10196 if { (ac_try="$ac_compile"
10197 case "(($ac_try" in
10198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199   *) ac_try_echo=$ac_try;;
10200 esac
10201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10202 $as_echo "$ac_try_echo") >&5
10203   (eval "$ac_compile") 2>conftest.er1
10204   ac_status=$?
10205   grep -v '^ *+' conftest.er1 >conftest.err
10206   rm -f conftest.er1
10207   cat conftest.err >&5
10208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); } && {
10210          test -z "$ac_c_werror_flag" ||
10211          test ! -s conftest.err
10212        } && test -s conftest.$ac_objext; then
10213   ac_header_compiler=yes
10214 else
10215   $as_echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218         ac_header_compiler=no
10219 fi
10220
10221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10223 $as_echo "$ac_header_compiler" >&6; }
10224
10225 # Is the header present?
10226 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10227 $as_echo_n "checking $ac_header presence... " >&6; }
10228 cat >conftest.$ac_ext <<_ACEOF
10229 /* confdefs.h.  */
10230 _ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h.  */
10234 #include <$ac_header>
10235 _ACEOF
10236 if { (ac_try="$ac_cpp conftest.$ac_ext"
10237 case "(($ac_try" in
10238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239   *) ac_try_echo=$ac_try;;
10240 esac
10241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10242 $as_echo "$ac_try_echo") >&5
10243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10244   ac_status=$?
10245   grep -v '^ *+' conftest.er1 >conftest.err
10246   rm -f conftest.er1
10247   cat conftest.err >&5
10248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } >/dev/null && {
10250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10251          test ! -s conftest.err
10252        }; then
10253   ac_header_preproc=yes
10254 else
10255   $as_echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258   ac_header_preproc=no
10259 fi
10260
10261 rm -f conftest.err conftest.$ac_ext
10262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10263 $as_echo "$ac_header_preproc" >&6; }
10264
10265 # So?  What about this header?
10266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10267   yes:no: )
10268     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10269 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10270     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10272     ac_header_preproc=yes
10273     ;;
10274   no:yes:* )
10275     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10276 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10277     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10278 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10279     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10280 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10281     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10282 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10283     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10285     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10286 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10287     ( cat <<\_ASBOX
10288 ## ---------------------------------------- ##
10289 ## Report this to pgsql-bugs@postgresql.org ##
10290 ## ---------------------------------------- ##
10291 _ASBOX
10292      ) | sed "s/^/$as_me: WARNING:     /" >&2
10293     ;;
10294 esac
10295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10296 $as_echo_n "checking for $ac_header... " >&6; }
10297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10298   $as_echo_n "(cached) " >&6
10299 else
10300   eval "$as_ac_Header=\$ac_header_preproc"
10301 fi
10302 ac_res=`eval 'as_val=${'$as_ac_Header'}
10303                  $as_echo "$as_val"'`
10304                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10305 $as_echo "$ac_res" >&6; }
10306
10307 fi
10308 as_val=`eval 'as_val=${'$as_ac_Header'}
10309                  $as_echo "$as_val"'`
10310    if test "x$as_val" = x""yes; then
10311   cat >>confdefs.h <<_ACEOF
10312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10313 _ACEOF
10314
10315 else
10316
10317 for ac_header in readline.h
10318 do
10319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10321   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10322 $as_echo_n "checking for $ac_header... " >&6; }
10323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10324   $as_echo_n "(cached) " >&6
10325 fi
10326 ac_res=`eval 'as_val=${'$as_ac_Header'}
10327                  $as_echo "$as_val"'`
10328                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10329 $as_echo "$ac_res" >&6; }
10330 else
10331   # Is the header compilable?
10332 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10333 $as_echo_n "checking $ac_header usability... " >&6; }
10334 cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h.  */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h.  */
10340 $ac_includes_default
10341 #include <$ac_header>
10342 _ACEOF
10343 rm -f conftest.$ac_objext
10344 if { (ac_try="$ac_compile"
10345 case "(($ac_try" in
10346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347   *) ac_try_echo=$ac_try;;
10348 esac
10349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10350 $as_echo "$ac_try_echo") >&5
10351   (eval "$ac_compile") 2>conftest.er1
10352   ac_status=$?
10353   grep -v '^ *+' conftest.er1 >conftest.err
10354   rm -f conftest.er1
10355   cat conftest.err >&5
10356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); } && {
10358          test -z "$ac_c_werror_flag" ||
10359          test ! -s conftest.err
10360        } && test -s conftest.$ac_objext; then
10361   ac_header_compiler=yes
10362 else
10363   $as_echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10365
10366         ac_header_compiler=no
10367 fi
10368
10369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10371 $as_echo "$ac_header_compiler" >&6; }
10372
10373 # Is the header present?
10374 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10375 $as_echo_n "checking $ac_header presence... " >&6; }
10376 cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h.  */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h.  */
10382 #include <$ac_header>
10383 _ACEOF
10384 if { (ac_try="$ac_cpp conftest.$ac_ext"
10385 case "(($ac_try" in
10386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387   *) ac_try_echo=$ac_try;;
10388 esac
10389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10390 $as_echo "$ac_try_echo") >&5
10391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10392   ac_status=$?
10393   grep -v '^ *+' conftest.er1 >conftest.err
10394   rm -f conftest.er1
10395   cat conftest.err >&5
10396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); } >/dev/null && {
10398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10399          test ! -s conftest.err
10400        }; then
10401   ac_header_preproc=yes
10402 else
10403   $as_echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10405
10406   ac_header_preproc=no
10407 fi
10408
10409 rm -f conftest.err conftest.$ac_ext
10410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10411 $as_echo "$ac_header_preproc" >&6; }
10412
10413 # So?  What about this header?
10414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10415   yes:no: )
10416     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10417 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10418     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10420     ac_header_preproc=yes
10421     ;;
10422   no:yes:* )
10423     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10424 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10425     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10426 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10427     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10428 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10430 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10433     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10434 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10435     ( cat <<\_ASBOX
10436 ## ---------------------------------------- ##
10437 ## Report this to pgsql-bugs@postgresql.org ##
10438 ## ---------------------------------------- ##
10439 _ASBOX
10440      ) | sed "s/^/$as_me: WARNING:     /" >&2
10441     ;;
10442 esac
10443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10444 $as_echo_n "checking for $ac_header... " >&6; }
10445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10446   $as_echo_n "(cached) " >&6
10447 else
10448   eval "$as_ac_Header=\$ac_header_preproc"
10449 fi
10450 ac_res=`eval 'as_val=${'$as_ac_Header'}
10451                  $as_echo "$as_val"'`
10452                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10453 $as_echo "$ac_res" >&6; }
10454
10455 fi
10456 as_val=`eval 'as_val=${'$as_ac_Header'}
10457                  $as_echo "$as_val"'`
10458    if test "x$as_val" = x""yes; then
10459   cat >>confdefs.h <<_ACEOF
10460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10461 _ACEOF
10462
10463 else
10464   { { $as_echo "$as_me:$LINENO: error: readline header not found
10465 If you have readline already installed, see config.log for details on the
10466 failure.  It is possible the compiler isn't looking in the proper directory.
10467 Use --without-readline to disable readline support." >&5
10468 $as_echo "$as_me: error: readline header not found
10469 If you have readline already installed, see config.log for details on the
10470 failure.  It is possible the compiler isn't looking in the proper directory.
10471 Use --without-readline to disable readline support." >&2;}
10472    { (exit 1); exit 1; }; }
10473 fi
10474
10475 done
10476
10477 fi
10478
10479 done
10480
10481
10482 for ac_header in readline/history.h
10483 do
10484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10486   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10487 $as_echo_n "checking for $ac_header... " >&6; }
10488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10489   $as_echo_n "(cached) " >&6
10490 fi
10491 ac_res=`eval 'as_val=${'$as_ac_Header'}
10492                  $as_echo "$as_val"'`
10493                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10494 $as_echo "$ac_res" >&6; }
10495 else
10496   # Is the header compilable?
10497 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10498 $as_echo_n "checking $ac_header usability... " >&6; }
10499 cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h.  */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h.  */
10505 $ac_includes_default
10506 #include <$ac_header>
10507 _ACEOF
10508 rm -f conftest.$ac_objext
10509 if { (ac_try="$ac_compile"
10510 case "(($ac_try" in
10511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512   *) ac_try_echo=$ac_try;;
10513 esac
10514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10515 $as_echo "$ac_try_echo") >&5
10516   (eval "$ac_compile") 2>conftest.er1
10517   ac_status=$?
10518   grep -v '^ *+' conftest.er1 >conftest.err
10519   rm -f conftest.er1
10520   cat conftest.err >&5
10521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); } && {
10523          test -z "$ac_c_werror_flag" ||
10524          test ! -s conftest.err
10525        } && test -s conftest.$ac_objext; then
10526   ac_header_compiler=yes
10527 else
10528   $as_echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10530
10531         ac_header_compiler=no
10532 fi
10533
10534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10535 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10536 $as_echo "$ac_header_compiler" >&6; }
10537
10538 # Is the header present?
10539 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10540 $as_echo_n "checking $ac_header presence... " >&6; }
10541 cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h.  */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h.  */
10547 #include <$ac_header>
10548 _ACEOF
10549 if { (ac_try="$ac_cpp conftest.$ac_ext"
10550 case "(($ac_try" in
10551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552   *) ac_try_echo=$ac_try;;
10553 esac
10554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10555 $as_echo "$ac_try_echo") >&5
10556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10557   ac_status=$?
10558   grep -v '^ *+' conftest.er1 >conftest.err
10559   rm -f conftest.er1
10560   cat conftest.err >&5
10561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); } >/dev/null && {
10563          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10564          test ! -s conftest.err
10565        }; then
10566   ac_header_preproc=yes
10567 else
10568   $as_echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571   ac_header_preproc=no
10572 fi
10573
10574 rm -f conftest.err conftest.$ac_ext
10575 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10576 $as_echo "$ac_header_preproc" >&6; }
10577
10578 # So?  What about this header?
10579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10580   yes:no: )
10581     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10582 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10583     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10584 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10585     ac_header_preproc=yes
10586     ;;
10587   no:yes:* )
10588     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10589 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10590     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10591 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10592     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10593 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10594     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10595 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10596     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10597 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10599 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10600     ( cat <<\_ASBOX
10601 ## ---------------------------------------- ##
10602 ## Report this to pgsql-bugs@postgresql.org ##
10603 ## ---------------------------------------- ##
10604 _ASBOX
10605      ) | sed "s/^/$as_me: WARNING:     /" >&2
10606     ;;
10607 esac
10608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10609 $as_echo_n "checking for $ac_header... " >&6; }
10610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10611   $as_echo_n "(cached) " >&6
10612 else
10613   eval "$as_ac_Header=\$ac_header_preproc"
10614 fi
10615 ac_res=`eval 'as_val=${'$as_ac_Header'}
10616                  $as_echo "$as_val"'`
10617                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10618 $as_echo "$ac_res" >&6; }
10619
10620 fi
10621 as_val=`eval 'as_val=${'$as_ac_Header'}
10622                  $as_echo "$as_val"'`
10623    if test "x$as_val" = x""yes; then
10624   cat >>confdefs.h <<_ACEOF
10625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10626 _ACEOF
10627
10628 else
10629
10630 for ac_header in history.h
10631 do
10632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10634   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 $as_echo_n "checking for $ac_header... " >&6; }
10636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10637   $as_echo_n "(cached) " >&6
10638 fi
10639 ac_res=`eval 'as_val=${'$as_ac_Header'}
10640                  $as_echo "$as_val"'`
10641                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10642 $as_echo "$ac_res" >&6; }
10643 else
10644   # Is the header compilable?
10645 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10646 $as_echo_n "checking $ac_header usability... " >&6; }
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h.  */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h.  */
10653 $ac_includes_default
10654 #include <$ac_header>
10655 _ACEOF
10656 rm -f conftest.$ac_objext
10657 if { (ac_try="$ac_compile"
10658 case "(($ac_try" in
10659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660   *) ac_try_echo=$ac_try;;
10661 esac
10662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10663 $as_echo "$ac_try_echo") >&5
10664   (eval "$ac_compile") 2>conftest.er1
10665   ac_status=$?
10666   grep -v '^ *+' conftest.er1 >conftest.err
10667   rm -f conftest.er1
10668   cat conftest.err >&5
10669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } && {
10671          test -z "$ac_c_werror_flag" ||
10672          test ! -s conftest.err
10673        } && test -s conftest.$ac_objext; then
10674   ac_header_compiler=yes
10675 else
10676   $as_echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10678
10679         ac_header_compiler=no
10680 fi
10681
10682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10683 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10684 $as_echo "$ac_header_compiler" >&6; }
10685
10686 # Is the header present?
10687 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10688 $as_echo_n "checking $ac_header presence... " >&6; }
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h.  */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h.  */
10695 #include <$ac_header>
10696 _ACEOF
10697 if { (ac_try="$ac_cpp conftest.$ac_ext"
10698 case "(($ac_try" in
10699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700   *) ac_try_echo=$ac_try;;
10701 esac
10702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10703 $as_echo "$ac_try_echo") >&5
10704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10705   ac_status=$?
10706   grep -v '^ *+' conftest.er1 >conftest.err
10707   rm -f conftest.er1
10708   cat conftest.err >&5
10709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); } >/dev/null && {
10711          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10712          test ! -s conftest.err
10713        }; then
10714   ac_header_preproc=yes
10715 else
10716   $as_echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10718
10719   ac_header_preproc=no
10720 fi
10721
10722 rm -f conftest.err conftest.$ac_ext
10723 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10724 $as_echo "$ac_header_preproc" >&6; }
10725
10726 # So?  What about this header?
10727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10728   yes:no: )
10729     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10730 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10731     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10732 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10733     ac_header_preproc=yes
10734     ;;
10735   no:yes:* )
10736     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10737 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10738     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10739 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10741 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10742     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10743 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10747 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10748     ( cat <<\_ASBOX
10749 ## ---------------------------------------- ##
10750 ## Report this to pgsql-bugs@postgresql.org ##
10751 ## ---------------------------------------- ##
10752 _ASBOX
10753      ) | sed "s/^/$as_me: WARNING:     /" >&2
10754     ;;
10755 esac
10756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10757 $as_echo_n "checking for $ac_header... " >&6; }
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759   $as_echo_n "(cached) " >&6
10760 else
10761   eval "$as_ac_Header=\$ac_header_preproc"
10762 fi
10763 ac_res=`eval 'as_val=${'$as_ac_Header'}
10764                  $as_echo "$as_val"'`
10765                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10766 $as_echo "$ac_res" >&6; }
10767
10768 fi
10769 as_val=`eval 'as_val=${'$as_ac_Header'}
10770                  $as_echo "$as_val"'`
10771    if test "x$as_val" = x""yes; then
10772   cat >>confdefs.h <<_ACEOF
10773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10774 _ACEOF
10775
10776 else
10777   { { $as_echo "$as_me:$LINENO: error: history header not found
10778 If you have readline already installed, see config.log for details on the
10779 failure.  It is possible the compiler isn't looking in the proper directory.
10780 Use --without-readline to disable readline support." >&5
10781 $as_echo "$as_me: error: history header not found
10782 If you have readline already installed, see config.log for details on the
10783 failure.  It is possible the compiler isn't looking in the proper directory.
10784 Use --without-readline to disable readline support." >&2;}
10785    { (exit 1); exit 1; }; }
10786 fi
10787
10788 done
10789
10790 fi
10791
10792 done
10793
10794 fi
10795
10796 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10797 # Some installations of libedit usurp /usr/include/readline/, which seems
10798 # bad practice, since in combined installations readline will have its headers
10799 # there.  We might have to resort to AC_EGREP checks to make sure we found
10800 # the proper header...
10801
10802 for ac_header in editline/readline.h
10803 do
10804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10806   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10807 $as_echo_n "checking for $ac_header... " >&6; }
10808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10809   $as_echo_n "(cached) " >&6
10810 fi
10811 ac_res=`eval 'as_val=${'$as_ac_Header'}
10812                  $as_echo "$as_val"'`
10813                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10814 $as_echo "$ac_res" >&6; }
10815 else
10816   # Is the header compilable?
10817 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10818 $as_echo_n "checking $ac_header usability... " >&6; }
10819 cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h.  */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h.  */
10825 $ac_includes_default
10826 #include <$ac_header>
10827 _ACEOF
10828 rm -f conftest.$ac_objext
10829 if { (ac_try="$ac_compile"
10830 case "(($ac_try" in
10831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832   *) ac_try_echo=$ac_try;;
10833 esac
10834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10835 $as_echo "$ac_try_echo") >&5
10836   (eval "$ac_compile") 2>conftest.er1
10837   ac_status=$?
10838   grep -v '^ *+' conftest.er1 >conftest.err
10839   rm -f conftest.er1
10840   cat conftest.err >&5
10841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); } && {
10843          test -z "$ac_c_werror_flag" ||
10844          test ! -s conftest.err
10845        } && test -s conftest.$ac_objext; then
10846   ac_header_compiler=yes
10847 else
10848   $as_echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851         ac_header_compiler=no
10852 fi
10853
10854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10856 $as_echo "$ac_header_compiler" >&6; }
10857
10858 # Is the header present?
10859 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10860 $as_echo_n "checking $ac_header presence... " >&6; }
10861 cat >conftest.$ac_ext <<_ACEOF
10862 /* confdefs.h.  */
10863 _ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h.  */
10867 #include <$ac_header>
10868 _ACEOF
10869 if { (ac_try="$ac_cpp conftest.$ac_ext"
10870 case "(($ac_try" in
10871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872   *) ac_try_echo=$ac_try;;
10873 esac
10874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10875 $as_echo "$ac_try_echo") >&5
10876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10877   ac_status=$?
10878   grep -v '^ *+' conftest.er1 >conftest.err
10879   rm -f conftest.er1
10880   cat conftest.err >&5
10881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } >/dev/null && {
10883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10884          test ! -s conftest.err
10885        }; then
10886   ac_header_preproc=yes
10887 else
10888   $as_echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10890
10891   ac_header_preproc=no
10892 fi
10893
10894 rm -f conftest.err conftest.$ac_ext
10895 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10896 $as_echo "$ac_header_preproc" >&6; }
10897
10898 # So?  What about this header?
10899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10900   yes:no: )
10901     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10902 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10903     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10904 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10905     ac_header_preproc=yes
10906     ;;
10907   no:yes:* )
10908     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10909 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10910     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10911 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10912     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10913 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10914     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10915 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10916     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10917 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10918     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10919 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10920     ( cat <<\_ASBOX
10921 ## ---------------------------------------- ##
10922 ## Report this to pgsql-bugs@postgresql.org ##
10923 ## ---------------------------------------- ##
10924 _ASBOX
10925      ) | sed "s/^/$as_me: WARNING:     /" >&2
10926     ;;
10927 esac
10928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10929 $as_echo_n "checking for $ac_header... " >&6; }
10930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10931   $as_echo_n "(cached) " >&6
10932 else
10933   eval "$as_ac_Header=\$ac_header_preproc"
10934 fi
10935 ac_res=`eval 'as_val=${'$as_ac_Header'}
10936                  $as_echo "$as_val"'`
10937                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10938 $as_echo "$ac_res" >&6; }
10939
10940 fi
10941 as_val=`eval 'as_val=${'$as_ac_Header'}
10942                  $as_echo "$as_val"'`
10943    if test "x$as_val" = x""yes; then
10944   cat >>confdefs.h <<_ACEOF
10945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10946 _ACEOF
10947
10948 else
10949
10950 for ac_header in readline.h
10951 do
10952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10954   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10955 $as_echo_n "checking for $ac_header... " >&6; }
10956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10957   $as_echo_n "(cached) " >&6
10958 fi
10959 ac_res=`eval 'as_val=${'$as_ac_Header'}
10960                  $as_echo "$as_val"'`
10961                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10962 $as_echo "$ac_res" >&6; }
10963 else
10964   # Is the header compilable?
10965 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10966 $as_echo_n "checking $ac_header usability... " >&6; }
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973 $ac_includes_default
10974 #include <$ac_header>
10975 _ACEOF
10976 rm -f conftest.$ac_objext
10977 if { (ac_try="$ac_compile"
10978 case "(($ac_try" in
10979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980   *) ac_try_echo=$ac_try;;
10981 esac
10982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10983 $as_echo "$ac_try_echo") >&5
10984   (eval "$ac_compile") 2>conftest.er1
10985   ac_status=$?
10986   grep -v '^ *+' conftest.er1 >conftest.err
10987   rm -f conftest.er1
10988   cat conftest.err >&5
10989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } && {
10991          test -z "$ac_c_werror_flag" ||
10992          test ! -s conftest.err
10993        } && test -s conftest.$ac_objext; then
10994   ac_header_compiler=yes
10995 else
10996   $as_echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10998
10999         ac_header_compiler=no
11000 fi
11001
11002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11004 $as_echo "$ac_header_compiler" >&6; }
11005
11006 # Is the header present?
11007 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11008 $as_echo_n "checking $ac_header presence... " >&6; }
11009 cat >conftest.$ac_ext <<_ACEOF
11010 /* confdefs.h.  */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h.  */
11015 #include <$ac_header>
11016 _ACEOF
11017 if { (ac_try="$ac_cpp conftest.$ac_ext"
11018 case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11023 $as_echo "$ac_try_echo") >&5
11024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11025   ac_status=$?
11026   grep -v '^ *+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } >/dev/null && {
11031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11032          test ! -s conftest.err
11033        }; then
11034   ac_header_preproc=yes
11035 else
11036   $as_echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039   ac_header_preproc=no
11040 fi
11041
11042 rm -f conftest.err conftest.$ac_ext
11043 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11044 $as_echo "$ac_header_preproc" >&6; }
11045
11046 # So?  What about this header?
11047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11048   yes:no: )
11049     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11050 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11051     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11053     ac_header_preproc=yes
11054     ;;
11055   no:yes:* )
11056     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11057 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11058     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11059 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11060     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11061 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11062     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11063 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11065 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11067 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11068     ( cat <<\_ASBOX
11069 ## ---------------------------------------- ##
11070 ## Report this to pgsql-bugs@postgresql.org ##
11071 ## ---------------------------------------- ##
11072 _ASBOX
11073      ) | sed "s/^/$as_me: WARNING:     /" >&2
11074     ;;
11075 esac
11076 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11077 $as_echo_n "checking for $ac_header... " >&6; }
11078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11079   $as_echo_n "(cached) " >&6
11080 else
11081   eval "$as_ac_Header=\$ac_header_preproc"
11082 fi
11083 ac_res=`eval 'as_val=${'$as_ac_Header'}
11084                  $as_echo "$as_val"'`
11085                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11086 $as_echo "$ac_res" >&6; }
11087
11088 fi
11089 as_val=`eval 'as_val=${'$as_ac_Header'}
11090                  $as_echo "$as_val"'`
11091    if test "x$as_val" = x""yes; then
11092   cat >>confdefs.h <<_ACEOF
11093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11094 _ACEOF
11095
11096 else
11097
11098 for ac_header in readline/readline.h
11099 do
11100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11102   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11103 $as_echo_n "checking for $ac_header... " >&6; }
11104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11105   $as_echo_n "(cached) " >&6
11106 fi
11107 ac_res=`eval 'as_val=${'$as_ac_Header'}
11108                  $as_echo "$as_val"'`
11109                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11110 $as_echo "$ac_res" >&6; }
11111 else
11112   # Is the header compilable?
11113 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11114 $as_echo_n "checking $ac_header usability... " >&6; }
11115 cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h.  */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h.  */
11121 $ac_includes_default
11122 #include <$ac_header>
11123 _ACEOF
11124 rm -f conftest.$ac_objext
11125 if { (ac_try="$ac_compile"
11126 case "(($ac_try" in
11127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128   *) ac_try_echo=$ac_try;;
11129 esac
11130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11131 $as_echo "$ac_try_echo") >&5
11132   (eval "$ac_compile") 2>conftest.er1
11133   ac_status=$?
11134   grep -v '^ *+' conftest.er1 >conftest.err
11135   rm -f conftest.er1
11136   cat conftest.err >&5
11137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } && {
11139          test -z "$ac_c_werror_flag" ||
11140          test ! -s conftest.err
11141        } && test -s conftest.$ac_objext; then
11142   ac_header_compiler=yes
11143 else
11144   $as_echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147         ac_header_compiler=no
11148 fi
11149
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11152 $as_echo "$ac_header_compiler" >&6; }
11153
11154 # Is the header present?
11155 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11156 $as_echo_n "checking $ac_header presence... " >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11158 /* confdefs.h.  */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h.  */
11163 #include <$ac_header>
11164 _ACEOF
11165 if { (ac_try="$ac_cpp conftest.$ac_ext"
11166 case "(($ac_try" in
11167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168   *) ac_try_echo=$ac_try;;
11169 esac
11170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11171 $as_echo "$ac_try_echo") >&5
11172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11173   ac_status=$?
11174   grep -v '^ *+' conftest.er1 >conftest.err
11175   rm -f conftest.er1
11176   cat conftest.err >&5
11177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); } >/dev/null && {
11179          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11180          test ! -s conftest.err
11181        }; then
11182   ac_header_preproc=yes
11183 else
11184   $as_echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187   ac_header_preproc=no
11188 fi
11189
11190 rm -f conftest.err conftest.$ac_ext
11191 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11192 $as_echo "$ac_header_preproc" >&6; }
11193
11194 # So?  What about this header?
11195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11196   yes:no: )
11197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11198 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11199     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11200 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11201     ac_header_preproc=yes
11202     ;;
11203   no:yes:* )
11204     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11205 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11206     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11207 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11208     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11209 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11210     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11211 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11212     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11215 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11216     ( cat <<\_ASBOX
11217 ## ---------------------------------------- ##
11218 ## Report this to pgsql-bugs@postgresql.org ##
11219 ## ---------------------------------------- ##
11220 _ASBOX
11221      ) | sed "s/^/$as_me: WARNING:     /" >&2
11222     ;;
11223 esac
11224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11225 $as_echo_n "checking for $ac_header... " >&6; }
11226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11227   $as_echo_n "(cached) " >&6
11228 else
11229   eval "$as_ac_Header=\$ac_header_preproc"
11230 fi
11231 ac_res=`eval 'as_val=${'$as_ac_Header'}
11232                  $as_echo "$as_val"'`
11233                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11234 $as_echo "$ac_res" >&6; }
11235
11236 fi
11237 as_val=`eval 'as_val=${'$as_ac_Header'}
11238                  $as_echo "$as_val"'`
11239    if test "x$as_val" = x""yes; then
11240   cat >>confdefs.h <<_ACEOF
11241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242 _ACEOF
11243
11244 else
11245   { { $as_echo "$as_me:$LINENO: error: readline header not found
11246 If you have libedit already installed, see config.log for details on the
11247 failure.  It is possible the compiler isn't looking in the proper directory.
11248 Use --without-readline to disable libedit support." >&5
11249 $as_echo "$as_me: error: readline header not found
11250 If you have libedit already installed, see config.log for details on the
11251 failure.  It is possible the compiler isn't looking in the proper directory.
11252 Use --without-readline to disable libedit support." >&2;}
11253    { (exit 1); exit 1; }; }
11254 fi
11255
11256 done
11257
11258 fi
11259
11260 done
11261
11262 fi
11263
11264 done
11265
11266 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11267 # not be there at all.  Hence, don't complain if not found.  We must check
11268 # though, since in yet other versions it is an independent header.
11269
11270 for ac_header in editline/history.h
11271 do
11272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 $as_echo_n "checking for $ac_header... " >&6; }
11276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11277   $as_echo_n "(cached) " >&6
11278 fi
11279 ac_res=`eval 'as_val=${'$as_ac_Header'}
11280                  $as_echo "$as_val"'`
11281                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11282 $as_echo "$ac_res" >&6; }
11283 else
11284   # Is the header compilable?
11285 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11286 $as_echo_n "checking $ac_header usability... " >&6; }
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h.  */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h.  */
11293 $ac_includes_default
11294 #include <$ac_header>
11295 _ACEOF
11296 rm -f conftest.$ac_objext
11297 if { (ac_try="$ac_compile"
11298 case "(($ac_try" in
11299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11300   *) ac_try_echo=$ac_try;;
11301 esac
11302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11303 $as_echo "$ac_try_echo") >&5
11304   (eval "$ac_compile") 2>conftest.er1
11305   ac_status=$?
11306   grep -v '^ *+' conftest.er1 >conftest.err
11307   rm -f conftest.er1
11308   cat conftest.err >&5
11309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } && {
11311          test -z "$ac_c_werror_flag" ||
11312          test ! -s conftest.err
11313        } && test -s conftest.$ac_objext; then
11314   ac_header_compiler=yes
11315 else
11316   $as_echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319         ac_header_compiler=no
11320 fi
11321
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11324 $as_echo "$ac_header_compiler" >&6; }
11325
11326 # Is the header present?
11327 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11328 $as_echo_n "checking $ac_header presence... " >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 #include <$ac_header>
11336 _ACEOF
11337 if { (ac_try="$ac_cpp conftest.$ac_ext"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11343 $as_echo "$ac_try_echo") >&5
11344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11345   ac_status=$?
11346   grep -v '^ *+' conftest.er1 >conftest.err
11347   rm -f conftest.er1
11348   cat conftest.err >&5
11349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); } >/dev/null && {
11351          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11352          test ! -s conftest.err
11353        }; then
11354   ac_header_preproc=yes
11355 else
11356   $as_echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11358
11359   ac_header_preproc=no
11360 fi
11361
11362 rm -f conftest.err conftest.$ac_ext
11363 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11364 $as_echo "$ac_header_preproc" >&6; }
11365
11366 # So?  What about this header?
11367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11368   yes:no: )
11369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11370 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11373     ac_header_preproc=yes
11374     ;;
11375   no:yes:* )
11376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11377 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11379 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11380     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11381 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11383 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11387 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11388     ( cat <<\_ASBOX
11389 ## ---------------------------------------- ##
11390 ## Report this to pgsql-bugs@postgresql.org ##
11391 ## ---------------------------------------- ##
11392 _ASBOX
11393      ) | sed "s/^/$as_me: WARNING:     /" >&2
11394     ;;
11395 esac
11396 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11397 $as_echo_n "checking for $ac_header... " >&6; }
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399   $as_echo_n "(cached) " >&6
11400 else
11401   eval "$as_ac_Header=\$ac_header_preproc"
11402 fi
11403 ac_res=`eval 'as_val=${'$as_ac_Header'}
11404                  $as_echo "$as_val"'`
11405                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11406 $as_echo "$ac_res" >&6; }
11407
11408 fi
11409 as_val=`eval 'as_val=${'$as_ac_Header'}
11410                  $as_echo "$as_val"'`
11411    if test "x$as_val" = x""yes; then
11412   cat >>confdefs.h <<_ACEOF
11413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11414 _ACEOF
11415
11416 else
11417
11418 for ac_header in history.h
11419 do
11420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11422   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11423 $as_echo_n "checking for $ac_header... " >&6; }
11424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11425   $as_echo_n "(cached) " >&6
11426 fi
11427 ac_res=`eval 'as_val=${'$as_ac_Header'}
11428                  $as_echo "$as_val"'`
11429                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11430 $as_echo "$ac_res" >&6; }
11431 else
11432   # Is the header compilable?
11433 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11434 $as_echo_n "checking $ac_header usability... " >&6; }
11435 cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h.  */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h.  */
11441 $ac_includes_default
11442 #include <$ac_header>
11443 _ACEOF
11444 rm -f conftest.$ac_objext
11445 if { (ac_try="$ac_compile"
11446 case "(($ac_try" in
11447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448   *) ac_try_echo=$ac_try;;
11449 esac
11450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11451 $as_echo "$ac_try_echo") >&5
11452   (eval "$ac_compile") 2>conftest.er1
11453   ac_status=$?
11454   grep -v '^ *+' conftest.er1 >conftest.err
11455   rm -f conftest.er1
11456   cat conftest.err >&5
11457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); } && {
11459          test -z "$ac_c_werror_flag" ||
11460          test ! -s conftest.err
11461        } && test -s conftest.$ac_objext; then
11462   ac_header_compiler=yes
11463 else
11464   $as_echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467         ac_header_compiler=no
11468 fi
11469
11470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11472 $as_echo "$ac_header_compiler" >&6; }
11473
11474 # Is the header present?
11475 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11476 $as_echo_n "checking $ac_header presence... " >&6; }
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h.  */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h.  */
11483 #include <$ac_header>
11484 _ACEOF
11485 if { (ac_try="$ac_cpp conftest.$ac_ext"
11486 case "(($ac_try" in
11487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488   *) ac_try_echo=$ac_try;;
11489 esac
11490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11491 $as_echo "$ac_try_echo") >&5
11492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11493   ac_status=$?
11494   grep -v '^ *+' conftest.er1 >conftest.err
11495   rm -f conftest.er1
11496   cat conftest.err >&5
11497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); } >/dev/null && {
11499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11500          test ! -s conftest.err
11501        }; then
11502   ac_header_preproc=yes
11503 else
11504   $as_echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11506
11507   ac_header_preproc=no
11508 fi
11509
11510 rm -f conftest.err conftest.$ac_ext
11511 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11512 $as_echo "$ac_header_preproc" >&6; }
11513
11514 # So?  What about this header?
11515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11516   yes:no: )
11517     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11518 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11519     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11520 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11521     ac_header_preproc=yes
11522     ;;
11523   no:yes:* )
11524     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11525 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11526     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11527 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11528     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11529 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11530     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11531 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11532     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11533 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11535 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11536     ( cat <<\_ASBOX
11537 ## ---------------------------------------- ##
11538 ## Report this to pgsql-bugs@postgresql.org ##
11539 ## ---------------------------------------- ##
11540 _ASBOX
11541      ) | sed "s/^/$as_me: WARNING:     /" >&2
11542     ;;
11543 esac
11544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11545 $as_echo_n "checking for $ac_header... " >&6; }
11546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11547   $as_echo_n "(cached) " >&6
11548 else
11549   eval "$as_ac_Header=\$ac_header_preproc"
11550 fi
11551 ac_res=`eval 'as_val=${'$as_ac_Header'}
11552                  $as_echo "$as_val"'`
11553                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11554 $as_echo "$ac_res" >&6; }
11555
11556 fi
11557 as_val=`eval 'as_val=${'$as_ac_Header'}
11558                  $as_echo "$as_val"'`
11559    if test "x$as_val" = x""yes; then
11560   cat >>confdefs.h <<_ACEOF
11561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11562 _ACEOF
11563
11564 else
11565
11566 for ac_header in readline/history.h
11567 do
11568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11571 $as_echo_n "checking for $ac_header... " >&6; }
11572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573   $as_echo_n "(cached) " >&6
11574 fi
11575 ac_res=`eval 'as_val=${'$as_ac_Header'}
11576                  $as_echo "$as_val"'`
11577                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11578 $as_echo "$ac_res" >&6; }
11579 else
11580   # Is the header compilable?
11581 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11582 $as_echo_n "checking $ac_header usability... " >&6; }
11583 cat >conftest.$ac_ext <<_ACEOF
11584 /* confdefs.h.  */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h.  */
11589 $ac_includes_default
11590 #include <$ac_header>
11591 _ACEOF
11592 rm -f conftest.$ac_objext
11593 if { (ac_try="$ac_compile"
11594 case "(($ac_try" in
11595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596   *) ac_try_echo=$ac_try;;
11597 esac
11598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11599 $as_echo "$ac_try_echo") >&5
11600   (eval "$ac_compile") 2>conftest.er1
11601   ac_status=$?
11602   grep -v '^ *+' conftest.er1 >conftest.err
11603   rm -f conftest.er1
11604   cat conftest.err >&5
11605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); } && {
11607          test -z "$ac_c_werror_flag" ||
11608          test ! -s conftest.err
11609        } && test -s conftest.$ac_objext; then
11610   ac_header_compiler=yes
11611 else
11612   $as_echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615         ac_header_compiler=no
11616 fi
11617
11618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11619 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11620 $as_echo "$ac_header_compiler" >&6; }
11621
11622 # Is the header present?
11623 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11624 $as_echo_n "checking $ac_header presence... " >&6; }
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h.  */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h.  */
11631 #include <$ac_header>
11632 _ACEOF
11633 if { (ac_try="$ac_cpp conftest.$ac_ext"
11634 case "(($ac_try" in
11635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11636   *) ac_try_echo=$ac_try;;
11637 esac
11638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11639 $as_echo "$ac_try_echo") >&5
11640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11641   ac_status=$?
11642   grep -v '^ *+' conftest.er1 >conftest.err
11643   rm -f conftest.er1
11644   cat conftest.err >&5
11645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); } >/dev/null && {
11647          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11648          test ! -s conftest.err
11649        }; then
11650   ac_header_preproc=yes
11651 else
11652   $as_echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655   ac_header_preproc=no
11656 fi
11657
11658 rm -f conftest.err conftest.$ac_ext
11659 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11660 $as_echo "$ac_header_preproc" >&6; }
11661
11662 # So?  What about this header?
11663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11664   yes:no: )
11665     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11666 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11667     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11668 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11669     ac_header_preproc=yes
11670     ;;
11671   no:yes:* )
11672     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11673 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11674     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11675 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11676     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11677 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11678     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11679 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11680     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11682     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11683 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11684     ( cat <<\_ASBOX
11685 ## ---------------------------------------- ##
11686 ## Report this to pgsql-bugs@postgresql.org ##
11687 ## ---------------------------------------- ##
11688 _ASBOX
11689      ) | sed "s/^/$as_me: WARNING:     /" >&2
11690     ;;
11691 esac
11692 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11693 $as_echo_n "checking for $ac_header... " >&6; }
11694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11695   $as_echo_n "(cached) " >&6
11696 else
11697   eval "$as_ac_Header=\$ac_header_preproc"
11698 fi
11699 ac_res=`eval 'as_val=${'$as_ac_Header'}
11700                  $as_echo "$as_val"'`
11701                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11702 $as_echo "$ac_res" >&6; }
11703
11704 fi
11705 as_val=`eval 'as_val=${'$as_ac_Header'}
11706                  $as_echo "$as_val"'`
11707    if test "x$as_val" = x""yes; then
11708   cat >>confdefs.h <<_ACEOF
11709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11710 _ACEOF
11711
11712 fi
11713
11714 done
11715
11716 fi
11717
11718 done
11719
11720 fi
11721
11722 done
11723
11724 fi
11725
11726 if test "$with_zlib" = yes; then
11727   if test "${ac_cv_header_zlib_h+set}" = set; then
11728   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11729 $as_echo_n "checking for zlib.h... " >&6; }
11730 if test "${ac_cv_header_zlib_h+set}" = set; then
11731   $as_echo_n "(cached) " >&6
11732 fi
11733 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11734 $as_echo "$ac_cv_header_zlib_h" >&6; }
11735 else
11736   # Is the header compilable?
11737 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11738 $as_echo_n "checking zlib.h usability... " >&6; }
11739 cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h.  */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h.  */
11745 $ac_includes_default
11746 #include <zlib.h>
11747 _ACEOF
11748 rm -f conftest.$ac_objext
11749 if { (ac_try="$ac_compile"
11750 case "(($ac_try" in
11751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752   *) ac_try_echo=$ac_try;;
11753 esac
11754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11755 $as_echo "$ac_try_echo") >&5
11756   (eval "$ac_compile") 2>conftest.er1
11757   ac_status=$?
11758   grep -v '^ *+' conftest.er1 >conftest.err
11759   rm -f conftest.er1
11760   cat conftest.err >&5
11761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); } && {
11763          test -z "$ac_c_werror_flag" ||
11764          test ! -s conftest.err
11765        } && test -s conftest.$ac_objext; then
11766   ac_header_compiler=yes
11767 else
11768   $as_echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771         ac_header_compiler=no
11772 fi
11773
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11776 $as_echo "$ac_header_compiler" >&6; }
11777
11778 # Is the header present?
11779 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11780 $as_echo_n "checking zlib.h presence... " >&6; }
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h.  */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h.  */
11787 #include <zlib.h>
11788 _ACEOF
11789 if { (ac_try="$ac_cpp conftest.$ac_ext"
11790 case "(($ac_try" in
11791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792   *) ac_try_echo=$ac_try;;
11793 esac
11794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11795 $as_echo "$ac_try_echo") >&5
11796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11797   ac_status=$?
11798   grep -v '^ *+' conftest.er1 >conftest.err
11799   rm -f conftest.er1
11800   cat conftest.err >&5
11801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); } >/dev/null && {
11803          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11804          test ! -s conftest.err
11805        }; then
11806   ac_header_preproc=yes
11807 else
11808   $as_echo "$as_me: failed program was:" >&5
11809 sed 's/^/| /' conftest.$ac_ext >&5
11810
11811   ac_header_preproc=no
11812 fi
11813
11814 rm -f conftest.err conftest.$ac_ext
11815 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11816 $as_echo "$ac_header_preproc" >&6; }
11817
11818 # So?  What about this header?
11819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11820   yes:no: )
11821     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11822 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11823     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11824 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11825     ac_header_preproc=yes
11826     ;;
11827   no:yes:* )
11828     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11829 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11830     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
11831 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
11832     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11833 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11834     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
11835 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11836     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11837 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11838     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11839 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11840     ( cat <<\_ASBOX
11841 ## ---------------------------------------- ##
11842 ## Report this to pgsql-bugs@postgresql.org ##
11843 ## ---------------------------------------- ##
11844 _ASBOX
11845      ) | sed "s/^/$as_me: WARNING:     /" >&2
11846     ;;
11847 esac
11848 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11849 $as_echo_n "checking for zlib.h... " >&6; }
11850 if test "${ac_cv_header_zlib_h+set}" = set; then
11851   $as_echo_n "(cached) " >&6
11852 else
11853   ac_cv_header_zlib_h=$ac_header_preproc
11854 fi
11855 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11856 $as_echo "$ac_cv_header_zlib_h" >&6; }
11857
11858 fi
11859 if test "x$ac_cv_header_zlib_h" = x""yes; then
11860   :
11861 else
11862   { { $as_echo "$as_me:$LINENO: error: zlib header not found
11863 If you have zlib already installed, see config.log for details on the
11864 failure.  It is possible the compiler isn't looking in the proper directory.
11865 Use --without-zlib to disable zlib support." >&5
11866 $as_echo "$as_me: error: zlib header not found
11867 If you have zlib already installed, see config.log for details on the
11868 failure.  It is possible the compiler isn't looking in the proper directory.
11869 Use --without-zlib to disable zlib support." >&2;}
11870    { (exit 1); exit 1; }; }
11871 fi
11872
11873
11874 fi
11875
11876 if test "$with_gssapi" = yes ; then
11877
11878 for ac_header in gssapi/gssapi.h
11879 do
11880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11882   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11883 $as_echo_n "checking for $ac_header... " >&6; }
11884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11885   $as_echo_n "(cached) " >&6
11886 fi
11887 ac_res=`eval 'as_val=${'$as_ac_Header'}
11888                  $as_echo "$as_val"'`
11889                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11890 $as_echo "$ac_res" >&6; }
11891 else
11892   # Is the header compilable?
11893 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11894 $as_echo_n "checking $ac_header usability... " >&6; }
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h.  */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h.  */
11901 $ac_includes_default
11902 #include <$ac_header>
11903 _ACEOF
11904 rm -f conftest.$ac_objext
11905 if { (ac_try="$ac_compile"
11906 case "(($ac_try" in
11907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908   *) ac_try_echo=$ac_try;;
11909 esac
11910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11911 $as_echo "$ac_try_echo") >&5
11912   (eval "$ac_compile") 2>conftest.er1
11913   ac_status=$?
11914   grep -v '^ *+' conftest.er1 >conftest.err
11915   rm -f conftest.er1
11916   cat conftest.err >&5
11917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); } && {
11919          test -z "$ac_c_werror_flag" ||
11920          test ! -s conftest.err
11921        } && test -s conftest.$ac_objext; then
11922   ac_header_compiler=yes
11923 else
11924   $as_echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927         ac_header_compiler=no
11928 fi
11929
11930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11931 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11932 $as_echo "$ac_header_compiler" >&6; }
11933
11934 # Is the header present?
11935 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11936 $as_echo_n "checking $ac_header presence... " >&6; }
11937 cat >conftest.$ac_ext <<_ACEOF
11938 /* confdefs.h.  */
11939 _ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h.  */
11943 #include <$ac_header>
11944 _ACEOF
11945 if { (ac_try="$ac_cpp conftest.$ac_ext"
11946 case "(($ac_try" in
11947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948   *) ac_try_echo=$ac_try;;
11949 esac
11950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11951 $as_echo "$ac_try_echo") >&5
11952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11953   ac_status=$?
11954   grep -v '^ *+' conftest.er1 >conftest.err
11955   rm -f conftest.er1
11956   cat conftest.err >&5
11957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); } >/dev/null && {
11959          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11960          test ! -s conftest.err
11961        }; then
11962   ac_header_preproc=yes
11963 else
11964   $as_echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11966
11967   ac_header_preproc=no
11968 fi
11969
11970 rm -f conftest.err conftest.$ac_ext
11971 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11972 $as_echo "$ac_header_preproc" >&6; }
11973
11974 # So?  What about this header?
11975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11976   yes:no: )
11977     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11978 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11979     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11980 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11981     ac_header_preproc=yes
11982     ;;
11983   no:yes:* )
11984     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11985 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11986     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11987 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11988     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11989 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11990     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11991 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11992     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11993 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11994     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11995 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11996     ( cat <<\_ASBOX
11997 ## ---------------------------------------- ##
11998 ## Report this to pgsql-bugs@postgresql.org ##
11999 ## ---------------------------------------- ##
12000 _ASBOX
12001      ) | sed "s/^/$as_me: WARNING:     /" >&2
12002     ;;
12003 esac
12004 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12005 $as_echo_n "checking for $ac_header... " >&6; }
12006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12007   $as_echo_n "(cached) " >&6
12008 else
12009   eval "$as_ac_Header=\$ac_header_preproc"
12010 fi
12011 ac_res=`eval 'as_val=${'$as_ac_Header'}
12012                  $as_echo "$as_val"'`
12013                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12014 $as_echo "$ac_res" >&6; }
12015
12016 fi
12017 as_val=`eval 'as_val=${'$as_ac_Header'}
12018                  $as_echo "$as_val"'`
12019    if test "x$as_val" = x""yes; then
12020   cat >>confdefs.h <<_ACEOF
12021 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12022 _ACEOF
12023
12024 else
12025
12026 for ac_header in gssapi.h
12027 do
12028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12030   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12031 $as_echo_n "checking for $ac_header... " >&6; }
12032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12033   $as_echo_n "(cached) " >&6
12034 fi
12035 ac_res=`eval 'as_val=${'$as_ac_Header'}
12036                  $as_echo "$as_val"'`
12037                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12038 $as_echo "$ac_res" >&6; }
12039 else
12040   # Is the header compilable?
12041 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12042 $as_echo_n "checking $ac_header usability... " >&6; }
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049 $ac_includes_default
12050 #include <$ac_header>
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12059 $as_echo "$ac_try_echo") >&5
12060   (eval "$ac_compile") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } && {
12067          test -z "$ac_c_werror_flag" ||
12068          test ! -s conftest.err
12069        } && test -s conftest.$ac_objext; then
12070   ac_header_compiler=yes
12071 else
12072   $as_echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075         ac_header_compiler=no
12076 fi
12077
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12080 $as_echo "$ac_header_compiler" >&6; }
12081
12082 # Is the header present?
12083 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12084 $as_echo_n "checking $ac_header presence... " >&6; }
12085 cat >conftest.$ac_ext <<_ACEOF
12086 /* confdefs.h.  */
12087 _ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h.  */
12091 #include <$ac_header>
12092 _ACEOF
12093 if { (ac_try="$ac_cpp conftest.$ac_ext"
12094 case "(($ac_try" in
12095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096   *) ac_try_echo=$ac_try;;
12097 esac
12098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12099 $as_echo "$ac_try_echo") >&5
12100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12101   ac_status=$?
12102   grep -v '^ *+' conftest.er1 >conftest.err
12103   rm -f conftest.er1
12104   cat conftest.err >&5
12105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); } >/dev/null && {
12107          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12108          test ! -s conftest.err
12109        }; then
12110   ac_header_preproc=yes
12111 else
12112   $as_echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12114
12115   ac_header_preproc=no
12116 fi
12117
12118 rm -f conftest.err conftest.$ac_ext
12119 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12120 $as_echo "$ac_header_preproc" >&6; }
12121
12122 # So?  What about this header?
12123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12124   yes:no: )
12125     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12126 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12127     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12128 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12129     ac_header_preproc=yes
12130     ;;
12131   no:yes:* )
12132     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12133 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12134     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12135 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12136     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12137 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12138     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12139 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12140     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12142     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12143 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12144     ( cat <<\_ASBOX
12145 ## ---------------------------------------- ##
12146 ## Report this to pgsql-bugs@postgresql.org ##
12147 ## ---------------------------------------- ##
12148 _ASBOX
12149      ) | sed "s/^/$as_me: WARNING:     /" >&2
12150     ;;
12151 esac
12152 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12153 $as_echo_n "checking for $ac_header... " >&6; }
12154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12155   $as_echo_n "(cached) " >&6
12156 else
12157   eval "$as_ac_Header=\$ac_header_preproc"
12158 fi
12159 ac_res=`eval 'as_val=${'$as_ac_Header'}
12160                  $as_echo "$as_val"'`
12161                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12162 $as_echo "$ac_res" >&6; }
12163
12164 fi
12165 as_val=`eval 'as_val=${'$as_ac_Header'}
12166                  $as_echo "$as_val"'`
12167    if test "x$as_val" = x""yes; then
12168   cat >>confdefs.h <<_ACEOF
12169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12170 _ACEOF
12171
12172 else
12173   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12174 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12175    { (exit 1); exit 1; }; }
12176 fi
12177
12178 done
12179
12180 fi
12181
12182 done
12183
12184 fi
12185
12186 if test "$with_krb5" = yes ; then
12187   if test "${ac_cv_header_krb5_h+set}" = set; then
12188   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12189 $as_echo_n "checking for krb5.h... " >&6; }
12190 if test "${ac_cv_header_krb5_h+set}" = set; then
12191   $as_echo_n "(cached) " >&6
12192 fi
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12194 $as_echo "$ac_cv_header_krb5_h" >&6; }
12195 else
12196   # Is the header compilable?
12197 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12198 $as_echo_n "checking krb5.h usability... " >&6; }
12199 cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h.  */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h.  */
12205 $ac_includes_default
12206 #include <krb5.h>
12207 _ACEOF
12208 rm -f conftest.$ac_objext
12209 if { (ac_try="$ac_compile"
12210 case "(($ac_try" in
12211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212   *) ac_try_echo=$ac_try;;
12213 esac
12214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12215 $as_echo "$ac_try_echo") >&5
12216   (eval "$ac_compile") 2>conftest.er1
12217   ac_status=$?
12218   grep -v '^ *+' conftest.er1 >conftest.err
12219   rm -f conftest.er1
12220   cat conftest.err >&5
12221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } && {
12223          test -z "$ac_c_werror_flag" ||
12224          test ! -s conftest.err
12225        } && test -s conftest.$ac_objext; then
12226   ac_header_compiler=yes
12227 else
12228   $as_echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231         ac_header_compiler=no
12232 fi
12233
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 $as_echo "$ac_header_compiler" >&6; }
12237
12238 # Is the header present?
12239 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12240 $as_echo_n "checking krb5.h presence... " >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h.  */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h.  */
12247 #include <krb5.h>
12248 _ACEOF
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252   *) ac_try_echo=$ac_try;;
12253 esac
12254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12255 $as_echo "$ac_try_echo") >&5
12256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12257   ac_status=$?
12258   grep -v '^ *+' conftest.er1 >conftest.err
12259   rm -f conftest.er1
12260   cat conftest.err >&5
12261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); } >/dev/null && {
12263          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12264          test ! -s conftest.err
12265        }; then
12266   ac_header_preproc=yes
12267 else
12268   $as_echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271   ac_header_preproc=no
12272 fi
12273
12274 rm -f conftest.err conftest.$ac_ext
12275 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12276 $as_echo "$ac_header_preproc" >&6; }
12277
12278 # So?  What about this header?
12279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12280   yes:no: )
12281     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12282 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12283     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12284 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12285     ac_header_preproc=yes
12286     ;;
12287   no:yes:* )
12288     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12289 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12290     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12291 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12292     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12293 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12294     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12295 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12296     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12297 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12298     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12299 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12300     ( cat <<\_ASBOX
12301 ## ---------------------------------------- ##
12302 ## Report this to pgsql-bugs@postgresql.org ##
12303 ## ---------------------------------------- ##
12304 _ASBOX
12305      ) | sed "s/^/$as_me: WARNING:     /" >&2
12306     ;;
12307 esac
12308 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12309 $as_echo_n "checking for krb5.h... " >&6; }
12310 if test "${ac_cv_header_krb5_h+set}" = set; then
12311   $as_echo_n "(cached) " >&6
12312 else
12313   ac_cv_header_krb5_h=$ac_header_preproc
12314 fi
12315 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12316 $as_echo "$ac_cv_header_krb5_h" >&6; }
12317
12318 fi
12319 if test "x$ac_cv_header_krb5_h" = x""yes; then
12320   :
12321 else
12322   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12323 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12324    { (exit 1); exit 1; }; }
12325 fi
12326
12327
12328 fi
12329
12330 if test "$with_openssl" = yes ; then
12331   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12332   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12333 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12334 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12335   $as_echo_n "(cached) " >&6
12336 fi
12337 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12338 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12339 else
12340   # Is the header compilable?
12341 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12342 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349 $ac_includes_default
12350 #include <openssl/ssl.h>
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (ac_try="$ac_compile"
12354 case "(($ac_try" in
12355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356   *) ac_try_echo=$ac_try;;
12357 esac
12358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12359 $as_echo "$ac_try_echo") >&5
12360   (eval "$ac_compile") 2>conftest.er1
12361   ac_status=$?
12362   grep -v '^ *+' conftest.er1 >conftest.err
12363   rm -f conftest.er1
12364   cat conftest.err >&5
12365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); } && {
12367          test -z "$ac_c_werror_flag" ||
12368          test ! -s conftest.err
12369        } && test -s conftest.$ac_objext; then
12370   ac_header_compiler=yes
12371 else
12372   $as_echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375         ac_header_compiler=no
12376 fi
12377
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12380 $as_echo "$ac_header_compiler" >&6; }
12381
12382 # Is the header present?
12383 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12384 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h.  */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h.  */
12391 #include <openssl/ssl.h>
12392 _ACEOF
12393 if { (ac_try="$ac_cpp conftest.$ac_ext"
12394 case "(($ac_try" in
12395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396   *) ac_try_echo=$ac_try;;
12397 esac
12398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12399 $as_echo "$ac_try_echo") >&5
12400   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12401   ac_status=$?
12402   grep -v '^ *+' conftest.er1 >conftest.err
12403   rm -f conftest.er1
12404   cat conftest.err >&5
12405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); } >/dev/null && {
12407          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12408          test ! -s conftest.err
12409        }; then
12410   ac_header_preproc=yes
12411 else
12412   $as_echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415   ac_header_preproc=no
12416 fi
12417
12418 rm -f conftest.err conftest.$ac_ext
12419 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420 $as_echo "$ac_header_preproc" >&6; }
12421
12422 # So?  What about this header?
12423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12424   yes:no: )
12425     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12426 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12427     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12428 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12429     ac_header_preproc=yes
12430     ;;
12431   no:yes:* )
12432     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12433 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12434     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12435 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12436     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12437 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12438     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12439 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12440     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12441 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12442     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12443 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12444     ( cat <<\_ASBOX
12445 ## ---------------------------------------- ##
12446 ## Report this to pgsql-bugs@postgresql.org ##
12447 ## ---------------------------------------- ##
12448 _ASBOX
12449      ) | sed "s/^/$as_me: WARNING:     /" >&2
12450     ;;
12451 esac
12452 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12453 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12454 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12455   $as_echo_n "(cached) " >&6
12456 else
12457   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12458 fi
12459 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12460 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12461
12462 fi
12463 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12464   :
12465 else
12466   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12467 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12468    { (exit 1); exit 1; }; }
12469 fi
12470
12471
12472   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12473   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12474 $as_echo_n "checking for openssl/err.h... " >&6; }
12475 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12476   $as_echo_n "(cached) " >&6
12477 fi
12478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12479 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12480 else
12481   # Is the header compilable?
12482 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12483 $as_echo_n "checking openssl/err.h usability... " >&6; }
12484 cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490 $ac_includes_default
12491 #include <openssl/err.h>
12492 _ACEOF
12493 rm -f conftest.$ac_objext
12494 if { (ac_try="$ac_compile"
12495 case "(($ac_try" in
12496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497   *) ac_try_echo=$ac_try;;
12498 esac
12499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12500 $as_echo "$ac_try_echo") >&5
12501   (eval "$ac_compile") 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } && {
12508          test -z "$ac_c_werror_flag" ||
12509          test ! -s conftest.err
12510        } && test -s conftest.$ac_objext; then
12511   ac_header_compiler=yes
12512 else
12513   $as_echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516         ac_header_compiler=no
12517 fi
12518
12519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12520 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12521 $as_echo "$ac_header_compiler" >&6; }
12522
12523 # Is the header present?
12524 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12525 $as_echo_n "checking openssl/err.h presence... " >&6; }
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532 #include <openssl/err.h>
12533 _ACEOF
12534 if { (ac_try="$ac_cpp conftest.$ac_ext"
12535 case "(($ac_try" in
12536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537   *) ac_try_echo=$ac_try;;
12538 esac
12539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12540 $as_echo "$ac_try_echo") >&5
12541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12542   ac_status=$?
12543   grep -v '^ *+' conftest.er1 >conftest.err
12544   rm -f conftest.er1
12545   cat conftest.err >&5
12546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); } >/dev/null && {
12548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12549          test ! -s conftest.err
12550        }; then
12551   ac_header_preproc=yes
12552 else
12553   $as_echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556   ac_header_preproc=no
12557 fi
12558
12559 rm -f conftest.err conftest.$ac_ext
12560 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12561 $as_echo "$ac_header_preproc" >&6; }
12562
12563 # So?  What about this header?
12564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12565   yes:no: )
12566     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12567 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12568     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12569 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12570     ac_header_preproc=yes
12571     ;;
12572   no:yes:* )
12573     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12574 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12575     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12576 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12577     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12578 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12579     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12580 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12581     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12582 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12583     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12584 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12585     ( cat <<\_ASBOX
12586 ## ---------------------------------------- ##
12587 ## Report this to pgsql-bugs@postgresql.org ##
12588 ## ---------------------------------------- ##
12589 _ASBOX
12590      ) | sed "s/^/$as_me: WARNING:     /" >&2
12591     ;;
12592 esac
12593 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12594 $as_echo_n "checking for openssl/err.h... " >&6; }
12595 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12596   $as_echo_n "(cached) " >&6
12597 else
12598   ac_cv_header_openssl_err_h=$ac_header_preproc
12599 fi
12600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12601 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12602
12603 fi
12604 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12605   :
12606 else
12607   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12608 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12609    { (exit 1); exit 1; }; }
12610 fi
12611
12612
12613
12614 for ac_func in ERR_set_mark
12615 do
12616 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12617 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12618 $as_echo_n "checking for $ac_func... " >&6; }
12619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12620   $as_echo_n "(cached) " >&6
12621 else
12622   cat >conftest.$ac_ext <<_ACEOF
12623 /* confdefs.h.  */
12624 _ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h.  */
12628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12630 #define $ac_func innocuous_$ac_func
12631
12632 /* System header to define __stub macros and hopefully few prototypes,
12633     which can conflict with char $ac_func (); below.
12634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12635     <limits.h> exists even on freestanding compilers.  */
12636
12637 #ifdef __STDC__
12638 # include <limits.h>
12639 #else
12640 # include <assert.h>
12641 #endif
12642
12643 #undef $ac_func
12644
12645 /* Override any GCC internal prototype to avoid an error.
12646    Use char because int might match the return type of a GCC
12647    builtin and then its argument prototype would still apply.  */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char $ac_func ();
12652 /* The GNU C library defines this for functions which it implements
12653     to always fail with ENOSYS.  Some functions are actually named
12654     something starting with __ and the normal name is an alias.  */
12655 #if defined __stub_$ac_func || defined __stub___$ac_func
12656 choke me
12657 #endif
12658
12659 int
12660 main ()
12661 {
12662 return $ac_func ();
12663   ;
12664   return 0;
12665 }
12666 _ACEOF
12667 rm -f conftest.$ac_objext conftest$ac_exeext
12668 if { (ac_try="$ac_link"
12669 case "(($ac_try" in
12670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671   *) ac_try_echo=$ac_try;;
12672 esac
12673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12674 $as_echo "$ac_try_echo") >&5
12675   (eval "$ac_link") 2>conftest.er1
12676   ac_status=$?
12677   grep -v '^ *+' conftest.er1 >conftest.err
12678   rm -f conftest.er1
12679   cat conftest.err >&5
12680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); } && {
12682          test -z "$ac_c_werror_flag" ||
12683          test ! -s conftest.err
12684        } && test -s conftest$ac_exeext && {
12685          test "$cross_compiling" = yes ||
12686          $as_test_x conftest$ac_exeext
12687        }; then
12688   eval "$as_ac_var=yes"
12689 else
12690   $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693         eval "$as_ac_var=no"
12694 fi
12695
12696 rm -rf conftest.dSYM
12697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12698       conftest$ac_exeext conftest.$ac_ext
12699 fi
12700 ac_res=`eval 'as_val=${'$as_ac_var'}
12701                  $as_echo "$as_val"'`
12702                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12703 $as_echo "$ac_res" >&6; }
12704 as_val=`eval 'as_val=${'$as_ac_var'}
12705                  $as_echo "$as_val"'`
12706    if test "x$as_val" = x""yes; then
12707   cat >>confdefs.h <<_ACEOF
12708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12709 _ACEOF
12710
12711 fi
12712 done
12713
12714 fi
12715
12716 if test "$with_pam" = yes ; then
12717
12718 for ac_header in security/pam_appl.h
12719 do
12720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12722   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12723 $as_echo_n "checking for $ac_header... " >&6; }
12724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12725   $as_echo_n "(cached) " >&6
12726 fi
12727 ac_res=`eval 'as_val=${'$as_ac_Header'}
12728                  $as_echo "$as_val"'`
12729                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12730 $as_echo "$ac_res" >&6; }
12731 else
12732   # Is the header compilable?
12733 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12734 $as_echo_n "checking $ac_header usability... " >&6; }
12735 cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h.  */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h.  */
12741 $ac_includes_default
12742 #include <$ac_header>
12743 _ACEOF
12744 rm -f conftest.$ac_objext
12745 if { (ac_try="$ac_compile"
12746 case "(($ac_try" in
12747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748   *) ac_try_echo=$ac_try;;
12749 esac
12750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12751 $as_echo "$ac_try_echo") >&5
12752   (eval "$ac_compile") 2>conftest.er1
12753   ac_status=$?
12754   grep -v '^ *+' conftest.er1 >conftest.err
12755   rm -f conftest.er1
12756   cat conftest.err >&5
12757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); } && {
12759          test -z "$ac_c_werror_flag" ||
12760          test ! -s conftest.err
12761        } && test -s conftest.$ac_objext; then
12762   ac_header_compiler=yes
12763 else
12764   $as_echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767         ac_header_compiler=no
12768 fi
12769
12770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12771 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12772 $as_echo "$ac_header_compiler" >&6; }
12773
12774 # Is the header present?
12775 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12776 $as_echo_n "checking $ac_header presence... " >&6; }
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h.  */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h.  */
12783 #include <$ac_header>
12784 _ACEOF
12785 if { (ac_try="$ac_cpp conftest.$ac_ext"
12786 case "(($ac_try" in
12787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788   *) ac_try_echo=$ac_try;;
12789 esac
12790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12791 $as_echo "$ac_try_echo") >&5
12792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12793   ac_status=$?
12794   grep -v '^ *+' conftest.er1 >conftest.err
12795   rm -f conftest.er1
12796   cat conftest.err >&5
12797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); } >/dev/null && {
12799          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12800          test ! -s conftest.err
12801        }; then
12802   ac_header_preproc=yes
12803 else
12804   $as_echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12806
12807   ac_header_preproc=no
12808 fi
12809
12810 rm -f conftest.err conftest.$ac_ext
12811 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12812 $as_echo "$ac_header_preproc" >&6; }
12813
12814 # So?  What about this header?
12815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12816   yes:no: )
12817     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12818 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12820 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12821     ac_header_preproc=yes
12822     ;;
12823   no:yes:* )
12824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12825 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12827 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12829 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12831 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12833 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12834     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12835 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12836     ( cat <<\_ASBOX
12837 ## ---------------------------------------- ##
12838 ## Report this to pgsql-bugs@postgresql.org ##
12839 ## ---------------------------------------- ##
12840 _ASBOX
12841      ) | sed "s/^/$as_me: WARNING:     /" >&2
12842     ;;
12843 esac
12844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12845 $as_echo_n "checking for $ac_header... " >&6; }
12846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12847   $as_echo_n "(cached) " >&6
12848 else
12849   eval "$as_ac_Header=\$ac_header_preproc"
12850 fi
12851 ac_res=`eval 'as_val=${'$as_ac_Header'}
12852                  $as_echo "$as_val"'`
12853                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12854 $as_echo "$ac_res" >&6; }
12855
12856 fi
12857 as_val=`eval 'as_val=${'$as_ac_Header'}
12858                  $as_echo "$as_val"'`
12859    if test "x$as_val" = x""yes; then
12860   cat >>confdefs.h <<_ACEOF
12861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12862 _ACEOF
12863
12864 else
12865
12866 for ac_header in pam/pam_appl.h
12867 do
12868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12870   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12871 $as_echo_n "checking for $ac_header... " >&6; }
12872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12873   $as_echo_n "(cached) " >&6
12874 fi
12875 ac_res=`eval 'as_val=${'$as_ac_Header'}
12876                  $as_echo "$as_val"'`
12877                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12878 $as_echo "$ac_res" >&6; }
12879 else
12880   # Is the header compilable?
12881 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12882 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
12890 #include <$ac_header>
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (ac_try="$ac_compile"
12894 case "(($ac_try" in
12895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896   *) ac_try_echo=$ac_try;;
12897 esac
12898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12899 $as_echo "$ac_try_echo") >&5
12900   (eval "$ac_compile") 2>conftest.er1
12901   ac_status=$?
12902   grep -v '^ *+' conftest.er1 >conftest.err
12903   rm -f conftest.er1
12904   cat conftest.err >&5
12905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); } && {
12907          test -z "$ac_c_werror_flag" ||
12908          test ! -s conftest.err
12909        } && test -s conftest.$ac_objext; then
12910   ac_header_compiler=yes
12911 else
12912   $as_echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915         ac_header_compiler=no
12916 fi
12917
12918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12920 $as_echo "$ac_header_compiler" >&6; }
12921
12922 # Is the header present?
12923 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12924 $as_echo_n "checking $ac_header presence... " >&6; }
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h.  */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h.  */
12931 #include <$ac_header>
12932 _ACEOF
12933 if { (ac_try="$ac_cpp conftest.$ac_ext"
12934 case "(($ac_try" in
12935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936   *) ac_try_echo=$ac_try;;
12937 esac
12938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12939 $as_echo "$ac_try_echo") >&5
12940   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12941   ac_status=$?
12942   grep -v '^ *+' conftest.er1 >conftest.err
12943   rm -f conftest.er1
12944   cat conftest.err >&5
12945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); } >/dev/null && {
12947          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12948          test ! -s conftest.err
12949        }; then
12950   ac_header_preproc=yes
12951 else
12952   $as_echo "$as_me: failed program was:" >&5
12953 sed 's/^/| /' conftest.$ac_ext >&5
12954
12955   ac_header_preproc=no
12956 fi
12957
12958 rm -f conftest.err conftest.$ac_ext
12959 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12960 $as_echo "$ac_header_preproc" >&6; }
12961
12962 # So?  What about this header?
12963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12964   yes:no: )
12965     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12966 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12967     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12968 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12969     ac_header_preproc=yes
12970     ;;
12971   no:yes:* )
12972     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12973 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12975 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12977 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12978     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12979 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12980     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12981 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12982     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12983 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12984     ( cat <<\_ASBOX
12985 ## ---------------------------------------- ##
12986 ## Report this to pgsql-bugs@postgresql.org ##
12987 ## ---------------------------------------- ##
12988 _ASBOX
12989      ) | sed "s/^/$as_me: WARNING:     /" >&2
12990     ;;
12991 esac
12992 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12993 $as_echo_n "checking for $ac_header... " >&6; }
12994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12995   $as_echo_n "(cached) " >&6
12996 else
12997   eval "$as_ac_Header=\$ac_header_preproc"
12998 fi
12999 ac_res=`eval 'as_val=${'$as_ac_Header'}
13000                  $as_echo "$as_val"'`
13001                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13002 $as_echo "$ac_res" >&6; }
13003
13004 fi
13005 as_val=`eval 'as_val=${'$as_ac_Header'}
13006                  $as_echo "$as_val"'`
13007    if test "x$as_val" = x""yes; then
13008   cat >>confdefs.h <<_ACEOF
13009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13010 _ACEOF
13011
13012 else
13013   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13014 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13015    { (exit 1); exit 1; }; }
13016 fi
13017
13018 done
13019
13020 fi
13021
13022 done
13023
13024 fi
13025
13026 if test "$with_libxml" = yes ; then
13027   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13028   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13029 $as_echo_n "checking for libxml/parser.h... " >&6; }
13030 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13031   $as_echo_n "(cached) " >&6
13032 fi
13033 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13034 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13035 else
13036   # Is the header compilable?
13037 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13038 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h.  */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h.  */
13045 $ac_includes_default
13046 #include <libxml/parser.h>
13047 _ACEOF
13048 rm -f conftest.$ac_objext
13049 if { (ac_try="$ac_compile"
13050 case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13055 $as_echo "$ac_try_echo") >&5
13056   (eval "$ac_compile") 2>conftest.er1
13057   ac_status=$?
13058   grep -v '^ *+' conftest.er1 >conftest.err
13059   rm -f conftest.er1
13060   cat conftest.err >&5
13061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); } && {
13063          test -z "$ac_c_werror_flag" ||
13064          test ! -s conftest.err
13065        } && test -s conftest.$ac_objext; then
13066   ac_header_compiler=yes
13067 else
13068   $as_echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13070
13071         ac_header_compiler=no
13072 fi
13073
13074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13076 $as_echo "$ac_header_compiler" >&6; }
13077
13078 # Is the header present?
13079 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13080 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13081 cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 #include <libxml/parser.h>
13088 _ACEOF
13089 if { (ac_try="$ac_cpp conftest.$ac_ext"
13090 case "(($ac_try" in
13091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092   *) ac_try_echo=$ac_try;;
13093 esac
13094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13095 $as_echo "$ac_try_echo") >&5
13096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13097   ac_status=$?
13098   grep -v '^ *+' conftest.er1 >conftest.err
13099   rm -f conftest.er1
13100   cat conftest.err >&5
13101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); } >/dev/null && {
13103          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13104          test ! -s conftest.err
13105        }; then
13106   ac_header_preproc=yes
13107 else
13108   $as_echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111   ac_header_preproc=no
13112 fi
13113
13114 rm -f conftest.err conftest.$ac_ext
13115 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13116 $as_echo "$ac_header_preproc" >&6; }
13117
13118 # So?  What about this header?
13119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13120   yes:no: )
13121     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13122 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13123     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13124 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13125     ac_header_preproc=yes
13126     ;;
13127   no:yes:* )
13128     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13129 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13130     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13131 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13132     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13133 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13134     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13135 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13136     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13137 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13138     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13139 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13140     ( cat <<\_ASBOX
13141 ## ---------------------------------------- ##
13142 ## Report this to pgsql-bugs@postgresql.org ##
13143 ## ---------------------------------------- ##
13144 _ASBOX
13145      ) | sed "s/^/$as_me: WARNING:     /" >&2
13146     ;;
13147 esac
13148 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13149 $as_echo_n "checking for libxml/parser.h... " >&6; }
13150 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13151   $as_echo_n "(cached) " >&6
13152 else
13153   ac_cv_header_libxml_parser_h=$ac_header_preproc
13154 fi
13155 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13156 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13157
13158 fi
13159 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13160   :
13161 else
13162   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13163 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13164    { (exit 1); exit 1; }; }
13165 fi
13166
13167
13168 fi
13169
13170 if test "$with_libxslt" = yes ; then
13171   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13172   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13173 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13174 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13175   $as_echo_n "(cached) " >&6
13176 fi
13177 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13178 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13179 else
13180   # Is the header compilable?
13181 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13182 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13189 $ac_includes_default
13190 #include <libxslt/xslt.h>
13191 _ACEOF
13192 rm -f conftest.$ac_objext
13193 if { (ac_try="$ac_compile"
13194 case "(($ac_try" in
13195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196   *) ac_try_echo=$ac_try;;
13197 esac
13198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200   (eval "$ac_compile") 2>conftest.er1
13201   ac_status=$?
13202   grep -v '^ *+' conftest.er1 >conftest.err
13203   rm -f conftest.er1
13204   cat conftest.err >&5
13205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } && {
13207          test -z "$ac_c_werror_flag" ||
13208          test ! -s conftest.err
13209        } && test -s conftest.$ac_objext; then
13210   ac_header_compiler=yes
13211 else
13212   $as_echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215         ac_header_compiler=no
13216 fi
13217
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13220 $as_echo "$ac_header_compiler" >&6; }
13221
13222 # Is the header present?
13223 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13224 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231 #include <libxslt/xslt.h>
13232 _ACEOF
13233 if { (ac_try="$ac_cpp conftest.$ac_ext"
13234 case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13239 $as_echo "$ac_try_echo") >&5
13240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } >/dev/null && {
13247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13248          test ! -s conftest.err
13249        }; then
13250   ac_header_preproc=yes
13251 else
13252   $as_echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255   ac_header_preproc=no
13256 fi
13257
13258 rm -f conftest.err conftest.$ac_ext
13259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13260 $as_echo "$ac_header_preproc" >&6; }
13261
13262 # So?  What about this header?
13263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13264   yes:no: )
13265     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13266 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13267     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13268 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13269     ac_header_preproc=yes
13270     ;;
13271   no:yes:* )
13272     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13273 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13274     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13275 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13276     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13277 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13278     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13279 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13280     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13281 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13282     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13283 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13284     ( cat <<\_ASBOX
13285 ## ---------------------------------------- ##
13286 ## Report this to pgsql-bugs@postgresql.org ##
13287 ## ---------------------------------------- ##
13288 _ASBOX
13289      ) | sed "s/^/$as_me: WARNING:     /" >&2
13290     ;;
13291 esac
13292 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13293 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13294 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13295   $as_echo_n "(cached) " >&6
13296 else
13297   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13298 fi
13299 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13300 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13301
13302 fi
13303 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13304   :
13305 else
13306   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13307 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13308    { (exit 1); exit 1; }; }
13309 fi
13310
13311
13312 fi
13313
13314 if test "$with_ldap" = yes ; then
13315   if test "$PORTNAME" != "win32"; then
13316
13317 for ac_header in ldap.h
13318 do
13319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13321   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13322 $as_echo_n "checking for $ac_header... " >&6; }
13323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13324   $as_echo_n "(cached) " >&6
13325 fi
13326 ac_res=`eval 'as_val=${'$as_ac_Header'}
13327                  $as_echo "$as_val"'`
13328                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13329 $as_echo "$ac_res" >&6; }
13330 else
13331   # Is the header compilable?
13332 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13333 $as_echo_n "checking $ac_header usability... " >&6; }
13334 cat >conftest.$ac_ext <<_ACEOF
13335 /* confdefs.h.  */
13336 _ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h.  */
13340 $ac_includes_default
13341 #include <$ac_header>
13342 _ACEOF
13343 rm -f conftest.$ac_objext
13344 if { (ac_try="$ac_compile"
13345 case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13350 $as_echo "$ac_try_echo") >&5
13351   (eval "$ac_compile") 2>conftest.er1
13352   ac_status=$?
13353   grep -v '^ *+' conftest.er1 >conftest.err
13354   rm -f conftest.er1
13355   cat conftest.err >&5
13356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); } && {
13358          test -z "$ac_c_werror_flag" ||
13359          test ! -s conftest.err
13360        } && test -s conftest.$ac_objext; then
13361   ac_header_compiler=yes
13362 else
13363   $as_echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366         ac_header_compiler=no
13367 fi
13368
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13371 $as_echo "$ac_header_compiler" >&6; }
13372
13373 # Is the header present?
13374 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13375 $as_echo_n "checking $ac_header presence... " >&6; }
13376 cat >conftest.$ac_ext <<_ACEOF
13377 /* confdefs.h.  */
13378 _ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h.  */
13382 #include <$ac_header>
13383 _ACEOF
13384 if { (ac_try="$ac_cpp conftest.$ac_ext"
13385 case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13390 $as_echo "$ac_try_echo") >&5
13391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13392   ac_status=$?
13393   grep -v '^ *+' conftest.er1 >conftest.err
13394   rm -f conftest.er1
13395   cat conftest.err >&5
13396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); } >/dev/null && {
13398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13399          test ! -s conftest.err
13400        }; then
13401   ac_header_preproc=yes
13402 else
13403   $as_echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406   ac_header_preproc=no
13407 fi
13408
13409 rm -f conftest.err conftest.$ac_ext
13410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13411 $as_echo "$ac_header_preproc" >&6; }
13412
13413 # So?  What about this header?
13414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13415   yes:no: )
13416     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13417 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13418     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13420     ac_header_preproc=yes
13421     ;;
13422   no:yes:* )
13423     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13424 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13425     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13426 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13427     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13428 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13430 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13433     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13434 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13435     ( cat <<\_ASBOX
13436 ## ---------------------------------------- ##
13437 ## Report this to pgsql-bugs@postgresql.org ##
13438 ## ---------------------------------------- ##
13439 _ASBOX
13440      ) | sed "s/^/$as_me: WARNING:     /" >&2
13441     ;;
13442 esac
13443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13444 $as_echo_n "checking for $ac_header... " >&6; }
13445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13446   $as_echo_n "(cached) " >&6
13447 else
13448   eval "$as_ac_Header=\$ac_header_preproc"
13449 fi
13450 ac_res=`eval 'as_val=${'$as_ac_Header'}
13451                  $as_echo "$as_val"'`
13452                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13453 $as_echo "$ac_res" >&6; }
13454
13455 fi
13456 as_val=`eval 'as_val=${'$as_ac_Header'}
13457                  $as_echo "$as_val"'`
13458    if test "x$as_val" = x""yes; then
13459   cat >>confdefs.h <<_ACEOF
13460 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13461 _ACEOF
13462
13463 else
13464   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13465 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13466    { (exit 1); exit 1; }; }
13467 fi
13468
13469 done
13470
13471   else
13472
13473 for ac_header in winldap.h
13474 do
13475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13476 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13477 $as_echo_n "checking for $ac_header... " >&6; }
13478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13479   $as_echo_n "(cached) " >&6
13480 else
13481   cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487 $ac_includes_default
13488 #include <windows.h>
13489
13490
13491 #include <$ac_header>
13492 _ACEOF
13493 rm -f conftest.$ac_objext
13494 if { (ac_try="$ac_compile"
13495 case "(($ac_try" in
13496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497   *) ac_try_echo=$ac_try;;
13498 esac
13499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13500 $as_echo "$ac_try_echo") >&5
13501   (eval "$ac_compile") 2>conftest.er1
13502   ac_status=$?
13503   grep -v '^ *+' conftest.er1 >conftest.err
13504   rm -f conftest.er1
13505   cat conftest.err >&5
13506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); } && {
13508          test -z "$ac_c_werror_flag" ||
13509          test ! -s conftest.err
13510        } && test -s conftest.$ac_objext; then
13511   eval "$as_ac_Header=yes"
13512 else
13513   $as_echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516         eval "$as_ac_Header=no"
13517 fi
13518
13519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 fi
13521 ac_res=`eval 'as_val=${'$as_ac_Header'}
13522                  $as_echo "$as_val"'`
13523                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13524 $as_echo "$ac_res" >&6; }
13525 as_val=`eval 'as_val=${'$as_ac_Header'}
13526                  $as_echo "$as_val"'`
13527    if test "x$as_val" = x""yes; then
13528   cat >>confdefs.h <<_ACEOF
13529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13530 _ACEOF
13531
13532 else
13533   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13534 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13535    { (exit 1); exit 1; }; }
13536 fi
13537
13538 done
13539
13540   fi
13541 fi
13542
13543 if test "$with_bonjour" = yes ; then
13544   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13545   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13546 $as_echo_n "checking for dns_sd.h... " >&6; }
13547 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13548   $as_echo_n "(cached) " >&6
13549 fi
13550 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13551 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13552 else
13553   # Is the header compilable?
13554 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13555 $as_echo_n "checking dns_sd.h usability... " >&6; }
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h.  */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h.  */
13562 $ac_includes_default
13563 #include <dns_sd.h>
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569   *) ac_try_echo=$ac_try;;
13570 esac
13571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13572 $as_echo "$ac_try_echo") >&5
13573   (eval "$ac_compile") 2>conftest.er1
13574   ac_status=$?
13575   grep -v '^ *+' conftest.er1 >conftest.err
13576   rm -f conftest.er1
13577   cat conftest.err >&5
13578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } && {
13580          test -z "$ac_c_werror_flag" ||
13581          test ! -s conftest.err
13582        } && test -s conftest.$ac_objext; then
13583   ac_header_compiler=yes
13584 else
13585   $as_echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588         ac_header_compiler=no
13589 fi
13590
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13593 $as_echo "$ac_header_compiler" >&6; }
13594
13595 # Is the header present?
13596 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13597 $as_echo_n "checking dns_sd.h presence... " >&6; }
13598 cat >conftest.$ac_ext <<_ACEOF
13599 /* confdefs.h.  */
13600 _ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h.  */
13604 #include <dns_sd.h>
13605 _ACEOF
13606 if { (ac_try="$ac_cpp conftest.$ac_ext"
13607 case "(($ac_try" in
13608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609   *) ac_try_echo=$ac_try;;
13610 esac
13611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13612 $as_echo "$ac_try_echo") >&5
13613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13614   ac_status=$?
13615   grep -v '^ *+' conftest.er1 >conftest.err
13616   rm -f conftest.er1
13617   cat conftest.err >&5
13618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); } >/dev/null && {
13620          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13621          test ! -s conftest.err
13622        }; then
13623   ac_header_preproc=yes
13624 else
13625   $as_echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628   ac_header_preproc=no
13629 fi
13630
13631 rm -f conftest.err conftest.$ac_ext
13632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633 $as_echo "$ac_header_preproc" >&6; }
13634
13635 # So?  What about this header?
13636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13637   yes:no: )
13638     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13639 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13641 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13642     ac_header_preproc=yes
13643     ;;
13644   no:yes:* )
13645     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13646 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13647     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
13648 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
13649     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13650 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13651     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
13652 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13653     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13654 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13655     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13656 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13657     ( cat <<\_ASBOX
13658 ## ---------------------------------------- ##
13659 ## Report this to pgsql-bugs@postgresql.org ##
13660 ## ---------------------------------------- ##
13661 _ASBOX
13662      ) | sed "s/^/$as_me: WARNING:     /" >&2
13663     ;;
13664 esac
13665 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13666 $as_echo_n "checking for dns_sd.h... " >&6; }
13667 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13668   $as_echo_n "(cached) " >&6
13669 else
13670   ac_cv_header_dns_sd_h=$ac_header_preproc
13671 fi
13672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13673 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13674
13675 fi
13676 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13677   :
13678 else
13679   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13680 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13681    { (exit 1); exit 1; }; }
13682 fi
13683
13684
13685 fi
13686
13687 # for contrib/uuid-ossp
13688 if test "$with_ossp_uuid" = yes ; then
13689
13690 for ac_header in ossp/uuid.h
13691 do
13692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13694   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13695 $as_echo_n "checking for $ac_header... " >&6; }
13696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697   $as_echo_n "(cached) " >&6
13698 fi
13699 ac_res=`eval 'as_val=${'$as_ac_Header'}
13700                  $as_echo "$as_val"'`
13701                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13702 $as_echo "$ac_res" >&6; }
13703 else
13704   # Is the header compilable?
13705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13706 $as_echo_n "checking $ac_header usability... " >&6; }
13707 cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h.  */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h.  */
13713 $ac_includes_default
13714 #include <$ac_header>
13715 _ACEOF
13716 rm -f conftest.$ac_objext
13717 if { (ac_try="$ac_compile"
13718 case "(($ac_try" in
13719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13720   *) ac_try_echo=$ac_try;;
13721 esac
13722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13723 $as_echo "$ac_try_echo") >&5
13724   (eval "$ac_compile") 2>conftest.er1
13725   ac_status=$?
13726   grep -v '^ *+' conftest.er1 >conftest.err
13727   rm -f conftest.er1
13728   cat conftest.err >&5
13729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); } && {
13731          test -z "$ac_c_werror_flag" ||
13732          test ! -s conftest.err
13733        } && test -s conftest.$ac_objext; then
13734   ac_header_compiler=yes
13735 else
13736   $as_echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739         ac_header_compiler=no
13740 fi
13741
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13744 $as_echo "$ac_header_compiler" >&6; }
13745
13746 # Is the header present?
13747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13748 $as_echo_n "checking $ac_header presence... " >&6; }
13749 cat >conftest.$ac_ext <<_ACEOF
13750 /* confdefs.h.  */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h.  */
13755 #include <$ac_header>
13756 _ACEOF
13757 if { (ac_try="$ac_cpp conftest.$ac_ext"
13758 case "(($ac_try" in
13759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760   *) ac_try_echo=$ac_try;;
13761 esac
13762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13763 $as_echo "$ac_try_echo") >&5
13764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } >/dev/null && {
13771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13772          test ! -s conftest.err
13773        }; then
13774   ac_header_preproc=yes
13775 else
13776   $as_echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.$ac_ext >&5
13778
13779   ac_header_preproc=no
13780 fi
13781
13782 rm -f conftest.err conftest.$ac_ext
13783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784 $as_echo "$ac_header_preproc" >&6; }
13785
13786 # So?  What about this header?
13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13788   yes:no: )
13789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793     ac_header_preproc=yes
13794     ;;
13795   no:yes:* )
13796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13799 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13803 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13808     ( cat <<\_ASBOX
13809 ## ---------------------------------------- ##
13810 ## Report this to pgsql-bugs@postgresql.org ##
13811 ## ---------------------------------------- ##
13812 _ASBOX
13813      ) | sed "s/^/$as_me: WARNING:     /" >&2
13814     ;;
13815 esac
13816 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13817 $as_echo_n "checking for $ac_header... " >&6; }
13818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819   $as_echo_n "(cached) " >&6
13820 else
13821   eval "$as_ac_Header=\$ac_header_preproc"
13822 fi
13823 ac_res=`eval 'as_val=${'$as_ac_Header'}
13824                  $as_echo "$as_val"'`
13825                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13826 $as_echo "$ac_res" >&6; }
13827
13828 fi
13829 as_val=`eval 'as_val=${'$as_ac_Header'}
13830                  $as_echo "$as_val"'`
13831    if test "x$as_val" = x""yes; then
13832   cat >>confdefs.h <<_ACEOF
13833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13834 _ACEOF
13835
13836 else
13837
13838
13839 for ac_header in uuid.h
13840 do
13841 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13843   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13844 $as_echo_n "checking for $ac_header... " >&6; }
13845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13846   $as_echo_n "(cached) " >&6
13847 fi
13848 ac_res=`eval 'as_val=${'$as_ac_Header'}
13849                  $as_echo "$as_val"'`
13850                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13851 $as_echo "$ac_res" >&6; }
13852 else
13853   # Is the header compilable?
13854 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13855 $as_echo_n "checking $ac_header usability... " >&6; }
13856 cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h.  */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h.  */
13862 $ac_includes_default
13863 #include <$ac_header>
13864 _ACEOF
13865 rm -f conftest.$ac_objext
13866 if { (ac_try="$ac_compile"
13867 case "(($ac_try" in
13868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869   *) ac_try_echo=$ac_try;;
13870 esac
13871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13872 $as_echo "$ac_try_echo") >&5
13873   (eval "$ac_compile") 2>conftest.er1
13874   ac_status=$?
13875   grep -v '^ *+' conftest.er1 >conftest.err
13876   rm -f conftest.er1
13877   cat conftest.err >&5
13878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); } && {
13880          test -z "$ac_c_werror_flag" ||
13881          test ! -s conftest.err
13882        } && test -s conftest.$ac_objext; then
13883   ac_header_compiler=yes
13884 else
13885   $as_echo "$as_me: failed program was:" >&5
13886 sed 's/^/| /' conftest.$ac_ext >&5
13887
13888         ac_header_compiler=no
13889 fi
13890
13891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13893 $as_echo "$ac_header_compiler" >&6; }
13894
13895 # Is the header present?
13896 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13897 $as_echo_n "checking $ac_header presence... " >&6; }
13898 cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h.  */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h.  */
13904 #include <$ac_header>
13905 _ACEOF
13906 if { (ac_try="$ac_cpp conftest.$ac_ext"
13907 case "(($ac_try" in
13908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909   *) ac_try_echo=$ac_try;;
13910 esac
13911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13912 $as_echo "$ac_try_echo") >&5
13913   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13914   ac_status=$?
13915   grep -v '^ *+' conftest.er1 >conftest.err
13916   rm -f conftest.er1
13917   cat conftest.err >&5
13918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); } >/dev/null && {
13920          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13921          test ! -s conftest.err
13922        }; then
13923   ac_header_preproc=yes
13924 else
13925   $as_echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13927
13928   ac_header_preproc=no
13929 fi
13930
13931 rm -f conftest.err conftest.$ac_ext
13932 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13933 $as_echo "$ac_header_preproc" >&6; }
13934
13935 # So?  What about this header?
13936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13937   yes:no: )
13938     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13939 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13942     ac_header_preproc=yes
13943     ;;
13944   no:yes:* )
13945     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13946 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13948 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13950 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13951     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13952 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13953     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13954 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13955     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13956 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13957     ( cat <<\_ASBOX
13958 ## ---------------------------------------- ##
13959 ## Report this to pgsql-bugs@postgresql.org ##
13960 ## ---------------------------------------- ##
13961 _ASBOX
13962      ) | sed "s/^/$as_me: WARNING:     /" >&2
13963     ;;
13964 esac
13965 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13966 $as_echo_n "checking for $ac_header... " >&6; }
13967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13968   $as_echo_n "(cached) " >&6
13969 else
13970   eval "$as_ac_Header=\$ac_header_preproc"
13971 fi
13972 ac_res=`eval 'as_val=${'$as_ac_Header'}
13973                  $as_echo "$as_val"'`
13974                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13975 $as_echo "$ac_res" >&6; }
13976
13977 fi
13978 as_val=`eval 'as_val=${'$as_ac_Header'}
13979                  $as_echo "$as_val"'`
13980    if test "x$as_val" = x""yes; then
13981   cat >>confdefs.h <<_ACEOF
13982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13983 _ACEOF
13984
13985 else
13986   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13987 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13988    { (exit 1); exit 1; }; }
13989 fi
13990
13991 done
13992
13993 fi
13994
13995 done
13996
13997 fi
13998
13999
14000 ##
14001 ## Types, structures, compiler characteristics
14002 ##
14003
14004
14005  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14006 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14007 if test "${ac_cv_c_bigendian+set}" = set; then
14008   $as_echo_n "(cached) " >&6
14009 else
14010   ac_cv_c_bigendian=unknown
14011     # See if we're dealing with a universal compiler.
14012     cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h.  */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h.  */
14018 #ifndef __APPLE_CC__
14019                not a universal capable compiler
14020              #endif
14021              typedef int dummy;
14022
14023 _ACEOF
14024 rm -f conftest.$ac_objext
14025 if { (ac_try="$ac_compile"
14026 case "(($ac_try" in
14027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028   *) ac_try_echo=$ac_try;;
14029 esac
14030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14031 $as_echo "$ac_try_echo") >&5
14032   (eval "$ac_compile") 2>conftest.er1
14033   ac_status=$?
14034   grep -v '^ *+' conftest.er1 >conftest.err
14035   rm -f conftest.er1
14036   cat conftest.err >&5
14037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } && {
14039          test -z "$ac_c_werror_flag" ||
14040          test ! -s conftest.err
14041        } && test -s conftest.$ac_objext; then
14042
14043         # Check for potential -arch flags.  It is not universal unless
14044         # there are some -arch flags.  Note that *ppc* also matches
14045         # ppc64.  This check is also rather less than ideal.
14046         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14047           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14048         esac
14049 else
14050   $as_echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.$ac_ext >&5
14052
14053
14054 fi
14055
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057     if test $ac_cv_c_bigendian = unknown; then
14058       # See if sys/param.h defines the BYTE_ORDER macro.
14059       cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065 #include <sys/types.h>
14066              #include <sys/param.h>
14067
14068 int
14069 main ()
14070 {
14071 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14072                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14073                      && LITTLE_ENDIAN)
14074               bogus endian macros
14075              #endif
14076
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 rm -f conftest.$ac_objext
14082 if { (ac_try="$ac_compile"
14083 case "(($ac_try" in
14084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085   *) ac_try_echo=$ac_try;;
14086 esac
14087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14088 $as_echo "$ac_try_echo") >&5
14089   (eval "$ac_compile") 2>conftest.er1
14090   ac_status=$?
14091   grep -v '^ *+' conftest.er1 >conftest.err
14092   rm -f conftest.er1
14093   cat conftest.err >&5
14094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } && {
14096          test -z "$ac_c_werror_flag" ||
14097          test ! -s conftest.err
14098        } && test -s conftest.$ac_objext; then
14099   # It does; now see whether it defined to BIG_ENDIAN or not.
14100          cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106 #include <sys/types.h>
14107                 #include <sys/param.h>
14108
14109 int
14110 main ()
14111 {
14112 #if BYTE_ORDER != BIG_ENDIAN
14113                  not big endian
14114                 #endif
14115
14116   ;
14117   return 0;
14118 }
14119 _ACEOF
14120 rm -f conftest.$ac_objext
14121 if { (ac_try="$ac_compile"
14122 case "(($ac_try" in
14123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14124   *) ac_try_echo=$ac_try;;
14125 esac
14126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14127 $as_echo "$ac_try_echo") >&5
14128   (eval "$ac_compile") 2>conftest.er1
14129   ac_status=$?
14130   grep -v '^ *+' conftest.er1 >conftest.err
14131   rm -f conftest.er1
14132   cat conftest.err >&5
14133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134   (exit $ac_status); } && {
14135          test -z "$ac_c_werror_flag" ||
14136          test ! -s conftest.err
14137        } && test -s conftest.$ac_objext; then
14138   ac_cv_c_bigendian=yes
14139 else
14140   $as_echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143         ac_cv_c_bigendian=no
14144 fi
14145
14146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14147 else
14148   $as_echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14150
14151
14152 fi
14153
14154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14155     fi
14156     if test $ac_cv_c_bigendian = unknown; then
14157       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14158       cat >conftest.$ac_ext <<_ACEOF
14159 /* confdefs.h.  */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h.  */
14164 #include <limits.h>
14165
14166 int
14167 main ()
14168 {
14169 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14170               bogus endian macros
14171              #endif
14172
14173   ;
14174   return 0;
14175 }
14176 _ACEOF
14177 rm -f conftest.$ac_objext
14178 if { (ac_try="$ac_compile"
14179 case "(($ac_try" in
14180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181   *) ac_try_echo=$ac_try;;
14182 esac
14183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14184 $as_echo "$ac_try_echo") >&5
14185   (eval "$ac_compile") 2>conftest.er1
14186   ac_status=$?
14187   grep -v '^ *+' conftest.er1 >conftest.err
14188   rm -f conftest.er1
14189   cat conftest.err >&5
14190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); } && {
14192          test -z "$ac_c_werror_flag" ||
14193          test ! -s conftest.err
14194        } && test -s conftest.$ac_objext; then
14195   # It does; now see whether it defined to _BIG_ENDIAN or not.
14196          cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h.  */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h.  */
14202 #include <limits.h>
14203
14204 int
14205 main ()
14206 {
14207 #ifndef _BIG_ENDIAN
14208                  not big endian
14209                 #endif
14210
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 rm -f conftest.$ac_objext
14216 if { (ac_try="$ac_compile"
14217 case "(($ac_try" in
14218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219   *) ac_try_echo=$ac_try;;
14220 esac
14221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14222 $as_echo "$ac_try_echo") >&5
14223   (eval "$ac_compile") 2>conftest.er1
14224   ac_status=$?
14225   grep -v '^ *+' conftest.er1 >conftest.err
14226   rm -f conftest.er1
14227   cat conftest.err >&5
14228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); } && {
14230          test -z "$ac_c_werror_flag" ||
14231          test ! -s conftest.err
14232        } && test -s conftest.$ac_objext; then
14233   ac_cv_c_bigendian=yes
14234 else
14235   $as_echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14237
14238         ac_cv_c_bigendian=no
14239 fi
14240
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242 else
14243   $as_echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246
14247 fi
14248
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250     fi
14251     if test $ac_cv_c_bigendian = unknown; then
14252       # Compile a test program.
14253       if test "$cross_compiling" = yes; then
14254   # Try to guess by grepping values from an object file.
14255          cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h.  */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h.  */
14261 short int ascii_mm[] =
14262                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14263                 short int ascii_ii[] =
14264                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14265                 int use_ascii (int i) {
14266                   return ascii_mm[i] + ascii_ii[i];
14267                 }
14268                 short int ebcdic_ii[] =
14269                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14270                 short int ebcdic_mm[] =
14271                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14272                 int use_ebcdic (int i) {
14273                   return ebcdic_mm[i] + ebcdic_ii[i];
14274                 }
14275                 extern int foo;
14276
14277 int
14278 main ()
14279 {
14280 return use_ascii (foo) == use_ebcdic (foo);
14281   ;
14282   return 0;
14283 }
14284 _ACEOF
14285 rm -f conftest.$ac_objext
14286 if { (ac_try="$ac_compile"
14287 case "(($ac_try" in
14288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14289   *) ac_try_echo=$ac_try;;
14290 esac
14291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14292 $as_echo "$ac_try_echo") >&5
14293   (eval "$ac_compile") 2>conftest.er1
14294   ac_status=$?
14295   grep -v '^ *+' conftest.er1 >conftest.err
14296   rm -f conftest.er1
14297   cat conftest.err >&5
14298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); } && {
14300          test -z "$ac_c_werror_flag" ||
14301          test ! -s conftest.err
14302        } && test -s conftest.$ac_objext; then
14303   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14304               ac_cv_c_bigendian=yes
14305             fi
14306             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14307               if test "$ac_cv_c_bigendian" = unknown; then
14308                 ac_cv_c_bigendian=no
14309               else
14310                 # finding both strings is unlikely to happen, but who knows?
14311                 ac_cv_c_bigendian=unknown
14312               fi
14313             fi
14314 else
14315   $as_echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318
14319 fi
14320
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 else
14323   cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h.  */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h.  */
14329 $ac_includes_default
14330 int
14331 main ()
14332 {
14333
14334              /* Are we little or big endian?  From Harbison&Steele.  */
14335              union
14336              {
14337                long int l;
14338                char c[sizeof (long int)];
14339              } u;
14340              u.l = 1;
14341              return u.c[sizeof (long int) - 1] == 1;
14342
14343   ;
14344   return 0;
14345 }
14346 _ACEOF
14347 rm -f conftest$ac_exeext
14348 if { (ac_try="$ac_link"
14349 case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14354 $as_echo "$ac_try_echo") >&5
14355   (eval "$ac_link") 2>&5
14356   ac_status=$?
14357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14359   { (case "(($ac_try" in
14360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361   *) ac_try_echo=$ac_try;;
14362 esac
14363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14364 $as_echo "$ac_try_echo") >&5
14365   (eval "$ac_try") 2>&5
14366   ac_status=$?
14367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   (exit $ac_status); }; }; then
14369   ac_cv_c_bigendian=no
14370 else
14371   $as_echo "$as_me: program exited with status $ac_status" >&5
14372 $as_echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14374
14375 ( exit $ac_status )
14376 ac_cv_c_bigendian=yes
14377 fi
14378 rm -rf conftest.dSYM
14379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14380 fi
14381
14382
14383     fi
14384 fi
14385 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14386 $as_echo "$ac_cv_c_bigendian" >&6; }
14387  case $ac_cv_c_bigendian in #(
14388    yes)
14389      cat >>confdefs.h <<\_ACEOF
14390 #define WORDS_BIGENDIAN 1
14391 _ACEOF
14392 ;; #(
14393    no)
14394       ;; #(
14395    universal)
14396
14397 cat >>confdefs.h <<\_ACEOF
14398 #define AC_APPLE_UNIVERSAL_BUILD 1
14399 _ACEOF
14400
14401      ;; #(
14402    *)
14403      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14404  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14405 $as_echo "$as_me: error: unknown endianness
14406  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14407    { (exit 1); exit 1; }; } ;;
14408  esac
14409
14410 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14411 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14412 if test "${ac_cv_c_const+set}" = set; then
14413   $as_echo_n "(cached) " >&6
14414 else
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
14422 int
14423 main ()
14424 {
14425 /* FIXME: Include the comments suggested by Paul. */
14426 #ifndef __cplusplus
14427   /* Ultrix mips cc rejects this.  */
14428   typedef int charset[2];
14429   const charset cs;
14430   /* SunOS 4.1.1 cc rejects this.  */
14431   char const *const *pcpcc;
14432   char **ppc;
14433   /* NEC SVR4.0.2 mips cc rejects this.  */
14434   struct point {int x, y;};
14435   static struct point const zero = {0,0};
14436   /* AIX XL C 1.02.0.0 rejects this.
14437      It does not let you subtract one const X* pointer from another in
14438      an arm of an if-expression whose if-part is not a constant
14439      expression */
14440   const char *g = "string";
14441   pcpcc = &g + (g ? g-g : 0);
14442   /* HPUX 7.0 cc rejects these. */
14443   ++pcpcc;
14444   ppc = (char**) pcpcc;
14445   pcpcc = (char const *const *) ppc;
14446   { /* SCO 3.2v4 cc rejects this.  */
14447     char *t;
14448     char const *s = 0 ? (char *) 0 : (char const *) 0;
14449
14450     *t++ = 0;
14451     if (s) return 0;
14452   }
14453   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14454     int x[] = {25, 17};
14455     const int *foo = &x[0];
14456     ++foo;
14457   }
14458   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14459     typedef const int *iptr;
14460     iptr p = 0;
14461     ++p;
14462   }
14463   { /* AIX XL C 1.02.0.0 rejects this saying
14464        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14465     struct s { int j; const int *ap[3]; };
14466     struct s *b; b->j = 5;
14467   }
14468   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14469     const int foo = 10;
14470     if (!foo) return 0;
14471   }
14472   return !cs[0] && !zero.x;
14473 #endif
14474
14475   ;
14476   return 0;
14477 }
14478 _ACEOF
14479 rm -f conftest.$ac_objext
14480 if { (ac_try="$ac_compile"
14481 case "(($ac_try" in
14482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483   *) ac_try_echo=$ac_try;;
14484 esac
14485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14486 $as_echo "$ac_try_echo") >&5
14487   (eval "$ac_compile") 2>conftest.er1
14488   ac_status=$?
14489   grep -v '^ *+' conftest.er1 >conftest.err
14490   rm -f conftest.er1
14491   cat conftest.err >&5
14492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); } && {
14494          test -z "$ac_c_werror_flag" ||
14495          test ! -s conftest.err
14496        } && test -s conftest.$ac_objext; then
14497   ac_cv_c_const=yes
14498 else
14499   $as_echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502         ac_cv_c_const=no
14503 fi
14504
14505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506 fi
14507 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14508 $as_echo "$ac_cv_c_const" >&6; }
14509 if test $ac_cv_c_const = no; then
14510
14511 cat >>confdefs.h <<\_ACEOF
14512 #define const /**/
14513 _ACEOF
14514
14515 fi
14516
14517 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14518 $as_echo_n "checking for inline... " >&6; }
14519 if test "${ac_cv_c_inline+set}" = set; then
14520   $as_echo_n "(cached) " >&6
14521 else
14522   ac_cv_c_inline=no
14523 for ac_kw in inline __inline__ __inline; do
14524   cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h.  */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h.  */
14530 #ifndef __cplusplus
14531 typedef int foo_t;
14532 static $ac_kw foo_t static_foo () {return 0; }
14533 $ac_kw foo_t foo () {return 0; }
14534 #endif
14535
14536 _ACEOF
14537 rm -f conftest.$ac_objext
14538 if { (ac_try="$ac_compile"
14539 case "(($ac_try" in
14540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541   *) ac_try_echo=$ac_try;;
14542 esac
14543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14544 $as_echo "$ac_try_echo") >&5
14545   (eval "$ac_compile") 2>conftest.er1
14546   ac_status=$?
14547   grep -v '^ *+' conftest.er1 >conftest.err
14548   rm -f conftest.er1
14549   cat conftest.err >&5
14550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); } && {
14552          test -z "$ac_c_werror_flag" ||
14553          test ! -s conftest.err
14554        } && test -s conftest.$ac_objext; then
14555   ac_cv_c_inline=$ac_kw
14556 else
14557   $as_echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560
14561 fi
14562
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14564   test "$ac_cv_c_inline" != no && break
14565 done
14566
14567 fi
14568 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14569 $as_echo "$ac_cv_c_inline" >&6; }
14570
14571
14572 case $ac_cv_c_inline in
14573   inline | yes) ;;
14574   *)
14575     case $ac_cv_c_inline in
14576       no) ac_val=;;
14577       *) ac_val=$ac_cv_c_inline;;
14578     esac
14579     cat >>confdefs.h <<_ACEOF
14580 #ifndef __cplusplus
14581 #define inline $ac_val
14582 #endif
14583 _ACEOF
14584     ;;
14585 esac
14586
14587 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14588 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14589 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14590   $as_echo_n "(cached) " >&6
14591 else
14592   pgac_cv_c_inline_quietly=no
14593   if test "$ac_cv_c_inline" != no; then
14594     pgac_c_inline_save_werror=$ac_c_werror_flag
14595     ac_c_werror_flag=yes
14596     cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h.  */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h.  */
14602 static inline int fun () {return 0;}
14603 int
14604 main ()
14605 {
14606
14607   ;
14608   return 0;
14609 }
14610 _ACEOF
14611 rm -f conftest.$ac_objext conftest$ac_exeext
14612 if { (ac_try="$ac_link"
14613 case "(($ac_try" in
14614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615   *) ac_try_echo=$ac_try;;
14616 esac
14617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14618 $as_echo "$ac_try_echo") >&5
14619   (eval "$ac_link") 2>conftest.er1
14620   ac_status=$?
14621   grep -v '^ *+' conftest.er1 >conftest.err
14622   rm -f conftest.er1
14623   cat conftest.err >&5
14624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); } && {
14626          test -z "$ac_c_werror_flag" ||
14627          test ! -s conftest.err
14628        } && test -s conftest$ac_exeext && {
14629          test "$cross_compiling" = yes ||
14630          $as_test_x conftest$ac_exeext
14631        }; then
14632   pgac_cv_c_inline_quietly=yes
14633 else
14634   $as_echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14636
14637
14638 fi
14639
14640 rm -rf conftest.dSYM
14641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14642       conftest$ac_exeext conftest.$ac_ext
14643     ac_c_werror_flag=$pgac_c_inline_save_werror
14644   fi
14645 fi
14646 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14647 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14648 if test "$pgac_cv_c_inline_quietly" != no; then
14649
14650 cat >>confdefs.h <<_ACEOF
14651 #define USE_INLINE 1
14652 _ACEOF
14653
14654 fi
14655
14656 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14657 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14658 if test "${ac_cv_c_stringize+set}" = set; then
14659   $as_echo_n "(cached) " >&6
14660 else
14661   cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667 #define x(y) #y
14668
14669 char *s = x(teststring);
14670 _ACEOF
14671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14672   $EGREP "#teststring" >/dev/null 2>&1; then
14673   ac_cv_c_stringize=no
14674 else
14675   ac_cv_c_stringize=yes
14676 fi
14677 rm -f conftest*
14678
14679 fi
14680 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14681 $as_echo "$ac_cv_c_stringize" >&6; }
14682 if test $ac_cv_c_stringize = yes; then
14683
14684 cat >>confdefs.h <<\_ACEOF
14685 #define HAVE_STRINGIZE 1
14686 _ACEOF
14687
14688 fi
14689
14690 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14691 $as_echo_n "checking for signed types... " >&6; }
14692 if test "${pgac_cv_c_signed+set}" = set; then
14693   $as_echo_n "(cached) " >&6
14694 else
14695   cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h.  */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h.  */
14701
14702 int
14703 main ()
14704 {
14705 signed char c; signed short s; signed int i;
14706   ;
14707   return 0;
14708 }
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (ac_try="$ac_compile"
14712 case "(($ac_try" in
14713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14714   *) ac_try_echo=$ac_try;;
14715 esac
14716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14717 $as_echo "$ac_try_echo") >&5
14718   (eval "$ac_compile") 2>conftest.er1
14719   ac_status=$?
14720   grep -v '^ *+' conftest.er1 >conftest.err
14721   rm -f conftest.er1
14722   cat conftest.err >&5
14723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } && {
14725          test -z "$ac_c_werror_flag" ||
14726          test ! -s conftest.err
14727        } && test -s conftest.$ac_objext; then
14728   pgac_cv_c_signed=yes
14729 else
14730   $as_echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14732
14733         pgac_cv_c_signed=no
14734 fi
14735
14736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14737 fi
14738 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14739 $as_echo "$pgac_cv_c_signed" >&6; }
14740 if test x"$pgac_cv_c_signed" = xno ; then
14741
14742 cat >>confdefs.h <<\_ACEOF
14743 #define signed /**/
14744 _ACEOF
14745
14746 fi
14747 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14748 $as_echo_n "checking for working volatile... " >&6; }
14749 if test "${ac_cv_c_volatile+set}" = set; then
14750   $as_echo_n "(cached) " >&6
14751 else
14752   cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h.  */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h.  */
14758
14759 int
14760 main ()
14761 {
14762
14763 volatile int x;
14764 int * volatile y = (int *) 0;
14765 return !x && !y;
14766   ;
14767   return 0;
14768 }
14769 _ACEOF
14770 rm -f conftest.$ac_objext
14771 if { (ac_try="$ac_compile"
14772 case "(($ac_try" in
14773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774   *) ac_try_echo=$ac_try;;
14775 esac
14776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14777 $as_echo "$ac_try_echo") >&5
14778   (eval "$ac_compile") 2>conftest.er1
14779   ac_status=$?
14780   grep -v '^ *+' conftest.er1 >conftest.err
14781   rm -f conftest.er1
14782   cat conftest.err >&5
14783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); } && {
14785          test -z "$ac_c_werror_flag" ||
14786          test ! -s conftest.err
14787        } && test -s conftest.$ac_objext; then
14788   ac_cv_c_volatile=yes
14789 else
14790   $as_echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793         ac_cv_c_volatile=no
14794 fi
14795
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 fi
14798 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14799 $as_echo "$ac_cv_c_volatile" >&6; }
14800 if test $ac_cv_c_volatile = no; then
14801
14802 cat >>confdefs.h <<\_ACEOF
14803 #define volatile /**/
14804 _ACEOF
14805
14806 fi
14807
14808 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14809 $as_echo_n "checking for __func__... " >&6; }
14810 if test "${pgac_cv_funcname_func_support+set}" = set; then
14811   $as_echo_n "(cached) " >&6
14812 else
14813   cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819 #include <stdio.h>
14820 int
14821 main ()
14822 {
14823 printf("%s\n", __func__);
14824   ;
14825   return 0;
14826 }
14827 _ACEOF
14828 rm -f conftest.$ac_objext
14829 if { (ac_try="$ac_compile"
14830 case "(($ac_try" in
14831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14832   *) ac_try_echo=$ac_try;;
14833 esac
14834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14835 $as_echo "$ac_try_echo") >&5
14836   (eval "$ac_compile") 2>conftest.er1
14837   ac_status=$?
14838   grep -v '^ *+' conftest.er1 >conftest.err
14839   rm -f conftest.er1
14840   cat conftest.err >&5
14841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } && {
14843          test -z "$ac_c_werror_flag" ||
14844          test ! -s conftest.err
14845        } && test -s conftest.$ac_objext; then
14846   pgac_cv_funcname_func_support=yes
14847 else
14848   $as_echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14850
14851         pgac_cv_funcname_func_support=no
14852 fi
14853
14854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14855 fi
14856 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14857 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14858 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14859
14860 cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_FUNCNAME__FUNC 1
14862 _ACEOF
14863
14864 else
14865 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14866 $as_echo_n "checking for __FUNCTION__... " >&6; }
14867 if test "${pgac_cv_funcname_function_support+set}" = set; then
14868   $as_echo_n "(cached) " >&6
14869 else
14870   cat >conftest.$ac_ext <<_ACEOF
14871 /* confdefs.h.  */
14872 _ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h.  */
14876 #include <stdio.h>
14877 int
14878 main ()
14879 {
14880 printf("%s\n", __FUNCTION__);
14881   ;
14882   return 0;
14883 }
14884 _ACEOF
14885 rm -f conftest.$ac_objext
14886 if { (ac_try="$ac_compile"
14887 case "(($ac_try" in
14888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889   *) ac_try_echo=$ac_try;;
14890 esac
14891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14892 $as_echo "$ac_try_echo") >&5
14893   (eval "$ac_compile") 2>conftest.er1
14894   ac_status=$?
14895   grep -v '^ *+' conftest.er1 >conftest.err
14896   rm -f conftest.er1
14897   cat conftest.err >&5
14898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899   (exit $ac_status); } && {
14900          test -z "$ac_c_werror_flag" ||
14901          test ! -s conftest.err
14902        } && test -s conftest.$ac_objext; then
14903   pgac_cv_funcname_function_support=yes
14904 else
14905   $as_echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908         pgac_cv_funcname_function_support=no
14909 fi
14910
14911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912 fi
14913 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14914 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14915 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14916
14917 cat >>confdefs.h <<\_ACEOF
14918 #define HAVE_FUNCNAME__FUNCTION 1
14919 _ACEOF
14920
14921 fi
14922 fi
14923 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14924 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14925 if test "${ac_cv_struct_tm+set}" = set; then
14926   $as_echo_n "(cached) " >&6
14927 else
14928   cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h.  */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h.  */
14934 #include <sys/types.h>
14935 #include <time.h>
14936
14937 int
14938 main ()
14939 {
14940 struct tm tm;
14941                                      int *p = &tm.tm_sec;
14942                                      return !p;
14943   ;
14944   return 0;
14945 }
14946 _ACEOF
14947 rm -f conftest.$ac_objext
14948 if { (ac_try="$ac_compile"
14949 case "(($ac_try" in
14950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951   *) ac_try_echo=$ac_try;;
14952 esac
14953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14954 $as_echo "$ac_try_echo") >&5
14955   (eval "$ac_compile") 2>conftest.er1
14956   ac_status=$?
14957   grep -v '^ *+' conftest.er1 >conftest.err
14958   rm -f conftest.er1
14959   cat conftest.err >&5
14960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); } && {
14962          test -z "$ac_c_werror_flag" ||
14963          test ! -s conftest.err
14964        } && test -s conftest.$ac_objext; then
14965   ac_cv_struct_tm=time.h
14966 else
14967   $as_echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14969
14970         ac_cv_struct_tm=sys/time.h
14971 fi
14972
14973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 fi
14975 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14976 $as_echo "$ac_cv_struct_tm" >&6; }
14977 if test $ac_cv_struct_tm = sys/time.h; then
14978
14979 cat >>confdefs.h <<\_ACEOF
14980 #define TM_IN_SYS_TIME 1
14981 _ACEOF
14982
14983 fi
14984
14985 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14986 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14987 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14988   $as_echo_n "(cached) " >&6
14989 else
14990   cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h.  */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h.  */
14996 #include <sys/types.h>
14997 #include <$ac_cv_struct_tm>
14998
14999
15000 int
15001 main ()
15002 {
15003 static struct tm ac_aggr;
15004 if (ac_aggr.tm_zone)
15005 return 0;
15006   ;
15007   return 0;
15008 }
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014   *) ac_try_echo=$ac_try;;
15015 esac
15016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15017 $as_echo "$ac_try_echo") >&5
15018   (eval "$ac_compile") 2>conftest.er1
15019   ac_status=$?
15020   grep -v '^ *+' conftest.er1 >conftest.err
15021   rm -f conftest.er1
15022   cat conftest.err >&5
15023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); } && {
15025          test -z "$ac_c_werror_flag" ||
15026          test ! -s conftest.err
15027        } && test -s conftest.$ac_objext; then
15028   ac_cv_member_struct_tm_tm_zone=yes
15029 else
15030   $as_echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15032
15033         cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h.  */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h.  */
15039 #include <sys/types.h>
15040 #include <$ac_cv_struct_tm>
15041
15042
15043 int
15044 main ()
15045 {
15046 static struct tm ac_aggr;
15047 if (sizeof ac_aggr.tm_zone)
15048 return 0;
15049   ;
15050   return 0;
15051 }
15052 _ACEOF
15053 rm -f conftest.$ac_objext
15054 if { (ac_try="$ac_compile"
15055 case "(($ac_try" in
15056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057   *) ac_try_echo=$ac_try;;
15058 esac
15059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15060 $as_echo "$ac_try_echo") >&5
15061   (eval "$ac_compile") 2>conftest.er1
15062   ac_status=$?
15063   grep -v '^ *+' conftest.er1 >conftest.err
15064   rm -f conftest.er1
15065   cat conftest.err >&5
15066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); } && {
15068          test -z "$ac_c_werror_flag" ||
15069          test ! -s conftest.err
15070        } && test -s conftest.$ac_objext; then
15071   ac_cv_member_struct_tm_tm_zone=yes
15072 else
15073   $as_echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15075
15076         ac_cv_member_struct_tm_tm_zone=no
15077 fi
15078
15079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15080 fi
15081
15082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083 fi
15084 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15085 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15086 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15087
15088 cat >>confdefs.h <<_ACEOF
15089 #define HAVE_STRUCT_TM_TM_ZONE 1
15090 _ACEOF
15091
15092
15093 fi
15094
15095 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15096
15097 cat >>confdefs.h <<\_ACEOF
15098 #define HAVE_TM_ZONE 1
15099 _ACEOF
15100
15101 fi
15102 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15103 $as_echo_n "checking for tzname... " >&6; }
15104 if test "${ac_cv_var_tzname+set}" = set; then
15105   $as_echo_n "(cached) " >&6
15106 else
15107   cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h.  */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h.  */
15113 #include <time.h>
15114 #ifndef tzname /* For SGI.  */
15115 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15116 #endif
15117
15118 int
15119 main ()
15120 {
15121 atoi(*tzname);
15122   ;
15123   return 0;
15124 }
15125 _ACEOF
15126 rm -f conftest.$ac_objext conftest$ac_exeext
15127 if { (ac_try="$ac_link"
15128 case "(($ac_try" in
15129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130   *) ac_try_echo=$ac_try;;
15131 esac
15132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15133 $as_echo "$ac_try_echo") >&5
15134   (eval "$ac_link") 2>conftest.er1
15135   ac_status=$?
15136   grep -v '^ *+' conftest.er1 >conftest.err
15137   rm -f conftest.er1
15138   cat conftest.err >&5
15139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } && {
15141          test -z "$ac_c_werror_flag" ||
15142          test ! -s conftest.err
15143        } && test -s conftest$ac_exeext && {
15144          test "$cross_compiling" = yes ||
15145          $as_test_x conftest$ac_exeext
15146        }; then
15147   ac_cv_var_tzname=yes
15148 else
15149   $as_echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152         ac_cv_var_tzname=no
15153 fi
15154
15155 rm -rf conftest.dSYM
15156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15157       conftest$ac_exeext conftest.$ac_ext
15158 fi
15159 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15160 $as_echo "$ac_cv_var_tzname" >&6; }
15161 if test $ac_cv_var_tzname = yes; then
15162
15163 cat >>confdefs.h <<\_ACEOF
15164 #define HAVE_TZNAME 1
15165 _ACEOF
15166
15167 fi
15168
15169 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15170 $as_echo_n "checking for union semun... " >&6; }
15171 if test "${ac_cv_type_union_semun+set}" = set; then
15172   $as_echo_n "(cached) " >&6
15173 else
15174   ac_cv_type_union_semun=no
15175 cat >conftest.$ac_ext <<_ACEOF
15176 /* confdefs.h.  */
15177 _ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h.  */
15181 #include <sys/types.h>
15182 #include <sys/ipc.h>
15183 #include <sys/sem.h>
15184
15185 int
15186 main ()
15187 {
15188 if (sizeof (union semun))
15189        return 0;
15190   ;
15191   return 0;
15192 }
15193 _ACEOF
15194 rm -f conftest.$ac_objext
15195 if { (ac_try="$ac_compile"
15196 case "(($ac_try" in
15197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198   *) ac_try_echo=$ac_try;;
15199 esac
15200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15201 $as_echo "$ac_try_echo") >&5
15202   (eval "$ac_compile") 2>conftest.er1
15203   ac_status=$?
15204   grep -v '^ *+' conftest.er1 >conftest.err
15205   rm -f conftest.er1
15206   cat conftest.err >&5
15207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); } && {
15209          test -z "$ac_c_werror_flag" ||
15210          test ! -s conftest.err
15211        } && test -s conftest.$ac_objext; then
15212   cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h.  */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h.  */
15218 #include <sys/types.h>
15219 #include <sys/ipc.h>
15220 #include <sys/sem.h>
15221
15222 int
15223 main ()
15224 {
15225 if (sizeof ((union semun)))
15226           return 0;
15227   ;
15228   return 0;
15229 }
15230 _ACEOF
15231 rm -f conftest.$ac_objext
15232 if { (ac_try="$ac_compile"
15233 case "(($ac_try" in
15234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235   *) ac_try_echo=$ac_try;;
15236 esac
15237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15238 $as_echo "$ac_try_echo") >&5
15239   (eval "$ac_compile") 2>conftest.er1
15240   ac_status=$?
15241   grep -v '^ *+' conftest.er1 >conftest.err
15242   rm -f conftest.er1
15243   cat conftest.err >&5
15244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); } && {
15246          test -z "$ac_c_werror_flag" ||
15247          test ! -s conftest.err
15248        } && test -s conftest.$ac_objext; then
15249   :
15250 else
15251   $as_echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15253
15254         ac_cv_type_union_semun=yes
15255 fi
15256
15257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258 else
15259   $as_echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262
15263 fi
15264
15265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266 fi
15267 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15268 $as_echo "$ac_cv_type_union_semun" >&6; }
15269 if test "x$ac_cv_type_union_semun" = x""yes; then
15270
15271 cat >>confdefs.h <<_ACEOF
15272 #define HAVE_UNION_SEMUN 1
15273 _ACEOF
15274
15275
15276 fi
15277
15278 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15279 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15280 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15281   $as_echo_n "(cached) " >&6
15282 else
15283   ac_cv_type_struct_sockaddr_un=no
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h.  */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h.  */
15290 #include <sys/types.h>
15291 #ifdef HAVE_SYS_UN_H
15292 #include <sys/un.h>
15293 #endif
15294
15295
15296 int
15297 main ()
15298 {
15299 if (sizeof (struct sockaddr_un))
15300        return 0;
15301   ;
15302   return 0;
15303 }
15304 _ACEOF
15305 rm -f conftest.$ac_objext
15306 if { (ac_try="$ac_compile"
15307 case "(($ac_try" in
15308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15309   *) ac_try_echo=$ac_try;;
15310 esac
15311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15312 $as_echo "$ac_try_echo") >&5
15313   (eval "$ac_compile") 2>conftest.er1
15314   ac_status=$?
15315   grep -v '^ *+' conftest.er1 >conftest.err
15316   rm -f conftest.er1
15317   cat conftest.err >&5
15318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319   (exit $ac_status); } && {
15320          test -z "$ac_c_werror_flag" ||
15321          test ! -s conftest.err
15322        } && test -s conftest.$ac_objext; then
15323   cat >conftest.$ac_ext <<_ACEOF
15324 /* confdefs.h.  */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h.  */
15329 #include <sys/types.h>
15330 #ifdef HAVE_SYS_UN_H
15331 #include <sys/un.h>
15332 #endif
15333
15334
15335 int
15336 main ()
15337 {
15338 if (sizeof ((struct sockaddr_un)))
15339           return 0;
15340   ;
15341   return 0;
15342 }
15343 _ACEOF
15344 rm -f conftest.$ac_objext
15345 if { (ac_try="$ac_compile"
15346 case "(($ac_try" in
15347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348   *) ac_try_echo=$ac_try;;
15349 esac
15350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15351 $as_echo "$ac_try_echo") >&5
15352   (eval "$ac_compile") 2>conftest.er1
15353   ac_status=$?
15354   grep -v '^ *+' conftest.er1 >conftest.err
15355   rm -f conftest.er1
15356   cat conftest.err >&5
15357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); } && {
15359          test -z "$ac_c_werror_flag" ||
15360          test ! -s conftest.err
15361        } && test -s conftest.$ac_objext; then
15362   :
15363 else
15364   $as_echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15366
15367         ac_cv_type_struct_sockaddr_un=yes
15368 fi
15369
15370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15371 else
15372   $as_echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15374
15375
15376 fi
15377
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 fi
15380 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15381 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15382 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15383
15384 cat >>confdefs.h <<_ACEOF
15385 #define HAVE_STRUCT_SOCKADDR_UN 1
15386 _ACEOF
15387
15388
15389 cat >>confdefs.h <<\_ACEOF
15390 #define HAVE_UNIX_SOCKETS 1
15391 _ACEOF
15392
15393 fi
15394
15395 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15396 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15397 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15398   $as_echo_n "(cached) " >&6
15399 else
15400   ac_cv_type_struct_sockaddr_storage=no
15401 cat >conftest.$ac_ext <<_ACEOF
15402 /* confdefs.h.  */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h.  */
15407 #include <sys/types.h>
15408 #ifdef HAVE_SYS_SOCKET_H
15409 #include <sys/socket.h>
15410 #endif
15411
15412
15413 int
15414 main ()
15415 {
15416 if (sizeof (struct sockaddr_storage))
15417        return 0;
15418   ;
15419   return 0;
15420 }
15421 _ACEOF
15422 rm -f conftest.$ac_objext
15423 if { (ac_try="$ac_compile"
15424 case "(($ac_try" in
15425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426   *) ac_try_echo=$ac_try;;
15427 esac
15428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15429 $as_echo "$ac_try_echo") >&5
15430   (eval "$ac_compile") 2>conftest.er1
15431   ac_status=$?
15432   grep -v '^ *+' conftest.er1 >conftest.err
15433   rm -f conftest.er1
15434   cat conftest.err >&5
15435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); } && {
15437          test -z "$ac_c_werror_flag" ||
15438          test ! -s conftest.err
15439        } && test -s conftest.$ac_objext; then
15440   cat >conftest.$ac_ext <<_ACEOF
15441 /* confdefs.h.  */
15442 _ACEOF
15443 cat confdefs.h >>conftest.$ac_ext
15444 cat >>conftest.$ac_ext <<_ACEOF
15445 /* end confdefs.h.  */
15446 #include <sys/types.h>
15447 #ifdef HAVE_SYS_SOCKET_H
15448 #include <sys/socket.h>
15449 #endif
15450
15451
15452 int
15453 main ()
15454 {
15455 if (sizeof ((struct sockaddr_storage)))
15456           return 0;
15457   ;
15458   return 0;
15459 }
15460 _ACEOF
15461 rm -f conftest.$ac_objext
15462 if { (ac_try="$ac_compile"
15463 case "(($ac_try" in
15464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465   *) ac_try_echo=$ac_try;;
15466 esac
15467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15468 $as_echo "$ac_try_echo") >&5
15469   (eval "$ac_compile") 2>conftest.er1
15470   ac_status=$?
15471   grep -v '^ *+' conftest.er1 >conftest.err
15472   rm -f conftest.er1
15473   cat conftest.err >&5
15474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); } && {
15476          test -z "$ac_c_werror_flag" ||
15477          test ! -s conftest.err
15478        } && test -s conftest.$ac_objext; then
15479   :
15480 else
15481   $as_echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15483
15484         ac_cv_type_struct_sockaddr_storage=yes
15485 fi
15486
15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15488 else
15489   $as_echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15491
15492
15493 fi
15494
15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496 fi
15497 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15498 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15499 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15500
15501 cat >>confdefs.h <<_ACEOF
15502 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15503 _ACEOF
15504
15505
15506 fi
15507
15508 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15509 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15510 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15511   $as_echo_n "(cached) " >&6
15512 else
15513   cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h.  */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h.  */
15519 #include <sys/types.h>
15520 #ifdef HAVE_SYS_SOCKET_H
15521 #include <sys/socket.h>
15522 #endif
15523
15524
15525 int
15526 main ()
15527 {
15528 static struct sockaddr_storage ac_aggr;
15529 if (ac_aggr.ss_family)
15530 return 0;
15531   ;
15532   return 0;
15533 }
15534 _ACEOF
15535 rm -f conftest.$ac_objext
15536 if { (ac_try="$ac_compile"
15537 case "(($ac_try" in
15538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539   *) ac_try_echo=$ac_try;;
15540 esac
15541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15542 $as_echo "$ac_try_echo") >&5
15543   (eval "$ac_compile") 2>conftest.er1
15544   ac_status=$?
15545   grep -v '^ *+' conftest.er1 >conftest.err
15546   rm -f conftest.er1
15547   cat conftest.err >&5
15548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); } && {
15550          test -z "$ac_c_werror_flag" ||
15551          test ! -s conftest.err
15552        } && test -s conftest.$ac_objext; then
15553   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15554 else
15555   $as_echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558         cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h.  */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h.  */
15564 #include <sys/types.h>
15565 #ifdef HAVE_SYS_SOCKET_H
15566 #include <sys/socket.h>
15567 #endif
15568
15569
15570 int
15571 main ()
15572 {
15573 static struct sockaddr_storage ac_aggr;
15574 if (sizeof ac_aggr.ss_family)
15575 return 0;
15576   ;
15577   return 0;
15578 }
15579 _ACEOF
15580 rm -f conftest.$ac_objext
15581 if { (ac_try="$ac_compile"
15582 case "(($ac_try" in
15583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584   *) ac_try_echo=$ac_try;;
15585 esac
15586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15587 $as_echo "$ac_try_echo") >&5
15588   (eval "$ac_compile") 2>conftest.er1
15589   ac_status=$?
15590   grep -v '^ *+' conftest.er1 >conftest.err
15591   rm -f conftest.er1
15592   cat conftest.err >&5
15593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); } && {
15595          test -z "$ac_c_werror_flag" ||
15596          test ! -s conftest.err
15597        } && test -s conftest.$ac_objext; then
15598   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15599 else
15600   $as_echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603         ac_cv_member_struct_sockaddr_storage_ss_family=no
15604 fi
15605
15606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 fi
15608
15609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15610 fi
15611 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15612 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15613 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15614
15615 cat >>confdefs.h <<_ACEOF
15616 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15617 _ACEOF
15618
15619
15620 fi
15621 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15622 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15623 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15624   $as_echo_n "(cached) " >&6
15625 else
15626   cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632 #include <sys/types.h>
15633 #ifdef HAVE_SYS_SOCKET_H
15634 #include <sys/socket.h>
15635 #endif
15636
15637
15638 int
15639 main ()
15640 {
15641 static struct sockaddr_storage ac_aggr;
15642 if (ac_aggr.__ss_family)
15643 return 0;
15644   ;
15645   return 0;
15646 }
15647 _ACEOF
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652   *) ac_try_echo=$ac_try;;
15653 esac
15654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656   (eval "$ac_compile") 2>conftest.er1
15657   ac_status=$?
15658   grep -v '^ *+' conftest.er1 >conftest.err
15659   rm -f conftest.er1
15660   cat conftest.err >&5
15661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); } && {
15663          test -z "$ac_c_werror_flag" ||
15664          test ! -s conftest.err
15665        } && test -s conftest.$ac_objext; then
15666   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15667 else
15668   $as_echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15670
15671         cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h.  */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h.  */
15677 #include <sys/types.h>
15678 #ifdef HAVE_SYS_SOCKET_H
15679 #include <sys/socket.h>
15680 #endif
15681
15682
15683 int
15684 main ()
15685 {
15686 static struct sockaddr_storage ac_aggr;
15687 if (sizeof ac_aggr.__ss_family)
15688 return 0;
15689   ;
15690   return 0;
15691 }
15692 _ACEOF
15693 rm -f conftest.$ac_objext
15694 if { (ac_try="$ac_compile"
15695 case "(($ac_try" in
15696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697   *) ac_try_echo=$ac_try;;
15698 esac
15699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15700 $as_echo "$ac_try_echo") >&5
15701   (eval "$ac_compile") 2>conftest.er1
15702   ac_status=$?
15703   grep -v '^ *+' conftest.er1 >conftest.err
15704   rm -f conftest.er1
15705   cat conftest.err >&5
15706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); } && {
15708          test -z "$ac_c_werror_flag" ||
15709          test ! -s conftest.err
15710        } && test -s conftest.$ac_objext; then
15711   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15712 else
15713   $as_echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15715
15716         ac_cv_member_struct_sockaddr_storage___ss_family=no
15717 fi
15718
15719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15720 fi
15721
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 fi
15724 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15725 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15726 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15727
15728 cat >>confdefs.h <<_ACEOF
15729 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15730 _ACEOF
15731
15732
15733 fi
15734 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15735 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15736 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15737   $as_echo_n "(cached) " >&6
15738 else
15739   cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745 #include <sys/types.h>
15746 #ifdef HAVE_SYS_SOCKET_H
15747 #include <sys/socket.h>
15748 #endif
15749
15750
15751 int
15752 main ()
15753 {
15754 static struct sockaddr_storage ac_aggr;
15755 if (ac_aggr.ss_len)
15756 return 0;
15757   ;
15758   return 0;
15759 }
15760 _ACEOF
15761 rm -f conftest.$ac_objext
15762 if { (ac_try="$ac_compile"
15763 case "(($ac_try" in
15764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765   *) ac_try_echo=$ac_try;;
15766 esac
15767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15768 $as_echo "$ac_try_echo") >&5
15769   (eval "$ac_compile") 2>conftest.er1
15770   ac_status=$?
15771   grep -v '^ *+' conftest.er1 >conftest.err
15772   rm -f conftest.er1
15773   cat conftest.err >&5
15774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } && {
15776          test -z "$ac_c_werror_flag" ||
15777          test ! -s conftest.err
15778        } && test -s conftest.$ac_objext; then
15779   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15780 else
15781   $as_echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784         cat >conftest.$ac_ext <<_ACEOF
15785 /* confdefs.h.  */
15786 _ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h.  */
15790 #include <sys/types.h>
15791 #ifdef HAVE_SYS_SOCKET_H
15792 #include <sys/socket.h>
15793 #endif
15794
15795
15796 int
15797 main ()
15798 {
15799 static struct sockaddr_storage ac_aggr;
15800 if (sizeof ac_aggr.ss_len)
15801 return 0;
15802   ;
15803   return 0;
15804 }
15805 _ACEOF
15806 rm -f conftest.$ac_objext
15807 if { (ac_try="$ac_compile"
15808 case "(($ac_try" in
15809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810   *) ac_try_echo=$ac_try;;
15811 esac
15812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15813 $as_echo "$ac_try_echo") >&5
15814   (eval "$ac_compile") 2>conftest.er1
15815   ac_status=$?
15816   grep -v '^ *+' conftest.er1 >conftest.err
15817   rm -f conftest.er1
15818   cat conftest.err >&5
15819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); } && {
15821          test -z "$ac_c_werror_flag" ||
15822          test ! -s conftest.err
15823        } && test -s conftest.$ac_objext; then
15824   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15825 else
15826   $as_echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15828
15829         ac_cv_member_struct_sockaddr_storage_ss_len=no
15830 fi
15831
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 fi
15834
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 fi
15837 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15838 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15839 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15840
15841 cat >>confdefs.h <<_ACEOF
15842 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15843 _ACEOF
15844
15845
15846 fi
15847 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15848 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15849 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15850   $as_echo_n "(cached) " >&6
15851 else
15852   cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858 #include <sys/types.h>
15859 #ifdef HAVE_SYS_SOCKET_H
15860 #include <sys/socket.h>
15861 #endif
15862
15863
15864 int
15865 main ()
15866 {
15867 static struct sockaddr_storage ac_aggr;
15868 if (ac_aggr.__ss_len)
15869 return 0;
15870   ;
15871   return 0;
15872 }
15873 _ACEOF
15874 rm -f conftest.$ac_objext
15875 if { (ac_try="$ac_compile"
15876 case "(($ac_try" in
15877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878   *) ac_try_echo=$ac_try;;
15879 esac
15880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15881 $as_echo "$ac_try_echo") >&5
15882   (eval "$ac_compile") 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } && {
15889          test -z "$ac_c_werror_flag" ||
15890          test ! -s conftest.err
15891        } && test -s conftest.$ac_objext; then
15892   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15893 else
15894   $as_echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897         cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h.  */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h.  */
15903 #include <sys/types.h>
15904 #ifdef HAVE_SYS_SOCKET_H
15905 #include <sys/socket.h>
15906 #endif
15907
15908
15909 int
15910 main ()
15911 {
15912 static struct sockaddr_storage ac_aggr;
15913 if (sizeof ac_aggr.__ss_len)
15914 return 0;
15915   ;
15916   return 0;
15917 }
15918 _ACEOF
15919 rm -f conftest.$ac_objext
15920 if { (ac_try="$ac_compile"
15921 case "(($ac_try" in
15922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923   *) ac_try_echo=$ac_try;;
15924 esac
15925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15926 $as_echo "$ac_try_echo") >&5
15927   (eval "$ac_compile") 2>conftest.er1
15928   ac_status=$?
15929   grep -v '^ *+' conftest.er1 >conftest.err
15930   rm -f conftest.er1
15931   cat conftest.err >&5
15932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); } && {
15934          test -z "$ac_c_werror_flag" ||
15935          test ! -s conftest.err
15936        } && test -s conftest.$ac_objext; then
15937   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15938 else
15939   $as_echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15941
15942         ac_cv_member_struct_sockaddr_storage___ss_len=no
15943 fi
15944
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946 fi
15947
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 fi
15950 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15951 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15952 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15953
15954 cat >>confdefs.h <<_ACEOF
15955 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15956 _ACEOF
15957
15958
15959 fi
15960 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15961 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15962 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15963   $as_echo_n "(cached) " >&6
15964 else
15965   cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h.  */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h.  */
15971 #include <sys/types.h>
15972 #ifdef HAVE_SYS_SOCKET_H
15973 #include <sys/socket.h>
15974 #endif
15975
15976
15977 int
15978 main ()
15979 {
15980 static struct sockaddr ac_aggr;
15981 if (ac_aggr.sa_len)
15982 return 0;
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991   *) ac_try_echo=$ac_try;;
15992 esac
15993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994 $as_echo "$ac_try_echo") >&5
15995   (eval "$ac_compile") 2>conftest.er1
15996   ac_status=$?
15997   grep -v '^ *+' conftest.er1 >conftest.err
15998   rm -f conftest.er1
15999   cat conftest.err >&5
16000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } && {
16002          test -z "$ac_c_werror_flag" ||
16003          test ! -s conftest.err
16004        } && test -s conftest.$ac_objext; then
16005   ac_cv_member_struct_sockaddr_sa_len=yes
16006 else
16007   $as_echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010         cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h.  */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h.  */
16016 #include <sys/types.h>
16017 #ifdef HAVE_SYS_SOCKET_H
16018 #include <sys/socket.h>
16019 #endif
16020
16021
16022 int
16023 main ()
16024 {
16025 static struct sockaddr ac_aggr;
16026 if (sizeof ac_aggr.sa_len)
16027 return 0;
16028   ;
16029   return 0;
16030 }
16031 _ACEOF
16032 rm -f conftest.$ac_objext
16033 if { (ac_try="$ac_compile"
16034 case "(($ac_try" in
16035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036   *) ac_try_echo=$ac_try;;
16037 esac
16038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16039 $as_echo "$ac_try_echo") >&5
16040   (eval "$ac_compile") 2>conftest.er1
16041   ac_status=$?
16042   grep -v '^ *+' conftest.er1 >conftest.err
16043   rm -f conftest.er1
16044   cat conftest.err >&5
16045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } && {
16047          test -z "$ac_c_werror_flag" ||
16048          test ! -s conftest.err
16049        } && test -s conftest.$ac_objext; then
16050   ac_cv_member_struct_sockaddr_sa_len=yes
16051 else
16052   $as_echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16054
16055         ac_cv_member_struct_sockaddr_sa_len=no
16056 fi
16057
16058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16059 fi
16060
16061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 fi
16063 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16064 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16065 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16066
16067 cat >>confdefs.h <<_ACEOF
16068 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16069 _ACEOF
16070
16071
16072 fi
16073
16074 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16075 $as_echo_n "checking for struct addrinfo... " >&6; }
16076 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16077   $as_echo_n "(cached) " >&6
16078 else
16079   ac_cv_type_struct_addrinfo=no
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086 #include <sys/types.h>
16087 #include <sys/socket.h>
16088 #include <netdb.h>
16089
16090
16091 int
16092 main ()
16093 {
16094 if (sizeof (struct addrinfo))
16095        return 0;
16096   ;
16097   return 0;
16098 }
16099 _ACEOF
16100 rm -f conftest.$ac_objext
16101 if { (ac_try="$ac_compile"
16102 case "(($ac_try" in
16103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104   *) ac_try_echo=$ac_try;;
16105 esac
16106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16107 $as_echo "$ac_try_echo") >&5
16108   (eval "$ac_compile") 2>conftest.er1
16109   ac_status=$?
16110   grep -v '^ *+' conftest.er1 >conftest.err
16111   rm -f conftest.er1
16112   cat conftest.err >&5
16113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); } && {
16115          test -z "$ac_c_werror_flag" ||
16116          test ! -s conftest.err
16117        } && test -s conftest.$ac_objext; then
16118   cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h.  */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h.  */
16124 #include <sys/types.h>
16125 #include <sys/socket.h>
16126 #include <netdb.h>
16127
16128
16129 int
16130 main ()
16131 {
16132 if (sizeof ((struct addrinfo)))
16133           return 0;
16134   ;
16135   return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext
16139 if { (ac_try="$ac_compile"
16140 case "(($ac_try" in
16141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142   *) ac_try_echo=$ac_try;;
16143 esac
16144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16145 $as_echo "$ac_try_echo") >&5
16146   (eval "$ac_compile") 2>conftest.er1
16147   ac_status=$?
16148   grep -v '^ *+' conftest.er1 >conftest.err
16149   rm -f conftest.er1
16150   cat conftest.err >&5
16151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); } && {
16153          test -z "$ac_c_werror_flag" ||
16154          test ! -s conftest.err
16155        } && test -s conftest.$ac_objext; then
16156   :
16157 else
16158   $as_echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161         ac_cv_type_struct_addrinfo=yes
16162 fi
16163
16164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16165 else
16166   $as_echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16168
16169
16170 fi
16171
16172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16173 fi
16174 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16175 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16176 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16177
16178 cat >>confdefs.h <<_ACEOF
16179 #define HAVE_STRUCT_ADDRINFO 1
16180 _ACEOF
16181
16182
16183 fi
16184
16185
16186   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16187 $as_echo_n "checking for intptr_t... " >&6; }
16188 if test "${ac_cv_type_intptr_t+set}" = set; then
16189   $as_echo_n "(cached) " >&6
16190 else
16191   ac_cv_type_intptr_t=no
16192 cat >conftest.$ac_ext <<_ACEOF
16193 /* confdefs.h.  */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h.  */
16198 $ac_includes_default
16199 int
16200 main ()
16201 {
16202 if (sizeof (intptr_t))
16203        return 0;
16204   ;
16205   return 0;
16206 }
16207 _ACEOF
16208 rm -f conftest.$ac_objext
16209 if { (ac_try="$ac_compile"
16210 case "(($ac_try" in
16211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212   *) ac_try_echo=$ac_try;;
16213 esac
16214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16215 $as_echo "$ac_try_echo") >&5
16216   (eval "$ac_compile") 2>conftest.er1
16217   ac_status=$?
16218   grep -v '^ *+' conftest.er1 >conftest.err
16219   rm -f conftest.er1
16220   cat conftest.err >&5
16221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } && {
16223          test -z "$ac_c_werror_flag" ||
16224          test ! -s conftest.err
16225        } && test -s conftest.$ac_objext; then
16226   cat >conftest.$ac_ext <<_ACEOF
16227 /* confdefs.h.  */
16228 _ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h.  */
16232 $ac_includes_default
16233 int
16234 main ()
16235 {
16236 if (sizeof ((intptr_t)))
16237           return 0;
16238   ;
16239   return 0;
16240 }
16241 _ACEOF
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246   *) ac_try_echo=$ac_try;;
16247 esac
16248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250   (eval "$ac_compile") 2>conftest.er1
16251   ac_status=$?
16252   grep -v '^ *+' conftest.er1 >conftest.err
16253   rm -f conftest.er1
16254   cat conftest.err >&5
16255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256   (exit $ac_status); } && {
16257          test -z "$ac_c_werror_flag" ||
16258          test ! -s conftest.err
16259        } && test -s conftest.$ac_objext; then
16260   :
16261 else
16262   $as_echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16264
16265         ac_cv_type_intptr_t=yes
16266 fi
16267
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 else
16270   $as_echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273
16274 fi
16275
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 fi
16278 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16279 $as_echo "$ac_cv_type_intptr_t" >&6; }
16280 if test "x$ac_cv_type_intptr_t" = x""yes; then
16281
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_INTPTR_T 1
16284 _ACEOF
16285
16286 else
16287   for ac_type in 'int' 'long int' 'long long int'; do
16288        cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h.  */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h.  */
16294 $ac_includes_default
16295 int
16296 main ()
16297 {
16298 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16299 test_array [0] = 0
16300
16301   ;
16302   return 0;
16303 }
16304 _ACEOF
16305 rm -f conftest.$ac_objext
16306 if { (ac_try="$ac_compile"
16307 case "(($ac_try" in
16308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16309   *) ac_try_echo=$ac_try;;
16310 esac
16311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16312 $as_echo "$ac_try_echo") >&5
16313   (eval "$ac_compile") 2>conftest.er1
16314   ac_status=$?
16315   grep -v '^ *+' conftest.er1 >conftest.err
16316   rm -f conftest.er1
16317   cat conftest.err >&5
16318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); } && {
16320          test -z "$ac_c_werror_flag" ||
16321          test ! -s conftest.err
16322        } && test -s conftest.$ac_objext; then
16323
16324 cat >>confdefs.h <<_ACEOF
16325 #define intptr_t $ac_type
16326 _ACEOF
16327
16328           ac_type=
16329 else
16330   $as_echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333
16334 fi
16335
16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16337        test -z "$ac_type" && break
16338      done
16339 fi
16340
16341
16342
16343   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16344 $as_echo_n "checking for uintptr_t... " >&6; }
16345 if test "${ac_cv_type_uintptr_t+set}" = set; then
16346   $as_echo_n "(cached) " >&6
16347 else
16348   ac_cv_type_uintptr_t=no
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h.  */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h.  */
16355 $ac_includes_default
16356 int
16357 main ()
16358 {
16359 if (sizeof (uintptr_t))
16360        return 0;
16361   ;
16362   return 0;
16363 }
16364 _ACEOF
16365 rm -f conftest.$ac_objext
16366 if { (ac_try="$ac_compile"
16367 case "(($ac_try" in
16368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369   *) ac_try_echo=$ac_try;;
16370 esac
16371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16372 $as_echo "$ac_try_echo") >&5
16373   (eval "$ac_compile") 2>conftest.er1
16374   ac_status=$?
16375   grep -v '^ *+' conftest.er1 >conftest.err
16376   rm -f conftest.er1
16377   cat conftest.err >&5
16378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); } && {
16380          test -z "$ac_c_werror_flag" ||
16381          test ! -s conftest.err
16382        } && test -s conftest.$ac_objext; then
16383   cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h.  */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h.  */
16389 $ac_includes_default
16390 int
16391 main ()
16392 {
16393 if (sizeof ((uintptr_t)))
16394           return 0;
16395   ;
16396   return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (ac_try="$ac_compile"
16401 case "(($ac_try" in
16402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403   *) ac_try_echo=$ac_try;;
16404 esac
16405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16406 $as_echo "$ac_try_echo") >&5
16407   (eval "$ac_compile") 2>conftest.er1
16408   ac_status=$?
16409   grep -v '^ *+' conftest.er1 >conftest.err
16410   rm -f conftest.er1
16411   cat conftest.err >&5
16412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); } && {
16414          test -z "$ac_c_werror_flag" ||
16415          test ! -s conftest.err
16416        } && test -s conftest.$ac_objext; then
16417   :
16418 else
16419   $as_echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422         ac_cv_type_uintptr_t=yes
16423 fi
16424
16425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16426 else
16427   $as_echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430
16431 fi
16432
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 fi
16435 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16436 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16437 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16438
16439 cat >>confdefs.h <<\_ACEOF
16440 #define HAVE_UINTPTR_T 1
16441 _ACEOF
16442
16443 else
16444   for ac_type in 'unsigned int' 'unsigned long int' \
16445         'unsigned long long int'; do
16446        cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h.  */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h.  */
16452 $ac_includes_default
16453 int
16454 main ()
16455 {
16456 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16457 test_array [0] = 0
16458
16459   ;
16460   return 0;
16461 }
16462 _ACEOF
16463 rm -f conftest.$ac_objext
16464 if { (ac_try="$ac_compile"
16465 case "(($ac_try" in
16466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467   *) ac_try_echo=$ac_try;;
16468 esac
16469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16470 $as_echo "$ac_try_echo") >&5
16471   (eval "$ac_compile") 2>conftest.er1
16472   ac_status=$?
16473   grep -v '^ *+' conftest.er1 >conftest.err
16474   rm -f conftest.er1
16475   cat conftest.err >&5
16476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } && {
16478          test -z "$ac_c_werror_flag" ||
16479          test ! -s conftest.err
16480        } && test -s conftest.$ac_objext; then
16481
16482 cat >>confdefs.h <<_ACEOF
16483 #define uintptr_t $ac_type
16484 _ACEOF
16485
16486           ac_type=
16487 else
16488   $as_echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16490
16491
16492 fi
16493
16494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495        test -z "$ac_type" && break
16496      done
16497 fi
16498
16499
16500
16501   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16502 $as_echo_n "checking for long long int... " >&6; }
16503 if test "${ac_cv_type_long_long_int+set}" = set; then
16504   $as_echo_n "(cached) " >&6
16505 else
16506   cat >conftest.$ac_ext <<_ACEOF
16507
16508   /* confdefs.h.  */
16509 _ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h.  */
16513 /* For now, do not test the preprocessor; as of 2007 there are too many
16514          implementations with broken preprocessors.  Perhaps this can
16515          be revisited in 2012.  In the meantime, code should not expect
16516          #if to work with literals wider than 32 bits.  */
16517       /* Test literals.  */
16518       long long int ll = 9223372036854775807ll;
16519       long long int nll = -9223372036854775807LL;
16520       unsigned long long int ull = 18446744073709551615ULL;
16521       /* Test constant expressions.   */
16522       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16523                      ? 1 : -1)];
16524       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16525                      ? 1 : -1)];
16526       int i = 63;
16527 int
16528 main ()
16529 {
16530 /* Test availability of runtime routines for shift and division.  */
16531       long long int llmax = 9223372036854775807ll;
16532       unsigned long long int ullmax = 18446744073709551615ull;
16533       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16534               | (llmax / ll) | (llmax % ll)
16535               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16536               | (ullmax / ull) | (ullmax % ull));
16537   ;
16538   return 0;
16539 }
16540
16541 _ACEOF
16542 rm -f conftest.$ac_objext conftest$ac_exeext
16543 if { (ac_try="$ac_link"
16544 case "(($ac_try" in
16545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546   *) ac_try_echo=$ac_try;;
16547 esac
16548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16549 $as_echo "$ac_try_echo") >&5
16550   (eval "$ac_link") 2>conftest.er1
16551   ac_status=$?
16552   grep -v '^ *+' conftest.er1 >conftest.err
16553   rm -f conftest.er1
16554   cat conftest.err >&5
16555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556   (exit $ac_status); } && {
16557          test -z "$ac_c_werror_flag" ||
16558          test ! -s conftest.err
16559        } && test -s conftest$ac_exeext && {
16560          test "$cross_compiling" = yes ||
16561          $as_test_x conftest$ac_exeext
16562        }; then
16563                         if test "$cross_compiling" = yes; then
16564   ac_cv_type_long_long_int=yes
16565 else
16566   cat >conftest.$ac_ext <<_ACEOF
16567 /* confdefs.h.  */
16568 _ACEOF
16569 cat confdefs.h >>conftest.$ac_ext
16570 cat >>conftest.$ac_ext <<_ACEOF
16571 /* end confdefs.h.  */
16572 #include <limits.h>
16573                #ifndef LLONG_MAX
16574                # define HALF \
16575                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16576                # define LLONG_MAX (HALF - 1 + HALF)
16577                #endif
16578 int
16579 main ()
16580 {
16581 long long int n = 1;
16582                int i;
16583                for (i = 0; ; i++)
16584                  {
16585                    long long int m = n << i;
16586                    if (m >> i != n)
16587                      return 1;
16588                    if (LLONG_MAX / 2 < m)
16589                      break;
16590                  }
16591                return 0;
16592   ;
16593   return 0;
16594 }
16595 _ACEOF
16596 rm -f conftest$ac_exeext
16597 if { (ac_try="$ac_link"
16598 case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16603 $as_echo "$ac_try_echo") >&5
16604   (eval "$ac_link") 2>&5
16605   ac_status=$?
16606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16608   { (case "(($ac_try" in
16609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610   *) ac_try_echo=$ac_try;;
16611 esac
16612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16613 $as_echo "$ac_try_echo") >&5
16614   (eval "$ac_try") 2>&5
16615   ac_status=$?
16616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); }; }; then
16618   ac_cv_type_long_long_int=yes
16619 else
16620   $as_echo "$as_me: program exited with status $ac_status" >&5
16621 $as_echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16623
16624 ( exit $ac_status )
16625 ac_cv_type_long_long_int=no
16626 fi
16627 rm -rf conftest.dSYM
16628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16629 fi
16630
16631
16632 else
16633   $as_echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16635
16636         ac_cv_type_long_long_int=no
16637 fi
16638
16639 rm -rf conftest.dSYM
16640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16641       conftest$ac_exeext conftest.$ac_ext
16642 fi
16643 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16644 $as_echo "$ac_cv_type_long_long_int" >&6; }
16645   if test $ac_cv_type_long_long_int = yes; then
16646
16647 cat >>confdefs.h <<\_ACEOF
16648 #define HAVE_LONG_LONG_INT 1
16649 _ACEOF
16650
16651   fi
16652
16653
16654 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16655 $as_echo_n "checking for struct cmsgcred... " >&6; }
16656 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16657   $as_echo_n "(cached) " >&6
16658 else
16659   ac_cv_type_struct_cmsgcred=no
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h.  */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h.  */
16666 #include <sys/param.h>
16667 #include <sys/types.h>
16668 #include <sys/socket.h>
16669 #include <sys/ucred.h>
16670
16671 int
16672 main ()
16673 {
16674 if (sizeof (struct cmsgcred))
16675        return 0;
16676   ;
16677   return 0;
16678 }
16679 _ACEOF
16680 rm -f conftest.$ac_objext
16681 if { (ac_try="$ac_compile"
16682 case "(($ac_try" in
16683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684   *) ac_try_echo=$ac_try;;
16685 esac
16686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16687 $as_echo "$ac_try_echo") >&5
16688   (eval "$ac_compile") 2>conftest.er1
16689   ac_status=$?
16690   grep -v '^ *+' conftest.er1 >conftest.err
16691   rm -f conftest.er1
16692   cat conftest.err >&5
16693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); } && {
16695          test -z "$ac_c_werror_flag" ||
16696          test ! -s conftest.err
16697        } && test -s conftest.$ac_objext; then
16698   cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h.  */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h.  */
16704 #include <sys/param.h>
16705 #include <sys/types.h>
16706 #include <sys/socket.h>
16707 #include <sys/ucred.h>
16708
16709 int
16710 main ()
16711 {
16712 if (sizeof ((struct cmsgcred)))
16713           return 0;
16714   ;
16715   return 0;
16716 }
16717 _ACEOF
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722   *) ac_try_echo=$ac_try;;
16723 esac
16724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16725 $as_echo "$ac_try_echo") >&5
16726   (eval "$ac_compile") 2>conftest.er1
16727   ac_status=$?
16728   grep -v '^ *+' conftest.er1 >conftest.err
16729   rm -f conftest.er1
16730   cat conftest.err >&5
16731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); } && {
16733          test -z "$ac_c_werror_flag" ||
16734          test ! -s conftest.err
16735        } && test -s conftest.$ac_objext; then
16736   :
16737 else
16738   $as_echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16740
16741         ac_cv_type_struct_cmsgcred=yes
16742 fi
16743
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745 else
16746   $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749
16750 fi
16751
16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753 fi
16754 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16755 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16756 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16757
16758 cat >>confdefs.h <<_ACEOF
16759 #define HAVE_STRUCT_CMSGCRED 1
16760 _ACEOF
16761
16762
16763 fi
16764 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16765 $as_echo_n "checking for struct fcred... " >&6; }
16766 if test "${ac_cv_type_struct_fcred+set}" = set; then
16767   $as_echo_n "(cached) " >&6
16768 else
16769   ac_cv_type_struct_fcred=no
16770 cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776 #include <sys/param.h>
16777 #include <sys/types.h>
16778 #include <sys/socket.h>
16779 #include <sys/ucred.h>
16780
16781 int
16782 main ()
16783 {
16784 if (sizeof (struct fcred))
16785        return 0;
16786   ;
16787   return 0;
16788 }
16789 _ACEOF
16790 rm -f conftest.$ac_objext
16791 if { (ac_try="$ac_compile"
16792 case "(($ac_try" in
16793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16794   *) ac_try_echo=$ac_try;;
16795 esac
16796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16797 $as_echo "$ac_try_echo") >&5
16798   (eval "$ac_compile") 2>conftest.er1
16799   ac_status=$?
16800   grep -v '^ *+' conftest.er1 >conftest.err
16801   rm -f conftest.er1
16802   cat conftest.err >&5
16803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } && {
16805          test -z "$ac_c_werror_flag" ||
16806          test ! -s conftest.err
16807        } && test -s conftest.$ac_objext; then
16808   cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814 #include <sys/param.h>
16815 #include <sys/types.h>
16816 #include <sys/socket.h>
16817 #include <sys/ucred.h>
16818
16819 int
16820 main ()
16821 {
16822 if (sizeof ((struct fcred)))
16823           return 0;
16824   ;
16825   return 0;
16826 }
16827 _ACEOF
16828 rm -f conftest.$ac_objext
16829 if { (ac_try="$ac_compile"
16830 case "(($ac_try" in
16831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832   *) ac_try_echo=$ac_try;;
16833 esac
16834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16835 $as_echo "$ac_try_echo") >&5
16836   (eval "$ac_compile") 2>conftest.er1
16837   ac_status=$?
16838   grep -v '^ *+' conftest.er1 >conftest.err
16839   rm -f conftest.er1
16840   cat conftest.err >&5
16841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); } && {
16843          test -z "$ac_c_werror_flag" ||
16844          test ! -s conftest.err
16845        } && test -s conftest.$ac_objext; then
16846   :
16847 else
16848   $as_echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16850
16851         ac_cv_type_struct_fcred=yes
16852 fi
16853
16854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16855 else
16856   $as_echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16858
16859
16860 fi
16861
16862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 fi
16864 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16865 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16866 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16867
16868 cat >>confdefs.h <<_ACEOF
16869 #define HAVE_STRUCT_FCRED 1
16870 _ACEOF
16871
16872
16873 fi
16874 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16875 $as_echo_n "checking for struct sockcred... " >&6; }
16876 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16877   $as_echo_n "(cached) " >&6
16878 else
16879   ac_cv_type_struct_sockcred=no
16880 cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h.  */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h.  */
16886 #include <sys/param.h>
16887 #include <sys/types.h>
16888 #include <sys/socket.h>
16889 #include <sys/ucred.h>
16890
16891 int
16892 main ()
16893 {
16894 if (sizeof (struct sockcred))
16895        return 0;
16896   ;
16897   return 0;
16898 }
16899 _ACEOF
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904   *) ac_try_echo=$ac_try;;
16905 esac
16906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16907 $as_echo "$ac_try_echo") >&5
16908   (eval "$ac_compile") 2>conftest.er1
16909   ac_status=$?
16910   grep -v '^ *+' conftest.er1 >conftest.err
16911   rm -f conftest.er1
16912   cat conftest.err >&5
16913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); } && {
16915          test -z "$ac_c_werror_flag" ||
16916          test ! -s conftest.err
16917        } && test -s conftest.$ac_objext; then
16918   cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h.  */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h.  */
16924 #include <sys/param.h>
16925 #include <sys/types.h>
16926 #include <sys/socket.h>
16927 #include <sys/ucred.h>
16928
16929 int
16930 main ()
16931 {
16932 if (sizeof ((struct sockcred)))
16933           return 0;
16934   ;
16935   return 0;
16936 }
16937 _ACEOF
16938 rm -f conftest.$ac_objext
16939 if { (ac_try="$ac_compile"
16940 case "(($ac_try" in
16941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942   *) ac_try_echo=$ac_try;;
16943 esac
16944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16945 $as_echo "$ac_try_echo") >&5
16946   (eval "$ac_compile") 2>conftest.er1
16947   ac_status=$?
16948   grep -v '^ *+' conftest.er1 >conftest.err
16949   rm -f conftest.er1
16950   cat conftest.err >&5
16951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); } && {
16953          test -z "$ac_c_werror_flag" ||
16954          test ! -s conftest.err
16955        } && test -s conftest.$ac_objext; then
16956   :
16957 else
16958   $as_echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961         ac_cv_type_struct_sockcred=yes
16962 fi
16963
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965 else
16966   $as_echo "$as_me: failed program was:" >&5
16967 sed 's/^/| /' conftest.$ac_ext >&5
16968
16969
16970 fi
16971
16972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16973 fi
16974 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16975 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16976 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16977
16978 cat >>confdefs.h <<_ACEOF
16979 #define HAVE_STRUCT_SOCKCRED 1
16980 _ACEOF
16981
16982
16983 fi
16984
16985
16986 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16987 $as_echo_n "checking for struct option... " >&6; }
16988 if test "${ac_cv_type_struct_option+set}" = set; then
16989   $as_echo_n "(cached) " >&6
16990 else
16991   ac_cv_type_struct_option=no
16992 cat >conftest.$ac_ext <<_ACEOF
16993 /* confdefs.h.  */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h.  */
16998 #ifdef HAVE_GETOPT_H
16999 #include <getopt.h>
17000 #endif
17001
17002 int
17003 main ()
17004 {
17005 if (sizeof (struct option))
17006        return 0;
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext
17012 if { (ac_try="$ac_compile"
17013 case "(($ac_try" in
17014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015   *) ac_try_echo=$ac_try;;
17016 esac
17017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17018 $as_echo "$ac_try_echo") >&5
17019   (eval "$ac_compile") 2>conftest.er1
17020   ac_status=$?
17021   grep -v '^ *+' conftest.er1 >conftest.err
17022   rm -f conftest.er1
17023   cat conftest.err >&5
17024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); } && {
17026          test -z "$ac_c_werror_flag" ||
17027          test ! -s conftest.err
17028        } && test -s conftest.$ac_objext; then
17029   cat >conftest.$ac_ext <<_ACEOF
17030 /* confdefs.h.  */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h.  */
17035 #ifdef HAVE_GETOPT_H
17036 #include <getopt.h>
17037 #endif
17038
17039 int
17040 main ()
17041 {
17042 if (sizeof ((struct option)))
17043           return 0;
17044   ;
17045   return 0;
17046 }
17047 _ACEOF
17048 rm -f conftest.$ac_objext
17049 if { (ac_try="$ac_compile"
17050 case "(($ac_try" in
17051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052   *) ac_try_echo=$ac_try;;
17053 esac
17054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17055 $as_echo "$ac_try_echo") >&5
17056   (eval "$ac_compile") 2>conftest.er1
17057   ac_status=$?
17058   grep -v '^ *+' conftest.er1 >conftest.err
17059   rm -f conftest.er1
17060   cat conftest.err >&5
17061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); } && {
17063          test -z "$ac_c_werror_flag" ||
17064          test ! -s conftest.err
17065        } && test -s conftest.$ac_objext; then
17066   :
17067 else
17068   $as_echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17070
17071         ac_cv_type_struct_option=yes
17072 fi
17073
17074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17075 else
17076   $as_echo "$as_me: failed program was:" >&5
17077 sed 's/^/| /' conftest.$ac_ext >&5
17078
17079
17080 fi
17081
17082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 fi
17084 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17085 $as_echo "$ac_cv_type_struct_option" >&6; }
17086 if test "x$ac_cv_type_struct_option" = x""yes; then
17087
17088 cat >>confdefs.h <<_ACEOF
17089 #define HAVE_STRUCT_OPTION 1
17090 _ACEOF
17091
17092
17093 fi
17094
17095
17096 if test "$with_zlib" = yes; then
17097   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17098   # did not).  While we could work around the lack of z_streamp, it
17099   # seems unwise to encourage people to use such old zlib versions...
17100   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17101 $as_echo_n "checking for z_streamp... " >&6; }
17102 if test "${ac_cv_type_z_streamp+set}" = set; then
17103   $as_echo_n "(cached) " >&6
17104 else
17105   ac_cv_type_z_streamp=no
17106 cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h.  */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h.  */
17112 #include <zlib.h>
17113
17114 int
17115 main ()
17116 {
17117 if (sizeof (z_streamp))
17118        return 0;
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext
17124 if { (ac_try="$ac_compile"
17125 case "(($ac_try" in
17126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127   *) ac_try_echo=$ac_try;;
17128 esac
17129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17130 $as_echo "$ac_try_echo") >&5
17131   (eval "$ac_compile") 2>conftest.er1
17132   ac_status=$?
17133   grep -v '^ *+' conftest.er1 >conftest.err
17134   rm -f conftest.er1
17135   cat conftest.err >&5
17136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } && {
17138          test -z "$ac_c_werror_flag" ||
17139          test ! -s conftest.err
17140        } && test -s conftest.$ac_objext; then
17141   cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h.  */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h.  */
17147 #include <zlib.h>
17148
17149 int
17150 main ()
17151 {
17152 if (sizeof ((z_streamp)))
17153           return 0;
17154   ;
17155   return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext
17159 if { (ac_try="$ac_compile"
17160 case "(($ac_try" in
17161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162   *) ac_try_echo=$ac_try;;
17163 esac
17164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17165 $as_echo "$ac_try_echo") >&5
17166   (eval "$ac_compile") 2>conftest.er1
17167   ac_status=$?
17168   grep -v '^ *+' conftest.er1 >conftest.err
17169   rm -f conftest.er1
17170   cat conftest.err >&5
17171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); } && {
17173          test -z "$ac_c_werror_flag" ||
17174          test ! -s conftest.err
17175        } && test -s conftest.$ac_objext; then
17176   :
17177 else
17178   $as_echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181         ac_cv_type_z_streamp=yes
17182 fi
17183
17184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17185 else
17186   $as_echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17188
17189
17190 fi
17191
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193 fi
17194 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17195 $as_echo "$ac_cv_type_z_streamp" >&6; }
17196 if test "x$ac_cv_type_z_streamp" = x""yes; then
17197   :
17198 else
17199   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17200 Use --without-zlib to disable zlib support." >&5
17201 $as_echo "$as_me: error: zlib version is too old
17202 Use --without-zlib to disable zlib support." >&2;}
17203    { (exit 1); exit 1; }; }
17204 fi
17205
17206 fi
17207
17208 if test "$with_krb5" = yes; then
17209 # Check for differences between MIT and Heimdal (KTH) releases
17210   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17211 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17212 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17213   $as_echo_n "(cached) " >&6
17214 else
17215   cat >conftest.$ac_ext <<_ACEOF
17216 /* confdefs.h.  */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h.  */
17221 #include <krb5.h>
17222
17223 int
17224 main ()
17225 {
17226 static krb5_ticket ac_aggr;
17227 if (ac_aggr.enc_part2)
17228 return 0;
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237   *) ac_try_echo=$ac_try;;
17238 esac
17239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17240 $as_echo "$ac_try_echo") >&5
17241   (eval "$ac_compile") 2>conftest.er1
17242   ac_status=$?
17243   grep -v '^ *+' conftest.er1 >conftest.err
17244   rm -f conftest.er1
17245   cat conftest.err >&5
17246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); } && {
17248          test -z "$ac_c_werror_flag" ||
17249          test ! -s conftest.err
17250        } && test -s conftest.$ac_objext; then
17251   ac_cv_member_krb5_ticket_enc_part2=yes
17252 else
17253   $as_echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17255
17256         cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262 #include <krb5.h>
17263
17264 int
17265 main ()
17266 {
17267 static krb5_ticket ac_aggr;
17268 if (sizeof ac_aggr.enc_part2)
17269 return 0;
17270   ;
17271   return 0;
17272 }
17273 _ACEOF
17274 rm -f conftest.$ac_objext
17275 if { (ac_try="$ac_compile"
17276 case "(($ac_try" in
17277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278   *) ac_try_echo=$ac_try;;
17279 esac
17280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17281 $as_echo "$ac_try_echo") >&5
17282   (eval "$ac_compile") 2>conftest.er1
17283   ac_status=$?
17284   grep -v '^ *+' conftest.er1 >conftest.err
17285   rm -f conftest.er1
17286   cat conftest.err >&5
17287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); } && {
17289          test -z "$ac_c_werror_flag" ||
17290          test ! -s conftest.err
17291        } && test -s conftest.$ac_objext; then
17292   ac_cv_member_krb5_ticket_enc_part2=yes
17293 else
17294   $as_echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297         ac_cv_member_krb5_ticket_enc_part2=no
17298 fi
17299
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 fi
17302
17303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304 fi
17305 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17306 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17307 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17308
17309 cat >>confdefs.h <<_ACEOF
17310 #define HAVE_KRB5_TICKET_ENC_PART2 1
17311 _ACEOF
17312
17313
17314 else
17315   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17316 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17317 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17318   $as_echo_n "(cached) " >&6
17319 else
17320   cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h.  */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h.  */
17326 #include <krb5.h>
17327
17328 int
17329 main ()
17330 {
17331 static krb5_ticket ac_aggr;
17332 if (ac_aggr.client)
17333 return 0;
17334   ;
17335   return 0;
17336 }
17337 _ACEOF
17338 rm -f conftest.$ac_objext
17339 if { (ac_try="$ac_compile"
17340 case "(($ac_try" in
17341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342   *) ac_try_echo=$ac_try;;
17343 esac
17344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17345 $as_echo "$ac_try_echo") >&5
17346   (eval "$ac_compile") 2>conftest.er1
17347   ac_status=$?
17348   grep -v '^ *+' conftest.er1 >conftest.err
17349   rm -f conftest.er1
17350   cat conftest.err >&5
17351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); } && {
17353          test -z "$ac_c_werror_flag" ||
17354          test ! -s conftest.err
17355        } && test -s conftest.$ac_objext; then
17356   ac_cv_member_krb5_ticket_client=yes
17357 else
17358   $as_echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17360
17361         cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h.  */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h.  */
17367 #include <krb5.h>
17368
17369 int
17370 main ()
17371 {
17372 static krb5_ticket ac_aggr;
17373 if (sizeof ac_aggr.client)
17374 return 0;
17375   ;
17376   return 0;
17377 }
17378 _ACEOF
17379 rm -f conftest.$ac_objext
17380 if { (ac_try="$ac_compile"
17381 case "(($ac_try" in
17382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383   *) ac_try_echo=$ac_try;;
17384 esac
17385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17386 $as_echo "$ac_try_echo") >&5
17387   (eval "$ac_compile") 2>conftest.er1
17388   ac_status=$?
17389   grep -v '^ *+' conftest.er1 >conftest.err
17390   rm -f conftest.er1
17391   cat conftest.err >&5
17392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393   (exit $ac_status); } && {
17394          test -z "$ac_c_werror_flag" ||
17395          test ! -s conftest.err
17396        } && test -s conftest.$ac_objext; then
17397   ac_cv_member_krb5_ticket_client=yes
17398 else
17399   $as_echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17401
17402         ac_cv_member_krb5_ticket_client=no
17403 fi
17404
17405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17406 fi
17407
17408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17409 fi
17410 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17411 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17412 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17413
17414 cat >>confdefs.h <<_ACEOF
17415 #define HAVE_KRB5_TICKET_CLIENT 1
17416 _ACEOF
17417
17418
17419 else
17420   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17421 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17422    { (exit 1); exit 1; }; }
17423 fi
17424
17425 fi
17426
17427   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17428 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17429 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17430   $as_echo_n "(cached) " >&6
17431 else
17432   cat >conftest.$ac_ext <<_ACEOF
17433 /* confdefs.h.  */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h.  */
17438 #include <krb5.h>
17439
17440 int
17441 main ()
17442 {
17443 static krb5_error ac_aggr;
17444 if (ac_aggr.text.data)
17445 return 0;
17446   ;
17447   return 0;
17448 }
17449 _ACEOF
17450 rm -f conftest.$ac_objext
17451 if { (ac_try="$ac_compile"
17452 case "(($ac_try" in
17453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454   *) ac_try_echo=$ac_try;;
17455 esac
17456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17457 $as_echo "$ac_try_echo") >&5
17458   (eval "$ac_compile") 2>conftest.er1
17459   ac_status=$?
17460   grep -v '^ *+' conftest.er1 >conftest.err
17461   rm -f conftest.er1
17462   cat conftest.err >&5
17463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); } && {
17465          test -z "$ac_c_werror_flag" ||
17466          test ! -s conftest.err
17467        } && test -s conftest.$ac_objext; then
17468   ac_cv_member_krb5_error_text_data=yes
17469 else
17470   $as_echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473         cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h.  */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h.  */
17479 #include <krb5.h>
17480
17481 int
17482 main ()
17483 {
17484 static krb5_error ac_aggr;
17485 if (sizeof ac_aggr.text.data)
17486 return 0;
17487   ;
17488   return 0;
17489 }
17490 _ACEOF
17491 rm -f conftest.$ac_objext
17492 if { (ac_try="$ac_compile"
17493 case "(($ac_try" in
17494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495   *) ac_try_echo=$ac_try;;
17496 esac
17497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17498 $as_echo "$ac_try_echo") >&5
17499   (eval "$ac_compile") 2>conftest.er1
17500   ac_status=$?
17501   grep -v '^ *+' conftest.er1 >conftest.err
17502   rm -f conftest.er1
17503   cat conftest.err >&5
17504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); } && {
17506          test -z "$ac_c_werror_flag" ||
17507          test ! -s conftest.err
17508        } && test -s conftest.$ac_objext; then
17509   ac_cv_member_krb5_error_text_data=yes
17510 else
17511   $as_echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514         ac_cv_member_krb5_error_text_data=no
17515 fi
17516
17517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17518 fi
17519
17520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17521 fi
17522 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17523 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17524 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17525
17526 cat >>confdefs.h <<_ACEOF
17527 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17528 _ACEOF
17529
17530
17531 else
17532   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17533 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17534 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17535   $as_echo_n "(cached) " >&6
17536 else
17537   cat >conftest.$ac_ext <<_ACEOF
17538 /* confdefs.h.  */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h.  */
17543 #include <krb5.h>
17544
17545 int
17546 main ()
17547 {
17548 static krb5_error ac_aggr;
17549 if (ac_aggr.e_data)
17550 return 0;
17551   ;
17552   return 0;
17553 }
17554 _ACEOF
17555 rm -f conftest.$ac_objext
17556 if { (ac_try="$ac_compile"
17557 case "(($ac_try" in
17558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559   *) ac_try_echo=$ac_try;;
17560 esac
17561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17562 $as_echo "$ac_try_echo") >&5
17563   (eval "$ac_compile") 2>conftest.er1
17564   ac_status=$?
17565   grep -v '^ *+' conftest.er1 >conftest.err
17566   rm -f conftest.er1
17567   cat conftest.err >&5
17568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); } && {
17570          test -z "$ac_c_werror_flag" ||
17571          test ! -s conftest.err
17572        } && test -s conftest.$ac_objext; then
17573   ac_cv_member_krb5_error_e_data=yes
17574 else
17575   $as_echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17577
17578         cat >conftest.$ac_ext <<_ACEOF
17579 /* confdefs.h.  */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h.  */
17584 #include <krb5.h>
17585
17586 int
17587 main ()
17588 {
17589 static krb5_error ac_aggr;
17590 if (sizeof ac_aggr.e_data)
17591 return 0;
17592   ;
17593   return 0;
17594 }
17595 _ACEOF
17596 rm -f conftest.$ac_objext
17597 if { (ac_try="$ac_compile"
17598 case "(($ac_try" in
17599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600   *) ac_try_echo=$ac_try;;
17601 esac
17602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17603 $as_echo "$ac_try_echo") >&5
17604   (eval "$ac_compile") 2>conftest.er1
17605   ac_status=$?
17606   grep -v '^ *+' conftest.er1 >conftest.err
17607   rm -f conftest.er1
17608   cat conftest.err >&5
17609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610   (exit $ac_status); } && {
17611          test -z "$ac_c_werror_flag" ||
17612          test ! -s conftest.err
17613        } && test -s conftest.$ac_objext; then
17614   ac_cv_member_krb5_error_e_data=yes
17615 else
17616   $as_echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17618
17619         ac_cv_member_krb5_error_e_data=no
17620 fi
17621
17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623 fi
17624
17625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17626 fi
17627 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17628 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17629 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17630
17631 cat >>confdefs.h <<_ACEOF
17632 #define HAVE_KRB5_ERROR_E_DATA 1
17633 _ACEOF
17634
17635
17636 else
17637   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17638 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17639    { (exit 1); exit 1; }; }
17640 fi
17641
17642 fi
17643
17644
17645 # Win32 requires headers to be loaded for __stdcall, so can't use
17646 # AC_CHECK_FUNCS here.
17647   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17648 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17649   cat >conftest.$ac_ext <<_ACEOF
17650 /* confdefs.h.  */
17651 _ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h.  */
17655 #include <krb5.h>
17656 int
17657 main ()
17658 {
17659 krb5_free_unparsed_name(NULL,NULL);
17660   ;
17661   return 0;
17662 }
17663 _ACEOF
17664 rm -f conftest.$ac_objext conftest$ac_exeext
17665 if { (ac_try="$ac_link"
17666 case "(($ac_try" in
17667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668   *) ac_try_echo=$ac_try;;
17669 esac
17670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17671 $as_echo "$ac_try_echo") >&5
17672   (eval "$ac_link") 2>conftest.er1
17673   ac_status=$?
17674   grep -v '^ *+' conftest.er1 >conftest.err
17675   rm -f conftest.er1
17676   cat conftest.err >&5
17677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); } && {
17679          test -z "$ac_c_werror_flag" ||
17680          test ! -s conftest.err
17681        } && test -s conftest$ac_exeext && {
17682          test "$cross_compiling" = yes ||
17683          $as_test_x conftest$ac_exeext
17684        }; then
17685
17686 cat >>confdefs.h <<\_ACEOF
17687 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17688 _ACEOF
17689
17690 { $as_echo "$as_me:$LINENO: result: yes" >&5
17691 $as_echo "yes" >&6; }
17692 else
17693   $as_echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696         { $as_echo "$as_me:$LINENO: result: no" >&5
17697 $as_echo "no" >&6; }
17698 fi
17699
17700 rm -rf conftest.dSYM
17701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17702       conftest$ac_exeext conftest.$ac_ext
17703 fi
17704
17705 # Check largefile support.  You might think this is a system service not a
17706 # compiler characteristic, but you'd be wrong.  We must check this before
17707 # probing existence of related functions such as fseeko, since the largefile
17708 # defines can affect what is generated for that.
17709 # Check whether --enable-largefile was given.
17710 if test "${enable_largefile+set}" = set; then
17711   enableval=$enable_largefile;
17712 fi
17713
17714 if test "$enable_largefile" != no; then
17715
17716   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17717 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17718 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17719   $as_echo_n "(cached) " >&6
17720 else
17721   ac_cv_sys_largefile_CC=no
17722      if test "$GCC" != yes; then
17723        ac_save_CC=$CC
17724        while :; do
17725          # IRIX 6.2 and later do not support large files by default,
17726          # so use the C compiler's -n32 option if that helps.
17727          cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733 #include <sys/types.h>
17734  /* Check that off_t can represent 2**63 - 1 correctly.
17735     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17736     since some C++ compilers masquerading as C compilers
17737     incorrectly reject 9223372036854775807.  */
17738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17739   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17740                        && LARGE_OFF_T % 2147483647 == 1)
17741                       ? 1 : -1];
17742 int
17743 main ()
17744 {
17745
17746   ;
17747   return 0;
17748 }
17749 _ACEOF
17750          rm -f conftest.$ac_objext
17751 if { (ac_try="$ac_compile"
17752 case "(($ac_try" in
17753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754   *) ac_try_echo=$ac_try;;
17755 esac
17756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17757 $as_echo "$ac_try_echo") >&5
17758   (eval "$ac_compile") 2>conftest.er1
17759   ac_status=$?
17760   grep -v '^ *+' conftest.er1 >conftest.err
17761   rm -f conftest.er1
17762   cat conftest.err >&5
17763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); } && {
17765          test -z "$ac_c_werror_flag" ||
17766          test ! -s conftest.err
17767        } && test -s conftest.$ac_objext; then
17768   break
17769 else
17770   $as_echo "$as_me: failed program was:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17772
17773
17774 fi
17775
17776 rm -f core conftest.err conftest.$ac_objext
17777          CC="$CC -n32"
17778          rm -f conftest.$ac_objext
17779 if { (ac_try="$ac_compile"
17780 case "(($ac_try" in
17781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782   *) ac_try_echo=$ac_try;;
17783 esac
17784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17785 $as_echo "$ac_try_echo") >&5
17786   (eval "$ac_compile") 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } && {
17793          test -z "$ac_c_werror_flag" ||
17794          test ! -s conftest.err
17795        } && test -s conftest.$ac_objext; then
17796   ac_cv_sys_largefile_CC=' -n32'; break
17797 else
17798   $as_echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801
17802 fi
17803
17804 rm -f core conftest.err conftest.$ac_objext
17805          break
17806        done
17807        CC=$ac_save_CC
17808        rm -f conftest.$ac_ext
17809     fi
17810 fi
17811 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17812 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17813   if test "$ac_cv_sys_largefile_CC" != no; then
17814     CC=$CC$ac_cv_sys_largefile_CC
17815   fi
17816
17817   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17818 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17819 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17820   $as_echo_n "(cached) " >&6
17821 else
17822   while :; do
17823   cat >conftest.$ac_ext <<_ACEOF
17824 /* confdefs.h.  */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h.  */
17829 #include <sys/types.h>
17830  /* Check that off_t can represent 2**63 - 1 correctly.
17831     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17832     since some C++ compilers masquerading as C compilers
17833     incorrectly reject 9223372036854775807.  */
17834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17835   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17836                        && LARGE_OFF_T % 2147483647 == 1)
17837                       ? 1 : -1];
17838 int
17839 main ()
17840 {
17841
17842   ;
17843   return 0;
17844 }
17845 _ACEOF
17846 rm -f conftest.$ac_objext
17847 if { (ac_try="$ac_compile"
17848 case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17853 $as_echo "$ac_try_echo") >&5
17854   (eval "$ac_compile") 2>conftest.er1
17855   ac_status=$?
17856   grep -v '^ *+' conftest.er1 >conftest.err
17857   rm -f conftest.er1
17858   cat conftest.err >&5
17859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); } && {
17861          test -z "$ac_c_werror_flag" ||
17862          test ! -s conftest.err
17863        } && test -s conftest.$ac_objext; then
17864   ac_cv_sys_file_offset_bits=no; break
17865 else
17866   $as_echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17868
17869
17870 fi
17871
17872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873   cat >conftest.$ac_ext <<_ACEOF
17874 /* confdefs.h.  */
17875 _ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h.  */
17879 #define _FILE_OFFSET_BITS 64
17880 #include <sys/types.h>
17881  /* Check that off_t can represent 2**63 - 1 correctly.
17882     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17883     since some C++ compilers masquerading as C compilers
17884     incorrectly reject 9223372036854775807.  */
17885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17886   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17887                        && LARGE_OFF_T % 2147483647 == 1)
17888                       ? 1 : -1];
17889 int
17890 main ()
17891 {
17892
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_sys_file_offset_bits=64; break
17916 else
17917   $as_echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920
17921 fi
17922
17923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17924   ac_cv_sys_file_offset_bits=unknown
17925   break
17926 done
17927 fi
17928 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17929 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17930 case $ac_cv_sys_file_offset_bits in #(
17931   no | unknown) ;;
17932   *)
17933 cat >>confdefs.h <<_ACEOF
17934 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17935 _ACEOF
17936 ;;
17937 esac
17938 rm -rf conftest*
17939   if test $ac_cv_sys_file_offset_bits = unknown; then
17940     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17941 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17942 if test "${ac_cv_sys_large_files+set}" = set; then
17943   $as_echo_n "(cached) " >&6
17944 else
17945   while :; do
17946   cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h.  */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h.  */
17952 #include <sys/types.h>
17953  /* Check that off_t can represent 2**63 - 1 correctly.
17954     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17955     since some C++ compilers masquerading as C compilers
17956     incorrectly reject 9223372036854775807.  */
17957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17958   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17959                        && LARGE_OFF_T % 2147483647 == 1)
17960                       ? 1 : -1];
17961 int
17962 main ()
17963 {
17964
17965   ;
17966   return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext
17970 if { (ac_try="$ac_compile"
17971 case "(($ac_try" in
17972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973   *) ac_try_echo=$ac_try;;
17974 esac
17975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17976 $as_echo "$ac_try_echo") >&5
17977   (eval "$ac_compile") 2>conftest.er1
17978   ac_status=$?
17979   grep -v '^ *+' conftest.er1 >conftest.err
17980   rm -f conftest.er1
17981   cat conftest.err >&5
17982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983   (exit $ac_status); } && {
17984          test -z "$ac_c_werror_flag" ||
17985          test ! -s conftest.err
17986        } && test -s conftest.$ac_objext; then
17987   ac_cv_sys_large_files=no; break
17988 else
17989   $as_echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992
17993 fi
17994
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17996   cat >conftest.$ac_ext <<_ACEOF
17997 /* confdefs.h.  */
17998 _ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h.  */
18002 #define _LARGE_FILES 1
18003 #include <sys/types.h>
18004  /* Check that off_t can represent 2**63 - 1 correctly.
18005     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18006     since some C++ compilers masquerading as C compilers
18007     incorrectly reject 9223372036854775807.  */
18008 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18009   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18010                        && LARGE_OFF_T % 2147483647 == 1)
18011                       ? 1 : -1];
18012 int
18013 main ()
18014 {
18015
18016   ;
18017   return 0;
18018 }
18019 _ACEOF
18020 rm -f conftest.$ac_objext
18021 if { (ac_try="$ac_compile"
18022 case "(($ac_try" in
18023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024   *) ac_try_echo=$ac_try;;
18025 esac
18026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18027 $as_echo "$ac_try_echo") >&5
18028   (eval "$ac_compile") 2>conftest.er1
18029   ac_status=$?
18030   grep -v '^ *+' conftest.er1 >conftest.err
18031   rm -f conftest.er1
18032   cat conftest.err >&5
18033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); } && {
18035          test -z "$ac_c_werror_flag" ||
18036          test ! -s conftest.err
18037        } && test -s conftest.$ac_objext; then
18038   ac_cv_sys_large_files=1; break
18039 else
18040   $as_echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18042
18043
18044 fi
18045
18046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18047   ac_cv_sys_large_files=unknown
18048   break
18049 done
18050 fi
18051 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18052 $as_echo "$ac_cv_sys_large_files" >&6; }
18053 case $ac_cv_sys_large_files in #(
18054   no | unknown) ;;
18055   *)
18056 cat >>confdefs.h <<_ACEOF
18057 #define _LARGE_FILES $ac_cv_sys_large_files
18058 _ACEOF
18059 ;;
18060 esac
18061 rm -rf conftest*
18062   fi
18063 fi
18064
18065
18066 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18067 # The cast to long int works around a bug in the HP C Compiler
18068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18070 # This bug is HP SR number 8606223364.
18071 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18072 $as_echo_n "checking size of off_t... " >&6; }
18073 if test "${ac_cv_sizeof_off_t+set}" = set; then
18074   $as_echo_n "(cached) " >&6
18075 else
18076   if test "$cross_compiling" = yes; then
18077   # Depending upon the size, compute the lo and hi bounds.
18078 cat >conftest.$ac_ext <<_ACEOF
18079 /* confdefs.h.  */
18080 _ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h.  */
18084 $ac_includes_default
18085 int
18086 main ()
18087 {
18088 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18089 test_array [0] = 0
18090
18091   ;
18092   return 0;
18093 }
18094 _ACEOF
18095 rm -f conftest.$ac_objext
18096 if { (ac_try="$ac_compile"
18097 case "(($ac_try" in
18098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099   *) ac_try_echo=$ac_try;;
18100 esac
18101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18102 $as_echo "$ac_try_echo") >&5
18103   (eval "$ac_compile") 2>conftest.er1
18104   ac_status=$?
18105   grep -v '^ *+' conftest.er1 >conftest.err
18106   rm -f conftest.er1
18107   cat conftest.err >&5
18108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109   (exit $ac_status); } && {
18110          test -z "$ac_c_werror_flag" ||
18111          test ! -s conftest.err
18112        } && test -s conftest.$ac_objext; then
18113   ac_lo=0 ac_mid=0
18114   while :; do
18115     cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h.  */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h.  */
18121 $ac_includes_default
18122 int
18123 main ()
18124 {
18125 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18126 test_array [0] = 0
18127
18128   ;
18129   return 0;
18130 }
18131 _ACEOF
18132 rm -f conftest.$ac_objext
18133 if { (ac_try="$ac_compile"
18134 case "(($ac_try" in
18135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136   *) ac_try_echo=$ac_try;;
18137 esac
18138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18139 $as_echo "$ac_try_echo") >&5
18140   (eval "$ac_compile") 2>conftest.er1
18141   ac_status=$?
18142   grep -v '^ *+' conftest.er1 >conftest.err
18143   rm -f conftest.er1
18144   cat conftest.err >&5
18145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146   (exit $ac_status); } && {
18147          test -z "$ac_c_werror_flag" ||
18148          test ! -s conftest.err
18149        } && test -s conftest.$ac_objext; then
18150   ac_hi=$ac_mid; break
18151 else
18152   $as_echo "$as_me: failed program was:" >&5
18153 sed 's/^/| /' conftest.$ac_ext >&5
18154
18155         ac_lo=`expr $ac_mid + 1`
18156                         if test $ac_lo -le $ac_mid; then
18157                           ac_lo= ac_hi=
18158                           break
18159                         fi
18160                         ac_mid=`expr 2 '*' $ac_mid + 1`
18161 fi
18162
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164   done
18165 else
18166   $as_echo "$as_me: failed program was:" >&5
18167 sed 's/^/| /' conftest.$ac_ext >&5
18168
18169         cat >conftest.$ac_ext <<_ACEOF
18170 /* confdefs.h.  */
18171 _ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h.  */
18175 $ac_includes_default
18176 int
18177 main ()
18178 {
18179 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18180 test_array [0] = 0
18181
18182   ;
18183   return 0;
18184 }
18185 _ACEOF
18186 rm -f conftest.$ac_objext
18187 if { (ac_try="$ac_compile"
18188 case "(($ac_try" in
18189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190   *) ac_try_echo=$ac_try;;
18191 esac
18192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18193 $as_echo "$ac_try_echo") >&5
18194   (eval "$ac_compile") 2>conftest.er1
18195   ac_status=$?
18196   grep -v '^ *+' conftest.er1 >conftest.err
18197   rm -f conftest.er1
18198   cat conftest.err >&5
18199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); } && {
18201          test -z "$ac_c_werror_flag" ||
18202          test ! -s conftest.err
18203        } && test -s conftest.$ac_objext; then
18204   ac_hi=-1 ac_mid=-1
18205   while :; do
18206     cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h.  */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h.  */
18212 $ac_includes_default
18213 int
18214 main ()
18215 {
18216 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18217 test_array [0] = 0
18218
18219   ;
18220   return 0;
18221 }
18222 _ACEOF
18223 rm -f conftest.$ac_objext
18224 if { (ac_try="$ac_compile"
18225 case "(($ac_try" in
18226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18227   *) ac_try_echo=$ac_try;;
18228 esac
18229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18230 $as_echo "$ac_try_echo") >&5
18231   (eval "$ac_compile") 2>conftest.er1
18232   ac_status=$?
18233   grep -v '^ *+' conftest.er1 >conftest.err
18234   rm -f conftest.er1
18235   cat conftest.err >&5
18236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); } && {
18238          test -z "$ac_c_werror_flag" ||
18239          test ! -s conftest.err
18240        } && test -s conftest.$ac_objext; then
18241   ac_lo=$ac_mid; break
18242 else
18243   $as_echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18245
18246         ac_hi=`expr '(' $ac_mid ')' - 1`
18247                         if test $ac_mid -le $ac_hi; then
18248                           ac_lo= ac_hi=
18249                           break
18250                         fi
18251                         ac_mid=`expr 2 '*' $ac_mid`
18252 fi
18253
18254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18255   done
18256 else
18257   $as_echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18259
18260         ac_lo= ac_hi=
18261 fi
18262
18263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18264 fi
18265
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267 # Binary search between lo and hi bounds.
18268 while test "x$ac_lo" != "x$ac_hi"; do
18269   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18270   cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h.  */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h.  */
18276 $ac_includes_default
18277 int
18278 main ()
18279 {
18280 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18281 test_array [0] = 0
18282
18283   ;
18284   return 0;
18285 }
18286 _ACEOF
18287 rm -f conftest.$ac_objext
18288 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
18305   ac_hi=$ac_mid
18306 else
18307   $as_echo "$as_me: failed program was:" >&5
18308 sed 's/^/| /' conftest.$ac_ext >&5
18309
18310         ac_lo=`expr '(' $ac_mid ')' + 1`
18311 fi
18312
18313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18314 done
18315 case $ac_lo in
18316 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18317 '') if test "$ac_cv_type_off_t" = yes; then
18318      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18320 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18321 See \`config.log' for more details." >&5
18322 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18323 See \`config.log' for more details." >&2;}
18324    { (exit 77); exit 77; }; }; }
18325    else
18326      ac_cv_sizeof_off_t=0
18327    fi ;;
18328 esac
18329 else
18330   cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336 $ac_includes_default
18337 static long int longval () { return (long int) (sizeof (off_t)); }
18338 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18339 #include <stdio.h>
18340 #include <stdlib.h>
18341 int
18342 main ()
18343 {
18344
18345   FILE *f = fopen ("conftest.val", "w");
18346   if (! f)
18347     return 1;
18348   if (((long int) (sizeof (off_t))) < 0)
18349     {
18350       long int i = longval ();
18351       if (i != ((long int) (sizeof (off_t))))
18352         return 1;
18353       fprintf (f, "%ld", i);
18354     }
18355   else
18356     {
18357       unsigned long int i = ulongval ();
18358       if (i != ((long int) (sizeof (off_t))))
18359         return 1;
18360       fprintf (f, "%lu", i);
18361     }
18362   /* Do not output a trailing newline, as this causes \r\n confusion
18363      on some platforms.  */
18364   return ferror (f) || fclose (f) != 0;
18365
18366   ;
18367   return 0;
18368 }
18369 _ACEOF
18370 rm -f conftest$ac_exeext
18371 if { (ac_try="$ac_link"
18372 case "(($ac_try" in
18373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374   *) ac_try_echo=$ac_try;;
18375 esac
18376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18377 $as_echo "$ac_try_echo") >&5
18378   (eval "$ac_link") 2>&5
18379   ac_status=$?
18380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18382   { (case "(($ac_try" in
18383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384   *) ac_try_echo=$ac_try;;
18385 esac
18386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18387 $as_echo "$ac_try_echo") >&5
18388   (eval "$ac_try") 2>&5
18389   ac_status=$?
18390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391   (exit $ac_status); }; }; then
18392   ac_cv_sizeof_off_t=`cat conftest.val`
18393 else
18394   $as_echo "$as_me: program exited with status $ac_status" >&5
18395 $as_echo "$as_me: failed program was:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18397
18398 ( exit $ac_status )
18399 if test "$ac_cv_type_off_t" = yes; then
18400      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18402 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18403 See \`config.log' for more details." >&5
18404 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18405 See \`config.log' for more details." >&2;}
18406    { (exit 77); exit 77; }; }; }
18407    else
18408      ac_cv_sizeof_off_t=0
18409    fi
18410 fi
18411 rm -rf conftest.dSYM
18412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18413 fi
18414 rm -f conftest.val
18415 fi
18416 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18417 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18418
18419
18420
18421 cat >>confdefs.h <<_ACEOF
18422 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18423 _ACEOF
18424
18425
18426
18427 # If we don't have largefile support, can't handle segsize >= 2GB.
18428 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18429    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18430 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18431    { (exit 1); exit 1; }; }
18432 fi
18433
18434
18435 ##
18436 ## Functions, global variables
18437 ##
18438
18439 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18440 $as_echo_n "checking for int timezone... " >&6; }
18441 if test "${pgac_cv_var_int_timezone+set}" = set; then
18442   $as_echo_n "(cached) " >&6
18443 else
18444   cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h.  */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h.  */
18450 #include <time.h>
18451 int res;
18452 int
18453 main ()
18454 {
18455 #ifndef __CYGWIN__
18456 res = timezone / 60;
18457 #else
18458 res = _timezone / 60;
18459 #endif
18460   ;
18461   return 0;
18462 }
18463 _ACEOF
18464 rm -f conftest.$ac_objext conftest$ac_exeext
18465 if { (ac_try="$ac_link"
18466 case "(($ac_try" in
18467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468   *) ac_try_echo=$ac_try;;
18469 esac
18470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18471 $as_echo "$ac_try_echo") >&5
18472   (eval "$ac_link") 2>conftest.er1
18473   ac_status=$?
18474   grep -v '^ *+' conftest.er1 >conftest.err
18475   rm -f conftest.er1
18476   cat conftest.err >&5
18477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478   (exit $ac_status); } && {
18479          test -z "$ac_c_werror_flag" ||
18480          test ! -s conftest.err
18481        } && test -s conftest$ac_exeext && {
18482          test "$cross_compiling" = yes ||
18483          $as_test_x conftest$ac_exeext
18484        }; then
18485   pgac_cv_var_int_timezone=yes
18486 else
18487   $as_echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18489
18490         pgac_cv_var_int_timezone=no
18491 fi
18492
18493 rm -rf conftest.dSYM
18494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18495       conftest$ac_exeext conftest.$ac_ext
18496 fi
18497 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18498 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18499 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18500
18501 cat >>confdefs.h <<\_ACEOF
18502 #define HAVE_INT_TIMEZONE /**/
18503 _ACEOF
18504
18505 fi
18506 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18507 $as_echo_n "checking types of arguments for accept()... " >&6; }
18508  if test "${ac_cv_func_accept_return+set}" = set; then
18509   $as_echo_n "(cached) " >&6
18510 else
18511    if test "${ac_cv_func_accept_arg1+set}" = set; then
18512   $as_echo_n "(cached) " >&6
18513 else
18514     if test "${ac_cv_func_accept_arg2+set}" = set; then
18515   $as_echo_n "(cached) " >&6
18516 else
18517      if test "${ac_cv_func_accept_arg3+set}" = set; then
18518   $as_echo_n "(cached) " >&6
18519 else
18520       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
18521       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
18522        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18523         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18524          cat >conftest.$ac_ext <<_ACEOF
18525 /* confdefs.h.  */
18526 _ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h.  */
18530 #ifdef HAVE_SYS_TYPES_H
18531 #include <sys/types.h>
18532 #endif
18533 #ifdef HAVE_SYS_SOCKET_H
18534 #include <sys/socket.h>
18535 #endif
18536 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18537 int
18538 main ()
18539 {
18540
18541   ;
18542   return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext
18546 if { (ac_try="$ac_compile"
18547 case "(($ac_try" in
18548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549   *) ac_try_echo=$ac_try;;
18550 esac
18551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18552 $as_echo "$ac_try_echo") >&5
18553   (eval "$ac_compile") 2>conftest.er1
18554   ac_status=$?
18555   grep -v '^ *+' conftest.er1 >conftest.err
18556   rm -f conftest.er1
18557   cat conftest.err >&5
18558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559   (exit $ac_status); } && {
18560          test -z "$ac_c_werror_flag" ||
18561          test ! -s conftest.err
18562        } && test -s conftest.$ac_objext; then
18563   ac_not_found=no; break 4
18564 else
18565   $as_echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568         ac_not_found=yes
18569 fi
18570
18571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18572        done
18573       done
18574      done
18575     done
18576     if test "$ac_not_found" = yes; then
18577       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18578 $as_echo "$as_me: error: could not determine argument types" >&2;}
18579    { (exit 1); exit 1; }; }
18580     fi
18581     if test "$ac_cv_func_accept_arg3" = "void"; then
18582       ac_cv_func_accept_arg3=int
18583     fi
18584
18585 fi
18586
18587 fi
18588
18589 fi
18590
18591 fi
18592  { $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
18593 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18594
18595 cat >>confdefs.h <<_ACEOF
18596 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18597 _ACEOF
18598
18599
18600 cat >>confdefs.h <<_ACEOF
18601 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18602 _ACEOF
18603
18604
18605 cat >>confdefs.h <<_ACEOF
18606 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18607 _ACEOF
18608
18609
18610 cat >>confdefs.h <<_ACEOF
18611 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18612 _ACEOF
18613
18614
18615 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18616 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18617 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18618   $as_echo_n "(cached) " >&6
18619 else
18620   cat >conftest.$ac_ext <<_ACEOF
18621 /* confdefs.h.  */
18622 _ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h.  */
18626 #include <sys/time.h>
18627 int
18628 main ()
18629 {
18630 struct timeval *tp;
18631 struct timezone *tzp;
18632 gettimeofday(tp,tzp);
18633   ;
18634   return 0;
18635 }
18636 _ACEOF
18637 rm -f conftest.$ac_objext
18638 if { (ac_try="$ac_compile"
18639 case "(($ac_try" in
18640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641   *) ac_try_echo=$ac_try;;
18642 esac
18643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18644 $as_echo "$ac_try_echo") >&5
18645   (eval "$ac_compile") 2>conftest.er1
18646   ac_status=$?
18647   grep -v '^ *+' conftest.er1 >conftest.err
18648   rm -f conftest.er1
18649   cat conftest.err >&5
18650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); } && {
18652          test -z "$ac_c_werror_flag" ||
18653          test ! -s conftest.err
18654        } && test -s conftest.$ac_objext; then
18655   pgac_cv_func_gettimeofday_1arg=no
18656 else
18657   $as_echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18659
18660         pgac_cv_func_gettimeofday_1arg=yes
18661 fi
18662
18663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664 fi
18665 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18666 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18667 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18668
18669 cat >>confdefs.h <<\_ACEOF
18670 #define GETTIMEOFDAY_1ARG /**/
18671 _ACEOF
18672
18673 fi
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
18701 do
18702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18703 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18704 $as_echo_n "checking for $ac_func... " >&6; }
18705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18706   $as_echo_n "(cached) " >&6
18707 else
18708   cat >conftest.$ac_ext <<_ACEOF
18709 /* confdefs.h.  */
18710 _ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h.  */
18714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18716 #define $ac_func innocuous_$ac_func
18717
18718 /* System header to define __stub macros and hopefully few prototypes,
18719     which can conflict with char $ac_func (); below.
18720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18721     <limits.h> exists even on freestanding compilers.  */
18722
18723 #ifdef __STDC__
18724 # include <limits.h>
18725 #else
18726 # include <assert.h>
18727 #endif
18728
18729 #undef $ac_func
18730
18731 /* Override any GCC internal prototype to avoid an error.
18732    Use char because int might match the return type of a GCC
18733    builtin and then its argument prototype would still apply.  */
18734 #ifdef __cplusplus
18735 extern "C"
18736 #endif
18737 char $ac_func ();
18738 /* The GNU C library defines this for functions which it implements
18739     to always fail with ENOSYS.  Some functions are actually named
18740     something starting with __ and the normal name is an alias.  */
18741 #if defined __stub_$ac_func || defined __stub___$ac_func
18742 choke me
18743 #endif
18744
18745 int
18746 main ()
18747 {
18748 return $ac_func ();
18749   ;
18750   return 0;
18751 }
18752 _ACEOF
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18760 $as_echo "$ac_try_echo") >&5
18761   (eval "$ac_link") 2>conftest.er1
18762   ac_status=$?
18763   grep -v '^ *+' conftest.er1 >conftest.err
18764   rm -f conftest.er1
18765   cat conftest.err >&5
18766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767   (exit $ac_status); } && {
18768          test -z "$ac_c_werror_flag" ||
18769          test ! -s conftest.err
18770        } && test -s conftest$ac_exeext && {
18771          test "$cross_compiling" = yes ||
18772          $as_test_x conftest$ac_exeext
18773        }; then
18774   eval "$as_ac_var=yes"
18775 else
18776   $as_echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779         eval "$as_ac_var=no"
18780 fi
18781
18782 rm -rf conftest.dSYM
18783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18784       conftest$ac_exeext conftest.$ac_ext
18785 fi
18786 ac_res=`eval 'as_val=${'$as_ac_var'}
18787                  $as_echo "$as_val"'`
18788                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18789 $as_echo "$ac_res" >&6; }
18790 as_val=`eval 'as_val=${'$as_ac_var'}
18791                  $as_echo "$as_val"'`
18792    if test "x$as_val" = x""yes; then
18793   cat >>confdefs.h <<_ACEOF
18794 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18795 _ACEOF
18796
18797 fi
18798 done
18799
18800
18801
18802 for ac_func in fseeko
18803 do
18804 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18805 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18806 $as_echo_n "checking for $ac_func... " >&6; }
18807 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18808   $as_echo_n "(cached) " >&6
18809 else
18810   cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h.  */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h.  */
18816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18818 #define $ac_func innocuous_$ac_func
18819
18820 /* System header to define __stub macros and hopefully few prototypes,
18821     which can conflict with char $ac_func (); below.
18822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18823     <limits.h> exists even on freestanding compilers.  */
18824
18825 #ifdef __STDC__
18826 # include <limits.h>
18827 #else
18828 # include <assert.h>
18829 #endif
18830
18831 #undef $ac_func
18832
18833 /* Override any GCC internal prototype to avoid an error.
18834    Use char because int might match the return type of a GCC
18835    builtin and then its argument prototype would still apply.  */
18836 #ifdef __cplusplus
18837 extern "C"
18838 #endif
18839 char $ac_func ();
18840 /* The GNU C library defines this for functions which it implements
18841     to always fail with ENOSYS.  Some functions are actually named
18842     something starting with __ and the normal name is an alias.  */
18843 #if defined __stub_$ac_func || defined __stub___$ac_func
18844 choke me
18845 #endif
18846
18847 int
18848 main ()
18849 {
18850 return $ac_func ();
18851   ;
18852   return 0;
18853 }
18854 _ACEOF
18855 rm -f conftest.$ac_objext conftest$ac_exeext
18856 if { (ac_try="$ac_link"
18857 case "(($ac_try" in
18858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859   *) ac_try_echo=$ac_try;;
18860 esac
18861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18862 $as_echo "$ac_try_echo") >&5
18863   (eval "$ac_link") 2>conftest.er1
18864   ac_status=$?
18865   grep -v '^ *+' conftest.er1 >conftest.err
18866   rm -f conftest.er1
18867   cat conftest.err >&5
18868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); } && {
18870          test -z "$ac_c_werror_flag" ||
18871          test ! -s conftest.err
18872        } && test -s conftest$ac_exeext && {
18873          test "$cross_compiling" = yes ||
18874          $as_test_x conftest$ac_exeext
18875        }; then
18876   eval "$as_ac_var=yes"
18877 else
18878   $as_echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18880
18881         eval "$as_ac_var=no"
18882 fi
18883
18884 rm -rf conftest.dSYM
18885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18886       conftest$ac_exeext conftest.$ac_ext
18887 fi
18888 ac_res=`eval 'as_val=${'$as_ac_var'}
18889                  $as_echo "$as_val"'`
18890                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18891 $as_echo "$ac_res" >&6; }
18892 as_val=`eval 'as_val=${'$as_ac_var'}
18893                  $as_echo "$as_val"'`
18894    if test "x$as_val" = x""yes; then
18895   cat >>confdefs.h <<_ACEOF
18896 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18897 _ACEOF
18898
18899 else
18900   case " $LIBOBJS " in
18901   *" $ac_func.$ac_objext "* ) ;;
18902   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18903  ;;
18904 esac
18905
18906 fi
18907 done
18908
18909
18910 case $host_os in
18911         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18912         # Mingw uses macros to access Win32 API calls
18913         bsdi*|netbsd*|mingw*)
18914
18915 cat >>confdefs.h <<\_ACEOF
18916 #define HAVE_FSEEKO 1
18917 _ACEOF
18918
18919                 ac_cv_func_fseeko=yes;;
18920         *)
18921                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18922 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18923 if test "${ac_cv_sys_largefile_source+set}" = set; then
18924   $as_echo_n "(cached) " >&6
18925 else
18926   while :; do
18927   cat >conftest.$ac_ext <<_ACEOF
18928 /* confdefs.h.  */
18929 _ACEOF
18930 cat confdefs.h >>conftest.$ac_ext
18931 cat >>conftest.$ac_ext <<_ACEOF
18932 /* end confdefs.h.  */
18933 #include <sys/types.h> /* for off_t */
18934      #include <stdio.h>
18935 int
18936 main ()
18937 {
18938 int (*fp) (FILE *, off_t, int) = fseeko;
18939      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18940   ;
18941   return 0;
18942 }
18943 _ACEOF
18944 rm -f conftest.$ac_objext conftest$ac_exeext
18945 if { (ac_try="$ac_link"
18946 case "(($ac_try" in
18947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948   *) ac_try_echo=$ac_try;;
18949 esac
18950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18951 $as_echo "$ac_try_echo") >&5
18952   (eval "$ac_link") 2>conftest.er1
18953   ac_status=$?
18954   grep -v '^ *+' conftest.er1 >conftest.err
18955   rm -f conftest.er1
18956   cat conftest.err >&5
18957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } && {
18959          test -z "$ac_c_werror_flag" ||
18960          test ! -s conftest.err
18961        } && test -s conftest$ac_exeext && {
18962          test "$cross_compiling" = yes ||
18963          $as_test_x conftest$ac_exeext
18964        }; then
18965   ac_cv_sys_largefile_source=no; break
18966 else
18967   $as_echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970
18971 fi
18972
18973 rm -rf conftest.dSYM
18974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18975       conftest$ac_exeext conftest.$ac_ext
18976   cat >conftest.$ac_ext <<_ACEOF
18977 /* confdefs.h.  */
18978 _ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h.  */
18982 #define _LARGEFILE_SOURCE 1
18983 #include <sys/types.h> /* for off_t */
18984      #include <stdio.h>
18985 int
18986 main ()
18987 {
18988 int (*fp) (FILE *, off_t, int) = fseeko;
18989      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18990   ;
18991   return 0;
18992 }
18993 _ACEOF
18994 rm -f conftest.$ac_objext conftest$ac_exeext
18995 if { (ac_try="$ac_link"
18996 case "(($ac_try" in
18997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998   *) ac_try_echo=$ac_try;;
18999 esac
19000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19001 $as_echo "$ac_try_echo") >&5
19002   (eval "$ac_link") 2>conftest.er1
19003   ac_status=$?
19004   grep -v '^ *+' conftest.er1 >conftest.err
19005   rm -f conftest.er1
19006   cat conftest.err >&5
19007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); } && {
19009          test -z "$ac_c_werror_flag" ||
19010          test ! -s conftest.err
19011        } && test -s conftest$ac_exeext && {
19012          test "$cross_compiling" = yes ||
19013          $as_test_x conftest$ac_exeext
19014        }; then
19015   ac_cv_sys_largefile_source=1; break
19016 else
19017   $as_echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19019
19020
19021 fi
19022
19023 rm -rf conftest.dSYM
19024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19025       conftest$ac_exeext conftest.$ac_ext
19026   ac_cv_sys_largefile_source=unknown
19027   break
19028 done
19029 fi
19030 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19031 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19032 case $ac_cv_sys_largefile_source in #(
19033   no | unknown) ;;
19034   *)
19035 cat >>confdefs.h <<_ACEOF
19036 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19037 _ACEOF
19038 ;;
19039 esac
19040 rm -rf conftest*
19041
19042 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19043 # in glibc 2.1.3, but that breaks too many other things.
19044 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19045 if test $ac_cv_sys_largefile_source != unknown; then
19046
19047 cat >>confdefs.h <<\_ACEOF
19048 #define HAVE_FSEEKO 1
19049 _ACEOF
19050
19051 fi
19052 ;;
19053 esac
19054
19055 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19056 # by calling it, 2009-04-02
19057 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19058 if test "$PORTNAME" != "solaris"; then
19059
19060 for ac_func in posix_fadvise
19061 do
19062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19063 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19064 $as_echo_n "checking for $ac_func... " >&6; }
19065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19066   $as_echo_n "(cached) " >&6
19067 else
19068   cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h.  */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h.  */
19074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19076 #define $ac_func innocuous_$ac_func
19077
19078 /* System header to define __stub macros and hopefully few prototypes,
19079     which can conflict with char $ac_func (); below.
19080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19081     <limits.h> exists even on freestanding compilers.  */
19082
19083 #ifdef __STDC__
19084 # include <limits.h>
19085 #else
19086 # include <assert.h>
19087 #endif
19088
19089 #undef $ac_func
19090
19091 /* Override any GCC internal prototype to avoid an error.
19092    Use char because int might match the return type of a GCC
19093    builtin and then its argument prototype would still apply.  */
19094 #ifdef __cplusplus
19095 extern "C"
19096 #endif
19097 char $ac_func ();
19098 /* The GNU C library defines this for functions which it implements
19099     to always fail with ENOSYS.  Some functions are actually named
19100     something starting with __ and the normal name is an alias.  */
19101 #if defined __stub_$ac_func || defined __stub___$ac_func
19102 choke me
19103 #endif
19104
19105 int
19106 main ()
19107 {
19108 return $ac_func ();
19109   ;
19110   return 0;
19111 }
19112 _ACEOF
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117   *) ac_try_echo=$ac_try;;
19118 esac
19119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19120 $as_echo "$ac_try_echo") >&5
19121   (eval "$ac_link") 2>conftest.er1
19122   ac_status=$?
19123   grep -v '^ *+' conftest.er1 >conftest.err
19124   rm -f conftest.er1
19125   cat conftest.err >&5
19126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); } && {
19128          test -z "$ac_c_werror_flag" ||
19129          test ! -s conftest.err
19130        } && test -s conftest$ac_exeext && {
19131          test "$cross_compiling" = yes ||
19132          $as_test_x conftest$ac_exeext
19133        }; then
19134   eval "$as_ac_var=yes"
19135 else
19136   $as_echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19138
19139         eval "$as_ac_var=no"
19140 fi
19141
19142 rm -rf conftest.dSYM
19143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19144       conftest$ac_exeext conftest.$ac_ext
19145 fi
19146 ac_res=`eval 'as_val=${'$as_ac_var'}
19147                  $as_echo "$as_val"'`
19148                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19149 $as_echo "$ac_res" >&6; }
19150 as_val=`eval 'as_val=${'$as_ac_var'}
19151                  $as_echo "$as_val"'`
19152    if test "x$as_val" = x""yes; then
19153   cat >>confdefs.h <<_ACEOF
19154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19155 _ACEOF
19156
19157 fi
19158 done
19159
19160 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19161 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19162 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19163   $as_echo_n "(cached) " >&6
19164 else
19165   cat >conftest.$ac_ext <<_ACEOF
19166 /* confdefs.h.  */
19167 _ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h.  */
19171 #include <fcntl.h>
19172
19173 int
19174 main ()
19175 {
19176 #ifndef posix_fadvise
19177   (void) posix_fadvise;
19178 #endif
19179
19180   ;
19181   return 0;
19182 }
19183 _ACEOF
19184 rm -f conftest.$ac_objext
19185 if { (ac_try="$ac_compile"
19186 case "(($ac_try" in
19187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188   *) ac_try_echo=$ac_try;;
19189 esac
19190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19191 $as_echo "$ac_try_echo") >&5
19192   (eval "$ac_compile") 2>conftest.er1
19193   ac_status=$?
19194   grep -v '^ *+' conftest.er1 >conftest.err
19195   rm -f conftest.er1
19196   cat conftest.err >&5
19197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); } && {
19199          test -z "$ac_c_werror_flag" ||
19200          test ! -s conftest.err
19201        } && test -s conftest.$ac_objext; then
19202   ac_cv_have_decl_posix_fadvise=yes
19203 else
19204   $as_echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19206
19207         ac_cv_have_decl_posix_fadvise=no
19208 fi
19209
19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211 fi
19212 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19213 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19214 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19215
19216 cat >>confdefs.h <<_ACEOF
19217 #define HAVE_DECL_POSIX_FADVISE 1
19218 _ACEOF
19219
19220
19221 else
19222   cat >>confdefs.h <<_ACEOF
19223 #define HAVE_DECL_POSIX_FADVISE 0
19224 _ACEOF
19225
19226
19227 fi
19228
19229
19230 fi
19231
19232 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19233 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19234 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19235   $as_echo_n "(cached) " >&6
19236 else
19237   cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h.  */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h.  */
19243 #include <unistd.h>
19244
19245 int
19246 main ()
19247 {
19248 #ifndef fdatasync
19249   (void) fdatasync;
19250 #endif
19251
19252   ;
19253   return 0;
19254 }
19255 _ACEOF
19256 rm -f conftest.$ac_objext
19257 if { (ac_try="$ac_compile"
19258 case "(($ac_try" in
19259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260   *) ac_try_echo=$ac_try;;
19261 esac
19262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19263 $as_echo "$ac_try_echo") >&5
19264   (eval "$ac_compile") 2>conftest.er1
19265   ac_status=$?
19266   grep -v '^ *+' conftest.er1 >conftest.err
19267   rm -f conftest.er1
19268   cat conftest.err >&5
19269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19270   (exit $ac_status); } && {
19271          test -z "$ac_c_werror_flag" ||
19272          test ! -s conftest.err
19273        } && test -s conftest.$ac_objext; then
19274   ac_cv_have_decl_fdatasync=yes
19275 else
19276   $as_echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19278
19279         ac_cv_have_decl_fdatasync=no
19280 fi
19281
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 fi
19284 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19285 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19286 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19287
19288 cat >>confdefs.h <<_ACEOF
19289 #define HAVE_DECL_FDATASYNC 1
19290 _ACEOF
19291
19292
19293 else
19294   cat >>confdefs.h <<_ACEOF
19295 #define HAVE_DECL_FDATASYNC 0
19296 _ACEOF
19297
19298
19299 fi
19300
19301
19302 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19303 $as_echo_n "checking whether strlcat is declared... " >&6; }
19304 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19305   $as_echo_n "(cached) " >&6
19306 else
19307   cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h.  */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h.  */
19313 $ac_includes_default
19314 int
19315 main ()
19316 {
19317 #ifndef strlcat
19318   (void) strlcat;
19319 #endif
19320
19321   ;
19322   return 0;
19323 }
19324 _ACEOF
19325 rm -f conftest.$ac_objext
19326 if { (ac_try="$ac_compile"
19327 case "(($ac_try" in
19328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329   *) ac_try_echo=$ac_try;;
19330 esac
19331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19332 $as_echo "$ac_try_echo") >&5
19333   (eval "$ac_compile") 2>conftest.er1
19334   ac_status=$?
19335   grep -v '^ *+' conftest.er1 >conftest.err
19336   rm -f conftest.er1
19337   cat conftest.err >&5
19338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); } && {
19340          test -z "$ac_c_werror_flag" ||
19341          test ! -s conftest.err
19342        } && test -s conftest.$ac_objext; then
19343   ac_cv_have_decl_strlcat=yes
19344 else
19345   $as_echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19347
19348         ac_cv_have_decl_strlcat=no
19349 fi
19350
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19352 fi
19353 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19354 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19355 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19356
19357 cat >>confdefs.h <<_ACEOF
19358 #define HAVE_DECL_STRLCAT 1
19359 _ACEOF
19360
19361
19362 else
19363   cat >>confdefs.h <<_ACEOF
19364 #define HAVE_DECL_STRLCAT 0
19365 _ACEOF
19366
19367
19368 fi
19369 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19370 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19371 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19372   $as_echo_n "(cached) " >&6
19373 else
19374   cat >conftest.$ac_ext <<_ACEOF
19375 /* confdefs.h.  */
19376 _ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h.  */
19380 $ac_includes_default
19381 int
19382 main ()
19383 {
19384 #ifndef strlcpy
19385   (void) strlcpy;
19386 #endif
19387
19388   ;
19389   return 0;
19390 }
19391 _ACEOF
19392 rm -f conftest.$ac_objext
19393 if { (ac_try="$ac_compile"
19394 case "(($ac_try" in
19395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396   *) ac_try_echo=$ac_try;;
19397 esac
19398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19399 $as_echo "$ac_try_echo") >&5
19400   (eval "$ac_compile") 2>conftest.er1
19401   ac_status=$?
19402   grep -v '^ *+' conftest.er1 >conftest.err
19403   rm -f conftest.er1
19404   cat conftest.err >&5
19405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); } && {
19407          test -z "$ac_c_werror_flag" ||
19408          test ! -s conftest.err
19409        } && test -s conftest.$ac_objext; then
19410   ac_cv_have_decl_strlcpy=yes
19411 else
19412   $as_echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19414
19415         ac_cv_have_decl_strlcpy=no
19416 fi
19417
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 fi
19420 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19421 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19422 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19423
19424 cat >>confdefs.h <<_ACEOF
19425 #define HAVE_DECL_STRLCPY 1
19426 _ACEOF
19427
19428
19429 else
19430   cat >>confdefs.h <<_ACEOF
19431 #define HAVE_DECL_STRLCPY 0
19432 _ACEOF
19433
19434
19435 fi
19436
19437
19438 # This is probably only present on Darwin, but may as well check always
19439 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19440 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19441 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19442   $as_echo_n "(cached) " >&6
19443 else
19444   cat >conftest.$ac_ext <<_ACEOF
19445 /* confdefs.h.  */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h.  */
19450 #include <fcntl.h>
19451
19452 int
19453 main ()
19454 {
19455 #ifndef F_FULLFSYNC
19456   (void) F_FULLFSYNC;
19457 #endif
19458
19459   ;
19460   return 0;
19461 }
19462 _ACEOF
19463 rm -f conftest.$ac_objext
19464 if { (ac_try="$ac_compile"
19465 case "(($ac_try" in
19466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467   *) ac_try_echo=$ac_try;;
19468 esac
19469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19470 $as_echo "$ac_try_echo") >&5
19471   (eval "$ac_compile") 2>conftest.er1
19472   ac_status=$?
19473   grep -v '^ *+' conftest.er1 >conftest.err
19474   rm -f conftest.er1
19475   cat conftest.err >&5
19476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); } && {
19478          test -z "$ac_c_werror_flag" ||
19479          test ! -s conftest.err
19480        } && test -s conftest.$ac_objext; then
19481   ac_cv_have_decl_F_FULLFSYNC=yes
19482 else
19483   $as_echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486         ac_cv_have_decl_F_FULLFSYNC=no
19487 fi
19488
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19490 fi
19491 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19492 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19493 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19494
19495 cat >>confdefs.h <<_ACEOF
19496 #define HAVE_DECL_F_FULLFSYNC 1
19497 _ACEOF
19498
19499
19500 else
19501   cat >>confdefs.h <<_ACEOF
19502 #define HAVE_DECL_F_FULLFSYNC 0
19503 _ACEOF
19504
19505
19506 fi
19507
19508
19509
19510 HAVE_IPV6=no
19511 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19512 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19513 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19514   $as_echo_n "(cached) " >&6
19515 else
19516   ac_cv_type_struct_sockaddr_in6=no
19517 cat >conftest.$ac_ext <<_ACEOF
19518 /* confdefs.h.  */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h.  */
19523 $ac_includes_default
19524 #include <netinet/in.h>
19525
19526 int
19527 main ()
19528 {
19529 if (sizeof (struct sockaddr_in6))
19530        return 0;
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext
19536 if { (ac_try="$ac_compile"
19537 case "(($ac_try" in
19538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539   *) ac_try_echo=$ac_try;;
19540 esac
19541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19542 $as_echo "$ac_try_echo") >&5
19543   (eval "$ac_compile") 2>conftest.er1
19544   ac_status=$?
19545   grep -v '^ *+' conftest.er1 >conftest.err
19546   rm -f conftest.er1
19547   cat conftest.err >&5
19548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); } && {
19550          test -z "$ac_c_werror_flag" ||
19551          test ! -s conftest.err
19552        } && test -s conftest.$ac_objext; then
19553   cat >conftest.$ac_ext <<_ACEOF
19554 /* confdefs.h.  */
19555 _ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h.  */
19559 $ac_includes_default
19560 #include <netinet/in.h>
19561
19562 int
19563 main ()
19564 {
19565 if (sizeof ((struct sockaddr_in6)))
19566           return 0;
19567   ;
19568   return 0;
19569 }
19570 _ACEOF
19571 rm -f conftest.$ac_objext
19572 if { (ac_try="$ac_compile"
19573 case "(($ac_try" in
19574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575   *) ac_try_echo=$ac_try;;
19576 esac
19577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19578 $as_echo "$ac_try_echo") >&5
19579   (eval "$ac_compile") 2>conftest.er1
19580   ac_status=$?
19581   grep -v '^ *+' conftest.er1 >conftest.err
19582   rm -f conftest.er1
19583   cat conftest.err >&5
19584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); } && {
19586          test -z "$ac_c_werror_flag" ||
19587          test ! -s conftest.err
19588        } && test -s conftest.$ac_objext; then
19589   :
19590 else
19591   $as_echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594         ac_cv_type_struct_sockaddr_in6=yes
19595 fi
19596
19597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19598 else
19599   $as_echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602
19603 fi
19604
19605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19606 fi
19607 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19608 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19609 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19610
19611 cat >>confdefs.h <<\_ACEOF
19612 #define HAVE_IPV6 1
19613 _ACEOF
19614
19615          HAVE_IPV6=yes
19616 fi
19617
19618
19619
19620 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19621 $as_echo_n "checking for PS_STRINGS... " >&6; }
19622 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19623   $as_echo_n "(cached) " >&6
19624 else
19625   cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 #include <machine/vmparam.h>
19632 #include <sys/exec.h>
19633
19634 int
19635 main ()
19636 {
19637 PS_STRINGS->ps_nargvstr = 1;
19638 PS_STRINGS->ps_argvstr = "foo";
19639   ;
19640   return 0;
19641 }
19642 _ACEOF
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (ac_try="$ac_link"
19645 case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19650 $as_echo "$ac_try_echo") >&5
19651   (eval "$ac_link") 2>conftest.er1
19652   ac_status=$?
19653   grep -v '^ *+' conftest.er1 >conftest.err
19654   rm -f conftest.er1
19655   cat conftest.err >&5
19656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); } && {
19658          test -z "$ac_c_werror_flag" ||
19659          test ! -s conftest.err
19660        } && test -s conftest$ac_exeext && {
19661          test "$cross_compiling" = yes ||
19662          $as_test_x conftest$ac_exeext
19663        }; then
19664   pgac_cv_var_PS_STRINGS=yes
19665 else
19666   $as_echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669         pgac_cv_var_PS_STRINGS=no
19670 fi
19671
19672 rm -rf conftest.dSYM
19673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19674       conftest$ac_exeext conftest.$ac_ext
19675 fi
19676 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19677 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19678 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19679
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_PS_STRINGS /**/
19682 _ACEOF
19683
19684 fi
19685
19686
19687 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19688 # is missing.  Yes, there are machines that have only one.  We may
19689 # also decide to use snprintf.c if snprintf() is present but does not
19690 # have all the features we need --- see below.
19691
19692 if test "$PORTNAME" = "win32"; then
19693   # Win32 gets snprintf.c built unconditionally.
19694   #
19695   # To properly translate all NLS languages strings, we must support the
19696   # *printf() %$ format, which allows *printf() arguments to be selected
19697   # by position in the translated string.
19698   #
19699   # libintl versions < 0.13 use the native *printf() functions, and Win32
19700   # *printf() doesn't understand %$, so we must use our /port versions,
19701   # which do understand %$. libintl versions >= 0.13 include their own
19702   # *printf versions on Win32.  The libintl 0.13 release note text is:
19703   #
19704   #   C format strings with positions, as they arise when a translator
19705   #   needs to reorder a sentence, are now supported on all platforms.
19706   #   On those few platforms (NetBSD and Woe32) for which the native
19707   #   printf()/fprintf()/... functions don't support such format
19708   #   strings, replacements are provided through <libintl.h>.
19709   #
19710   # We could use libintl >= 0.13's *printf() if we were sure that we had
19711   # a litint >= 0.13 at runtime, but seeing that there is no clean way
19712   # to guarantee that, it is best to just use our own, so we are sure to
19713   # get %$ support. In include/port.h we disable the *printf() macros
19714   # that might have been defined by libintl.
19715   #
19716   # We do this unconditionally whether NLS is used or not so we are sure
19717   # that all Win32 libraries and binaries behave the same.
19718   pgac_need_repl_snprintf=yes
19719 else
19720   pgac_need_repl_snprintf=no
19721
19722 for ac_func in snprintf
19723 do
19724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19726 $as_echo_n "checking for $ac_func... " >&6; }
19727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19728   $as_echo_n "(cached) " >&6
19729 else
19730   cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19738 #define $ac_func innocuous_$ac_func
19739
19740 /* System header to define __stub macros and hopefully few prototypes,
19741     which can conflict with char $ac_func (); below.
19742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19743     <limits.h> exists even on freestanding compilers.  */
19744
19745 #ifdef __STDC__
19746 # include <limits.h>
19747 #else
19748 # include <assert.h>
19749 #endif
19750
19751 #undef $ac_func
19752
19753 /* Override any GCC internal prototype to avoid an error.
19754    Use char because int might match the return type of a GCC
19755    builtin and then its argument prototype would still apply.  */
19756 #ifdef __cplusplus
19757 extern "C"
19758 #endif
19759 char $ac_func ();
19760 /* The GNU C library defines this for functions which it implements
19761     to always fail with ENOSYS.  Some functions are actually named
19762     something starting with __ and the normal name is an alias.  */
19763 #if defined __stub_$ac_func || defined __stub___$ac_func
19764 choke me
19765 #endif
19766
19767 int
19768 main ()
19769 {
19770 return $ac_func ();
19771   ;
19772   return 0;
19773 }
19774 _ACEOF
19775 rm -f conftest.$ac_objext conftest$ac_exeext
19776 if { (ac_try="$ac_link"
19777 case "(($ac_try" in
19778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779   *) ac_try_echo=$ac_try;;
19780 esac
19781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19782 $as_echo "$ac_try_echo") >&5
19783   (eval "$ac_link") 2>conftest.er1
19784   ac_status=$?
19785   grep -v '^ *+' conftest.er1 >conftest.err
19786   rm -f conftest.er1
19787   cat conftest.err >&5
19788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); } && {
19790          test -z "$ac_c_werror_flag" ||
19791          test ! -s conftest.err
19792        } && test -s conftest$ac_exeext && {
19793          test "$cross_compiling" = yes ||
19794          $as_test_x conftest$ac_exeext
19795        }; then
19796   eval "$as_ac_var=yes"
19797 else
19798   $as_echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801         eval "$as_ac_var=no"
19802 fi
19803
19804 rm -rf conftest.dSYM
19805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19806       conftest$ac_exeext conftest.$ac_ext
19807 fi
19808 ac_res=`eval 'as_val=${'$as_ac_var'}
19809                  $as_echo "$as_val"'`
19810                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19811 $as_echo "$ac_res" >&6; }
19812 as_val=`eval 'as_val=${'$as_ac_var'}
19813                  $as_echo "$as_val"'`
19814    if test "x$as_val" = x""yes; then
19815   cat >>confdefs.h <<_ACEOF
19816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19817 _ACEOF
19818
19819 else
19820   pgac_need_repl_snprintf=yes
19821 fi
19822 done
19823
19824
19825 for ac_func in vsnprintf
19826 do
19827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19828 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19829 $as_echo_n "checking for $ac_func... " >&6; }
19830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19831   $as_echo_n "(cached) " >&6
19832 else
19833   cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h.  */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h.  */
19839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19841 #define $ac_func innocuous_$ac_func
19842
19843 /* System header to define __stub macros and hopefully few prototypes,
19844     which can conflict with char $ac_func (); below.
19845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19846     <limits.h> exists even on freestanding compilers.  */
19847
19848 #ifdef __STDC__
19849 # include <limits.h>
19850 #else
19851 # include <assert.h>
19852 #endif
19853
19854 #undef $ac_func
19855
19856 /* Override any GCC internal prototype to avoid an error.
19857    Use char because int might match the return type of a GCC
19858    builtin and then its argument prototype would still apply.  */
19859 #ifdef __cplusplus
19860 extern "C"
19861 #endif
19862 char $ac_func ();
19863 /* The GNU C library defines this for functions which it implements
19864     to always fail with ENOSYS.  Some functions are actually named
19865     something starting with __ and the normal name is an alias.  */
19866 #if defined __stub_$ac_func || defined __stub___$ac_func
19867 choke me
19868 #endif
19869
19870 int
19871 main ()
19872 {
19873 return $ac_func ();
19874   ;
19875   return 0;
19876 }
19877 _ACEOF
19878 rm -f conftest.$ac_objext conftest$ac_exeext
19879 if { (ac_try="$ac_link"
19880 case "(($ac_try" in
19881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882   *) ac_try_echo=$ac_try;;
19883 esac
19884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19885 $as_echo "$ac_try_echo") >&5
19886   (eval "$ac_link") 2>conftest.er1
19887   ac_status=$?
19888   grep -v '^ *+' conftest.er1 >conftest.err
19889   rm -f conftest.er1
19890   cat conftest.err >&5
19891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } && {
19893          test -z "$ac_c_werror_flag" ||
19894          test ! -s conftest.err
19895        } && test -s conftest$ac_exeext && {
19896          test "$cross_compiling" = yes ||
19897          $as_test_x conftest$ac_exeext
19898        }; then
19899   eval "$as_ac_var=yes"
19900 else
19901   $as_echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19903
19904         eval "$as_ac_var=no"
19905 fi
19906
19907 rm -rf conftest.dSYM
19908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19909       conftest$ac_exeext conftest.$ac_ext
19910 fi
19911 ac_res=`eval 'as_val=${'$as_ac_var'}
19912                  $as_echo "$as_val"'`
19913                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19914 $as_echo "$ac_res" >&6; }
19915 as_val=`eval 'as_val=${'$as_ac_var'}
19916                  $as_echo "$as_val"'`
19917    if test "x$as_val" = x""yes; then
19918   cat >>confdefs.h <<_ACEOF
19919 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19920 _ACEOF
19921
19922 else
19923   pgac_need_repl_snprintf=yes
19924 fi
19925 done
19926
19927 fi
19928
19929
19930 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19931 # include/c.h will provide declarations.  Note this is a separate test
19932 # from whether the functions exist in the C library --- there are
19933 # systems that have the functions but don't bother to declare them :-(
19934
19935 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19936 $as_echo_n "checking whether snprintf is declared... " >&6; }
19937 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19938   $as_echo_n "(cached) " >&6
19939 else
19940   cat >conftest.$ac_ext <<_ACEOF
19941 /* confdefs.h.  */
19942 _ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h.  */
19946 $ac_includes_default
19947 int
19948 main ()
19949 {
19950 #ifndef snprintf
19951   (void) snprintf;
19952 #endif
19953
19954   ;
19955   return 0;
19956 }
19957 _ACEOF
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962   *) ac_try_echo=$ac_try;;
19963 esac
19964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19965 $as_echo "$ac_try_echo") >&5
19966   (eval "$ac_compile") 2>conftest.er1
19967   ac_status=$?
19968   grep -v '^ *+' conftest.er1 >conftest.err
19969   rm -f conftest.er1
19970   cat conftest.err >&5
19971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } && {
19973          test -z "$ac_c_werror_flag" ||
19974          test ! -s conftest.err
19975        } && test -s conftest.$ac_objext; then
19976   ac_cv_have_decl_snprintf=yes
19977 else
19978   $as_echo "$as_me: failed program was:" >&5
19979 sed 's/^/| /' conftest.$ac_ext >&5
19980
19981         ac_cv_have_decl_snprintf=no
19982 fi
19983
19984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985 fi
19986 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19987 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19988 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
19989
19990 cat >>confdefs.h <<_ACEOF
19991 #define HAVE_DECL_SNPRINTF 1
19992 _ACEOF
19993
19994
19995 else
19996   cat >>confdefs.h <<_ACEOF
19997 #define HAVE_DECL_SNPRINTF 0
19998 _ACEOF
19999
20000
20001 fi
20002 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20003 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20004 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20005   $as_echo_n "(cached) " >&6
20006 else
20007   cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h.  */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h.  */
20013 $ac_includes_default
20014 int
20015 main ()
20016 {
20017 #ifndef vsnprintf
20018   (void) vsnprintf;
20019 #endif
20020
20021   ;
20022   return 0;
20023 }
20024 _ACEOF
20025 rm -f conftest.$ac_objext
20026 if { (ac_try="$ac_compile"
20027 case "(($ac_try" in
20028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029   *) ac_try_echo=$ac_try;;
20030 esac
20031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20032 $as_echo "$ac_try_echo") >&5
20033   (eval "$ac_compile") 2>conftest.er1
20034   ac_status=$?
20035   grep -v '^ *+' conftest.er1 >conftest.err
20036   rm -f conftest.er1
20037   cat conftest.err >&5
20038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); } && {
20040          test -z "$ac_c_werror_flag" ||
20041          test ! -s conftest.err
20042        } && test -s conftest.$ac_objext; then
20043   ac_cv_have_decl_vsnprintf=yes
20044 else
20045   $as_echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048         ac_cv_have_decl_vsnprintf=no
20049 fi
20050
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052 fi
20053 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20054 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20055 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20056
20057 cat >>confdefs.h <<_ACEOF
20058 #define HAVE_DECL_VSNPRINTF 1
20059 _ACEOF
20060
20061
20062 else
20063   cat >>confdefs.h <<_ACEOF
20064 #define HAVE_DECL_VSNPRINTF 0
20065 _ACEOF
20066
20067
20068 fi
20069
20070
20071
20072
20073 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20074 $as_echo_n "checking for isinf... " >&6; }
20075 if test "${ac_cv_func_isinf+set}" = set; then
20076   $as_echo_n "(cached) " >&6
20077 else
20078   cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h.  */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h.  */
20084
20085 #include <math.h>
20086 double glob_double;
20087
20088 int
20089 main ()
20090 {
20091 return isinf(glob_double) ? 0 : 1;
20092   ;
20093   return 0;
20094 }
20095 _ACEOF
20096 rm -f conftest.$ac_objext conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100   *) ac_try_echo=$ac_try;;
20101 esac
20102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20103 $as_echo "$ac_try_echo") >&5
20104   (eval "$ac_link") 2>conftest.er1
20105   ac_status=$?
20106   grep -v '^ *+' conftest.er1 >conftest.err
20107   rm -f conftest.er1
20108   cat conftest.err >&5
20109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } && {
20111          test -z "$ac_c_werror_flag" ||
20112          test ! -s conftest.err
20113        } && test -s conftest$ac_exeext && {
20114          test "$cross_compiling" = yes ||
20115          $as_test_x conftest$ac_exeext
20116        }; then
20117   ac_cv_func_isinf=yes
20118 else
20119   $as_echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20121
20122         ac_cv_func_isinf=no
20123 fi
20124
20125 rm -rf conftest.dSYM
20126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20127       conftest$ac_exeext conftest.$ac_ext
20128 fi
20129 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20130 $as_echo "$ac_cv_func_isinf" >&6; }
20131
20132 if test $ac_cv_func_isinf = yes ; then
20133
20134 cat >>confdefs.h <<\_ACEOF
20135 #define HAVE_ISINF 1
20136 _ACEOF
20137
20138 else
20139   case " $LIBOBJS " in
20140   *" isinf.$ac_objext "* ) ;;
20141   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20142  ;;
20143 esac
20144
20145   # Look for a way to implement a substitute for isinf()
20146
20147
20148
20149
20150 for ac_func in fpclass fp_class fp_class_d class
20151 do
20152 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20153 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20154 $as_echo_n "checking for $ac_func... " >&6; }
20155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20156   $as_echo_n "(cached) " >&6
20157 else
20158   cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h.  */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h.  */
20164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20166 #define $ac_func innocuous_$ac_func
20167
20168 /* System header to define __stub macros and hopefully few prototypes,
20169     which can conflict with char $ac_func (); below.
20170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20171     <limits.h> exists even on freestanding compilers.  */
20172
20173 #ifdef __STDC__
20174 # include <limits.h>
20175 #else
20176 # include <assert.h>
20177 #endif
20178
20179 #undef $ac_func
20180
20181 /* Override any GCC internal prototype to avoid an error.
20182    Use char because int might match the return type of a GCC
20183    builtin and then its argument prototype would still apply.  */
20184 #ifdef __cplusplus
20185 extern "C"
20186 #endif
20187 char $ac_func ();
20188 /* The GNU C library defines this for functions which it implements
20189     to always fail with ENOSYS.  Some functions are actually named
20190     something starting with __ and the normal name is an alias.  */
20191 #if defined __stub_$ac_func || defined __stub___$ac_func
20192 choke me
20193 #endif
20194
20195 int
20196 main ()
20197 {
20198 return $ac_func ();
20199   ;
20200   return 0;
20201 }
20202 _ACEOF
20203 rm -f conftest.$ac_objext conftest$ac_exeext
20204 if { (ac_try="$ac_link"
20205 case "(($ac_try" in
20206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207   *) ac_try_echo=$ac_try;;
20208 esac
20209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20210 $as_echo "$ac_try_echo") >&5
20211   (eval "$ac_link") 2>conftest.er1
20212   ac_status=$?
20213   grep -v '^ *+' conftest.er1 >conftest.err
20214   rm -f conftest.er1
20215   cat conftest.err >&5
20216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217   (exit $ac_status); } && {
20218          test -z "$ac_c_werror_flag" ||
20219          test ! -s conftest.err
20220        } && test -s conftest$ac_exeext && {
20221          test "$cross_compiling" = yes ||
20222          $as_test_x conftest$ac_exeext
20223        }; then
20224   eval "$as_ac_var=yes"
20225 else
20226   $as_echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229         eval "$as_ac_var=no"
20230 fi
20231
20232 rm -rf conftest.dSYM
20233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20234       conftest$ac_exeext conftest.$ac_ext
20235 fi
20236 ac_res=`eval 'as_val=${'$as_ac_var'}
20237                  $as_echo "$as_val"'`
20238                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20239 $as_echo "$ac_res" >&6; }
20240 as_val=`eval 'as_val=${'$as_ac_var'}
20241                  $as_echo "$as_val"'`
20242    if test "x$as_val" = x""yes; then
20243   cat >>confdefs.h <<_ACEOF
20244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20245 _ACEOF
20246  break
20247 fi
20248 done
20249
20250 fi
20251
20252 # Some versions of libedit contain strlcpy(); so disregard that library while
20253 # checking for these standard libc functions.
20254 pgac_save_LIBS="$LIBS"
20255 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20272 do
20273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20274 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20275 $as_echo_n "checking for $ac_func... " >&6; }
20276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20277   $as_echo_n "(cached) " >&6
20278 else
20279   cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h.  */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h.  */
20285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20287 #define $ac_func innocuous_$ac_func
20288
20289 /* System header to define __stub macros and hopefully few prototypes,
20290     which can conflict with char $ac_func (); below.
20291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20292     <limits.h> exists even on freestanding compilers.  */
20293
20294 #ifdef __STDC__
20295 # include <limits.h>
20296 #else
20297 # include <assert.h>
20298 #endif
20299
20300 #undef $ac_func
20301
20302 /* Override any GCC internal prototype to avoid an error.
20303    Use char because int might match the return type of a GCC
20304    builtin and then its argument prototype would still apply.  */
20305 #ifdef __cplusplus
20306 extern "C"
20307 #endif
20308 char $ac_func ();
20309 /* The GNU C library defines this for functions which it implements
20310     to always fail with ENOSYS.  Some functions are actually named
20311     something starting with __ and the normal name is an alias.  */
20312 #if defined __stub_$ac_func || defined __stub___$ac_func
20313 choke me
20314 #endif
20315
20316 int
20317 main ()
20318 {
20319 return $ac_func ();
20320   ;
20321   return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328   *) ac_try_echo=$ac_try;;
20329 esac
20330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20331 $as_echo "$ac_try_echo") >&5
20332   (eval "$ac_link") 2>conftest.er1
20333   ac_status=$?
20334   grep -v '^ *+' conftest.er1 >conftest.err
20335   rm -f conftest.er1
20336   cat conftest.err >&5
20337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } && {
20339          test -z "$ac_c_werror_flag" ||
20340          test ! -s conftest.err
20341        } && test -s conftest$ac_exeext && {
20342          test "$cross_compiling" = yes ||
20343          $as_test_x conftest$ac_exeext
20344        }; then
20345   eval "$as_ac_var=yes"
20346 else
20347   $as_echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350         eval "$as_ac_var=no"
20351 fi
20352
20353 rm -rf conftest.dSYM
20354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20355       conftest$ac_exeext conftest.$ac_ext
20356 fi
20357 ac_res=`eval 'as_val=${'$as_ac_var'}
20358                  $as_echo "$as_val"'`
20359                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20360 $as_echo "$ac_res" >&6; }
20361 as_val=`eval 'as_val=${'$as_ac_var'}
20362                  $as_echo "$as_val"'`
20363    if test "x$as_val" = x""yes; then
20364   cat >>confdefs.h <<_ACEOF
20365 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20366 _ACEOF
20367
20368 else
20369   case " $LIBOBJS " in
20370   *" $ac_func.$ac_objext "* ) ;;
20371   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20372  ;;
20373 esac
20374
20375 fi
20376 done
20377
20378
20379
20380 case $host_os in
20381
20382         # Windows uses a specialised env handler
20383         mingw*)
20384
20385 cat >>confdefs.h <<\_ACEOF
20386 #define HAVE_UNSETENV 1
20387 _ACEOF
20388
20389                 ac_cv_func_unsetenv=yes;;
20390         *)
20391
20392 for ac_func in unsetenv
20393 do
20394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20395 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20396 $as_echo_n "checking for $ac_func... " >&6; }
20397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20398   $as_echo_n "(cached) " >&6
20399 else
20400   cat >conftest.$ac_ext <<_ACEOF
20401 /* confdefs.h.  */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h.  */
20406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20408 #define $ac_func innocuous_$ac_func
20409
20410 /* System header to define __stub macros and hopefully few prototypes,
20411     which can conflict with char $ac_func (); below.
20412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413     <limits.h> exists even on freestanding compilers.  */
20414
20415 #ifdef __STDC__
20416 # include <limits.h>
20417 #else
20418 # include <assert.h>
20419 #endif
20420
20421 #undef $ac_func
20422
20423 /* Override any GCC internal prototype to avoid an error.
20424    Use char because int might match the return type of a GCC
20425    builtin and then its argument prototype would still apply.  */
20426 #ifdef __cplusplus
20427 extern "C"
20428 #endif
20429 char $ac_func ();
20430 /* The GNU C library defines this for functions which it implements
20431     to always fail with ENOSYS.  Some functions are actually named
20432     something starting with __ and the normal name is an alias.  */
20433 #if defined __stub_$ac_func || defined __stub___$ac_func
20434 choke me
20435 #endif
20436
20437 int
20438 main ()
20439 {
20440 return $ac_func ();
20441   ;
20442   return 0;
20443 }
20444 _ACEOF
20445 rm -f conftest.$ac_objext conftest$ac_exeext
20446 if { (ac_try="$ac_link"
20447 case "(($ac_try" in
20448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449   *) ac_try_echo=$ac_try;;
20450 esac
20451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20452 $as_echo "$ac_try_echo") >&5
20453   (eval "$ac_link") 2>conftest.er1
20454   ac_status=$?
20455   grep -v '^ *+' conftest.er1 >conftest.err
20456   rm -f conftest.er1
20457   cat conftest.err >&5
20458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); } && {
20460          test -z "$ac_c_werror_flag" ||
20461          test ! -s conftest.err
20462        } && test -s conftest$ac_exeext && {
20463          test "$cross_compiling" = yes ||
20464          $as_test_x conftest$ac_exeext
20465        }; then
20466   eval "$as_ac_var=yes"
20467 else
20468   $as_echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471         eval "$as_ac_var=no"
20472 fi
20473
20474 rm -rf conftest.dSYM
20475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20476       conftest$ac_exeext conftest.$ac_ext
20477 fi
20478 ac_res=`eval 'as_val=${'$as_ac_var'}
20479                  $as_echo "$as_val"'`
20480                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20481 $as_echo "$ac_res" >&6; }
20482 as_val=`eval 'as_val=${'$as_ac_var'}
20483                  $as_echo "$as_val"'`
20484    if test "x$as_val" = x""yes; then
20485   cat >>confdefs.h <<_ACEOF
20486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20487 _ACEOF
20488
20489 else
20490   case " $LIBOBJS " in
20491   *" $ac_func.$ac_objext "* ) ;;
20492   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20493  ;;
20494 esac
20495
20496 fi
20497 done
20498
20499
20500                 ;;
20501 esac
20502
20503
20504 LIBS="$pgac_save_LIBS"
20505
20506 # System's version of getaddrinfo(), if any, may be used only if we found
20507 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20508 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20509 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
20510 # because we want to use our own getaddrinfo.c on Windows anyway.)
20511 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20512
20513 for ac_func in getaddrinfo
20514 do
20515 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20516 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20517 $as_echo_n "checking for $ac_func... " >&6; }
20518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20519   $as_echo_n "(cached) " >&6
20520 else
20521   cat >conftest.$ac_ext <<_ACEOF
20522 /* confdefs.h.  */
20523 _ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h.  */
20527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20529 #define $ac_func innocuous_$ac_func
20530
20531 /* System header to define __stub macros and hopefully few prototypes,
20532     which can conflict with char $ac_func (); below.
20533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20534     <limits.h> exists even on freestanding compilers.  */
20535
20536 #ifdef __STDC__
20537 # include <limits.h>
20538 #else
20539 # include <assert.h>
20540 #endif
20541
20542 #undef $ac_func
20543
20544 /* Override any GCC internal prototype to avoid an error.
20545    Use char because int might match the return type of a GCC
20546    builtin and then its argument prototype would still apply.  */
20547 #ifdef __cplusplus
20548 extern "C"
20549 #endif
20550 char $ac_func ();
20551 /* The GNU C library defines this for functions which it implements
20552     to always fail with ENOSYS.  Some functions are actually named
20553     something starting with __ and the normal name is an alias.  */
20554 #if defined __stub_$ac_func || defined __stub___$ac_func
20555 choke me
20556 #endif
20557
20558 int
20559 main ()
20560 {
20561 return $ac_func ();
20562   ;
20563   return 0;
20564 }
20565 _ACEOF
20566 rm -f conftest.$ac_objext conftest$ac_exeext
20567 if { (ac_try="$ac_link"
20568 case "(($ac_try" in
20569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570   *) ac_try_echo=$ac_try;;
20571 esac
20572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20573 $as_echo "$ac_try_echo") >&5
20574   (eval "$ac_link") 2>conftest.er1
20575   ac_status=$?
20576   grep -v '^ *+' conftest.er1 >conftest.err
20577   rm -f conftest.er1
20578   cat conftest.err >&5
20579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580   (exit $ac_status); } && {
20581          test -z "$ac_c_werror_flag" ||
20582          test ! -s conftest.err
20583        } && test -s conftest$ac_exeext && {
20584          test "$cross_compiling" = yes ||
20585          $as_test_x conftest$ac_exeext
20586        }; then
20587   eval "$as_ac_var=yes"
20588 else
20589   $as_echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20591
20592         eval "$as_ac_var=no"
20593 fi
20594
20595 rm -rf conftest.dSYM
20596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20597       conftest$ac_exeext conftest.$ac_ext
20598 fi
20599 ac_res=`eval 'as_val=${'$as_ac_var'}
20600                  $as_echo "$as_val"'`
20601                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20602 $as_echo "$ac_res" >&6; }
20603 as_val=`eval 'as_val=${'$as_ac_var'}
20604                  $as_echo "$as_val"'`
20605    if test "x$as_val" = x""yes; then
20606   cat >>confdefs.h <<_ACEOF
20607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20608 _ACEOF
20609
20610 else
20611   case " $LIBOBJS " in
20612   *" $ac_func.$ac_objext "* ) ;;
20613   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20614  ;;
20615 esac
20616
20617 fi
20618 done
20619
20620
20621 else
20622   case " $LIBOBJS " in
20623   *" getaddrinfo.$ac_objext "* ) ;;
20624   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20625  ;;
20626 esac
20627
20628 fi
20629
20630 # Similarly, use system's getopt_long() only if system provides struct option.
20631 if test x"$ac_cv_type_struct_option" = xyes ; then
20632
20633 for ac_func in getopt_long
20634 do
20635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20636 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20637 $as_echo_n "checking for $ac_func... " >&6; }
20638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20639   $as_echo_n "(cached) " >&6
20640 else
20641   cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h.  */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h.  */
20647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20649 #define $ac_func innocuous_$ac_func
20650
20651 /* System header to define __stub macros and hopefully few prototypes,
20652     which can conflict with char $ac_func (); below.
20653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20654     <limits.h> exists even on freestanding compilers.  */
20655
20656 #ifdef __STDC__
20657 # include <limits.h>
20658 #else
20659 # include <assert.h>
20660 #endif
20661
20662 #undef $ac_func
20663
20664 /* Override any GCC internal prototype to avoid an error.
20665    Use char because int might match the return type of a GCC
20666    builtin and then its argument prototype would still apply.  */
20667 #ifdef __cplusplus
20668 extern "C"
20669 #endif
20670 char $ac_func ();
20671 /* The GNU C library defines this for functions which it implements
20672     to always fail with ENOSYS.  Some functions are actually named
20673     something starting with __ and the normal name is an alias.  */
20674 #if defined __stub_$ac_func || defined __stub___$ac_func
20675 choke me
20676 #endif
20677
20678 int
20679 main ()
20680 {
20681 return $ac_func ();
20682   ;
20683   return 0;
20684 }
20685 _ACEOF
20686 rm -f conftest.$ac_objext conftest$ac_exeext
20687 if { (ac_try="$ac_link"
20688 case "(($ac_try" in
20689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690   *) ac_try_echo=$ac_try;;
20691 esac
20692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20693 $as_echo "$ac_try_echo") >&5
20694   (eval "$ac_link") 2>conftest.er1
20695   ac_status=$?
20696   grep -v '^ *+' conftest.er1 >conftest.err
20697   rm -f conftest.er1
20698   cat conftest.err >&5
20699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } && {
20701          test -z "$ac_c_werror_flag" ||
20702          test ! -s conftest.err
20703        } && test -s conftest$ac_exeext && {
20704          test "$cross_compiling" = yes ||
20705          $as_test_x conftest$ac_exeext
20706        }; then
20707   eval "$as_ac_var=yes"
20708 else
20709   $as_echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20711
20712         eval "$as_ac_var=no"
20713 fi
20714
20715 rm -rf conftest.dSYM
20716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20717       conftest$ac_exeext conftest.$ac_ext
20718 fi
20719 ac_res=`eval 'as_val=${'$as_ac_var'}
20720                  $as_echo "$as_val"'`
20721                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20722 $as_echo "$ac_res" >&6; }
20723 as_val=`eval 'as_val=${'$as_ac_var'}
20724                  $as_echo "$as_val"'`
20725    if test "x$as_val" = x""yes; then
20726   cat >>confdefs.h <<_ACEOF
20727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20728 _ACEOF
20729
20730 else
20731   case " $LIBOBJS " in
20732   *" $ac_func.$ac_objext "* ) ;;
20733   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20734  ;;
20735 esac
20736
20737 fi
20738 done
20739
20740
20741 else
20742   case " $LIBOBJS " in
20743   *" getopt_long.$ac_objext "* ) ;;
20744   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20745  ;;
20746 esac
20747
20748 fi
20749
20750 # Solaris' getopt() doesn't do what we want for long options, so always use
20751 # our version on that platform.
20752 if test "$PORTNAME" = "solaris"; then
20753   case " $LIBOBJS " in
20754   *" getopt.$ac_objext "* ) ;;
20755   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20756  ;;
20757 esac
20758
20759 fi
20760
20761 # mingw has adopted a GNU-centric interpretation of optind/optreset,
20762 # so always use our version on Windows.
20763 if test "$PORTNAME" = "win32"; then
20764   case " $LIBOBJS " in
20765   *" getopt.$ac_objext "* ) ;;
20766   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20767  ;;
20768 esac
20769
20770   case " $LIBOBJS " in
20771   *" getopt_long.$ac_objext "* ) ;;
20772   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20773  ;;
20774 esac
20775
20776 fi
20777
20778 # Cygwin's erand48() is broken (always returns zero) in some releases,
20779 # so force use of ours.
20780 if test "$PORTNAME" = "cygwin"; then
20781   case " $LIBOBJS " in
20782   *" erand48.$ac_objext "* ) ;;
20783   *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
20784  ;;
20785 esac
20786
20787 fi
20788
20789 # Win32 support
20790 if test "$PORTNAME" = "win32"; then
20791
20792 for ac_func in gettimeofday
20793 do
20794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20795 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20796 $as_echo_n "checking for $ac_func... " >&6; }
20797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20798   $as_echo_n "(cached) " >&6
20799 else
20800   cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h.  */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h.  */
20806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20808 #define $ac_func innocuous_$ac_func
20809
20810 /* System header to define __stub macros and hopefully few prototypes,
20811     which can conflict with char $ac_func (); below.
20812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20813     <limits.h> exists even on freestanding compilers.  */
20814
20815 #ifdef __STDC__
20816 # include <limits.h>
20817 #else
20818 # include <assert.h>
20819 #endif
20820
20821 #undef $ac_func
20822
20823 /* Override any GCC internal prototype to avoid an error.
20824    Use char because int might match the return type of a GCC
20825    builtin and then its argument prototype would still apply.  */
20826 #ifdef __cplusplus
20827 extern "C"
20828 #endif
20829 char $ac_func ();
20830 /* The GNU C library defines this for functions which it implements
20831     to always fail with ENOSYS.  Some functions are actually named
20832     something starting with __ and the normal name is an alias.  */
20833 #if defined __stub_$ac_func || defined __stub___$ac_func
20834 choke me
20835 #endif
20836
20837 int
20838 main ()
20839 {
20840 return $ac_func ();
20841   ;
20842   return 0;
20843 }
20844 _ACEOF
20845 rm -f conftest.$ac_objext conftest$ac_exeext
20846 if { (ac_try="$ac_link"
20847 case "(($ac_try" in
20848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849   *) ac_try_echo=$ac_try;;
20850 esac
20851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20852 $as_echo "$ac_try_echo") >&5
20853   (eval "$ac_link") 2>conftest.er1
20854   ac_status=$?
20855   grep -v '^ *+' conftest.er1 >conftest.err
20856   rm -f conftest.er1
20857   cat conftest.err >&5
20858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); } && {
20860          test -z "$ac_c_werror_flag" ||
20861          test ! -s conftest.err
20862        } && test -s conftest$ac_exeext && {
20863          test "$cross_compiling" = yes ||
20864          $as_test_x conftest$ac_exeext
20865        }; then
20866   eval "$as_ac_var=yes"
20867 else
20868   $as_echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871         eval "$as_ac_var=no"
20872 fi
20873
20874 rm -rf conftest.dSYM
20875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20876       conftest$ac_exeext conftest.$ac_ext
20877 fi
20878 ac_res=`eval 'as_val=${'$as_ac_var'}
20879                  $as_echo "$as_val"'`
20880                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20881 $as_echo "$ac_res" >&6; }
20882 as_val=`eval 'as_val=${'$as_ac_var'}
20883                  $as_echo "$as_val"'`
20884    if test "x$as_val" = x""yes; then
20885   cat >>confdefs.h <<_ACEOF
20886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20887 _ACEOF
20888
20889 else
20890   case " $LIBOBJS " in
20891   *" $ac_func.$ac_objext "* ) ;;
20892   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20893  ;;
20894 esac
20895
20896 fi
20897 done
20898
20899
20900   case " $LIBOBJS " in
20901   *" kill.$ac_objext "* ) ;;
20902   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
20903  ;;
20904 esac
20905
20906   case " $LIBOBJS " in
20907   *" open.$ac_objext "* ) ;;
20908   *) LIBOBJS="$LIBOBJS open.$ac_objext"
20909  ;;
20910 esac
20911
20912   case " $LIBOBJS " in
20913   *" win32env.$ac_objext "* ) ;;
20914   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
20915  ;;
20916 esac
20917
20918   case " $LIBOBJS " in
20919   *" win32error.$ac_objext "* ) ;;
20920   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
20921  ;;
20922 esac
20923
20924
20925 cat >>confdefs.h <<\_ACEOF
20926 #define HAVE_SYMLINK 1
20927 _ACEOF
20928
20929 fi
20930
20931 if test "$with_readline" = yes; then
20932   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
20933 $as_echo_n "checking for rl_completion_append_character... " >&6; }
20934 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
20935   $as_echo_n "(cached) " >&6
20936 else
20937   cat >conftest.$ac_ext <<_ACEOF
20938 /* confdefs.h.  */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h.  */
20943 #include <stdio.h>
20944 #ifdef HAVE_READLINE_READLINE_H
20945 # include <readline/readline.h>
20946 #elif defined(HAVE_READLINE_H)
20947 # include <readline.h>
20948 #endif
20949
20950 int
20951 main ()
20952 {
20953 rl_completion_append_character = 'x';
20954   ;
20955   return 0;
20956 }
20957 _ACEOF
20958 rm -f conftest.$ac_objext conftest$ac_exeext
20959 if { (ac_try="$ac_link"
20960 case "(($ac_try" in
20961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962   *) ac_try_echo=$ac_try;;
20963 esac
20964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20965 $as_echo "$ac_try_echo") >&5
20966   (eval "$ac_link") 2>conftest.er1
20967   ac_status=$?
20968   grep -v '^ *+' conftest.er1 >conftest.err
20969   rm -f conftest.er1
20970   cat conftest.err >&5
20971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972   (exit $ac_status); } && {
20973          test -z "$ac_c_werror_flag" ||
20974          test ! -s conftest.err
20975        } && test -s conftest$ac_exeext && {
20976          test "$cross_compiling" = yes ||
20977          $as_test_x conftest$ac_exeext
20978        }; then
20979   pgac_cv_var_rl_completion_append_character=yes
20980 else
20981   $as_echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20983
20984         pgac_cv_var_rl_completion_append_character=no
20985 fi
20986
20987 rm -rf conftest.dSYM
20988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20989       conftest$ac_exeext conftest.$ac_ext
20990 fi
20991 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
20992 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
20993 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
20994
20995 cat >>confdefs.h <<\_ACEOF
20996 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20997 _ACEOF
20998
20999 fi
21000
21001
21002 for ac_func in rl_completion_matches rl_filename_completion_function
21003 do
21004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21005 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21006 $as_echo_n "checking for $ac_func... " >&6; }
21007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21008   $as_echo_n "(cached) " >&6
21009 else
21010   cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h.  */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h.  */
21016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21018 #define $ac_func innocuous_$ac_func
21019
21020 /* System header to define __stub macros and hopefully few prototypes,
21021     which can conflict with char $ac_func (); below.
21022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21023     <limits.h> exists even on freestanding compilers.  */
21024
21025 #ifdef __STDC__
21026 # include <limits.h>
21027 #else
21028 # include <assert.h>
21029 #endif
21030
21031 #undef $ac_func
21032
21033 /* Override any GCC internal prototype to avoid an error.
21034    Use char because int might match the return type of a GCC
21035    builtin and then its argument prototype would still apply.  */
21036 #ifdef __cplusplus
21037 extern "C"
21038 #endif
21039 char $ac_func ();
21040 /* The GNU C library defines this for functions which it implements
21041     to always fail with ENOSYS.  Some functions are actually named
21042     something starting with __ and the normal name is an alias.  */
21043 #if defined __stub_$ac_func || defined __stub___$ac_func
21044 choke me
21045 #endif
21046
21047 int
21048 main ()
21049 {
21050 return $ac_func ();
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext conftest$ac_exeext
21056 if { (ac_try="$ac_link"
21057 case "(($ac_try" in
21058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059   *) ac_try_echo=$ac_try;;
21060 esac
21061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21062 $as_echo "$ac_try_echo") >&5
21063   (eval "$ac_link") 2>conftest.er1
21064   ac_status=$?
21065   grep -v '^ *+' conftest.er1 >conftest.err
21066   rm -f conftest.er1
21067   cat conftest.err >&5
21068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); } && {
21070          test -z "$ac_c_werror_flag" ||
21071          test ! -s conftest.err
21072        } && test -s conftest$ac_exeext && {
21073          test "$cross_compiling" = yes ||
21074          $as_test_x conftest$ac_exeext
21075        }; then
21076   eval "$as_ac_var=yes"
21077 else
21078   $as_echo "$as_me: failed program was:" >&5
21079 sed 's/^/| /' conftest.$ac_ext >&5
21080
21081         eval "$as_ac_var=no"
21082 fi
21083
21084 rm -rf conftest.dSYM
21085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21086       conftest$ac_exeext conftest.$ac_ext
21087 fi
21088 ac_res=`eval 'as_val=${'$as_ac_var'}
21089                  $as_echo "$as_val"'`
21090                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21091 $as_echo "$ac_res" >&6; }
21092 as_val=`eval 'as_val=${'$as_ac_var'}
21093                  $as_echo "$as_val"'`
21094    if test "x$as_val" = x""yes; then
21095   cat >>confdefs.h <<_ACEOF
21096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21097 _ACEOF
21098
21099 fi
21100 done
21101
21102
21103
21104 for ac_func in append_history history_truncate_file
21105 do
21106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21108 $as_echo_n "checking for $ac_func... " >&6; }
21109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21110   $as_echo_n "(cached) " >&6
21111 else
21112   cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h.  */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h.  */
21118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21120 #define $ac_func innocuous_$ac_func
21121
21122 /* System header to define __stub macros and hopefully few prototypes,
21123     which can conflict with char $ac_func (); below.
21124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21125     <limits.h> exists even on freestanding compilers.  */
21126
21127 #ifdef __STDC__
21128 # include <limits.h>
21129 #else
21130 # include <assert.h>
21131 #endif
21132
21133 #undef $ac_func
21134
21135 /* Override any GCC internal prototype to avoid an error.
21136    Use char because int might match the return type of a GCC
21137    builtin and then its argument prototype would still apply.  */
21138 #ifdef __cplusplus
21139 extern "C"
21140 #endif
21141 char $ac_func ();
21142 /* The GNU C library defines this for functions which it implements
21143     to always fail with ENOSYS.  Some functions are actually named
21144     something starting with __ and the normal name is an alias.  */
21145 #if defined __stub_$ac_func || defined __stub___$ac_func
21146 choke me
21147 #endif
21148
21149 int
21150 main ()
21151 {
21152 return $ac_func ();
21153   ;
21154   return 0;
21155 }
21156 _ACEOF
21157 rm -f conftest.$ac_objext conftest$ac_exeext
21158 if { (ac_try="$ac_link"
21159 case "(($ac_try" in
21160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161   *) ac_try_echo=$ac_try;;
21162 esac
21163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21164 $as_echo "$ac_try_echo") >&5
21165   (eval "$ac_link") 2>conftest.er1
21166   ac_status=$?
21167   grep -v '^ *+' conftest.er1 >conftest.err
21168   rm -f conftest.er1
21169   cat conftest.err >&5
21170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); } && {
21172          test -z "$ac_c_werror_flag" ||
21173          test ! -s conftest.err
21174        } && test -s conftest$ac_exeext && {
21175          test "$cross_compiling" = yes ||
21176          $as_test_x conftest$ac_exeext
21177        }; then
21178   eval "$as_ac_var=yes"
21179 else
21180   $as_echo "$as_me: failed program was:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21182
21183         eval "$as_ac_var=no"
21184 fi
21185
21186 rm -rf conftest.dSYM
21187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21188       conftest$ac_exeext conftest.$ac_ext
21189 fi
21190 ac_res=`eval 'as_val=${'$as_ac_var'}
21191                  $as_echo "$as_val"'`
21192                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21193 $as_echo "$ac_res" >&6; }
21194 as_val=`eval 'as_val=${'$as_ac_var'}
21195                  $as_echo "$as_val"'`
21196    if test "x$as_val" = x""yes; then
21197   cat >>confdefs.h <<_ACEOF
21198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21199 _ACEOF
21200
21201 fi
21202 done
21203
21204 fi
21205
21206
21207 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21208 $as_echo_n "checking for sigsetjmp... " >&6; }
21209 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21210   $as_echo_n "(cached) " >&6
21211 else
21212   cat >conftest.$ac_ext <<_ACEOF
21213 /* confdefs.h.  */
21214 _ACEOF
21215 cat confdefs.h >>conftest.$ac_ext
21216 cat >>conftest.$ac_ext <<_ACEOF
21217 /* end confdefs.h.  */
21218 #include <setjmp.h>
21219 int
21220 main ()
21221 {
21222 sigjmp_buf x; sigsetjmp(x, 1);
21223   ;
21224   return 0;
21225 }
21226 _ACEOF
21227 rm -f conftest.$ac_objext conftest$ac_exeext
21228 if { (ac_try="$ac_link"
21229 case "(($ac_try" in
21230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231   *) ac_try_echo=$ac_try;;
21232 esac
21233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21234 $as_echo "$ac_try_echo") >&5
21235   (eval "$ac_link") 2>conftest.er1
21236   ac_status=$?
21237   grep -v '^ *+' conftest.er1 >conftest.err
21238   rm -f conftest.er1
21239   cat conftest.err >&5
21240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); } && {
21242          test -z "$ac_c_werror_flag" ||
21243          test ! -s conftest.err
21244        } && test -s conftest$ac_exeext && {
21245          test "$cross_compiling" = yes ||
21246          $as_test_x conftest$ac_exeext
21247        }; then
21248   pgac_cv_func_sigsetjmp=yes
21249 else
21250   $as_echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253         pgac_cv_func_sigsetjmp=no
21254 fi
21255
21256 rm -rf conftest.dSYM
21257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21258       conftest$ac_exeext conftest.$ac_ext
21259 fi
21260 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21261 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21262 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21263
21264 cat >>confdefs.h <<\_ACEOF
21265 #define HAVE_SIGSETJMP 1
21266 _ACEOF
21267
21268 fi
21269
21270 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21271 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21272 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21273   $as_echo_n "(cached) " >&6
21274 else
21275   cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281 #include <signal.h>
21282 /* NetBSD declares sys_siglist in unistd.h.  */
21283 #ifdef HAVE_UNISTD_H
21284 # include <unistd.h>
21285 #endif
21286
21287
21288 int
21289 main ()
21290 {
21291 #ifndef sys_siglist
21292   (void) sys_siglist;
21293 #endif
21294
21295   ;
21296   return 0;
21297 }
21298 _ACEOF
21299 rm -f conftest.$ac_objext
21300 if { (ac_try="$ac_compile"
21301 case "(($ac_try" in
21302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303   *) ac_try_echo=$ac_try;;
21304 esac
21305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21306 $as_echo "$ac_try_echo") >&5
21307   (eval "$ac_compile") 2>conftest.er1
21308   ac_status=$?
21309   grep -v '^ *+' conftest.er1 >conftest.err
21310   rm -f conftest.er1
21311   cat conftest.err >&5
21312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); } && {
21314          test -z "$ac_c_werror_flag" ||
21315          test ! -s conftest.err
21316        } && test -s conftest.$ac_objext; then
21317   ac_cv_have_decl_sys_siglist=yes
21318 else
21319   $as_echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21321
21322         ac_cv_have_decl_sys_siglist=no
21323 fi
21324
21325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21326 fi
21327 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21328 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21329 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21330
21331 cat >>confdefs.h <<_ACEOF
21332 #define HAVE_DECL_SYS_SIGLIST 1
21333 _ACEOF
21334
21335
21336 else
21337   cat >>confdefs.h <<_ACEOF
21338 #define HAVE_DECL_SYS_SIGLIST 0
21339 _ACEOF
21340
21341
21342 fi
21343
21344
21345
21346
21347 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21348 $as_echo_n "checking for syslog... " >&6; }
21349 if test "${ac_cv_func_syslog+set}" = set; then
21350   $as_echo_n "(cached) " >&6
21351 else
21352   cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21360 #define syslog innocuous_syslog
21361
21362 /* System header to define __stub macros and hopefully few prototypes,
21363     which can conflict with char syslog (); below.
21364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21365     <limits.h> exists even on freestanding compilers.  */
21366
21367 #ifdef __STDC__
21368 # include <limits.h>
21369 #else
21370 # include <assert.h>
21371 #endif
21372
21373 #undef syslog
21374
21375 /* Override any GCC internal prototype to avoid an error.
21376    Use char because int might match the return type of a GCC
21377    builtin and then its argument prototype would still apply.  */
21378 #ifdef __cplusplus
21379 extern "C"
21380 #endif
21381 char syslog ();
21382 /* The GNU C library defines this for functions which it implements
21383     to always fail with ENOSYS.  Some functions are actually named
21384     something starting with __ and the normal name is an alias.  */
21385 #if defined __stub_syslog || defined __stub___syslog
21386 choke me
21387 #endif
21388
21389 int
21390 main ()
21391 {
21392 return syslog ();
21393   ;
21394   return 0;
21395 }
21396 _ACEOF
21397 rm -f conftest.$ac_objext conftest$ac_exeext
21398 if { (ac_try="$ac_link"
21399 case "(($ac_try" in
21400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401   *) ac_try_echo=$ac_try;;
21402 esac
21403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21404 $as_echo "$ac_try_echo") >&5
21405   (eval "$ac_link") 2>conftest.er1
21406   ac_status=$?
21407   grep -v '^ *+' conftest.er1 >conftest.err
21408   rm -f conftest.er1
21409   cat conftest.err >&5
21410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); } && {
21412          test -z "$ac_c_werror_flag" ||
21413          test ! -s conftest.err
21414        } && test -s conftest$ac_exeext && {
21415          test "$cross_compiling" = yes ||
21416          $as_test_x conftest$ac_exeext
21417        }; then
21418   ac_cv_func_syslog=yes
21419 else
21420   $as_echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21422
21423         ac_cv_func_syslog=no
21424 fi
21425
21426 rm -rf conftest.dSYM
21427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21428       conftest$ac_exeext conftest.$ac_ext
21429 fi
21430 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21431 $as_echo "$ac_cv_func_syslog" >&6; }
21432 if test "x$ac_cv_func_syslog" = x""yes; then
21433   if test "${ac_cv_header_syslog_h+set}" = set; then
21434   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21435 $as_echo_n "checking for syslog.h... " >&6; }
21436 if test "${ac_cv_header_syslog_h+set}" = set; then
21437   $as_echo_n "(cached) " >&6
21438 fi
21439 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21440 $as_echo "$ac_cv_header_syslog_h" >&6; }
21441 else
21442   # Is the header compilable?
21443 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21444 $as_echo_n "checking syslog.h usability... " >&6; }
21445 cat >conftest.$ac_ext <<_ACEOF
21446 /* confdefs.h.  */
21447 _ACEOF
21448 cat confdefs.h >>conftest.$ac_ext
21449 cat >>conftest.$ac_ext <<_ACEOF
21450 /* end confdefs.h.  */
21451 $ac_includes_default
21452 #include <syslog.h>
21453 _ACEOF
21454 rm -f conftest.$ac_objext
21455 if { (ac_try="$ac_compile"
21456 case "(($ac_try" in
21457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458   *) ac_try_echo=$ac_try;;
21459 esac
21460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21461 $as_echo "$ac_try_echo") >&5
21462   (eval "$ac_compile") 2>conftest.er1
21463   ac_status=$?
21464   grep -v '^ *+' conftest.er1 >conftest.err
21465   rm -f conftest.er1
21466   cat conftest.err >&5
21467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); } && {
21469          test -z "$ac_c_werror_flag" ||
21470          test ! -s conftest.err
21471        } && test -s conftest.$ac_objext; then
21472   ac_header_compiler=yes
21473 else
21474   $as_echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21476
21477         ac_header_compiler=no
21478 fi
21479
21480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21482 $as_echo "$ac_header_compiler" >&6; }
21483
21484 # Is the header present?
21485 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21486 $as_echo_n "checking syslog.h presence... " >&6; }
21487 cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h.  */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h.  */
21493 #include <syslog.h>
21494 _ACEOF
21495 if { (ac_try="$ac_cpp conftest.$ac_ext"
21496 case "(($ac_try" in
21497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498   *) ac_try_echo=$ac_try;;
21499 esac
21500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21501 $as_echo "$ac_try_echo") >&5
21502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21503   ac_status=$?
21504   grep -v '^ *+' conftest.er1 >conftest.err
21505   rm -f conftest.er1
21506   cat conftest.err >&5
21507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); } >/dev/null && {
21509          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21510          test ! -s conftest.err
21511        }; then
21512   ac_header_preproc=yes
21513 else
21514   $as_echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517   ac_header_preproc=no
21518 fi
21519
21520 rm -f conftest.err conftest.$ac_ext
21521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21522 $as_echo "$ac_header_preproc" >&6; }
21523
21524 # So?  What about this header?
21525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21526   yes:no: )
21527     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21528 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21529     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21530 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21531     ac_header_preproc=yes
21532     ;;
21533   no:yes:* )
21534     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21535 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21536     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
21537 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
21538     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21539 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21540     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
21541 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21542     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21543 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21544     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21545 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21546     ( cat <<\_ASBOX
21547 ## ---------------------------------------- ##
21548 ## Report this to pgsql-bugs@postgresql.org ##
21549 ## ---------------------------------------- ##
21550 _ASBOX
21551      ) | sed "s/^/$as_me: WARNING:     /" >&2
21552     ;;
21553 esac
21554 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21555 $as_echo_n "checking for syslog.h... " >&6; }
21556 if test "${ac_cv_header_syslog_h+set}" = set; then
21557   $as_echo_n "(cached) " >&6
21558 else
21559   ac_cv_header_syslog_h=$ac_header_preproc
21560 fi
21561 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21562 $as_echo "$ac_cv_header_syslog_h" >&6; }
21563
21564 fi
21565 if test "x$ac_cv_header_syslog_h" = x""yes; then
21566
21567 cat >>confdefs.h <<\_ACEOF
21568 #define HAVE_SYSLOG 1
21569 _ACEOF
21570
21571 fi
21572
21573
21574 fi
21575
21576
21577 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21578 $as_echo_n "checking for opterr... " >&6; }
21579 if test "${pgac_cv_var_int_opterr+set}" = set; then
21580   $as_echo_n "(cached) " >&6
21581 else
21582   cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 #include <unistd.h>
21589 int
21590 main ()
21591 {
21592 extern int opterr; opterr = 1;
21593   ;
21594   return 0;
21595 }
21596 _ACEOF
21597 rm -f conftest.$ac_objext conftest$ac_exeext
21598 if { (ac_try="$ac_link"
21599 case "(($ac_try" in
21600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601   *) ac_try_echo=$ac_try;;
21602 esac
21603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21604 $as_echo "$ac_try_echo") >&5
21605   (eval "$ac_link") 2>conftest.er1
21606   ac_status=$?
21607   grep -v '^ *+' conftest.er1 >conftest.err
21608   rm -f conftest.er1
21609   cat conftest.err >&5
21610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); } && {
21612          test -z "$ac_c_werror_flag" ||
21613          test ! -s conftest.err
21614        } && test -s conftest$ac_exeext && {
21615          test "$cross_compiling" = yes ||
21616          $as_test_x conftest$ac_exeext
21617        }; then
21618   pgac_cv_var_int_opterr=yes
21619 else
21620   $as_echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623         pgac_cv_var_int_opterr=no
21624 fi
21625
21626 rm -rf conftest.dSYM
21627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21628       conftest$ac_exeext conftest.$ac_ext
21629 fi
21630 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21631 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21632 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21633
21634 cat >>confdefs.h <<\_ACEOF
21635 #define HAVE_INT_OPTERR 1
21636 _ACEOF
21637
21638 fi
21639
21640 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21641 $as_echo_n "checking for optreset... " >&6; }
21642 if test "${pgac_cv_var_int_optreset+set}" = set; then
21643   $as_echo_n "(cached) " >&6
21644 else
21645   cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h.  */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h.  */
21651 #include <unistd.h>
21652 int
21653 main ()
21654 {
21655 extern int optreset; optreset = 1;
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest.$ac_objext conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664   *) ac_try_echo=$ac_try;;
21665 esac
21666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21667 $as_echo "$ac_try_echo") >&5
21668   (eval "$ac_link") 2>conftest.er1
21669   ac_status=$?
21670   grep -v '^ *+' conftest.er1 >conftest.err
21671   rm -f conftest.er1
21672   cat conftest.err >&5
21673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); } && {
21675          test -z "$ac_c_werror_flag" ||
21676          test ! -s conftest.err
21677        } && test -s conftest$ac_exeext && {
21678          test "$cross_compiling" = yes ||
21679          $as_test_x conftest$ac_exeext
21680        }; then
21681   pgac_cv_var_int_optreset=yes
21682 else
21683   $as_echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21685
21686         pgac_cv_var_int_optreset=no
21687 fi
21688
21689 rm -rf conftest.dSYM
21690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21691       conftest$ac_exeext conftest.$ac_ext
21692 fi
21693 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
21694 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21695 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21696
21697 cat >>confdefs.h <<\_ACEOF
21698 #define HAVE_INT_OPTRESET 1
21699 _ACEOF
21700
21701 fi
21702
21703
21704
21705 for ac_func in strtoll strtoq
21706 do
21707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21709 $as_echo_n "checking for $ac_func... " >&6; }
21710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21711   $as_echo_n "(cached) " >&6
21712 else
21713   cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h.  */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h.  */
21719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21721 #define $ac_func innocuous_$ac_func
21722
21723 /* System header to define __stub macros and hopefully few prototypes,
21724     which can conflict with char $ac_func (); below.
21725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21726     <limits.h> exists even on freestanding compilers.  */
21727
21728 #ifdef __STDC__
21729 # include <limits.h>
21730 #else
21731 # include <assert.h>
21732 #endif
21733
21734 #undef $ac_func
21735
21736 /* Override any GCC internal prototype to avoid an error.
21737    Use char because int might match the return type of a GCC
21738    builtin and then its argument prototype would still apply.  */
21739 #ifdef __cplusplus
21740 extern "C"
21741 #endif
21742 char $ac_func ();
21743 /* The GNU C library defines this for functions which it implements
21744     to always fail with ENOSYS.  Some functions are actually named
21745     something starting with __ and the normal name is an alias.  */
21746 #if defined __stub_$ac_func || defined __stub___$ac_func
21747 choke me
21748 #endif
21749
21750 int
21751 main ()
21752 {
21753 return $ac_func ();
21754   ;
21755   return 0;
21756 }
21757 _ACEOF
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (ac_try="$ac_link"
21760 case "(($ac_try" in
21761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762   *) ac_try_echo=$ac_try;;
21763 esac
21764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21765 $as_echo "$ac_try_echo") >&5
21766   (eval "$ac_link") 2>conftest.er1
21767   ac_status=$?
21768   grep -v '^ *+' conftest.er1 >conftest.err
21769   rm -f conftest.er1
21770   cat conftest.err >&5
21771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); } && {
21773          test -z "$ac_c_werror_flag" ||
21774          test ! -s conftest.err
21775        } && test -s conftest$ac_exeext && {
21776          test "$cross_compiling" = yes ||
21777          $as_test_x conftest$ac_exeext
21778        }; then
21779   eval "$as_ac_var=yes"
21780 else
21781   $as_echo "$as_me: failed program was:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21783
21784         eval "$as_ac_var=no"
21785 fi
21786
21787 rm -rf conftest.dSYM
21788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21789       conftest$ac_exeext conftest.$ac_ext
21790 fi
21791 ac_res=`eval 'as_val=${'$as_ac_var'}
21792                  $as_echo "$as_val"'`
21793                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21794 $as_echo "$ac_res" >&6; }
21795 as_val=`eval 'as_val=${'$as_ac_var'}
21796                  $as_echo "$as_val"'`
21797    if test "x$as_val" = x""yes; then
21798   cat >>confdefs.h <<_ACEOF
21799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21800 _ACEOF
21801  break
21802 fi
21803 done
21804
21805
21806
21807 for ac_func in strtoull strtouq
21808 do
21809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21810 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21811 $as_echo_n "checking for $ac_func... " >&6; }
21812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21813   $as_echo_n "(cached) " >&6
21814 else
21815   cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h.  */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h.  */
21821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21823 #define $ac_func innocuous_$ac_func
21824
21825 /* System header to define __stub macros and hopefully few prototypes,
21826     which can conflict with char $ac_func (); below.
21827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21828     <limits.h> exists even on freestanding compilers.  */
21829
21830 #ifdef __STDC__
21831 # include <limits.h>
21832 #else
21833 # include <assert.h>
21834 #endif
21835
21836 #undef $ac_func
21837
21838 /* Override any GCC internal prototype to avoid an error.
21839    Use char because int might match the return type of a GCC
21840    builtin and then its argument prototype would still apply.  */
21841 #ifdef __cplusplus
21842 extern "C"
21843 #endif
21844 char $ac_func ();
21845 /* The GNU C library defines this for functions which it implements
21846     to always fail with ENOSYS.  Some functions are actually named
21847     something starting with __ and the normal name is an alias.  */
21848 #if defined __stub_$ac_func || defined __stub___$ac_func
21849 choke me
21850 #endif
21851
21852 int
21853 main ()
21854 {
21855 return $ac_func ();
21856   ;
21857   return 0;
21858 }
21859 _ACEOF
21860 rm -f conftest.$ac_objext conftest$ac_exeext
21861 if { (ac_try="$ac_link"
21862 case "(($ac_try" in
21863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864   *) ac_try_echo=$ac_try;;
21865 esac
21866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21867 $as_echo "$ac_try_echo") >&5
21868   (eval "$ac_link") 2>conftest.er1
21869   ac_status=$?
21870   grep -v '^ *+' conftest.er1 >conftest.err
21871   rm -f conftest.er1
21872   cat conftest.err >&5
21873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); } && {
21875          test -z "$ac_c_werror_flag" ||
21876          test ! -s conftest.err
21877        } && test -s conftest$ac_exeext && {
21878          test "$cross_compiling" = yes ||
21879          $as_test_x conftest$ac_exeext
21880        }; then
21881   eval "$as_ac_var=yes"
21882 else
21883   $as_echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886         eval "$as_ac_var=no"
21887 fi
21888
21889 rm -rf conftest.dSYM
21890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21891       conftest$ac_exeext conftest.$ac_ext
21892 fi
21893 ac_res=`eval 'as_val=${'$as_ac_var'}
21894                  $as_echo "$as_val"'`
21895                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21896 $as_echo "$ac_res" >&6; }
21897 as_val=`eval 'as_val=${'$as_ac_var'}
21898                  $as_echo "$as_val"'`
21899    if test "x$as_val" = x""yes; then
21900   cat >>confdefs.h <<_ACEOF
21901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21902 _ACEOF
21903  break
21904 fi
21905 done
21906
21907
21908 # Check for one of atexit() or on_exit()
21909
21910 for ac_func in atexit
21911 do
21912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21914 $as_echo_n "checking for $ac_func... " >&6; }
21915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21916   $as_echo_n "(cached) " >&6
21917 else
21918   cat >conftest.$ac_ext <<_ACEOF
21919 /* confdefs.h.  */
21920 _ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h.  */
21924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21926 #define $ac_func innocuous_$ac_func
21927
21928 /* System header to define __stub macros and hopefully few prototypes,
21929     which can conflict with char $ac_func (); below.
21930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21931     <limits.h> exists even on freestanding compilers.  */
21932
21933 #ifdef __STDC__
21934 # include <limits.h>
21935 #else
21936 # include <assert.h>
21937 #endif
21938
21939 #undef $ac_func
21940
21941 /* Override any GCC internal prototype to avoid an error.
21942    Use char because int might match the return type of a GCC
21943    builtin and then its argument prototype would still apply.  */
21944 #ifdef __cplusplus
21945 extern "C"
21946 #endif
21947 char $ac_func ();
21948 /* The GNU C library defines this for functions which it implements
21949     to always fail with ENOSYS.  Some functions are actually named
21950     something starting with __ and the normal name is an alias.  */
21951 #if defined __stub_$ac_func || defined __stub___$ac_func
21952 choke me
21953 #endif
21954
21955 int
21956 main ()
21957 {
21958 return $ac_func ();
21959   ;
21960   return 0;
21961 }
21962 _ACEOF
21963 rm -f conftest.$ac_objext conftest$ac_exeext
21964 if { (ac_try="$ac_link"
21965 case "(($ac_try" in
21966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967   *) ac_try_echo=$ac_try;;
21968 esac
21969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21970 $as_echo "$ac_try_echo") >&5
21971   (eval "$ac_link") 2>conftest.er1
21972   ac_status=$?
21973   grep -v '^ *+' conftest.er1 >conftest.err
21974   rm -f conftest.er1
21975   cat conftest.err >&5
21976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977   (exit $ac_status); } && {
21978          test -z "$ac_c_werror_flag" ||
21979          test ! -s conftest.err
21980        } && test -s conftest$ac_exeext && {
21981          test "$cross_compiling" = yes ||
21982          $as_test_x conftest$ac_exeext
21983        }; then
21984   eval "$as_ac_var=yes"
21985 else
21986   $as_echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21988
21989         eval "$as_ac_var=no"
21990 fi
21991
21992 rm -rf conftest.dSYM
21993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21994       conftest$ac_exeext conftest.$ac_ext
21995 fi
21996 ac_res=`eval 'as_val=${'$as_ac_var'}
21997                  $as_echo "$as_val"'`
21998                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21999 $as_echo "$ac_res" >&6; }
22000 as_val=`eval 'as_val=${'$as_ac_var'}
22001                  $as_echo "$as_val"'`
22002    if test "x$as_val" = x""yes; then
22003   cat >>confdefs.h <<_ACEOF
22004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22005 _ACEOF
22006
22007 else
22008
22009 for ac_func in on_exit
22010 do
22011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22013 $as_echo_n "checking for $ac_func... " >&6; }
22014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22015   $as_echo_n "(cached) " >&6
22016 else
22017   cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h.  */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h.  */
22023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22025 #define $ac_func innocuous_$ac_func
22026
22027 /* System header to define __stub macros and hopefully few prototypes,
22028     which can conflict with char $ac_func (); below.
22029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22030     <limits.h> exists even on freestanding compilers.  */
22031
22032 #ifdef __STDC__
22033 # include <limits.h>
22034 #else
22035 # include <assert.h>
22036 #endif
22037
22038 #undef $ac_func
22039
22040 /* Override any GCC internal prototype to avoid an error.
22041    Use char because int might match the return type of a GCC
22042    builtin and then its argument prototype would still apply.  */
22043 #ifdef __cplusplus
22044 extern "C"
22045 #endif
22046 char $ac_func ();
22047 /* The GNU C library defines this for functions which it implements
22048     to always fail with ENOSYS.  Some functions are actually named
22049     something starting with __ and the normal name is an alias.  */
22050 #if defined __stub_$ac_func || defined __stub___$ac_func
22051 choke me
22052 #endif
22053
22054 int
22055 main ()
22056 {
22057 return $ac_func ();
22058   ;
22059   return 0;
22060 }
22061 _ACEOF
22062 rm -f conftest.$ac_objext conftest$ac_exeext
22063 if { (ac_try="$ac_link"
22064 case "(($ac_try" in
22065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066   *) ac_try_echo=$ac_try;;
22067 esac
22068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22069 $as_echo "$ac_try_echo") >&5
22070   (eval "$ac_link") 2>conftest.er1
22071   ac_status=$?
22072   grep -v '^ *+' conftest.er1 >conftest.err
22073   rm -f conftest.er1
22074   cat conftest.err >&5
22075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); } && {
22077          test -z "$ac_c_werror_flag" ||
22078          test ! -s conftest.err
22079        } && test -s conftest$ac_exeext && {
22080          test "$cross_compiling" = yes ||
22081          $as_test_x conftest$ac_exeext
22082        }; then
22083   eval "$as_ac_var=yes"
22084 else
22085   $as_echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22087
22088         eval "$as_ac_var=no"
22089 fi
22090
22091 rm -rf conftest.dSYM
22092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22093       conftest$ac_exeext conftest.$ac_ext
22094 fi
22095 ac_res=`eval 'as_val=${'$as_ac_var'}
22096                  $as_echo "$as_val"'`
22097                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22098 $as_echo "$ac_res" >&6; }
22099 as_val=`eval 'as_val=${'$as_ac_var'}
22100                  $as_echo "$as_val"'`
22101    if test "x$as_val" = x""yes; then
22102   cat >>confdefs.h <<_ACEOF
22103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22104 _ACEOF
22105
22106 else
22107   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22108 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22109    { (exit 1); exit 1; }; }
22110 fi
22111 done
22112
22113 fi
22114 done
22115
22116
22117
22118 #
22119 # Pthreads
22120 #
22121 # For each platform, we need to know about any special compile and link
22122 # libraries, and whether the normal C function names are thread-safe.
22123 # See the comment at the top of src/port/thread.c for more information.
22124 # WIN32 doesn't need the pthread tests;  it always uses threads
22125 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22126
22127
22128
22129 ac_ext=c
22130 ac_cpp='$CPP $CPPFLAGS'
22131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22134
22135 acx_pthread_ok=no
22136
22137 # We used to check for pthread.h first, but this fails if pthread.h
22138 # requires special compiler flags (e.g. on True64 or Sequent).
22139 # It gets checked for in the link test anyway.
22140
22141 # First of all, check if the user has set any of the PTHREAD_LIBS,
22142 # etcetera environment variables, and if threads linking works using
22143 # them:
22144 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22145         save_CFLAGS="$CFLAGS"
22146         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22147         save_LIBS="$LIBS"
22148         LIBS="$PTHREAD_LIBS $LIBS"
22149         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22150 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22151         cat >conftest.$ac_ext <<_ACEOF
22152 /* confdefs.h.  */
22153 _ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h.  */
22157
22158 /* Override any GCC internal prototype to avoid an error.
22159    Use char because int might match the return type of a GCC
22160    builtin and then its argument prototype would still apply.  */
22161 #ifdef __cplusplus
22162 extern "C"
22163 #endif
22164 char pthread_join ();
22165 int
22166 main ()
22167 {
22168 return pthread_join ();
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 rm -f conftest.$ac_objext conftest$ac_exeext
22174 if { (ac_try="$ac_link"
22175 case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22180 $as_echo "$ac_try_echo") >&5
22181   (eval "$ac_link") 2>conftest.er1
22182   ac_status=$?
22183   grep -v '^ *+' conftest.er1 >conftest.err
22184   rm -f conftest.er1
22185   cat conftest.err >&5
22186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187   (exit $ac_status); } && {
22188          test -z "$ac_c_werror_flag" ||
22189          test ! -s conftest.err
22190        } && test -s conftest$ac_exeext && {
22191          test "$cross_compiling" = yes ||
22192          $as_test_x conftest$ac_exeext
22193        }; then
22194   acx_pthread_ok=yes
22195 else
22196   $as_echo "$as_me: failed program was:" >&5
22197 sed 's/^/| /' conftest.$ac_ext >&5
22198
22199
22200 fi
22201
22202 rm -rf conftest.dSYM
22203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22204       conftest$ac_exeext conftest.$ac_ext
22205         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22206 $as_echo "$acx_pthread_ok" >&6; }
22207         if test x"$acx_pthread_ok" = xno; then
22208                 PTHREAD_LIBS=""
22209                 PTHREAD_CFLAGS=""
22210         fi
22211         LIBS="$save_LIBS"
22212         CFLAGS="$save_CFLAGS"
22213 fi
22214
22215 # We must check for the threads library under a number of different
22216 # names; the ordering is very important because some systems
22217 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22218 # libraries is broken (non-POSIX).
22219
22220 # Create a list of thread flags to try.  Items starting with a "-" are
22221 # C compiler flags, and other items are library names, except for "none"
22222 # which indicates that we try without any flags at all, and "pthread-config"
22223 # which is a program returning the flags for the Pth emulation library.
22224
22225 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22226
22227 # The ordering *is* (sometimes) important.  Some notes on the
22228 # individual items follow:
22229
22230 # pthreads: AIX (must check this before -lpthread)
22231 # none: in case threads are in libc; should be tried before -Kthread and
22232 #       other compiler flags to prevent continual compiler warnings
22233 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22234 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22235 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22236 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22237 # -pthreads: Solaris/gcc
22238 # -mthreads: Mingw32/gcc, Lynx/gcc
22239 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22240 #      doesn't hurt to check since this sometimes defines pthreads too;
22241 #      also defines -D_REENTRANT)
22242 # pthread: Linux, etcetera
22243 # --thread-safe: KAI C++
22244 # pthread-config: use pthread-config program (for GNU Pth library)
22245
22246 case "${host_cpu}-${host_os}" in
22247         *solaris*)
22248
22249         # On Solaris (at least, for some versions), libc contains stubbed
22250         # (non-functional) versions of the pthreads routines, so link-based
22251         # tests will erroneously succeed.  (We need to link with -pthread or
22252         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22253         # a function called by this macro, so we could check for that, but
22254         # who knows whether they'll stub that too in a future libc.)  So,
22255         # we'll just look for -pthreads and -lpthread first:
22256
22257         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22258         ;;
22259 esac
22260
22261 if test x"$acx_pthread_ok" = xno; then
22262 for flag in $acx_pthread_flags; do
22263
22264         tryPTHREAD_CFLAGS=""
22265         tryPTHREAD_LIBS=""
22266         case $flag in
22267                 none)
22268                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22269 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22270                 ;;
22271
22272                 -*)
22273                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22274 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22275                 tryPTHREAD_CFLAGS="$flag"
22276                 ;;
22277
22278                 pthread-config)
22279                 # skip this if we already have flags defined, for PostgreSQL
22280                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22281                 # Extract the first word of "pthread-config", so it can be a program name with args.
22282 set dummy pthread-config; ac_word=$2
22283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22284 $as_echo_n "checking for $ac_word... " >&6; }
22285 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22286   $as_echo_n "(cached) " >&6
22287 else
22288   if test -n "$acx_pthread_config"; then
22289   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22290 else
22291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22292 for as_dir in $PATH
22293 do
22294   IFS=$as_save_IFS
22295   test -z "$as_dir" && as_dir=.
22296   for ac_exec_ext in '' $ac_executable_extensions; do
22297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22298     ac_cv_prog_acx_pthread_config="yes"
22299     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22300     break 2
22301   fi
22302 done
22303 done
22304 IFS=$as_save_IFS
22305
22306   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22307 fi
22308 fi
22309 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22310 if test -n "$acx_pthread_config"; then
22311   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22312 $as_echo "$acx_pthread_config" >&6; }
22313 else
22314   { $as_echo "$as_me:$LINENO: result: no" >&5
22315 $as_echo "no" >&6; }
22316 fi
22317
22318
22319                 if test x"$acx_pthread_config" = xno; then continue; fi
22320                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22321                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22322                 ;;
22323
22324                 *)
22325                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22326 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22327                 tryPTHREAD_LIBS="-l$flag"
22328                 ;;
22329         esac
22330
22331         save_LIBS="$LIBS"
22332         save_CFLAGS="$CFLAGS"
22333         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22334         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22335
22336         # Check for various functions.  We must include pthread.h,
22337         # since some functions may be macros.  (On the Sequent, we
22338         # need a special flag -Kthread to make this header compile.)
22339         # We check for pthread_join because it is in -lpthread on IRIX
22340         # while pthread_create is in libc.  We check for pthread_attr_init
22341         # due to DEC craziness with -lpthreads.  We check for
22342         # pthread_cleanup_push because it is one of the few pthread
22343         # functions on Solaris that doesn't have a non-functional libc stub.
22344         # We try pthread_create on general principles.
22345         cat >conftest.$ac_ext <<_ACEOF
22346 /* confdefs.h.  */
22347 _ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h.  */
22351 #include <pthread.h>
22352 int
22353 main ()
22354 {
22355 pthread_t th; pthread_join(th, 0);
22356                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22357                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22358   ;
22359   return 0;
22360 }
22361 _ACEOF
22362 rm -f conftest.$ac_objext conftest$ac_exeext
22363 if { (ac_try="$ac_link"
22364 case "(($ac_try" in
22365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366   *) ac_try_echo=$ac_try;;
22367 esac
22368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22369 $as_echo "$ac_try_echo") >&5
22370   (eval "$ac_link") 2>conftest.er1
22371   ac_status=$?
22372   grep -v '^ *+' conftest.er1 >conftest.err
22373   rm -f conftest.er1
22374   cat conftest.err >&5
22375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); } && {
22377          test -z "$ac_c_werror_flag" ||
22378          test ! -s conftest.err
22379        } && test -s conftest$ac_exeext && {
22380          test "$cross_compiling" = yes ||
22381          $as_test_x conftest$ac_exeext
22382        }; then
22383   acx_pthread_ok=yes
22384 else
22385   $as_echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22387
22388         acx_pthread_ok=no
22389 fi
22390
22391 rm -rf conftest.dSYM
22392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22393       conftest$ac_exeext conftest.$ac_ext
22394
22395         if test "x$acx_pthread_ok" = xyes; then
22396             # Don't use options that are ignored by the compiler.
22397             # We find them by checking stderror.
22398             cat >conftest.$ac_ext <<_ACEOF
22399 int
22400 main (int argc, char **argv)
22401 {
22402   (void) argc;
22403   (void) argv;
22404   return 0;
22405 }
22406 _ACEOF
22407             rm -f conftest.$ac_objext conftest$ac_exeext
22408             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22409                 # we continue with more flags because Linux needs -lpthread
22410                 # for libpq builds on PostgreSQL.  The test above only
22411                 # tests for building binaries, not shared libraries.
22412                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22413                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22414             else   acx_pthread_ok=no
22415             fi
22416         fi
22417
22418         LIBS="$save_LIBS"
22419         CFLAGS="$save_CFLAGS"
22420
22421         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22422 $as_echo "$acx_pthread_ok" >&6; }
22423 done
22424 fi
22425
22426 # Various other checks:
22427 if test "x$acx_pthread_ok" = xyes; then
22428         save_LIBS="$LIBS"
22429         LIBS="$PTHREAD_LIBS $LIBS"
22430         save_CFLAGS="$CFLAGS"
22431         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22432
22433         # Detect AIX lossage: threads are created detached by default
22434         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22435         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22436 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22437         cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h.  */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h.  */
22443 #include <pthread.h>
22444 int
22445 main ()
22446 {
22447 int attr=PTHREAD_CREATE_JOINABLE;
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest.$ac_objext conftest$ac_exeext
22453 if { (ac_try="$ac_link"
22454 case "(($ac_try" in
22455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456   *) ac_try_echo=$ac_try;;
22457 esac
22458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22459 $as_echo "$ac_try_echo") >&5
22460   (eval "$ac_link") 2>conftest.er1
22461   ac_status=$?
22462   grep -v '^ *+' conftest.er1 >conftest.err
22463   rm -f conftest.er1
22464   cat conftest.err >&5
22465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); } && {
22467          test -z "$ac_c_werror_flag" ||
22468          test ! -s conftest.err
22469        } && test -s conftest$ac_exeext && {
22470          test "$cross_compiling" = yes ||
22471          $as_test_x conftest$ac_exeext
22472        }; then
22473   ok=PTHREAD_CREATE_JOINABLE
22474 else
22475   $as_echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22477
22478         ok=unknown
22479 fi
22480
22481 rm -rf conftest.dSYM
22482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22483       conftest$ac_exeext conftest.$ac_ext
22484         if test x"$ok" = xunknown; then
22485                 cat >conftest.$ac_ext <<_ACEOF
22486 /* confdefs.h.  */
22487 _ACEOF
22488 cat confdefs.h >>conftest.$ac_ext
22489 cat >>conftest.$ac_ext <<_ACEOF
22490 /* end confdefs.h.  */
22491 #include <pthread.h>
22492 int
22493 main ()
22494 {
22495 int attr=PTHREAD_CREATE_UNDETACHED;
22496   ;
22497   return 0;
22498 }
22499 _ACEOF
22500 rm -f conftest.$ac_objext conftest$ac_exeext
22501 if { (ac_try="$ac_link"
22502 case "(($ac_try" in
22503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22504   *) ac_try_echo=$ac_try;;
22505 esac
22506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22507 $as_echo "$ac_try_echo") >&5
22508   (eval "$ac_link") 2>conftest.er1
22509   ac_status=$?
22510   grep -v '^ *+' conftest.er1 >conftest.err
22511   rm -f conftest.er1
22512   cat conftest.err >&5
22513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); } && {
22515          test -z "$ac_c_werror_flag" ||
22516          test ! -s conftest.err
22517        } && test -s conftest$ac_exeext && {
22518          test "$cross_compiling" = yes ||
22519          $as_test_x conftest$ac_exeext
22520        }; then
22521   ok=PTHREAD_CREATE_UNDETACHED
22522 else
22523   $as_echo "$as_me: failed program was:" >&5
22524 sed 's/^/| /' conftest.$ac_ext >&5
22525
22526         ok=unknown
22527 fi
22528
22529 rm -rf conftest.dSYM
22530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22531       conftest$ac_exeext conftest.$ac_ext
22532         fi
22533         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22534
22535 cat >>confdefs.h <<\_ACEOF
22536 #define PTHREAD_CREATE_JOINABLE $ok
22537 _ACEOF
22538
22539         fi
22540         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22541 $as_echo "${ok}" >&6; }
22542         if test x"$ok" = xunknown; then
22543                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22544 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22545         fi
22546
22547         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22548 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22549         flag=no
22550 # We always add these in PostgreSQL
22551 #       case "${host_cpu}-${host_os}" in
22552 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22553 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22554 #       esac
22555         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22556 $as_echo "${flag}" >&6; }
22557         if test "x$flag" != xno; then
22558                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22559         fi
22560
22561         LIBS="$save_LIBS"
22562         CFLAGS="$save_CFLAGS"
22563
22564 # Supporting cc_r would require a special CC in all places that
22565 # use libpq, and that is ugly, so we don't do it.  Users can still
22566 # define their compiler as cc_r to do thread builds of everything.
22567         # More AIX lossage: must compile with cc_r
22568         # Extract the first word of "cc_r", so it can be a program name with args.
22569 set dummy cc_r; ac_word=$2
22570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22571 $as_echo_n "checking for $ac_word... " >&6; }
22572 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22573   $as_echo_n "(cached) " >&6
22574 else
22575   if test -n "$PTHREAD_CC"; then
22576   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22577 else
22578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22579 for as_dir in $PATH
22580 do
22581   IFS=$as_save_IFS
22582   test -z "$as_dir" && as_dir=.
22583   for ac_exec_ext in '' $ac_executable_extensions; do
22584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22585     ac_cv_prog_PTHREAD_CC="cc_r"
22586     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22587     break 2
22588   fi
22589 done
22590 done
22591 IFS=$as_save_IFS
22592
22593   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22594 fi
22595 fi
22596 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22597 if test -n "$PTHREAD_CC"; then
22598   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22599 $as_echo "$PTHREAD_CC" >&6; }
22600 else
22601   { $as_echo "$as_me:$LINENO: result: no" >&5
22602 $as_echo "no" >&6; }
22603 fi
22604
22605
22606 else
22607         PTHREAD_CC="$CC"
22608 fi
22609
22610
22611
22612
22613
22614 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22615 if test x"$acx_pthread_ok" = xyes; then
22616
22617 cat >>confdefs.h <<\_ACEOF
22618 #define HAVE_PTHREAD 1
22619 _ACEOF
22620
22621         :
22622 else
22623         acx_pthread_ok=no
22624
22625 fi
22626 ac_ext=c
22627 ac_cpp='$CPP $CPPFLAGS'
22628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22631
22632         # set thread flags
22633
22634 # Some platforms use these, so just define them.  They can't hurt if they
22635 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22636 # enables 5-arg getpwuid_r, among other things.
22637 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22638
22639
22640 # At this point, we don't want to muck with the compiler name for threading.
22641 # Let's see who fails, perhaps AIX.  2004-04-23
22642 if test "$PTHREAD_CC" != "$CC"; then
22643 { { $as_echo "$as_me:$LINENO: error:
22644 PostgreSQL does not support platforms that require a special compiler
22645 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
22646 $as_echo "$as_me: error:
22647 PostgreSQL does not support platforms that require a special compiler
22648 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
22649    { (exit 1); exit 1; }; }
22650 fi
22651
22652 # Check for *_r functions
22653 _CFLAGS="$CFLAGS"
22654 _LIBS="$LIBS"
22655 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22656 LIBS="$LIBS $PTHREAD_LIBS"
22657
22658 if test "$PORTNAME" != "win32"; then
22659 if test "${ac_cv_header_pthread_h+set}" = set; then
22660   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22661 $as_echo_n "checking for pthread.h... " >&6; }
22662 if test "${ac_cv_header_pthread_h+set}" = set; then
22663   $as_echo_n "(cached) " >&6
22664 fi
22665 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22666 $as_echo "$ac_cv_header_pthread_h" >&6; }
22667 else
22668   # Is the header compilable?
22669 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22670 $as_echo_n "checking pthread.h usability... " >&6; }
22671 cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h.  */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h.  */
22677 $ac_includes_default
22678 #include <pthread.h>
22679 _ACEOF
22680 rm -f conftest.$ac_objext
22681 if { (ac_try="$ac_compile"
22682 case "(($ac_try" in
22683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684   *) ac_try_echo=$ac_try;;
22685 esac
22686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22687 $as_echo "$ac_try_echo") >&5
22688   (eval "$ac_compile") 2>conftest.er1
22689   ac_status=$?
22690   grep -v '^ *+' conftest.er1 >conftest.err
22691   rm -f conftest.er1
22692   cat conftest.err >&5
22693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); } && {
22695          test -z "$ac_c_werror_flag" ||
22696          test ! -s conftest.err
22697        } && test -s conftest.$ac_objext; then
22698   ac_header_compiler=yes
22699 else
22700   $as_echo "$as_me: failed program was:" >&5
22701 sed 's/^/| /' conftest.$ac_ext >&5
22702
22703         ac_header_compiler=no
22704 fi
22705
22706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22708 $as_echo "$ac_header_compiler" >&6; }
22709
22710 # Is the header present?
22711 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22712 $as_echo_n "checking pthread.h presence... " >&6; }
22713 cat >conftest.$ac_ext <<_ACEOF
22714 /* confdefs.h.  */
22715 _ACEOF
22716 cat confdefs.h >>conftest.$ac_ext
22717 cat >>conftest.$ac_ext <<_ACEOF
22718 /* end confdefs.h.  */
22719 #include <pthread.h>
22720 _ACEOF
22721 if { (ac_try="$ac_cpp conftest.$ac_ext"
22722 case "(($ac_try" in
22723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724   *) ac_try_echo=$ac_try;;
22725 esac
22726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22727 $as_echo "$ac_try_echo") >&5
22728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22729   ac_status=$?
22730   grep -v '^ *+' conftest.er1 >conftest.err
22731   rm -f conftest.er1
22732   cat conftest.err >&5
22733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734   (exit $ac_status); } >/dev/null && {
22735          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22736          test ! -s conftest.err
22737        }; then
22738   ac_header_preproc=yes
22739 else
22740   $as_echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22742
22743   ac_header_preproc=no
22744 fi
22745
22746 rm -f conftest.err conftest.$ac_ext
22747 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22748 $as_echo "$ac_header_preproc" >&6; }
22749
22750 # So?  What about this header?
22751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22752   yes:no: )
22753     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22754 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22755     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22756 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22757     ac_header_preproc=yes
22758     ;;
22759   no:yes:* )
22760     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22761 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22762     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
22763 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
22764     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22765 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22766     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
22767 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22768     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22769 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22770     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22771 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22772     ( cat <<\_ASBOX
22773 ## ---------------------------------------- ##
22774 ## Report this to pgsql-bugs@postgresql.org ##
22775 ## ---------------------------------------- ##
22776 _ASBOX
22777      ) | sed "s/^/$as_me: WARNING:     /" >&2
22778     ;;
22779 esac
22780 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22781 $as_echo_n "checking for pthread.h... " >&6; }
22782 if test "${ac_cv_header_pthread_h+set}" = set; then
22783   $as_echo_n "(cached) " >&6
22784 else
22785   ac_cv_header_pthread_h=$ac_header_preproc
22786 fi
22787 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22788 $as_echo "$ac_cv_header_pthread_h" >&6; }
22789
22790 fi
22791 if test "x$ac_cv_header_pthread_h" = x""yes; then
22792   :
22793 else
22794   { { $as_echo "$as_me:$LINENO: error:
22795 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
22796 $as_echo "$as_me: error:
22797 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
22798    { (exit 1); exit 1; }; }
22799 fi
22800
22801
22802 fi
22803
22804
22805
22806
22807 for ac_func in strerror_r getpwuid_r gethostbyname_r
22808 do
22809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22810 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22811 $as_echo_n "checking for $ac_func... " >&6; }
22812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22813   $as_echo_n "(cached) " >&6
22814 else
22815   cat >conftest.$ac_ext <<_ACEOF
22816 /* confdefs.h.  */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h.  */
22821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22823 #define $ac_func innocuous_$ac_func
22824
22825 /* System header to define __stub macros and hopefully few prototypes,
22826     which can conflict with char $ac_func (); below.
22827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22828     <limits.h> exists even on freestanding compilers.  */
22829
22830 #ifdef __STDC__
22831 # include <limits.h>
22832 #else
22833 # include <assert.h>
22834 #endif
22835
22836 #undef $ac_func
22837
22838 /* Override any GCC internal prototype to avoid an error.
22839    Use char because int might match the return type of a GCC
22840    builtin and then its argument prototype would still apply.  */
22841 #ifdef __cplusplus
22842 extern "C"
22843 #endif
22844 char $ac_func ();
22845 /* The GNU C library defines this for functions which it implements
22846     to always fail with ENOSYS.  Some functions are actually named
22847     something starting with __ and the normal name is an alias.  */
22848 #if defined __stub_$ac_func || defined __stub___$ac_func
22849 choke me
22850 #endif
22851
22852 int
22853 main ()
22854 {
22855 return $ac_func ();
22856   ;
22857   return 0;
22858 }
22859 _ACEOF
22860 rm -f conftest.$ac_objext conftest$ac_exeext
22861 if { (ac_try="$ac_link"
22862 case "(($ac_try" in
22863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864   *) ac_try_echo=$ac_try;;
22865 esac
22866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22867 $as_echo "$ac_try_echo") >&5
22868   (eval "$ac_link") 2>conftest.er1
22869   ac_status=$?
22870   grep -v '^ *+' conftest.er1 >conftest.err
22871   rm -f conftest.er1
22872   cat conftest.err >&5
22873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); } && {
22875          test -z "$ac_c_werror_flag" ||
22876          test ! -s conftest.err
22877        } && test -s conftest$ac_exeext && {
22878          test "$cross_compiling" = yes ||
22879          $as_test_x conftest$ac_exeext
22880        }; then
22881   eval "$as_ac_var=yes"
22882 else
22883   $as_echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22885
22886         eval "$as_ac_var=no"
22887 fi
22888
22889 rm -rf conftest.dSYM
22890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22891       conftest$ac_exeext conftest.$ac_ext
22892 fi
22893 ac_res=`eval 'as_val=${'$as_ac_var'}
22894                  $as_echo "$as_val"'`
22895                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22896 $as_echo "$ac_res" >&6; }
22897 as_val=`eval 'as_val=${'$as_ac_var'}
22898                  $as_echo "$as_val"'`
22899    if test "x$as_val" = x""yes; then
22900   cat >>confdefs.h <<_ACEOF
22901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22902 _ACEOF
22903
22904 fi
22905 done
22906
22907
22908 # Do test here with the proper thread flags
22909 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
22910 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
22911 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
22912   $as_echo_n "(cached) " >&6
22913 else
22914   cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 #include <sys/types.h>
22921 #include <pwd.h>
22922 int
22923 main ()
22924 {
22925 uid_t uid;
22926 struct passwd *space;
22927 char *buf;
22928 size_t bufsize;
22929 struct passwd **result;
22930 getpwuid_r(uid, space, buf, bufsize, result);
22931   ;
22932   return 0;
22933 }
22934 _ACEOF
22935 rm -f conftest.$ac_objext
22936 if { (ac_try="$ac_compile"
22937 case "(($ac_try" in
22938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22939   *) ac_try_echo=$ac_try;;
22940 esac
22941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22942 $as_echo "$ac_try_echo") >&5
22943   (eval "$ac_compile") 2>conftest.er1
22944   ac_status=$?
22945   grep -v '^ *+' conftest.er1 >conftest.err
22946   rm -f conftest.er1
22947   cat conftest.err >&5
22948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22949   (exit $ac_status); } && {
22950          test -z "$ac_c_werror_flag" ||
22951          test ! -s conftest.err
22952        } && test -s conftest.$ac_objext; then
22953   pgac_cv_func_getpwuid_r_5arg=yes
22954 else
22955   $as_echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22957
22958         pgac_cv_func_getpwuid_r_5arg=no
22959 fi
22960
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22962 fi
22963 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
22964 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
22965 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
22966
22967 cat >>confdefs.h <<\_ACEOF
22968 #define GETPWUID_R_5ARG /**/
22969 _ACEOF
22970
22971 fi
22972
22973 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
22974 $as_echo_n "checking whether strerror_r returns int... " >&6; }
22975 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
22976   $as_echo_n "(cached) " >&6
22977 else
22978   cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 #include <string.h>
22985 int
22986 main ()
22987 {
22988 #ifndef _AIX
22989 int strerror_r(int, char *, size_t);
22990 #else
22991 /* Older AIX has 'int' for the third argument so we don't test the args. */
22992 int strerror_r();
22993 #endif
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (ac_try="$ac_compile"
23000 case "(($ac_try" in
23001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002   *) ac_try_echo=$ac_try;;
23003 esac
23004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23005 $as_echo "$ac_try_echo") >&5
23006   (eval "$ac_compile") 2>conftest.er1
23007   ac_status=$?
23008   grep -v '^ *+' conftest.er1 >conftest.err
23009   rm -f conftest.er1
23010   cat conftest.err >&5
23011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012   (exit $ac_status); } && {
23013          test -z "$ac_c_werror_flag" ||
23014          test ! -s conftest.err
23015        } && test -s conftest.$ac_objext; then
23016   pgac_cv_func_strerror_r_int=yes
23017 else
23018   $as_echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23020
23021         pgac_cv_func_strerror_r_int=no
23022 fi
23023
23024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23025 fi
23026 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23027 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23028 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23029
23030 cat >>confdefs.h <<\_ACEOF
23031 #define STRERROR_R_INT /**/
23032 _ACEOF
23033
23034 fi
23035
23036
23037 CFLAGS="$_CFLAGS"
23038 LIBS="$_LIBS"
23039
23040 else
23041 # do not use values from template file
23042 PTHREAD_CFLAGS=
23043 PTHREAD_LIBS=
23044 fi
23045
23046
23047
23048
23049
23050 # We can test for libldap_r only after we know PTHREAD_LIBS
23051 if test "$with_ldap" = yes ; then
23052   _LIBS="$LIBS"
23053   if test "$PORTNAME" != "win32"; then
23054
23055 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23056 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23057 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23058   $as_echo_n "(cached) " >&6
23059 else
23060   ac_check_lib_save_LIBS=$LIBS
23061 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23062 cat >conftest.$ac_ext <<_ACEOF
23063 /* confdefs.h.  */
23064 _ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h.  */
23068
23069 /* Override any GCC internal prototype to avoid an error.
23070    Use char because int might match the return type of a GCC
23071    builtin and then its argument prototype would still apply.  */
23072 #ifdef __cplusplus
23073 extern "C"
23074 #endif
23075 char ldap_bind ();
23076 int
23077 main ()
23078 {
23079 return ldap_bind ();
23080   ;
23081   return 0;
23082 }
23083 _ACEOF
23084 rm -f conftest.$ac_objext conftest$ac_exeext
23085 if { (ac_try="$ac_link"
23086 case "(($ac_try" in
23087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088   *) ac_try_echo=$ac_try;;
23089 esac
23090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23091 $as_echo "$ac_try_echo") >&5
23092   (eval "$ac_link") 2>conftest.er1
23093   ac_status=$?
23094   grep -v '^ *+' conftest.er1 >conftest.err
23095   rm -f conftest.er1
23096   cat conftest.err >&5
23097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098   (exit $ac_status); } && {
23099          test -z "$ac_c_werror_flag" ||
23100          test ! -s conftest.err
23101        } && test -s conftest$ac_exeext && {
23102          test "$cross_compiling" = yes ||
23103          $as_test_x conftest$ac_exeext
23104        }; then
23105   ac_cv_lib_ldap_ldap_bind=yes
23106 else
23107   $as_echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23109
23110         ac_cv_lib_ldap_ldap_bind=no
23111 fi
23112
23113 rm -rf conftest.dSYM
23114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23115       conftest$ac_exeext conftest.$ac_ext
23116 LIBS=$ac_check_lib_save_LIBS
23117 fi
23118 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23119 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23120 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23121   cat >>confdefs.h <<_ACEOF
23122 #define HAVE_LIBLDAP 1
23123 _ACEOF
23124
23125   LIBS="-lldap $LIBS"
23126
23127 else
23128   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23129 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23130    { (exit 1); exit 1; }; }
23131 fi
23132
23133     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23134     if test "$enable_thread_safety" = yes; then
23135       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23136
23137 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23138 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23139 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23140   $as_echo_n "(cached) " >&6
23141 else
23142   ac_check_lib_save_LIBS=$LIBS
23143 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23144 cat >conftest.$ac_ext <<_ACEOF
23145 /* confdefs.h.  */
23146 _ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h.  */
23150
23151 /* Override any GCC internal prototype to avoid an error.
23152    Use char because int might match the return type of a GCC
23153    builtin and then its argument prototype would still apply.  */
23154 #ifdef __cplusplus
23155 extern "C"
23156 #endif
23157 char ldap_simple_bind ();
23158 int
23159 main ()
23160 {
23161 return ldap_simple_bind ();
23162   ;
23163   return 0;
23164 }
23165 _ACEOF
23166 rm -f conftest.$ac_objext conftest$ac_exeext
23167 if { (ac_try="$ac_link"
23168 case "(($ac_try" in
23169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170   *) ac_try_echo=$ac_try;;
23171 esac
23172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23173 $as_echo "$ac_try_echo") >&5
23174   (eval "$ac_link") 2>conftest.er1
23175   ac_status=$?
23176   grep -v '^ *+' conftest.er1 >conftest.err
23177   rm -f conftest.er1
23178   cat conftest.err >&5
23179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180   (exit $ac_status); } && {
23181          test -z "$ac_c_werror_flag" ||
23182          test ! -s conftest.err
23183        } && test -s conftest$ac_exeext && {
23184          test "$cross_compiling" = yes ||
23185          $as_test_x conftest$ac_exeext
23186        }; then
23187   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23188 else
23189   $as_echo "$as_me: failed program was:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23191
23192         ac_cv_lib_ldap_r_ldap_simple_bind=no
23193 fi
23194
23195 rm -rf conftest.dSYM
23196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23197       conftest$ac_exeext conftest.$ac_ext
23198 LIBS=$ac_check_lib_save_LIBS
23199 fi
23200 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23201 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23202 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23203   cat >>confdefs.h <<_ACEOF
23204 #define HAVE_LIBLDAP_R 1
23205 _ACEOF
23206
23207   LIBS="-lldap_r $LIBS"
23208
23209 else
23210   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23211 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23212    { (exit 1); exit 1; }; }
23213 fi
23214
23215       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23216     else
23217       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23218     fi
23219   else
23220
23221 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23222 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23223 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23224   $as_echo_n "(cached) " >&6
23225 else
23226   ac_check_lib_save_LIBS=$LIBS
23227 LIBS="-lwldap32  $LIBS"
23228 cat >conftest.$ac_ext <<_ACEOF
23229 /* confdefs.h.  */
23230 _ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h.  */
23234
23235 /* Override any GCC internal prototype to avoid an error.
23236    Use char because int might match the return type of a GCC
23237    builtin and then its argument prototype would still apply.  */
23238 #ifdef __cplusplus
23239 extern "C"
23240 #endif
23241 char ldap_bind ();
23242 int
23243 main ()
23244 {
23245 return ldap_bind ();
23246   ;
23247   return 0;
23248 }
23249 _ACEOF
23250 rm -f conftest.$ac_objext conftest$ac_exeext
23251 if { (ac_try="$ac_link"
23252 case "(($ac_try" in
23253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254   *) ac_try_echo=$ac_try;;
23255 esac
23256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23257 $as_echo "$ac_try_echo") >&5
23258   (eval "$ac_link") 2>conftest.er1
23259   ac_status=$?
23260   grep -v '^ *+' conftest.er1 >conftest.err
23261   rm -f conftest.er1
23262   cat conftest.err >&5
23263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); } && {
23265          test -z "$ac_c_werror_flag" ||
23266          test ! -s conftest.err
23267        } && test -s conftest$ac_exeext && {
23268          test "$cross_compiling" = yes ||
23269          $as_test_x conftest$ac_exeext
23270        }; then
23271   ac_cv_lib_wldap32_ldap_bind=yes
23272 else
23273   $as_echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23275
23276         ac_cv_lib_wldap32_ldap_bind=no
23277 fi
23278
23279 rm -rf conftest.dSYM
23280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23281       conftest$ac_exeext conftest.$ac_ext
23282 LIBS=$ac_check_lib_save_LIBS
23283 fi
23284 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23285 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23286 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23287   cat >>confdefs.h <<_ACEOF
23288 #define HAVE_LIBWLDAP32 1
23289 _ACEOF
23290
23291   LIBS="-lwldap32 $LIBS"
23292
23293 else
23294   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23295 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23296    { (exit 1); exit 1; }; }
23297 fi
23298
23299     LDAP_LIBS_FE="-lwldap32"
23300     LDAP_LIBS_BE="-lwldap32"
23301   fi
23302   LIBS="$_LIBS"
23303 fi
23304
23305
23306
23307
23308 # This test makes sure that run tests work at all.  Sometimes a shared
23309 # library is found by the linker, but the runtime linker can't find it.
23310 # This check should come after all modifications of compiler or linker
23311 # variables, and before any other run tests.
23312 { $as_echo "$as_me:$LINENO: checking test program" >&5
23313 $as_echo_n "checking test program... " >&6; }
23314 if test "$cross_compiling" = yes; then
23315   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23316 $as_echo "cross-compiling" >&6; }
23317 else
23318   cat >conftest.$ac_ext <<_ACEOF
23319 /* confdefs.h.  */
23320 _ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h.  */
23324 int main() { return 0; }
23325 _ACEOF
23326 rm -f conftest$ac_exeext
23327 if { (ac_try="$ac_link"
23328 case "(($ac_try" in
23329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330   *) ac_try_echo=$ac_try;;
23331 esac
23332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23333 $as_echo "$ac_try_echo") >&5
23334   (eval "$ac_link") 2>&5
23335   ac_status=$?
23336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23338   { (case "(($ac_try" in
23339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340   *) ac_try_echo=$ac_try;;
23341 esac
23342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23343 $as_echo "$ac_try_echo") >&5
23344   (eval "$ac_try") 2>&5
23345   ac_status=$?
23346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); }; }; then
23348   { $as_echo "$as_me:$LINENO: result: ok" >&5
23349 $as_echo "ok" >&6; }
23350 else
23351   $as_echo "$as_me: program exited with status $ac_status" >&5
23352 $as_echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355 ( exit $ac_status )
23356 { $as_echo "$as_me:$LINENO: result: failed" >&5
23357 $as_echo "failed" >&6; }
23358 { { $as_echo "$as_me:$LINENO: error:
23359 Could not execute a simple test program.  This may be a problem
23360 related to locating shared libraries.  Check the file 'config.log'
23361 for the exact reason." >&5
23362 $as_echo "$as_me: error:
23363 Could not execute a simple test program.  This may be a problem
23364 related to locating shared libraries.  Check the file 'config.log'
23365 for the exact reason." >&2;}
23366    { (exit 1); exit 1; }; }
23367 fi
23368 rm -rf conftest.dSYM
23369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23370 fi
23371
23372
23373
23374 # --------------------
23375 # Run tests below here
23376 # --------------------
23377
23378 # Force use of our snprintf if system's doesn't do arg control
23379 # See comment above at snprintf test for details.
23380 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23381   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23382 $as_echo_n "checking whether printf supports argument control... " >&6; }
23383 if test "${pgac_cv_printf_arg_control+set}" = set; then
23384   $as_echo_n "(cached) " >&6
23385 else
23386   if test "$cross_compiling" = yes; then
23387   pgac_cv_printf_arg_control=cross
23388 else
23389   cat >conftest.$ac_ext <<_ACEOF
23390 /* confdefs.h.  */
23391 _ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h.  */
23395 #include <stdio.h>
23396 #include <string.h>
23397
23398 int main()
23399 {
23400   char buf[100];
23401
23402   /* can it swap arguments? */
23403   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23404   if (strcmp(buf, "4 3") != 0)
23405     return 1;
23406   return 0;
23407 }
23408 _ACEOF
23409 rm -f conftest$ac_exeext
23410 if { (ac_try="$ac_link"
23411 case "(($ac_try" in
23412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413   *) ac_try_echo=$ac_try;;
23414 esac
23415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23416 $as_echo "$ac_try_echo") >&5
23417   (eval "$ac_link") 2>&5
23418   ac_status=$?
23419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23421   { (case "(($ac_try" in
23422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423   *) ac_try_echo=$ac_try;;
23424 esac
23425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23426 $as_echo "$ac_try_echo") >&5
23427   (eval "$ac_try") 2>&5
23428   ac_status=$?
23429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); }; }; then
23431   pgac_cv_printf_arg_control=yes
23432 else
23433   $as_echo "$as_me: program exited with status $ac_status" >&5
23434 $as_echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23436
23437 ( exit $ac_status )
23438 pgac_cv_printf_arg_control=no
23439 fi
23440 rm -rf conftest.dSYM
23441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23442 fi
23443
23444
23445
23446 fi
23447 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23448 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23449
23450   if test $pgac_cv_printf_arg_control != yes ; then
23451     pgac_need_repl_snprintf=yes
23452   fi
23453 fi
23454
23455
23456
23457
23458 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23459 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23460 if test "${pgac_cv_type_long_int_64+set}" = set; then
23461   $as_echo_n "(cached) " >&6
23462 else
23463   if test "$cross_compiling" = yes; then
23464   # If cross-compiling, check the size reported by the compiler and
23465 # trust that the arithmetic works.
23466 cat >conftest.$ac_ext <<_ACEOF
23467 /* confdefs.h.  */
23468 _ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h.  */
23472
23473 int
23474 main ()
23475 {
23476 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23477 test_array [0] = 0
23478
23479   ;
23480   return 0;
23481 }
23482 _ACEOF
23483 rm -f conftest.$ac_objext
23484 if { (ac_try="$ac_compile"
23485 case "(($ac_try" in
23486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487   *) ac_try_echo=$ac_try;;
23488 esac
23489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23490 $as_echo "$ac_try_echo") >&5
23491   (eval "$ac_compile") 2>conftest.er1
23492   ac_status=$?
23493   grep -v '^ *+' conftest.er1 >conftest.err
23494   rm -f conftest.er1
23495   cat conftest.err >&5
23496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); } && {
23498          test -z "$ac_c_werror_flag" ||
23499          test ! -s conftest.err
23500        } && test -s conftest.$ac_objext; then
23501   pgac_cv_type_long_int_64=yes
23502 else
23503   $as_echo "$as_me: failed program was:" >&5
23504 sed 's/^/| /' conftest.$ac_ext >&5
23505
23506         pgac_cv_type_long_int_64=no
23507 fi
23508
23509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23510 else
23511   cat >conftest.$ac_ext <<_ACEOF
23512 /* confdefs.h.  */
23513 _ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h.  */
23517 typedef long int ac_int64;
23518
23519 /*
23520  * These are globals to discourage the compiler from folding all the
23521  * arithmetic tests down to compile-time constants.
23522  */
23523 ac_int64 a = 20000001;
23524 ac_int64 b = 40000005;
23525
23526 int does_int64_work()
23527 {
23528   ac_int64 c,d;
23529
23530   if (sizeof(ac_int64) != 8)
23531     return 0;                   /* definitely not the right size */
23532
23533   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23534   c = a * b;
23535   d = (c + b) / b;
23536   if (d != a+1)
23537     return 0;
23538   return 1;
23539 }
23540 main() {
23541   exit(! does_int64_work());
23542 }
23543 _ACEOF
23544 rm -f conftest$ac_exeext
23545 if { (ac_try="$ac_link"
23546 case "(($ac_try" in
23547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548   *) ac_try_echo=$ac_try;;
23549 esac
23550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23551 $as_echo "$ac_try_echo") >&5
23552   (eval "$ac_link") 2>&5
23553   ac_status=$?
23554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23556   { (case "(($ac_try" in
23557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23558   *) ac_try_echo=$ac_try;;
23559 esac
23560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23561 $as_echo "$ac_try_echo") >&5
23562   (eval "$ac_try") 2>&5
23563   ac_status=$?
23564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); }; }; then
23566   pgac_cv_type_long_int_64=yes
23567 else
23568   $as_echo "$as_me: program exited with status $ac_status" >&5
23569 $as_echo "$as_me: failed program was:" >&5
23570 sed 's/^/| /' conftest.$ac_ext >&5
23571
23572 ( exit $ac_status )
23573 pgac_cv_type_long_int_64=no
23574 fi
23575 rm -rf conftest.dSYM
23576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23577 fi
23578
23579
23580 fi
23581 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23582 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23583
23584 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23585 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23586
23587 cat >>confdefs.h <<\_ACEOF
23588 #define HAVE_LONG_INT_64 1
23589 _ACEOF
23590
23591 fi
23592
23593
23594 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23595   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23596 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23597 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23598   $as_echo_n "(cached) " >&6
23599 else
23600   if test "$cross_compiling" = yes; then
23601   # If cross-compiling, check the size reported by the compiler and
23602 # trust that the arithmetic works.
23603 cat >conftest.$ac_ext <<_ACEOF
23604 /* confdefs.h.  */
23605 _ACEOF
23606 cat confdefs.h >>conftest.$ac_ext
23607 cat >>conftest.$ac_ext <<_ACEOF
23608 /* end confdefs.h.  */
23609
23610 int
23611 main ()
23612 {
23613 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23614 test_array [0] = 0
23615
23616   ;
23617   return 0;
23618 }
23619 _ACEOF
23620 rm -f conftest.$ac_objext
23621 if { (ac_try="$ac_compile"
23622 case "(($ac_try" in
23623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624   *) ac_try_echo=$ac_try;;
23625 esac
23626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23627 $as_echo "$ac_try_echo") >&5
23628   (eval "$ac_compile") 2>conftest.er1
23629   ac_status=$?
23630   grep -v '^ *+' conftest.er1 >conftest.err
23631   rm -f conftest.er1
23632   cat conftest.err >&5
23633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); } && {
23635          test -z "$ac_c_werror_flag" ||
23636          test ! -s conftest.err
23637        } && test -s conftest.$ac_objext; then
23638   pgac_cv_type_long_long_int_64=yes
23639 else
23640   $as_echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23642
23643         pgac_cv_type_long_long_int_64=no
23644 fi
23645
23646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23647 else
23648   cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h.  */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h.  */
23654 typedef long long int ac_int64;
23655
23656 /*
23657  * These are globals to discourage the compiler from folding all the
23658  * arithmetic tests down to compile-time constants.
23659  */
23660 ac_int64 a = 20000001;
23661 ac_int64 b = 40000005;
23662
23663 int does_int64_work()
23664 {
23665   ac_int64 c,d;
23666
23667   if (sizeof(ac_int64) != 8)
23668     return 0;                   /* definitely not the right size */
23669
23670   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23671   c = a * b;
23672   d = (c + b) / b;
23673   if (d != a+1)
23674     return 0;
23675   return 1;
23676 }
23677 main() {
23678   exit(! does_int64_work());
23679 }
23680 _ACEOF
23681 rm -f conftest$ac_exeext
23682 if { (ac_try="$ac_link"
23683 case "(($ac_try" in
23684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685   *) ac_try_echo=$ac_try;;
23686 esac
23687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23688 $as_echo "$ac_try_echo") >&5
23689   (eval "$ac_link") 2>&5
23690   ac_status=$?
23691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23693   { (case "(($ac_try" in
23694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695   *) ac_try_echo=$ac_try;;
23696 esac
23697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23698 $as_echo "$ac_try_echo") >&5
23699   (eval "$ac_try") 2>&5
23700   ac_status=$?
23701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702   (exit $ac_status); }; }; then
23703   pgac_cv_type_long_long_int_64=yes
23704 else
23705   $as_echo "$as_me: program exited with status $ac_status" >&5
23706 $as_echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23708
23709 ( exit $ac_status )
23710 pgac_cv_type_long_long_int_64=no
23711 fi
23712 rm -rf conftest.dSYM
23713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23714 fi
23715
23716
23717 fi
23718 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
23719 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23720
23721 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23722 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23723
23724 cat >>confdefs.h <<\_ACEOF
23725 #define HAVE_LONG_LONG_INT_64 1
23726 _ACEOF
23727
23728 fi
23729
23730   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
23731     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
23732 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
23733    { (exit 1); exit 1; }; }
23734   fi
23735 fi
23736
23737
23738
23739 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23740   cat >conftest.$ac_ext <<_ACEOF
23741 /* confdefs.h.  */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h.  */
23746
23747 #define INT64CONST(x)  x##LL
23748 long long int foo = INT64CONST(0x1234567890123456);
23749
23750 int
23751 main ()
23752 {
23753
23754   ;
23755   return 0;
23756 }
23757 _ACEOF
23758 rm -f conftest.$ac_objext
23759 if { (ac_try="$ac_compile"
23760 case "(($ac_try" in
23761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762   *) ac_try_echo=$ac_try;;
23763 esac
23764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23765 $as_echo "$ac_try_echo") >&5
23766   (eval "$ac_compile") 2>conftest.er1
23767   ac_status=$?
23768   grep -v '^ *+' conftest.er1 >conftest.err
23769   rm -f conftest.er1
23770   cat conftest.err >&5
23771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772   (exit $ac_status); } && {
23773          test -z "$ac_c_werror_flag" ||
23774          test ! -s conftest.err
23775        } && test -s conftest.$ac_objext; then
23776
23777 cat >>confdefs.h <<\_ACEOF
23778 #define HAVE_LL_CONSTANTS 1
23779 _ACEOF
23780
23781 else
23782   $as_echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.$ac_ext >&5
23784
23785
23786 fi
23787
23788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23789 fi
23790
23791
23792 # If we found "long int" is 64 bits, assume snprintf handles it.  If
23793 # we found we need to use "long long int", better check.  We cope with
23794 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
23795 # work, fall back to our own snprintf emulation (which we know uses %lld).
23796
23797 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23798   if test $pgac_need_repl_snprintf = no; then
23799     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
23800 $as_echo_n "checking snprintf format for long long int... " >&6; }
23801 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23802   $as_echo_n "(cached) " >&6
23803 else
23804   for pgac_format in '%lld' '%qd' '%I64d'; do
23805 if test "$cross_compiling" = yes; then
23806   pgac_cv_snprintf_long_long_int_format=cross; break
23807 else
23808   cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814 #include <stdio.h>
23815 typedef long long int ac_int64;
23816 #define INT64_FORMAT "$pgac_format"
23817
23818 ac_int64 a = 20000001;
23819 ac_int64 b = 40000005;
23820
23821 int does_int64_snprintf_work()
23822 {
23823   ac_int64 c;
23824   char buf[100];
23825
23826   if (sizeof(ac_int64) != 8)
23827     return 0;                   /* doesn't look like the right size */
23828
23829   c = a * b;
23830   snprintf(buf, 100, INT64_FORMAT, c);
23831   if (strcmp(buf, "800000140000005") != 0)
23832     return 0;                   /* either multiply or snprintf is busted */
23833   return 1;
23834 }
23835 main() {
23836   exit(! does_int64_snprintf_work());
23837 }
23838 _ACEOF
23839 rm -f conftest$ac_exeext
23840 if { (ac_try="$ac_link"
23841 case "(($ac_try" in
23842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23843   *) ac_try_echo=$ac_try;;
23844 esac
23845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23846 $as_echo "$ac_try_echo") >&5
23847   (eval "$ac_link") 2>&5
23848   ac_status=$?
23849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23851   { (case "(($ac_try" in
23852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853   *) ac_try_echo=$ac_try;;
23854 esac
23855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23856 $as_echo "$ac_try_echo") >&5
23857   (eval "$ac_try") 2>&5
23858   ac_status=$?
23859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); }; }; then
23861   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23862 else
23863   $as_echo "$as_me: program exited with status $ac_status" >&5
23864 $as_echo "$as_me: failed program was:" >&5
23865 sed 's/^/| /' conftest.$ac_ext >&5
23866
23867 fi
23868 rm -rf conftest.dSYM
23869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23870 fi
23871
23872
23873 done
23874 fi
23875
23876 LONG_LONG_INT_FORMAT=''
23877
23878 case $pgac_cv_snprintf_long_long_int_format in
23879   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
23880 $as_echo "cannot test (not on host machine)" >&6; };;
23881   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
23882 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
23883          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
23884   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
23885 $as_echo "none" >&6; };;
23886 esac
23887     if test "$LONG_LONG_INT_FORMAT" = ""; then
23888       # Force usage of our own snprintf, since system snprintf is broken
23889       pgac_need_repl_snprintf=yes
23890       LONG_LONG_INT_FORMAT='%lld'
23891     fi
23892   else
23893     # Here if we previously decided we needed to use our own snprintf
23894     LONG_LONG_INT_FORMAT='%lld'
23895   fi
23896   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
23897   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
23898   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
23899 else
23900   # Here if we are not using 'long long int' at all
23901   INT64_FORMAT='"%ld"'
23902   UINT64_FORMAT='"%lu"'
23903 fi
23904
23905
23906 cat >>confdefs.h <<_ACEOF
23907 #define INT64_FORMAT $INT64_FORMAT
23908 _ACEOF
23909
23910
23911
23912 cat >>confdefs.h <<_ACEOF
23913 #define UINT64_FORMAT $UINT64_FORMAT
23914 _ACEOF
23915
23916
23917 # Now we have checked all the reasons to replace snprintf
23918 if test $pgac_need_repl_snprintf = yes; then
23919
23920 cat >>confdefs.h <<\_ACEOF
23921 #define USE_REPL_SNPRINTF 1
23922 _ACEOF
23923
23924   case " $LIBOBJS " in
23925   *" snprintf.$ac_objext "* ) ;;
23926   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
23927  ;;
23928 esac
23929
23930 fi
23931
23932 # Check size of void *, size_t (enables tweaks for > 32bit address space)
23933 # The cast to long int works around a bug in the HP C Compiler
23934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23936 # This bug is HP SR number 8606223364.
23937 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
23938 $as_echo_n "checking size of void *... " >&6; }
23939 if test "${ac_cv_sizeof_void_p+set}" = set; then
23940   $as_echo_n "(cached) " >&6
23941 else
23942   if test "$cross_compiling" = yes; then
23943   # Depending upon the size, compute the lo and hi bounds.
23944 cat >conftest.$ac_ext <<_ACEOF
23945 /* confdefs.h.  */
23946 _ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h.  */
23950 $ac_includes_default
23951 int
23952 main ()
23953 {
23954 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
23955 test_array [0] = 0
23956
23957   ;
23958   return 0;
23959 }
23960 _ACEOF
23961 rm -f conftest.$ac_objext
23962 if { (ac_try="$ac_compile"
23963 case "(($ac_try" in
23964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965   *) ac_try_echo=$ac_try;;
23966 esac
23967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23968 $as_echo "$ac_try_echo") >&5
23969   (eval "$ac_compile") 2>conftest.er1
23970   ac_status=$?
23971   grep -v '^ *+' conftest.er1 >conftest.err
23972   rm -f conftest.er1
23973   cat conftest.err >&5
23974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); } && {
23976          test -z "$ac_c_werror_flag" ||
23977          test ! -s conftest.err
23978        } && test -s conftest.$ac_objext; then
23979   ac_lo=0 ac_mid=0
23980   while :; do
23981     cat >conftest.$ac_ext <<_ACEOF
23982 /* confdefs.h.  */
23983 _ACEOF
23984 cat confdefs.h >>conftest.$ac_ext
23985 cat >>conftest.$ac_ext <<_ACEOF
23986 /* end confdefs.h.  */
23987 $ac_includes_default
23988 int
23989 main ()
23990 {
23991 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23992 test_array [0] = 0
23993
23994   ;
23995   return 0;
23996 }
23997 _ACEOF
23998 rm -f conftest.$ac_objext
23999 if { (ac_try="$ac_compile"
24000 case "(($ac_try" in
24001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24002   *) ac_try_echo=$ac_try;;
24003 esac
24004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24005 $as_echo "$ac_try_echo") >&5
24006   (eval "$ac_compile") 2>conftest.er1
24007   ac_status=$?
24008   grep -v '^ *+' conftest.er1 >conftest.err
24009   rm -f conftest.er1
24010   cat conftest.err >&5
24011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); } && {
24013          test -z "$ac_c_werror_flag" ||
24014          test ! -s conftest.err
24015        } && test -s conftest.$ac_objext; then
24016   ac_hi=$ac_mid; break
24017 else
24018   $as_echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24020
24021         ac_lo=`expr $ac_mid + 1`
24022                         if test $ac_lo -le $ac_mid; then
24023                           ac_lo= ac_hi=
24024                           break
24025                         fi
24026                         ac_mid=`expr 2 '*' $ac_mid + 1`
24027 fi
24028
24029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24030   done
24031 else
24032   $as_echo "$as_me: failed program was:" >&5
24033 sed 's/^/| /' conftest.$ac_ext >&5
24034
24035         cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h.  */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h.  */
24041 $ac_includes_default
24042 int
24043 main ()
24044 {
24045 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24046 test_array [0] = 0
24047
24048   ;
24049   return 0;
24050 }
24051 _ACEOF
24052 rm -f conftest.$ac_objext
24053 if { (ac_try="$ac_compile"
24054 case "(($ac_try" in
24055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056   *) ac_try_echo=$ac_try;;
24057 esac
24058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24059 $as_echo "$ac_try_echo") >&5
24060   (eval "$ac_compile") 2>conftest.er1
24061   ac_status=$?
24062   grep -v '^ *+' conftest.er1 >conftest.err
24063   rm -f conftest.er1
24064   cat conftest.err >&5
24065   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066   (exit $ac_status); } && {
24067          test -z "$ac_c_werror_flag" ||
24068          test ! -s conftest.err
24069        } && test -s conftest.$ac_objext; then
24070   ac_hi=-1 ac_mid=-1
24071   while :; do
24072     cat >conftest.$ac_ext <<_ACEOF
24073 /* confdefs.h.  */
24074 _ACEOF
24075 cat confdefs.h >>conftest.$ac_ext
24076 cat >>conftest.$ac_ext <<_ACEOF
24077 /* end confdefs.h.  */
24078 $ac_includes_default
24079 int
24080 main ()
24081 {
24082 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24083 test_array [0] = 0
24084
24085   ;
24086   return 0;
24087 }
24088 _ACEOF
24089 rm -f conftest.$ac_objext
24090 if { (ac_try="$ac_compile"
24091 case "(($ac_try" in
24092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24093   *) ac_try_echo=$ac_try;;
24094 esac
24095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24096 $as_echo "$ac_try_echo") >&5
24097   (eval "$ac_compile") 2>conftest.er1
24098   ac_status=$?
24099   grep -v '^ *+' conftest.er1 >conftest.err
24100   rm -f conftest.er1
24101   cat conftest.err >&5
24102   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103   (exit $ac_status); } && {
24104          test -z "$ac_c_werror_flag" ||
24105          test ! -s conftest.err
24106        } && test -s conftest.$ac_objext; then
24107   ac_lo=$ac_mid; break
24108 else
24109   $as_echo "$as_me: failed program was:" >&5
24110 sed 's/^/| /' conftest.$ac_ext >&5
24111
24112         ac_hi=`expr '(' $ac_mid ')' - 1`
24113                         if test $ac_mid -le $ac_hi; then
24114                           ac_lo= ac_hi=
24115                           break
24116                         fi
24117                         ac_mid=`expr 2 '*' $ac_mid`
24118 fi
24119
24120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121   done
24122 else
24123   $as_echo "$as_me: failed program was:" >&5
24124 sed 's/^/| /' conftest.$ac_ext >&5
24125
24126         ac_lo= ac_hi=
24127 fi
24128
24129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24130 fi
24131
24132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24133 # Binary search between lo and hi bounds.
24134 while test "x$ac_lo" != "x$ac_hi"; do
24135   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24136   cat >conftest.$ac_ext <<_ACEOF
24137 /* confdefs.h.  */
24138 _ACEOF
24139 cat confdefs.h >>conftest.$ac_ext
24140 cat >>conftest.$ac_ext <<_ACEOF
24141 /* end confdefs.h.  */
24142 $ac_includes_default
24143 int
24144 main ()
24145 {
24146 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24147 test_array [0] = 0
24148
24149   ;
24150   return 0;
24151 }
24152 _ACEOF
24153 rm -f conftest.$ac_objext
24154 if { (ac_try="$ac_compile"
24155 case "(($ac_try" in
24156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24157   *) ac_try_echo=$ac_try;;
24158 esac
24159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24160 $as_echo "$ac_try_echo") >&5
24161   (eval "$ac_compile") 2>conftest.er1
24162   ac_status=$?
24163   grep -v '^ *+' conftest.er1 >conftest.err
24164   rm -f conftest.er1
24165   cat conftest.err >&5
24166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167   (exit $ac_status); } && {
24168          test -z "$ac_c_werror_flag" ||
24169          test ! -s conftest.err
24170        } && test -s conftest.$ac_objext; then
24171   ac_hi=$ac_mid
24172 else
24173   $as_echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24175
24176         ac_lo=`expr '(' $ac_mid ')' + 1`
24177 fi
24178
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 done
24181 case $ac_lo in
24182 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24183 '') if test "$ac_cv_type_void_p" = yes; then
24184      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24186 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24187 See \`config.log' for more details." >&5
24188 $as_echo "$as_me: error: cannot compute sizeof (void *)
24189 See \`config.log' for more details." >&2;}
24190    { (exit 77); exit 77; }; }; }
24191    else
24192      ac_cv_sizeof_void_p=0
24193    fi ;;
24194 esac
24195 else
24196   cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h.  */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h.  */
24202 $ac_includes_default
24203 static long int longval () { return (long int) (sizeof (void *)); }
24204 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24205 #include <stdio.h>
24206 #include <stdlib.h>
24207 int
24208 main ()
24209 {
24210
24211   FILE *f = fopen ("conftest.val", "w");
24212   if (! f)
24213     return 1;
24214   if (((long int) (sizeof (void *))) < 0)
24215     {
24216       long int i = longval ();
24217       if (i != ((long int) (sizeof (void *))))
24218         return 1;
24219       fprintf (f, "%ld", i);
24220     }
24221   else
24222     {
24223       unsigned long int i = ulongval ();
24224       if (i != ((long int) (sizeof (void *))))
24225         return 1;
24226       fprintf (f, "%lu", i);
24227     }
24228   /* Do not output a trailing newline, as this causes \r\n confusion
24229      on some platforms.  */
24230   return ferror (f) || fclose (f) != 0;
24231
24232   ;
24233   return 0;
24234 }
24235 _ACEOF
24236 rm -f conftest$ac_exeext
24237 if { (ac_try="$ac_link"
24238 case "(($ac_try" in
24239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24240   *) ac_try_echo=$ac_try;;
24241 esac
24242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24243 $as_echo "$ac_try_echo") >&5
24244   (eval "$ac_link") 2>&5
24245   ac_status=$?
24246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24248   { (case "(($ac_try" in
24249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24250   *) ac_try_echo=$ac_try;;
24251 esac
24252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24253 $as_echo "$ac_try_echo") >&5
24254   (eval "$ac_try") 2>&5
24255   ac_status=$?
24256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257   (exit $ac_status); }; }; then
24258   ac_cv_sizeof_void_p=`cat conftest.val`
24259 else
24260   $as_echo "$as_me: program exited with status $ac_status" >&5
24261 $as_echo "$as_me: failed program was:" >&5
24262 sed 's/^/| /' conftest.$ac_ext >&5
24263
24264 ( exit $ac_status )
24265 if test "$ac_cv_type_void_p" = yes; then
24266      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24268 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24269 See \`config.log' for more details." >&5
24270 $as_echo "$as_me: error: cannot compute sizeof (void *)
24271 See \`config.log' for more details." >&2;}
24272    { (exit 77); exit 77; }; }; }
24273    else
24274      ac_cv_sizeof_void_p=0
24275    fi
24276 fi
24277 rm -rf conftest.dSYM
24278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24279 fi
24280 rm -f conftest.val
24281 fi
24282 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24283 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24284
24285
24286
24287 cat >>confdefs.h <<_ACEOF
24288 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24289 _ACEOF
24290
24291
24292 # The cast to long int works around a bug in the HP C Compiler
24293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24295 # This bug is HP SR number 8606223364.
24296 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24297 $as_echo_n "checking size of size_t... " >&6; }
24298 if test "${ac_cv_sizeof_size_t+set}" = set; then
24299   $as_echo_n "(cached) " >&6
24300 else
24301   if test "$cross_compiling" = yes; then
24302   # Depending upon the size, compute the lo and hi bounds.
24303 cat >conftest.$ac_ext <<_ACEOF
24304 /* confdefs.h.  */
24305 _ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h.  */
24309 $ac_includes_default
24310 int
24311 main ()
24312 {
24313 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24314 test_array [0] = 0
24315
24316   ;
24317   return 0;
24318 }
24319 _ACEOF
24320 rm -f conftest.$ac_objext
24321 if { (ac_try="$ac_compile"
24322 case "(($ac_try" in
24323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324   *) ac_try_echo=$ac_try;;
24325 esac
24326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24327 $as_echo "$ac_try_echo") >&5
24328   (eval "$ac_compile") 2>conftest.er1
24329   ac_status=$?
24330   grep -v '^ *+' conftest.er1 >conftest.err
24331   rm -f conftest.er1
24332   cat conftest.err >&5
24333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334   (exit $ac_status); } && {
24335          test -z "$ac_c_werror_flag" ||
24336          test ! -s conftest.err
24337        } && test -s conftest.$ac_objext; then
24338   ac_lo=0 ac_mid=0
24339   while :; do
24340     cat >conftest.$ac_ext <<_ACEOF
24341 /* confdefs.h.  */
24342 _ACEOF
24343 cat confdefs.h >>conftest.$ac_ext
24344 cat >>conftest.$ac_ext <<_ACEOF
24345 /* end confdefs.h.  */
24346 $ac_includes_default
24347 int
24348 main ()
24349 {
24350 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24351 test_array [0] = 0
24352
24353   ;
24354   return 0;
24355 }
24356 _ACEOF
24357 rm -f conftest.$ac_objext
24358 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24366   ac_status=$?
24367   grep -v '^ *+' conftest.er1 >conftest.err
24368   rm -f conftest.er1
24369   cat conftest.err >&5
24370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371   (exit $ac_status); } && {
24372          test -z "$ac_c_werror_flag" ||
24373          test ! -s conftest.err
24374        } && test -s conftest.$ac_objext; then
24375   ac_hi=$ac_mid; break
24376 else
24377   $as_echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24379
24380         ac_lo=`expr $ac_mid + 1`
24381                         if test $ac_lo -le $ac_mid; then
24382                           ac_lo= ac_hi=
24383                           break
24384                         fi
24385                         ac_mid=`expr 2 '*' $ac_mid + 1`
24386 fi
24387
24388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24389   done
24390 else
24391   $as_echo "$as_me: failed program was:" >&5
24392 sed 's/^/| /' conftest.$ac_ext >&5
24393
24394         cat >conftest.$ac_ext <<_ACEOF
24395 /* confdefs.h.  */
24396 _ACEOF
24397 cat confdefs.h >>conftest.$ac_ext
24398 cat >>conftest.$ac_ext <<_ACEOF
24399 /* end confdefs.h.  */
24400 $ac_includes_default
24401 int
24402 main ()
24403 {
24404 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24405 test_array [0] = 0
24406
24407   ;
24408   return 0;
24409 }
24410 _ACEOF
24411 rm -f conftest.$ac_objext
24412 if { (ac_try="$ac_compile"
24413 case "(($ac_try" in
24414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24415   *) ac_try_echo=$ac_try;;
24416 esac
24417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24418 $as_echo "$ac_try_echo") >&5
24419   (eval "$ac_compile") 2>conftest.er1
24420   ac_status=$?
24421   grep -v '^ *+' conftest.er1 >conftest.err
24422   rm -f conftest.er1
24423   cat conftest.err >&5
24424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425   (exit $ac_status); } && {
24426          test -z "$ac_c_werror_flag" ||
24427          test ! -s conftest.err
24428        } && test -s conftest.$ac_objext; then
24429   ac_hi=-1 ac_mid=-1
24430   while :; do
24431     cat >conftest.$ac_ext <<_ACEOF
24432 /* confdefs.h.  */
24433 _ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h.  */
24437 $ac_includes_default
24438 int
24439 main ()
24440 {
24441 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24442 test_array [0] = 0
24443
24444   ;
24445   return 0;
24446 }
24447 _ACEOF
24448 rm -f conftest.$ac_objext
24449 if { (ac_try="$ac_compile"
24450 case "(($ac_try" in
24451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452   *) ac_try_echo=$ac_try;;
24453 esac
24454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24455 $as_echo "$ac_try_echo") >&5
24456   (eval "$ac_compile") 2>conftest.er1
24457   ac_status=$?
24458   grep -v '^ *+' conftest.er1 >conftest.err
24459   rm -f conftest.er1
24460   cat conftest.err >&5
24461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462   (exit $ac_status); } && {
24463          test -z "$ac_c_werror_flag" ||
24464          test ! -s conftest.err
24465        } && test -s conftest.$ac_objext; then
24466   ac_lo=$ac_mid; break
24467 else
24468   $as_echo "$as_me: failed program was:" >&5
24469 sed 's/^/| /' conftest.$ac_ext >&5
24470
24471         ac_hi=`expr '(' $ac_mid ')' - 1`
24472                         if test $ac_mid -le $ac_hi; then
24473                           ac_lo= ac_hi=
24474                           break
24475                         fi
24476                         ac_mid=`expr 2 '*' $ac_mid`
24477 fi
24478
24479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24480   done
24481 else
24482   $as_echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24484
24485         ac_lo= ac_hi=
24486 fi
24487
24488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24489 fi
24490
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492 # Binary search between lo and hi bounds.
24493 while test "x$ac_lo" != "x$ac_hi"; do
24494   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24495   cat >conftest.$ac_ext <<_ACEOF
24496 /* confdefs.h.  */
24497 _ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h.  */
24501 $ac_includes_default
24502 int
24503 main ()
24504 {
24505 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24506 test_array [0] = 0
24507
24508   ;
24509   return 0;
24510 }
24511 _ACEOF
24512 rm -f conftest.$ac_objext
24513 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24521   ac_status=$?
24522   grep -v '^ *+' conftest.er1 >conftest.err
24523   rm -f conftest.er1
24524   cat conftest.err >&5
24525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526   (exit $ac_status); } && {
24527          test -z "$ac_c_werror_flag" ||
24528          test ! -s conftest.err
24529        } && test -s conftest.$ac_objext; then
24530   ac_hi=$ac_mid
24531 else
24532   $as_echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24534
24535         ac_lo=`expr '(' $ac_mid ')' + 1`
24536 fi
24537
24538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24539 done
24540 case $ac_lo in
24541 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24542 '') if test "$ac_cv_type_size_t" = yes; then
24543      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24545 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24546 See \`config.log' for more details." >&5
24547 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24548 See \`config.log' for more details." >&2;}
24549    { (exit 77); exit 77; }; }; }
24550    else
24551      ac_cv_sizeof_size_t=0
24552    fi ;;
24553 esac
24554 else
24555   cat >conftest.$ac_ext <<_ACEOF
24556 /* confdefs.h.  */
24557 _ACEOF
24558 cat confdefs.h >>conftest.$ac_ext
24559 cat >>conftest.$ac_ext <<_ACEOF
24560 /* end confdefs.h.  */
24561 $ac_includes_default
24562 static long int longval () { return (long int) (sizeof (size_t)); }
24563 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24564 #include <stdio.h>
24565 #include <stdlib.h>
24566 int
24567 main ()
24568 {
24569
24570   FILE *f = fopen ("conftest.val", "w");
24571   if (! f)
24572     return 1;
24573   if (((long int) (sizeof (size_t))) < 0)
24574     {
24575       long int i = longval ();
24576       if (i != ((long int) (sizeof (size_t))))
24577         return 1;
24578       fprintf (f, "%ld", i);
24579     }
24580   else
24581     {
24582       unsigned long int i = ulongval ();
24583       if (i != ((long int) (sizeof (size_t))))
24584         return 1;
24585       fprintf (f, "%lu", i);
24586     }
24587   /* Do not output a trailing newline, as this causes \r\n confusion
24588      on some platforms.  */
24589   return ferror (f) || fclose (f) != 0;
24590
24591   ;
24592   return 0;
24593 }
24594 _ACEOF
24595 rm -f conftest$ac_exeext
24596 if { (ac_try="$ac_link"
24597 case "(($ac_try" in
24598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599   *) ac_try_echo=$ac_try;;
24600 esac
24601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24602 $as_echo "$ac_try_echo") >&5
24603   (eval "$ac_link") 2>&5
24604   ac_status=$?
24605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24607   { (case "(($ac_try" in
24608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609   *) ac_try_echo=$ac_try;;
24610 esac
24611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24612 $as_echo "$ac_try_echo") >&5
24613   (eval "$ac_try") 2>&5
24614   ac_status=$?
24615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); }; }; then
24617   ac_cv_sizeof_size_t=`cat conftest.val`
24618 else
24619   $as_echo "$as_me: program exited with status $ac_status" >&5
24620 $as_echo "$as_me: failed program was:" >&5
24621 sed 's/^/| /' conftest.$ac_ext >&5
24622
24623 ( exit $ac_status )
24624 if test "$ac_cv_type_size_t" = yes; then
24625      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24627 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24628 See \`config.log' for more details." >&5
24629 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24630 See \`config.log' for more details." >&2;}
24631    { (exit 77); exit 77; }; }; }
24632    else
24633      ac_cv_sizeof_size_t=0
24634    fi
24635 fi
24636 rm -rf conftest.dSYM
24637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24638 fi
24639 rm -f conftest.val
24640 fi
24641 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24642 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24643
24644
24645
24646 cat >>confdefs.h <<_ACEOF
24647 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24648 _ACEOF
24649
24650
24651 # The cast to long int works around a bug in the HP C Compiler
24652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24654 # This bug is HP SR number 8606223364.
24655 { $as_echo "$as_me:$LINENO: checking size of long" >&5
24656 $as_echo_n "checking size of long... " >&6; }
24657 if test "${ac_cv_sizeof_long+set}" = set; then
24658   $as_echo_n "(cached) " >&6
24659 else
24660   if test "$cross_compiling" = yes; then
24661   # Depending upon the size, compute the lo and hi bounds.
24662 cat >conftest.$ac_ext <<_ACEOF
24663 /* confdefs.h.  */
24664 _ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h.  */
24668 $ac_includes_default
24669 int
24670 main ()
24671 {
24672 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24673 test_array [0] = 0
24674
24675   ;
24676   return 0;
24677 }
24678 _ACEOF
24679 rm -f conftest.$ac_objext
24680 if { (ac_try="$ac_compile"
24681 case "(($ac_try" in
24682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683   *) ac_try_echo=$ac_try;;
24684 esac
24685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24686 $as_echo "$ac_try_echo") >&5
24687   (eval "$ac_compile") 2>conftest.er1
24688   ac_status=$?
24689   grep -v '^ *+' conftest.er1 >conftest.err
24690   rm -f conftest.er1
24691   cat conftest.err >&5
24692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693   (exit $ac_status); } && {
24694          test -z "$ac_c_werror_flag" ||
24695          test ! -s conftest.err
24696        } && test -s conftest.$ac_objext; then
24697   ac_lo=0 ac_mid=0
24698   while :; do
24699     cat >conftest.$ac_ext <<_ACEOF
24700 /* confdefs.h.  */
24701 _ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h.  */
24705 $ac_includes_default
24706 int
24707 main ()
24708 {
24709 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24710 test_array [0] = 0
24711
24712   ;
24713   return 0;
24714 }
24715 _ACEOF
24716 rm -f conftest.$ac_objext
24717 if { (ac_try="$ac_compile"
24718 case "(($ac_try" in
24719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720   *) ac_try_echo=$ac_try;;
24721 esac
24722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24723 $as_echo "$ac_try_echo") >&5
24724   (eval "$ac_compile") 2>conftest.er1
24725   ac_status=$?
24726   grep -v '^ *+' conftest.er1 >conftest.err
24727   rm -f conftest.er1
24728   cat conftest.err >&5
24729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730   (exit $ac_status); } && {
24731          test -z "$ac_c_werror_flag" ||
24732          test ! -s conftest.err
24733        } && test -s conftest.$ac_objext; then
24734   ac_hi=$ac_mid; break
24735 else
24736   $as_echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24738
24739         ac_lo=`expr $ac_mid + 1`
24740                         if test $ac_lo -le $ac_mid; then
24741                           ac_lo= ac_hi=
24742                           break
24743                         fi
24744                         ac_mid=`expr 2 '*' $ac_mid + 1`
24745 fi
24746
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748   done
24749 else
24750   $as_echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24752
24753         cat >conftest.$ac_ext <<_ACEOF
24754 /* confdefs.h.  */
24755 _ACEOF
24756 cat confdefs.h >>conftest.$ac_ext
24757 cat >>conftest.$ac_ext <<_ACEOF
24758 /* end confdefs.h.  */
24759 $ac_includes_default
24760 int
24761 main ()
24762 {
24763 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24764 test_array [0] = 0
24765
24766   ;
24767   return 0;
24768 }
24769 _ACEOF
24770 rm -f conftest.$ac_objext
24771 if { (ac_try="$ac_compile"
24772 case "(($ac_try" in
24773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774   *) ac_try_echo=$ac_try;;
24775 esac
24776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24777 $as_echo "$ac_try_echo") >&5
24778   (eval "$ac_compile") 2>conftest.er1
24779   ac_status=$?
24780   grep -v '^ *+' conftest.er1 >conftest.err
24781   rm -f conftest.er1
24782   cat conftest.err >&5
24783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784   (exit $ac_status); } && {
24785          test -z "$ac_c_werror_flag" ||
24786          test ! -s conftest.err
24787        } && test -s conftest.$ac_objext; then
24788   ac_hi=-1 ac_mid=-1
24789   while :; do
24790     cat >conftest.$ac_ext <<_ACEOF
24791 /* confdefs.h.  */
24792 _ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h.  */
24796 $ac_includes_default
24797 int
24798 main ()
24799 {
24800 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24801 test_array [0] = 0
24802
24803   ;
24804   return 0;
24805 }
24806 _ACEOF
24807 rm -f conftest.$ac_objext
24808 if { (ac_try="$ac_compile"
24809 case "(($ac_try" in
24810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811   *) ac_try_echo=$ac_try;;
24812 esac
24813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24814 $as_echo "$ac_try_echo") >&5
24815   (eval "$ac_compile") 2>conftest.er1
24816   ac_status=$?
24817   grep -v '^ *+' conftest.er1 >conftest.err
24818   rm -f conftest.er1
24819   cat conftest.err >&5
24820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821   (exit $ac_status); } && {
24822          test -z "$ac_c_werror_flag" ||
24823          test ! -s conftest.err
24824        } && test -s conftest.$ac_objext; then
24825   ac_lo=$ac_mid; break
24826 else
24827   $as_echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830         ac_hi=`expr '(' $ac_mid ')' - 1`
24831                         if test $ac_mid -le $ac_hi; then
24832                           ac_lo= ac_hi=
24833                           break
24834                         fi
24835                         ac_mid=`expr 2 '*' $ac_mid`
24836 fi
24837
24838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24839   done
24840 else
24841   $as_echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24843
24844         ac_lo= ac_hi=
24845 fi
24846
24847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24848 fi
24849
24850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24851 # Binary search between lo and hi bounds.
24852 while test "x$ac_lo" != "x$ac_hi"; do
24853   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24854   cat >conftest.$ac_ext <<_ACEOF
24855 /* confdefs.h.  */
24856 _ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h.  */
24860 $ac_includes_default
24861 int
24862 main ()
24863 {
24864 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24865 test_array [0] = 0
24866
24867   ;
24868   return 0;
24869 }
24870 _ACEOF
24871 rm -f conftest.$ac_objext
24872 if { (ac_try="$ac_compile"
24873 case "(($ac_try" in
24874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875   *) ac_try_echo=$ac_try;;
24876 esac
24877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24878 $as_echo "$ac_try_echo") >&5
24879   (eval "$ac_compile") 2>conftest.er1
24880   ac_status=$?
24881   grep -v '^ *+' conftest.er1 >conftest.err
24882   rm -f conftest.er1
24883   cat conftest.err >&5
24884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885   (exit $ac_status); } && {
24886          test -z "$ac_c_werror_flag" ||
24887          test ! -s conftest.err
24888        } && test -s conftest.$ac_objext; then
24889   ac_hi=$ac_mid
24890 else
24891   $as_echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24893
24894         ac_lo=`expr '(' $ac_mid ')' + 1`
24895 fi
24896
24897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24898 done
24899 case $ac_lo in
24900 ?*) ac_cv_sizeof_long=$ac_lo;;
24901 '') if test "$ac_cv_type_long" = yes; then
24902      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24904 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24905 See \`config.log' for more details." >&5
24906 $as_echo "$as_me: error: cannot compute sizeof (long)
24907 See \`config.log' for more details." >&2;}
24908    { (exit 77); exit 77; }; }; }
24909    else
24910      ac_cv_sizeof_long=0
24911    fi ;;
24912 esac
24913 else
24914   cat >conftest.$ac_ext <<_ACEOF
24915 /* confdefs.h.  */
24916 _ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h.  */
24920 $ac_includes_default
24921 static long int longval () { return (long int) (sizeof (long)); }
24922 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
24923 #include <stdio.h>
24924 #include <stdlib.h>
24925 int
24926 main ()
24927 {
24928
24929   FILE *f = fopen ("conftest.val", "w");
24930   if (! f)
24931     return 1;
24932   if (((long int) (sizeof (long))) < 0)
24933     {
24934       long int i = longval ();
24935       if (i != ((long int) (sizeof (long))))
24936         return 1;
24937       fprintf (f, "%ld", i);
24938     }
24939   else
24940     {
24941       unsigned long int i = ulongval ();
24942       if (i != ((long int) (sizeof (long))))
24943         return 1;
24944       fprintf (f, "%lu", i);
24945     }
24946   /* Do not output a trailing newline, as this causes \r\n confusion
24947      on some platforms.  */
24948   return ferror (f) || fclose (f) != 0;
24949
24950   ;
24951   return 0;
24952 }
24953 _ACEOF
24954 rm -f conftest$ac_exeext
24955 if { (ac_try="$ac_link"
24956 case "(($ac_try" in
24957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958   *) ac_try_echo=$ac_try;;
24959 esac
24960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24961 $as_echo "$ac_try_echo") >&5
24962   (eval "$ac_link") 2>&5
24963   ac_status=$?
24964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24966   { (case "(($ac_try" in
24967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968   *) ac_try_echo=$ac_try;;
24969 esac
24970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24971 $as_echo "$ac_try_echo") >&5
24972   (eval "$ac_try") 2>&5
24973   ac_status=$?
24974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975   (exit $ac_status); }; }; then
24976   ac_cv_sizeof_long=`cat conftest.val`
24977 else
24978   $as_echo "$as_me: program exited with status $ac_status" >&5
24979 $as_echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24981
24982 ( exit $ac_status )
24983 if test "$ac_cv_type_long" = yes; then
24984      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24986 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24987 See \`config.log' for more details." >&5
24988 $as_echo "$as_me: error: cannot compute sizeof (long)
24989 See \`config.log' for more details." >&2;}
24990    { (exit 77); exit 77; }; }; }
24991    else
24992      ac_cv_sizeof_long=0
24993    fi
24994 fi
24995 rm -rf conftest.dSYM
24996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24997 fi
24998 rm -f conftest.val
24999 fi
25000 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25001 $as_echo "$ac_cv_sizeof_long" >&6; }
25002
25003
25004
25005 cat >>confdefs.h <<_ACEOF
25006 #define SIZEOF_LONG $ac_cv_sizeof_long
25007 _ACEOF
25008
25009
25010
25011 # Decide whether float4 is passed by value: user-selectable, enabled by default
25012 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25013 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25014
25015
25016 # Check whether --enable-float4-byval was given.
25017 if test "${enable_float4_byval+set}" = set; then
25018   enableval=$enable_float4_byval;
25019   case $enableval in
25020     yes)
25021
25022 cat >>confdefs.h <<\_ACEOF
25023 #define USE_FLOAT4_BYVAL 1
25024 _ACEOF
25025
25026                float4passbyval=true
25027       ;;
25028     no)
25029       float4passbyval=false
25030       ;;
25031     *)
25032       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25033 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25034    { (exit 1); exit 1; }; }
25035       ;;
25036   esac
25037
25038 else
25039   enable_float4_byval=yes
25040
25041 cat >>confdefs.h <<\_ACEOF
25042 #define USE_FLOAT4_BYVAL 1
25043 _ACEOF
25044
25045                float4passbyval=true
25046 fi
25047
25048
25049 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25050 $as_echo "$enable_float4_byval" >&6; }
25051
25052 cat >>confdefs.h <<_ACEOF
25053 #define FLOAT4PASSBYVAL $float4passbyval
25054 _ACEOF
25055
25056
25057 # Decide whether float8 is passed by value.
25058 # Note: this setting also controls int8 and related types such as timestamp.
25059 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25060 # If not, trying to select it is an error.
25061 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25062 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25063 if test $ac_cv_sizeof_void_p -ge 8 ; then
25064
25065
25066 # Check whether --enable-float8-byval was given.
25067 if test "${enable_float8_byval+set}" = set; then
25068   enableval=$enable_float8_byval;
25069   case $enableval in
25070     yes)
25071       :
25072       ;;
25073     no)
25074       :
25075       ;;
25076     *)
25077       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25078 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25079    { (exit 1); exit 1; }; }
25080       ;;
25081   esac
25082
25083 else
25084   enable_float8_byval=yes
25085
25086 fi
25087
25088
25089 else
25090
25091
25092 # Check whether --enable-float8-byval was given.
25093 if test "${enable_float8_byval+set}" = set; then
25094   enableval=$enable_float8_byval;
25095   case $enableval in
25096     yes)
25097       :
25098       ;;
25099     no)
25100       :
25101       ;;
25102     *)
25103       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25104 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25105    { (exit 1); exit 1; }; }
25106       ;;
25107   esac
25108
25109 else
25110   enable_float8_byval=no
25111
25112 fi
25113
25114
25115   if test "$enable_float8_byval" = yes ; then
25116     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25117 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25118    { (exit 1); exit 1; }; }
25119   fi
25120 fi
25121 if test "$enable_float8_byval" = yes ; then
25122
25123 cat >>confdefs.h <<\_ACEOF
25124 #define USE_FLOAT8_BYVAL 1
25125 _ACEOF
25126
25127   float8passbyval=true
25128 else
25129   float8passbyval=false
25130 fi
25131 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25132 $as_echo "$enable_float8_byval" >&6; }
25133
25134 cat >>confdefs.h <<_ACEOF
25135 #define FLOAT8PASSBYVAL $float8passbyval
25136 _ACEOF
25137
25138
25139 # Determine memory alignment requirements for the basic C data types.
25140
25141 # The cast to long int works around a bug in the HP C Compiler,
25142 # see AC_CHECK_SIZEOF for more information.
25143 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25144 $as_echo_n "checking alignment of short... " >&6; }
25145 if test "${ac_cv_alignof_short+set}" = set; then
25146   $as_echo_n "(cached) " >&6
25147 else
25148   if test "$cross_compiling" = yes; then
25149   # Depending upon the size, compute the lo and hi bounds.
25150 cat >conftest.$ac_ext <<_ACEOF
25151 /* confdefs.h.  */
25152 _ACEOF
25153 cat confdefs.h >>conftest.$ac_ext
25154 cat >>conftest.$ac_ext <<_ACEOF
25155 /* end confdefs.h.  */
25156 $ac_includes_default
25157 #ifndef offsetof
25158 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25159 #endif
25160 typedef struct { char x; short y; } ac__type_alignof_;
25161 int
25162 main ()
25163 {
25164 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25165 test_array [0] = 0
25166
25167   ;
25168   return 0;
25169 }
25170 _ACEOF
25171 rm -f conftest.$ac_objext
25172 if { (ac_try="$ac_compile"
25173 case "(($ac_try" in
25174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175   *) ac_try_echo=$ac_try;;
25176 esac
25177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25178 $as_echo "$ac_try_echo") >&5
25179   (eval "$ac_compile") 2>conftest.er1
25180   ac_status=$?
25181   grep -v '^ *+' conftest.er1 >conftest.err
25182   rm -f conftest.er1
25183   cat conftest.err >&5
25184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); } && {
25186          test -z "$ac_c_werror_flag" ||
25187          test ! -s conftest.err
25188        } && test -s conftest.$ac_objext; then
25189   ac_lo=0 ac_mid=0
25190   while :; do
25191     cat >conftest.$ac_ext <<_ACEOF
25192 /* confdefs.h.  */
25193 _ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h.  */
25197 $ac_includes_default
25198 #ifndef offsetof
25199 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25200 #endif
25201 typedef struct { char x; short y; } ac__type_alignof_;
25202 int
25203 main ()
25204 {
25205 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25206 test_array [0] = 0
25207
25208   ;
25209   return 0;
25210 }
25211 _ACEOF
25212 rm -f conftest.$ac_objext
25213 if { (ac_try="$ac_compile"
25214 case "(($ac_try" in
25215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216   *) ac_try_echo=$ac_try;;
25217 esac
25218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25219 $as_echo "$ac_try_echo") >&5
25220   (eval "$ac_compile") 2>conftest.er1
25221   ac_status=$?
25222   grep -v '^ *+' conftest.er1 >conftest.err
25223   rm -f conftest.er1
25224   cat conftest.err >&5
25225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226   (exit $ac_status); } && {
25227          test -z "$ac_c_werror_flag" ||
25228          test ! -s conftest.err
25229        } && test -s conftest.$ac_objext; then
25230   ac_hi=$ac_mid; break
25231 else
25232   $as_echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235         ac_lo=`expr $ac_mid + 1`
25236                         if test $ac_lo -le $ac_mid; then
25237                           ac_lo= ac_hi=
25238                           break
25239                         fi
25240                         ac_mid=`expr 2 '*' $ac_mid + 1`
25241 fi
25242
25243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25244   done
25245 else
25246   $as_echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25248
25249         cat >conftest.$ac_ext <<_ACEOF
25250 /* confdefs.h.  */
25251 _ACEOF
25252 cat confdefs.h >>conftest.$ac_ext
25253 cat >>conftest.$ac_ext <<_ACEOF
25254 /* end confdefs.h.  */
25255 $ac_includes_default
25256 #ifndef offsetof
25257 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25258 #endif
25259 typedef struct { char x; short y; } ac__type_alignof_;
25260 int
25261 main ()
25262 {
25263 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25264 test_array [0] = 0
25265
25266   ;
25267   return 0;
25268 }
25269 _ACEOF
25270 rm -f conftest.$ac_objext
25271 if { (ac_try="$ac_compile"
25272 case "(($ac_try" in
25273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274   *) ac_try_echo=$ac_try;;
25275 esac
25276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25277 $as_echo "$ac_try_echo") >&5
25278   (eval "$ac_compile") 2>conftest.er1
25279   ac_status=$?
25280   grep -v '^ *+' conftest.er1 >conftest.err
25281   rm -f conftest.er1
25282   cat conftest.err >&5
25283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); } && {
25285          test -z "$ac_c_werror_flag" ||
25286          test ! -s conftest.err
25287        } && test -s conftest.$ac_objext; then
25288   ac_hi=-1 ac_mid=-1
25289   while :; do
25290     cat >conftest.$ac_ext <<_ACEOF
25291 /* confdefs.h.  */
25292 _ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h.  */
25296 $ac_includes_default
25297 #ifndef offsetof
25298 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25299 #endif
25300 typedef struct { char x; short y; } ac__type_alignof_;
25301 int
25302 main ()
25303 {
25304 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25305 test_array [0] = 0
25306
25307   ;
25308   return 0;
25309 }
25310 _ACEOF
25311 rm -f conftest.$ac_objext
25312 if { (ac_try="$ac_compile"
25313 case "(($ac_try" in
25314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315   *) ac_try_echo=$ac_try;;
25316 esac
25317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25318 $as_echo "$ac_try_echo") >&5
25319   (eval "$ac_compile") 2>conftest.er1
25320   ac_status=$?
25321   grep -v '^ *+' conftest.er1 >conftest.err
25322   rm -f conftest.er1
25323   cat conftest.err >&5
25324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325   (exit $ac_status); } && {
25326          test -z "$ac_c_werror_flag" ||
25327          test ! -s conftest.err
25328        } && test -s conftest.$ac_objext; then
25329   ac_lo=$ac_mid; break
25330 else
25331   $as_echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25333
25334         ac_hi=`expr '(' $ac_mid ')' - 1`
25335                         if test $ac_mid -le $ac_hi; then
25336                           ac_lo= ac_hi=
25337                           break
25338                         fi
25339                         ac_mid=`expr 2 '*' $ac_mid`
25340 fi
25341
25342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25343   done
25344 else
25345   $as_echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25347
25348         ac_lo= ac_hi=
25349 fi
25350
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25352 fi
25353
25354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25355 # Binary search between lo and hi bounds.
25356 while test "x$ac_lo" != "x$ac_hi"; do
25357   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25358   cat >conftest.$ac_ext <<_ACEOF
25359 /* confdefs.h.  */
25360 _ACEOF
25361 cat confdefs.h >>conftest.$ac_ext
25362 cat >>conftest.$ac_ext <<_ACEOF
25363 /* end confdefs.h.  */
25364 $ac_includes_default
25365 #ifndef offsetof
25366 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25367 #endif
25368 typedef struct { char x; short y; } ac__type_alignof_;
25369 int
25370 main ()
25371 {
25372 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25373 test_array [0] = 0
25374
25375   ;
25376   return 0;
25377 }
25378 _ACEOF
25379 rm -f conftest.$ac_objext
25380 if { (ac_try="$ac_compile"
25381 case "(($ac_try" in
25382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383   *) ac_try_echo=$ac_try;;
25384 esac
25385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25386 $as_echo "$ac_try_echo") >&5
25387   (eval "$ac_compile") 2>conftest.er1
25388   ac_status=$?
25389   grep -v '^ *+' conftest.er1 >conftest.err
25390   rm -f conftest.er1
25391   cat conftest.err >&5
25392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393   (exit $ac_status); } && {
25394          test -z "$ac_c_werror_flag" ||
25395          test ! -s conftest.err
25396        } && test -s conftest.$ac_objext; then
25397   ac_hi=$ac_mid
25398 else
25399   $as_echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25401
25402         ac_lo=`expr '(' $ac_mid ')' + 1`
25403 fi
25404
25405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25406 done
25407 case $ac_lo in
25408 ?*) ac_cv_alignof_short=$ac_lo;;
25409 '') if test "$ac_cv_type_short" = yes; then
25410      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25412 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25413 See \`config.log' for more details." >&5
25414 $as_echo "$as_me: error: cannot compute alignment of short
25415 See \`config.log' for more details." >&2;}
25416    { (exit 77); exit 77; }; }; }
25417    else
25418      ac_cv_alignof_short=0
25419    fi ;;
25420 esac
25421 else
25422   cat >conftest.$ac_ext <<_ACEOF
25423 /* confdefs.h.  */
25424 _ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h.  */
25428 $ac_includes_default
25429 #ifndef offsetof
25430 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25431 #endif
25432 typedef struct { char x; short y; } ac__type_alignof_;
25433 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25434 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25435 #include <stdio.h>
25436 #include <stdlib.h>
25437 int
25438 main ()
25439 {
25440
25441   FILE *f = fopen ("conftest.val", "w");
25442   if (! f)
25443     return 1;
25444   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25445     {
25446       long int i = longval ();
25447       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25448         return 1;
25449       fprintf (f, "%ld", i);
25450     }
25451   else
25452     {
25453       unsigned long int i = ulongval ();
25454       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25455         return 1;
25456       fprintf (f, "%lu", i);
25457     }
25458   /* Do not output a trailing newline, as this causes \r\n confusion
25459      on some platforms.  */
25460   return ferror (f) || fclose (f) != 0;
25461
25462   ;
25463   return 0;
25464 }
25465 _ACEOF
25466 rm -f conftest$ac_exeext
25467 if { (ac_try="$ac_link"
25468 case "(($ac_try" in
25469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470   *) ac_try_echo=$ac_try;;
25471 esac
25472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25473 $as_echo "$ac_try_echo") >&5
25474   (eval "$ac_link") 2>&5
25475   ac_status=$?
25476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25478   { (case "(($ac_try" in
25479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480   *) ac_try_echo=$ac_try;;
25481 esac
25482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25483 $as_echo "$ac_try_echo") >&5
25484   (eval "$ac_try") 2>&5
25485   ac_status=$?
25486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487   (exit $ac_status); }; }; then
25488   ac_cv_alignof_short=`cat conftest.val`
25489 else
25490   $as_echo "$as_me: program exited with status $ac_status" >&5
25491 $as_echo "$as_me: failed program was:" >&5
25492 sed 's/^/| /' conftest.$ac_ext >&5
25493
25494 ( exit $ac_status )
25495 if test "$ac_cv_type_short" = yes; then
25496      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25498 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25499 See \`config.log' for more details." >&5
25500 $as_echo "$as_me: error: cannot compute alignment of short
25501 See \`config.log' for more details." >&2;}
25502    { (exit 77); exit 77; }; }; }
25503    else
25504      ac_cv_alignof_short=0
25505    fi
25506 fi
25507 rm -rf conftest.dSYM
25508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25509 fi
25510 rm -f conftest.val
25511 fi
25512 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25513 $as_echo "$ac_cv_alignof_short" >&6; }
25514
25515
25516
25517 cat >>confdefs.h <<_ACEOF
25518 #define ALIGNOF_SHORT $ac_cv_alignof_short
25519 _ACEOF
25520
25521
25522 # The cast to long int works around a bug in the HP C Compiler,
25523 # see AC_CHECK_SIZEOF for more information.
25524 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25525 $as_echo_n "checking alignment of int... " >&6; }
25526 if test "${ac_cv_alignof_int+set}" = set; then
25527   $as_echo_n "(cached) " >&6
25528 else
25529   if test "$cross_compiling" = yes; then
25530   # Depending upon the size, compute the lo and hi bounds.
25531 cat >conftest.$ac_ext <<_ACEOF
25532 /* confdefs.h.  */
25533 _ACEOF
25534 cat confdefs.h >>conftest.$ac_ext
25535 cat >>conftest.$ac_ext <<_ACEOF
25536 /* end confdefs.h.  */
25537 $ac_includes_default
25538 #ifndef offsetof
25539 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25540 #endif
25541 typedef struct { char x; int y; } ac__type_alignof_;
25542 int
25543 main ()
25544 {
25545 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25546 test_array [0] = 0
25547
25548   ;
25549   return 0;
25550 }
25551 _ACEOF
25552 rm -f conftest.$ac_objext
25553 if { (ac_try="$ac_compile"
25554 case "(($ac_try" in
25555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556   *) ac_try_echo=$ac_try;;
25557 esac
25558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25559 $as_echo "$ac_try_echo") >&5
25560   (eval "$ac_compile") 2>conftest.er1
25561   ac_status=$?
25562   grep -v '^ *+' conftest.er1 >conftest.err
25563   rm -f conftest.er1
25564   cat conftest.err >&5
25565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566   (exit $ac_status); } && {
25567          test -z "$ac_c_werror_flag" ||
25568          test ! -s conftest.err
25569        } && test -s conftest.$ac_objext; then
25570   ac_lo=0 ac_mid=0
25571   while :; do
25572     cat >conftest.$ac_ext <<_ACEOF
25573 /* confdefs.h.  */
25574 _ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h.  */
25578 $ac_includes_default
25579 #ifndef offsetof
25580 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25581 #endif
25582 typedef struct { char x; int y; } ac__type_alignof_;
25583 int
25584 main ()
25585 {
25586 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25587 test_array [0] = 0
25588
25589   ;
25590   return 0;
25591 }
25592 _ACEOF
25593 rm -f conftest.$ac_objext
25594 if { (ac_try="$ac_compile"
25595 case "(($ac_try" in
25596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597   *) ac_try_echo=$ac_try;;
25598 esac
25599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25600 $as_echo "$ac_try_echo") >&5
25601   (eval "$ac_compile") 2>conftest.er1
25602   ac_status=$?
25603   grep -v '^ *+' conftest.er1 >conftest.err
25604   rm -f conftest.er1
25605   cat conftest.err >&5
25606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607   (exit $ac_status); } && {
25608          test -z "$ac_c_werror_flag" ||
25609          test ! -s conftest.err
25610        } && test -s conftest.$ac_objext; then
25611   ac_hi=$ac_mid; break
25612 else
25613   $as_echo "$as_me: failed program was:" >&5
25614 sed 's/^/| /' conftest.$ac_ext >&5
25615
25616         ac_lo=`expr $ac_mid + 1`
25617                         if test $ac_lo -le $ac_mid; then
25618                           ac_lo= ac_hi=
25619                           break
25620                         fi
25621                         ac_mid=`expr 2 '*' $ac_mid + 1`
25622 fi
25623
25624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25625   done
25626 else
25627   $as_echo "$as_me: failed program was:" >&5
25628 sed 's/^/| /' conftest.$ac_ext >&5
25629
25630         cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h.  */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h.  */
25636 $ac_includes_default
25637 #ifndef offsetof
25638 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25639 #endif
25640 typedef struct { char x; int y; } ac__type_alignof_;
25641 int
25642 main ()
25643 {
25644 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25645 test_array [0] = 0
25646
25647   ;
25648   return 0;
25649 }
25650 _ACEOF
25651 rm -f conftest.$ac_objext
25652 if { (ac_try="$ac_compile"
25653 case "(($ac_try" in
25654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655   *) ac_try_echo=$ac_try;;
25656 esac
25657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25658 $as_echo "$ac_try_echo") >&5
25659   (eval "$ac_compile") 2>conftest.er1
25660   ac_status=$?
25661   grep -v '^ *+' conftest.er1 >conftest.err
25662   rm -f conftest.er1
25663   cat conftest.err >&5
25664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665   (exit $ac_status); } && {
25666          test -z "$ac_c_werror_flag" ||
25667          test ! -s conftest.err
25668        } && test -s conftest.$ac_objext; then
25669   ac_hi=-1 ac_mid=-1
25670   while :; do
25671     cat >conftest.$ac_ext <<_ACEOF
25672 /* confdefs.h.  */
25673 _ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h.  */
25677 $ac_includes_default
25678 #ifndef offsetof
25679 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25680 #endif
25681 typedef struct { char x; int y; } ac__type_alignof_;
25682 int
25683 main ()
25684 {
25685 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25686 test_array [0] = 0
25687
25688   ;
25689   return 0;
25690 }
25691 _ACEOF
25692 rm -f conftest.$ac_objext
25693 if { (ac_try="$ac_compile"
25694 case "(($ac_try" in
25695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696   *) ac_try_echo=$ac_try;;
25697 esac
25698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25699 $as_echo "$ac_try_echo") >&5
25700   (eval "$ac_compile") 2>conftest.er1
25701   ac_status=$?
25702   grep -v '^ *+' conftest.er1 >conftest.err
25703   rm -f conftest.er1
25704   cat conftest.err >&5
25705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); } && {
25707          test -z "$ac_c_werror_flag" ||
25708          test ! -s conftest.err
25709        } && test -s conftest.$ac_objext; then
25710   ac_lo=$ac_mid; break
25711 else
25712   $as_echo "$as_me: failed program was:" >&5
25713 sed 's/^/| /' conftest.$ac_ext >&5
25714
25715         ac_hi=`expr '(' $ac_mid ')' - 1`
25716                         if test $ac_mid -le $ac_hi; then
25717                           ac_lo= ac_hi=
25718                           break
25719                         fi
25720                         ac_mid=`expr 2 '*' $ac_mid`
25721 fi
25722
25723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724   done
25725 else
25726   $as_echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25728
25729         ac_lo= ac_hi=
25730 fi
25731
25732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25733 fi
25734
25735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25736 # Binary search between lo and hi bounds.
25737 while test "x$ac_lo" != "x$ac_hi"; do
25738   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25739   cat >conftest.$ac_ext <<_ACEOF
25740 /* confdefs.h.  */
25741 _ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h.  */
25745 $ac_includes_default
25746 #ifndef offsetof
25747 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25748 #endif
25749 typedef struct { char x; int y; } ac__type_alignof_;
25750 int
25751 main ()
25752 {
25753 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25754 test_array [0] = 0
25755
25756   ;
25757   return 0;
25758 }
25759 _ACEOF
25760 rm -f conftest.$ac_objext
25761 if { (ac_try="$ac_compile"
25762 case "(($ac_try" in
25763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764   *) ac_try_echo=$ac_try;;
25765 esac
25766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25767 $as_echo "$ac_try_echo") >&5
25768   (eval "$ac_compile") 2>conftest.er1
25769   ac_status=$?
25770   grep -v '^ *+' conftest.er1 >conftest.err
25771   rm -f conftest.er1
25772   cat conftest.err >&5
25773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774   (exit $ac_status); } && {
25775          test -z "$ac_c_werror_flag" ||
25776          test ! -s conftest.err
25777        } && test -s conftest.$ac_objext; then
25778   ac_hi=$ac_mid
25779 else
25780   $as_echo "$as_me: failed program was:" >&5
25781 sed 's/^/| /' conftest.$ac_ext >&5
25782
25783         ac_lo=`expr '(' $ac_mid ')' + 1`
25784 fi
25785
25786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25787 done
25788 case $ac_lo in
25789 ?*) ac_cv_alignof_int=$ac_lo;;
25790 '') if test "$ac_cv_type_int" = yes; then
25791      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25793 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25794 See \`config.log' for more details." >&5
25795 $as_echo "$as_me: error: cannot compute alignment of int
25796 See \`config.log' for more details." >&2;}
25797    { (exit 77); exit 77; }; }; }
25798    else
25799      ac_cv_alignof_int=0
25800    fi ;;
25801 esac
25802 else
25803   cat >conftest.$ac_ext <<_ACEOF
25804 /* confdefs.h.  */
25805 _ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h.  */
25809 $ac_includes_default
25810 #ifndef offsetof
25811 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25812 #endif
25813 typedef struct { char x; int y; } ac__type_alignof_;
25814 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25815 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25816 #include <stdio.h>
25817 #include <stdlib.h>
25818 int
25819 main ()
25820 {
25821
25822   FILE *f = fopen ("conftest.val", "w");
25823   if (! f)
25824     return 1;
25825   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25826     {
25827       long int i = longval ();
25828       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25829         return 1;
25830       fprintf (f, "%ld", i);
25831     }
25832   else
25833     {
25834       unsigned long int i = ulongval ();
25835       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25836         return 1;
25837       fprintf (f, "%lu", i);
25838     }
25839   /* Do not output a trailing newline, as this causes \r\n confusion
25840      on some platforms.  */
25841   return ferror (f) || fclose (f) != 0;
25842
25843   ;
25844   return 0;
25845 }
25846 _ACEOF
25847 rm -f conftest$ac_exeext
25848 if { (ac_try="$ac_link"
25849 case "(($ac_try" in
25850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25851   *) ac_try_echo=$ac_try;;
25852 esac
25853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25854 $as_echo "$ac_try_echo") >&5
25855   (eval "$ac_link") 2>&5
25856   ac_status=$?
25857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25859   { (case "(($ac_try" in
25860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861   *) ac_try_echo=$ac_try;;
25862 esac
25863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25864 $as_echo "$ac_try_echo") >&5
25865   (eval "$ac_try") 2>&5
25866   ac_status=$?
25867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); }; }; then
25869   ac_cv_alignof_int=`cat conftest.val`
25870 else
25871   $as_echo "$as_me: program exited with status $ac_status" >&5
25872 $as_echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25874
25875 ( exit $ac_status )
25876 if test "$ac_cv_type_int" = yes; then
25877      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25879 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25880 See \`config.log' for more details." >&5
25881 $as_echo "$as_me: error: cannot compute alignment of int
25882 See \`config.log' for more details." >&2;}
25883    { (exit 77); exit 77; }; }; }
25884    else
25885      ac_cv_alignof_int=0
25886    fi
25887 fi
25888 rm -rf conftest.dSYM
25889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25890 fi
25891 rm -f conftest.val
25892 fi
25893 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
25894 $as_echo "$ac_cv_alignof_int" >&6; }
25895
25896
25897
25898 cat >>confdefs.h <<_ACEOF
25899 #define ALIGNOF_INT $ac_cv_alignof_int
25900 _ACEOF
25901
25902
25903 # The cast to long int works around a bug in the HP C Compiler,
25904 # see AC_CHECK_SIZEOF for more information.
25905 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
25906 $as_echo_n "checking alignment of long... " >&6; }
25907 if test "${ac_cv_alignof_long+set}" = set; then
25908   $as_echo_n "(cached) " >&6
25909 else
25910   if test "$cross_compiling" = yes; then
25911   # Depending upon the size, compute the lo and hi bounds.
25912 cat >conftest.$ac_ext <<_ACEOF
25913 /* confdefs.h.  */
25914 _ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h.  */
25918 $ac_includes_default
25919 #ifndef offsetof
25920 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25921 #endif
25922 typedef struct { char x; long y; } ac__type_alignof_;
25923 int
25924 main ()
25925 {
25926 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25927 test_array [0] = 0
25928
25929   ;
25930   return 0;
25931 }
25932 _ACEOF
25933 rm -f conftest.$ac_objext
25934 if { (ac_try="$ac_compile"
25935 case "(($ac_try" in
25936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937   *) ac_try_echo=$ac_try;;
25938 esac
25939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25940 $as_echo "$ac_try_echo") >&5
25941   (eval "$ac_compile") 2>conftest.er1
25942   ac_status=$?
25943   grep -v '^ *+' conftest.er1 >conftest.err
25944   rm -f conftest.er1
25945   cat conftest.err >&5
25946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); } && {
25948          test -z "$ac_c_werror_flag" ||
25949          test ! -s conftest.err
25950        } && test -s conftest.$ac_objext; then
25951   ac_lo=0 ac_mid=0
25952   while :; do
25953     cat >conftest.$ac_ext <<_ACEOF
25954 /* confdefs.h.  */
25955 _ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h.  */
25959 $ac_includes_default
25960 #ifndef offsetof
25961 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25962 #endif
25963 typedef struct { char x; long y; } ac__type_alignof_;
25964 int
25965 main ()
25966 {
25967 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25968 test_array [0] = 0
25969
25970   ;
25971   return 0;
25972 }
25973 _ACEOF
25974 rm -f conftest.$ac_objext
25975 if { (ac_try="$ac_compile"
25976 case "(($ac_try" in
25977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25978   *) ac_try_echo=$ac_try;;
25979 esac
25980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25981 $as_echo "$ac_try_echo") >&5
25982   (eval "$ac_compile") 2>conftest.er1
25983   ac_status=$?
25984   grep -v '^ *+' conftest.er1 >conftest.err
25985   rm -f conftest.er1
25986   cat conftest.err >&5
25987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988   (exit $ac_status); } && {
25989          test -z "$ac_c_werror_flag" ||
25990          test ! -s conftest.err
25991        } && test -s conftest.$ac_objext; then
25992   ac_hi=$ac_mid; break
25993 else
25994   $as_echo "$as_me: failed program was:" >&5
25995 sed 's/^/| /' conftest.$ac_ext >&5
25996
25997         ac_lo=`expr $ac_mid + 1`
25998                         if test $ac_lo -le $ac_mid; then
25999                           ac_lo= ac_hi=
26000                           break
26001                         fi
26002                         ac_mid=`expr 2 '*' $ac_mid + 1`
26003 fi
26004
26005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26006   done
26007 else
26008   $as_echo "$as_me: failed program was:" >&5
26009 sed 's/^/| /' conftest.$ac_ext >&5
26010
26011         cat >conftest.$ac_ext <<_ACEOF
26012 /* confdefs.h.  */
26013 _ACEOF
26014 cat confdefs.h >>conftest.$ac_ext
26015 cat >>conftest.$ac_ext <<_ACEOF
26016 /* end confdefs.h.  */
26017 $ac_includes_default
26018 #ifndef offsetof
26019 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26020 #endif
26021 typedef struct { char x; long y; } ac__type_alignof_;
26022 int
26023 main ()
26024 {
26025 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26026 test_array [0] = 0
26027
26028   ;
26029   return 0;
26030 }
26031 _ACEOF
26032 rm -f conftest.$ac_objext
26033 if { (ac_try="$ac_compile"
26034 case "(($ac_try" in
26035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036   *) ac_try_echo=$ac_try;;
26037 esac
26038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26039 $as_echo "$ac_try_echo") >&5
26040   (eval "$ac_compile") 2>conftest.er1
26041   ac_status=$?
26042   grep -v '^ *+' conftest.er1 >conftest.err
26043   rm -f conftest.er1
26044   cat conftest.err >&5
26045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046   (exit $ac_status); } && {
26047          test -z "$ac_c_werror_flag" ||
26048          test ! -s conftest.err
26049        } && test -s conftest.$ac_objext; then
26050   ac_hi=-1 ac_mid=-1
26051   while :; do
26052     cat >conftest.$ac_ext <<_ACEOF
26053 /* confdefs.h.  */
26054 _ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h.  */
26058 $ac_includes_default
26059 #ifndef offsetof
26060 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26061 #endif
26062 typedef struct { char x; long y; } ac__type_alignof_;
26063 int
26064 main ()
26065 {
26066 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26067 test_array [0] = 0
26068
26069   ;
26070   return 0;
26071 }
26072 _ACEOF
26073 rm -f conftest.$ac_objext
26074 if { (ac_try="$ac_compile"
26075 case "(($ac_try" in
26076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077   *) ac_try_echo=$ac_try;;
26078 esac
26079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26080 $as_echo "$ac_try_echo") >&5
26081   (eval "$ac_compile") 2>conftest.er1
26082   ac_status=$?
26083   grep -v '^ *+' conftest.er1 >conftest.err
26084   rm -f conftest.er1
26085   cat conftest.err >&5
26086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087   (exit $ac_status); } && {
26088          test -z "$ac_c_werror_flag" ||
26089          test ! -s conftest.err
26090        } && test -s conftest.$ac_objext; then
26091   ac_lo=$ac_mid; break
26092 else
26093   $as_echo "$as_me: failed program was:" >&5
26094 sed 's/^/| /' conftest.$ac_ext >&5
26095
26096         ac_hi=`expr '(' $ac_mid ')' - 1`
26097                         if test $ac_mid -le $ac_hi; then
26098                           ac_lo= ac_hi=
26099                           break
26100                         fi
26101                         ac_mid=`expr 2 '*' $ac_mid`
26102 fi
26103
26104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26105   done
26106 else
26107   $as_echo "$as_me: failed program was:" >&5
26108 sed 's/^/| /' conftest.$ac_ext >&5
26109
26110         ac_lo= ac_hi=
26111 fi
26112
26113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26114 fi
26115
26116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26117 # Binary search between lo and hi bounds.
26118 while test "x$ac_lo" != "x$ac_hi"; do
26119   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26120   cat >conftest.$ac_ext <<_ACEOF
26121 /* confdefs.h.  */
26122 _ACEOF
26123 cat confdefs.h >>conftest.$ac_ext
26124 cat >>conftest.$ac_ext <<_ACEOF
26125 /* end confdefs.h.  */
26126 $ac_includes_default
26127 #ifndef offsetof
26128 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26129 #endif
26130 typedef struct { char x; long y; } ac__type_alignof_;
26131 int
26132 main ()
26133 {
26134 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26135 test_array [0] = 0
26136
26137   ;
26138   return 0;
26139 }
26140 _ACEOF
26141 rm -f conftest.$ac_objext
26142 if { (ac_try="$ac_compile"
26143 case "(($ac_try" in
26144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26145   *) ac_try_echo=$ac_try;;
26146 esac
26147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26148 $as_echo "$ac_try_echo") >&5
26149   (eval "$ac_compile") 2>conftest.er1
26150   ac_status=$?
26151   grep -v '^ *+' conftest.er1 >conftest.err
26152   rm -f conftest.er1
26153   cat conftest.err >&5
26154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155   (exit $ac_status); } && {
26156          test -z "$ac_c_werror_flag" ||
26157          test ! -s conftest.err
26158        } && test -s conftest.$ac_objext; then
26159   ac_hi=$ac_mid
26160 else
26161   $as_echo "$as_me: failed program was:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26163
26164         ac_lo=`expr '(' $ac_mid ')' + 1`
26165 fi
26166
26167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26168 done
26169 case $ac_lo in
26170 ?*) ac_cv_alignof_long=$ac_lo;;
26171 '') if test "$ac_cv_type_long" = yes; then
26172      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26174 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26175 See \`config.log' for more details." >&5
26176 $as_echo "$as_me: error: cannot compute alignment of long
26177 See \`config.log' for more details." >&2;}
26178    { (exit 77); exit 77; }; }; }
26179    else
26180      ac_cv_alignof_long=0
26181    fi ;;
26182 esac
26183 else
26184   cat >conftest.$ac_ext <<_ACEOF
26185 /* confdefs.h.  */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h.  */
26190 $ac_includes_default
26191 #ifndef offsetof
26192 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26193 #endif
26194 typedef struct { char x; long y; } ac__type_alignof_;
26195 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26196 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26197 #include <stdio.h>
26198 #include <stdlib.h>
26199 int
26200 main ()
26201 {
26202
26203   FILE *f = fopen ("conftest.val", "w");
26204   if (! f)
26205     return 1;
26206   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26207     {
26208       long int i = longval ();
26209       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26210         return 1;
26211       fprintf (f, "%ld", i);
26212     }
26213   else
26214     {
26215       unsigned long int i = ulongval ();
26216       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26217         return 1;
26218       fprintf (f, "%lu", i);
26219     }
26220   /* Do not output a trailing newline, as this causes \r\n confusion
26221      on some platforms.  */
26222   return ferror (f) || fclose (f) != 0;
26223
26224   ;
26225   return 0;
26226 }
26227 _ACEOF
26228 rm -f conftest$ac_exeext
26229 if { (ac_try="$ac_link"
26230 case "(($ac_try" in
26231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232   *) ac_try_echo=$ac_try;;
26233 esac
26234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26235 $as_echo "$ac_try_echo") >&5
26236   (eval "$ac_link") 2>&5
26237   ac_status=$?
26238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26240   { (case "(($ac_try" in
26241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26242   *) ac_try_echo=$ac_try;;
26243 esac
26244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26245 $as_echo "$ac_try_echo") >&5
26246   (eval "$ac_try") 2>&5
26247   ac_status=$?
26248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249   (exit $ac_status); }; }; then
26250   ac_cv_alignof_long=`cat conftest.val`
26251 else
26252   $as_echo "$as_me: program exited with status $ac_status" >&5
26253 $as_echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26255
26256 ( exit $ac_status )
26257 if test "$ac_cv_type_long" = yes; then
26258      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26260 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26261 See \`config.log' for more details." >&5
26262 $as_echo "$as_me: error: cannot compute alignment of long
26263 See \`config.log' for more details." >&2;}
26264    { (exit 77); exit 77; }; }; }
26265    else
26266      ac_cv_alignof_long=0
26267    fi
26268 fi
26269 rm -rf conftest.dSYM
26270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26271 fi
26272 rm -f conftest.val
26273 fi
26274 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26275 $as_echo "$ac_cv_alignof_long" >&6; }
26276
26277
26278
26279 cat >>confdefs.h <<_ACEOF
26280 #define ALIGNOF_LONG $ac_cv_alignof_long
26281 _ACEOF
26282
26283
26284 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26285   # The cast to long int works around a bug in the HP C Compiler,
26286 # see AC_CHECK_SIZEOF for more information.
26287 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26288 $as_echo_n "checking alignment of long long int... " >&6; }
26289 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26290   $as_echo_n "(cached) " >&6
26291 else
26292   if test "$cross_compiling" = yes; then
26293   # Depending upon the size, compute the lo and hi bounds.
26294 cat >conftest.$ac_ext <<_ACEOF
26295 /* confdefs.h.  */
26296 _ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h.  */
26300 $ac_includes_default
26301 #ifndef offsetof
26302 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26303 #endif
26304 typedef struct { char x; long long int y; } ac__type_alignof_;
26305 int
26306 main ()
26307 {
26308 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26309 test_array [0] = 0
26310
26311   ;
26312   return 0;
26313 }
26314 _ACEOF
26315 rm -f conftest.$ac_objext
26316 if { (ac_try="$ac_compile"
26317 case "(($ac_try" in
26318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319   *) ac_try_echo=$ac_try;;
26320 esac
26321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26322 $as_echo "$ac_try_echo") >&5
26323   (eval "$ac_compile") 2>conftest.er1
26324   ac_status=$?
26325   grep -v '^ *+' conftest.er1 >conftest.err
26326   rm -f conftest.er1
26327   cat conftest.err >&5
26328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329   (exit $ac_status); } && {
26330          test -z "$ac_c_werror_flag" ||
26331          test ! -s conftest.err
26332        } && test -s conftest.$ac_objext; then
26333   ac_lo=0 ac_mid=0
26334   while :; do
26335     cat >conftest.$ac_ext <<_ACEOF
26336 /* confdefs.h.  */
26337 _ACEOF
26338 cat confdefs.h >>conftest.$ac_ext
26339 cat >>conftest.$ac_ext <<_ACEOF
26340 /* end confdefs.h.  */
26341 $ac_includes_default
26342 #ifndef offsetof
26343 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26344 #endif
26345 typedef struct { char x; long long int y; } ac__type_alignof_;
26346 int
26347 main ()
26348 {
26349 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26350 test_array [0] = 0
26351
26352   ;
26353   return 0;
26354 }
26355 _ACEOF
26356 rm -f conftest.$ac_objext
26357 if { (ac_try="$ac_compile"
26358 case "(($ac_try" in
26359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360   *) ac_try_echo=$ac_try;;
26361 esac
26362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26363 $as_echo "$ac_try_echo") >&5
26364   (eval "$ac_compile") 2>conftest.er1
26365   ac_status=$?
26366   grep -v '^ *+' conftest.er1 >conftest.err
26367   rm -f conftest.er1
26368   cat conftest.err >&5
26369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370   (exit $ac_status); } && {
26371          test -z "$ac_c_werror_flag" ||
26372          test ! -s conftest.err
26373        } && test -s conftest.$ac_objext; then
26374   ac_hi=$ac_mid; break
26375 else
26376   $as_echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26378
26379         ac_lo=`expr $ac_mid + 1`
26380                         if test $ac_lo -le $ac_mid; then
26381                           ac_lo= ac_hi=
26382                           break
26383                         fi
26384                         ac_mid=`expr 2 '*' $ac_mid + 1`
26385 fi
26386
26387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26388   done
26389 else
26390   $as_echo "$as_me: failed program was:" >&5
26391 sed 's/^/| /' conftest.$ac_ext >&5
26392
26393         cat >conftest.$ac_ext <<_ACEOF
26394 /* confdefs.h.  */
26395 _ACEOF
26396 cat confdefs.h >>conftest.$ac_ext
26397 cat >>conftest.$ac_ext <<_ACEOF
26398 /* end confdefs.h.  */
26399 $ac_includes_default
26400 #ifndef offsetof
26401 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26402 #endif
26403 typedef struct { char x; long long int y; } ac__type_alignof_;
26404 int
26405 main ()
26406 {
26407 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26408 test_array [0] = 0
26409
26410   ;
26411   return 0;
26412 }
26413 _ACEOF
26414 rm -f conftest.$ac_objext
26415 if { (ac_try="$ac_compile"
26416 case "(($ac_try" in
26417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26418   *) ac_try_echo=$ac_try;;
26419 esac
26420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26421 $as_echo "$ac_try_echo") >&5
26422   (eval "$ac_compile") 2>conftest.er1
26423   ac_status=$?
26424   grep -v '^ *+' conftest.er1 >conftest.err
26425   rm -f conftest.er1
26426   cat conftest.err >&5
26427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428   (exit $ac_status); } && {
26429          test -z "$ac_c_werror_flag" ||
26430          test ! -s conftest.err
26431        } && test -s conftest.$ac_objext; then
26432   ac_hi=-1 ac_mid=-1
26433   while :; do
26434     cat >conftest.$ac_ext <<_ACEOF
26435 /* confdefs.h.  */
26436 _ACEOF
26437 cat confdefs.h >>conftest.$ac_ext
26438 cat >>conftest.$ac_ext <<_ACEOF
26439 /* end confdefs.h.  */
26440 $ac_includes_default
26441 #ifndef offsetof
26442 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26443 #endif
26444 typedef struct { char x; long long int y; } ac__type_alignof_;
26445 int
26446 main ()
26447 {
26448 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26449 test_array [0] = 0
26450
26451   ;
26452   return 0;
26453 }
26454 _ACEOF
26455 rm -f conftest.$ac_objext
26456 if { (ac_try="$ac_compile"
26457 case "(($ac_try" in
26458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26459   *) ac_try_echo=$ac_try;;
26460 esac
26461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26462 $as_echo "$ac_try_echo") >&5
26463   (eval "$ac_compile") 2>conftest.er1
26464   ac_status=$?
26465   grep -v '^ *+' conftest.er1 >conftest.err
26466   rm -f conftest.er1
26467   cat conftest.err >&5
26468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); } && {
26470          test -z "$ac_c_werror_flag" ||
26471          test ! -s conftest.err
26472        } && test -s conftest.$ac_objext; then
26473   ac_lo=$ac_mid; break
26474 else
26475   $as_echo "$as_me: failed program was:" >&5
26476 sed 's/^/| /' conftest.$ac_ext >&5
26477
26478         ac_hi=`expr '(' $ac_mid ')' - 1`
26479                         if test $ac_mid -le $ac_hi; then
26480                           ac_lo= ac_hi=
26481                           break
26482                         fi
26483                         ac_mid=`expr 2 '*' $ac_mid`
26484 fi
26485
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487   done
26488 else
26489   $as_echo "$as_me: failed program was:" >&5
26490 sed 's/^/| /' conftest.$ac_ext >&5
26491
26492         ac_lo= ac_hi=
26493 fi
26494
26495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26496 fi
26497
26498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26499 # Binary search between lo and hi bounds.
26500 while test "x$ac_lo" != "x$ac_hi"; do
26501   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26502   cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h.  */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h.  */
26508 $ac_includes_default
26509 #ifndef offsetof
26510 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26511 #endif
26512 typedef struct { char x; long long int y; } ac__type_alignof_;
26513 int
26514 main ()
26515 {
26516 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26517 test_array [0] = 0
26518
26519   ;
26520   return 0;
26521 }
26522 _ACEOF
26523 rm -f conftest.$ac_objext
26524 if { (ac_try="$ac_compile"
26525 case "(($ac_try" in
26526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26527   *) ac_try_echo=$ac_try;;
26528 esac
26529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26530 $as_echo "$ac_try_echo") >&5
26531   (eval "$ac_compile") 2>conftest.er1
26532   ac_status=$?
26533   grep -v '^ *+' conftest.er1 >conftest.err
26534   rm -f conftest.er1
26535   cat conftest.err >&5
26536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537   (exit $ac_status); } && {
26538          test -z "$ac_c_werror_flag" ||
26539          test ! -s conftest.err
26540        } && test -s conftest.$ac_objext; then
26541   ac_hi=$ac_mid
26542 else
26543   $as_echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26545
26546         ac_lo=`expr '(' $ac_mid ')' + 1`
26547 fi
26548
26549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26550 done
26551 case $ac_lo in
26552 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26553 '') if test "$ac_cv_type_long_long_int" = yes; then
26554      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26556 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26557 See \`config.log' for more details." >&5
26558 $as_echo "$as_me: error: cannot compute alignment of long long int
26559 See \`config.log' for more details." >&2;}
26560    { (exit 77); exit 77; }; }; }
26561    else
26562      ac_cv_alignof_long_long_int=0
26563    fi ;;
26564 esac
26565 else
26566   cat >conftest.$ac_ext <<_ACEOF
26567 /* confdefs.h.  */
26568 _ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h.  */
26572 $ac_includes_default
26573 #ifndef offsetof
26574 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26575 #endif
26576 typedef struct { char x; long long int y; } ac__type_alignof_;
26577 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26578 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26579 #include <stdio.h>
26580 #include <stdlib.h>
26581 int
26582 main ()
26583 {
26584
26585   FILE *f = fopen ("conftest.val", "w");
26586   if (! f)
26587     return 1;
26588   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26589     {
26590       long int i = longval ();
26591       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26592         return 1;
26593       fprintf (f, "%ld", i);
26594     }
26595   else
26596     {
26597       unsigned long int i = ulongval ();
26598       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26599         return 1;
26600       fprintf (f, "%lu", i);
26601     }
26602   /* Do not output a trailing newline, as this causes \r\n confusion
26603      on some platforms.  */
26604   return ferror (f) || fclose (f) != 0;
26605
26606   ;
26607   return 0;
26608 }
26609 _ACEOF
26610 rm -f conftest$ac_exeext
26611 if { (ac_try="$ac_link"
26612 case "(($ac_try" in
26613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614   *) ac_try_echo=$ac_try;;
26615 esac
26616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26617 $as_echo "$ac_try_echo") >&5
26618   (eval "$ac_link") 2>&5
26619   ac_status=$?
26620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26622   { (case "(($ac_try" in
26623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26624   *) ac_try_echo=$ac_try;;
26625 esac
26626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26627 $as_echo "$ac_try_echo") >&5
26628   (eval "$ac_try") 2>&5
26629   ac_status=$?
26630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631   (exit $ac_status); }; }; then
26632   ac_cv_alignof_long_long_int=`cat conftest.val`
26633 else
26634   $as_echo "$as_me: program exited with status $ac_status" >&5
26635 $as_echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26637
26638 ( exit $ac_status )
26639 if test "$ac_cv_type_long_long_int" = yes; then
26640      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26642 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26643 See \`config.log' for more details." >&5
26644 $as_echo "$as_me: error: cannot compute alignment of long long int
26645 See \`config.log' for more details." >&2;}
26646    { (exit 77); exit 77; }; }; }
26647    else
26648      ac_cv_alignof_long_long_int=0
26649    fi
26650 fi
26651 rm -rf conftest.dSYM
26652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26653 fi
26654 rm -f conftest.val
26655 fi
26656 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26657 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26658
26659
26660
26661 cat >>confdefs.h <<_ACEOF
26662 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26663 _ACEOF
26664
26665
26666 fi
26667 # The cast to long int works around a bug in the HP C Compiler,
26668 # see AC_CHECK_SIZEOF for more information.
26669 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26670 $as_echo_n "checking alignment of double... " >&6; }
26671 if test "${ac_cv_alignof_double+set}" = set; then
26672   $as_echo_n "(cached) " >&6
26673 else
26674   if test "$cross_compiling" = yes; then
26675   # Depending upon the size, compute the lo and hi bounds.
26676 cat >conftest.$ac_ext <<_ACEOF
26677 /* confdefs.h.  */
26678 _ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h.  */
26682 $ac_includes_default
26683 #ifndef offsetof
26684 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26685 #endif
26686 typedef struct { char x; double y; } ac__type_alignof_;
26687 int
26688 main ()
26689 {
26690 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26691 test_array [0] = 0
26692
26693   ;
26694   return 0;
26695 }
26696 _ACEOF
26697 rm -f conftest.$ac_objext
26698 if { (ac_try="$ac_compile"
26699 case "(($ac_try" in
26700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26701   *) ac_try_echo=$ac_try;;
26702 esac
26703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26704 $as_echo "$ac_try_echo") >&5
26705   (eval "$ac_compile") 2>conftest.er1
26706   ac_status=$?
26707   grep -v '^ *+' conftest.er1 >conftest.err
26708   rm -f conftest.er1
26709   cat conftest.err >&5
26710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711   (exit $ac_status); } && {
26712          test -z "$ac_c_werror_flag" ||
26713          test ! -s conftest.err
26714        } && test -s conftest.$ac_objext; then
26715   ac_lo=0 ac_mid=0
26716   while :; do
26717     cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723 $ac_includes_default
26724 #ifndef offsetof
26725 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26726 #endif
26727 typedef struct { char x; double y; } ac__type_alignof_;
26728 int
26729 main ()
26730 {
26731 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26732 test_array [0] = 0
26733
26734   ;
26735   return 0;
26736 }
26737 _ACEOF
26738 rm -f conftest.$ac_objext
26739 if { (ac_try="$ac_compile"
26740 case "(($ac_try" in
26741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742   *) ac_try_echo=$ac_try;;
26743 esac
26744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26745 $as_echo "$ac_try_echo") >&5
26746   (eval "$ac_compile") 2>conftest.er1
26747   ac_status=$?
26748   grep -v '^ *+' conftest.er1 >conftest.err
26749   rm -f conftest.er1
26750   cat conftest.err >&5
26751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752   (exit $ac_status); } && {
26753          test -z "$ac_c_werror_flag" ||
26754          test ! -s conftest.err
26755        } && test -s conftest.$ac_objext; then
26756   ac_hi=$ac_mid; break
26757 else
26758   $as_echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26760
26761         ac_lo=`expr $ac_mid + 1`
26762                         if test $ac_lo -le $ac_mid; then
26763                           ac_lo= ac_hi=
26764                           break
26765                         fi
26766                         ac_mid=`expr 2 '*' $ac_mid + 1`
26767 fi
26768
26769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26770   done
26771 else
26772   $as_echo "$as_me: failed program was:" >&5
26773 sed 's/^/| /' conftest.$ac_ext >&5
26774
26775         cat >conftest.$ac_ext <<_ACEOF
26776 /* confdefs.h.  */
26777 _ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h.  */
26781 $ac_includes_default
26782 #ifndef offsetof
26783 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26784 #endif
26785 typedef struct { char x; double y; } ac__type_alignof_;
26786 int
26787 main ()
26788 {
26789 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26790 test_array [0] = 0
26791
26792   ;
26793   return 0;
26794 }
26795 _ACEOF
26796 rm -f conftest.$ac_objext
26797 if { (ac_try="$ac_compile"
26798 case "(($ac_try" in
26799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26800   *) ac_try_echo=$ac_try;;
26801 esac
26802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26803 $as_echo "$ac_try_echo") >&5
26804   (eval "$ac_compile") 2>conftest.er1
26805   ac_status=$?
26806   grep -v '^ *+' conftest.er1 >conftest.err
26807   rm -f conftest.er1
26808   cat conftest.err >&5
26809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810   (exit $ac_status); } && {
26811          test -z "$ac_c_werror_flag" ||
26812          test ! -s conftest.err
26813        } && test -s conftest.$ac_objext; then
26814   ac_hi=-1 ac_mid=-1
26815   while :; do
26816     cat >conftest.$ac_ext <<_ACEOF
26817 /* confdefs.h.  */
26818 _ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h.  */
26822 $ac_includes_default
26823 #ifndef offsetof
26824 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26825 #endif
26826 typedef struct { char x; double y; } ac__type_alignof_;
26827 int
26828 main ()
26829 {
26830 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26831 test_array [0] = 0
26832
26833   ;
26834   return 0;
26835 }
26836 _ACEOF
26837 rm -f conftest.$ac_objext
26838 if { (ac_try="$ac_compile"
26839 case "(($ac_try" in
26840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26841   *) ac_try_echo=$ac_try;;
26842 esac
26843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26844 $as_echo "$ac_try_echo") >&5
26845   (eval "$ac_compile") 2>conftest.er1
26846   ac_status=$?
26847   grep -v '^ *+' conftest.er1 >conftest.err
26848   rm -f conftest.er1
26849   cat conftest.err >&5
26850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); } && {
26852          test -z "$ac_c_werror_flag" ||
26853          test ! -s conftest.err
26854        } && test -s conftest.$ac_objext; then
26855   ac_lo=$ac_mid; break
26856 else
26857   $as_echo "$as_me: failed program was:" >&5
26858 sed 's/^/| /' conftest.$ac_ext >&5
26859
26860         ac_hi=`expr '(' $ac_mid ')' - 1`
26861                         if test $ac_mid -le $ac_hi; then
26862                           ac_lo= ac_hi=
26863                           break
26864                         fi
26865                         ac_mid=`expr 2 '*' $ac_mid`
26866 fi
26867
26868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26869   done
26870 else
26871   $as_echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26873
26874         ac_lo= ac_hi=
26875 fi
26876
26877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26878 fi
26879
26880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26881 # Binary search between lo and hi bounds.
26882 while test "x$ac_lo" != "x$ac_hi"; do
26883   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26884   cat >conftest.$ac_ext <<_ACEOF
26885 /* confdefs.h.  */
26886 _ACEOF
26887 cat confdefs.h >>conftest.$ac_ext
26888 cat >>conftest.$ac_ext <<_ACEOF
26889 /* end confdefs.h.  */
26890 $ac_includes_default
26891 #ifndef offsetof
26892 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26893 #endif
26894 typedef struct { char x; double y; } ac__type_alignof_;
26895 int
26896 main ()
26897 {
26898 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26899 test_array [0] = 0
26900
26901   ;
26902   return 0;
26903 }
26904 _ACEOF
26905 rm -f conftest.$ac_objext
26906 if { (ac_try="$ac_compile"
26907 case "(($ac_try" in
26908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909   *) ac_try_echo=$ac_try;;
26910 esac
26911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26912 $as_echo "$ac_try_echo") >&5
26913   (eval "$ac_compile") 2>conftest.er1
26914   ac_status=$?
26915   grep -v '^ *+' conftest.er1 >conftest.err
26916   rm -f conftest.er1
26917   cat conftest.err >&5
26918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); } && {
26920          test -z "$ac_c_werror_flag" ||
26921          test ! -s conftest.err
26922        } && test -s conftest.$ac_objext; then
26923   ac_hi=$ac_mid
26924 else
26925   $as_echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26927
26928         ac_lo=`expr '(' $ac_mid ')' + 1`
26929 fi
26930
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26932 done
26933 case $ac_lo in
26934 ?*) ac_cv_alignof_double=$ac_lo;;
26935 '') if test "$ac_cv_type_double" = yes; then
26936      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26938 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26939 See \`config.log' for more details." >&5
26940 $as_echo "$as_me: error: cannot compute alignment of double
26941 See \`config.log' for more details." >&2;}
26942    { (exit 77); exit 77; }; }; }
26943    else
26944      ac_cv_alignof_double=0
26945    fi ;;
26946 esac
26947 else
26948   cat >conftest.$ac_ext <<_ACEOF
26949 /* confdefs.h.  */
26950 _ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h.  */
26954 $ac_includes_default
26955 #ifndef offsetof
26956 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26957 #endif
26958 typedef struct { char x; double y; } ac__type_alignof_;
26959 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26960 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26961 #include <stdio.h>
26962 #include <stdlib.h>
26963 int
26964 main ()
26965 {
26966
26967   FILE *f = fopen ("conftest.val", "w");
26968   if (! f)
26969     return 1;
26970   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26971     {
26972       long int i = longval ();
26973       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26974         return 1;
26975       fprintf (f, "%ld", i);
26976     }
26977   else
26978     {
26979       unsigned long int i = ulongval ();
26980       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26981         return 1;
26982       fprintf (f, "%lu", i);
26983     }
26984   /* Do not output a trailing newline, as this causes \r\n confusion
26985      on some platforms.  */
26986   return ferror (f) || fclose (f) != 0;
26987
26988   ;
26989   return 0;
26990 }
26991 _ACEOF
26992 rm -f conftest$ac_exeext
26993 if { (ac_try="$ac_link"
26994 case "(($ac_try" in
26995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996   *) ac_try_echo=$ac_try;;
26997 esac
26998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26999 $as_echo "$ac_try_echo") >&5
27000   (eval "$ac_link") 2>&5
27001   ac_status=$?
27002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27004   { (case "(($ac_try" in
27005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27006   *) ac_try_echo=$ac_try;;
27007 esac
27008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27009 $as_echo "$ac_try_echo") >&5
27010   (eval "$ac_try") 2>&5
27011   ac_status=$?
27012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013   (exit $ac_status); }; }; then
27014   ac_cv_alignof_double=`cat conftest.val`
27015 else
27016   $as_echo "$as_me: program exited with status $ac_status" >&5
27017 $as_echo "$as_me: failed program was:" >&5
27018 sed 's/^/| /' conftest.$ac_ext >&5
27019
27020 ( exit $ac_status )
27021 if test "$ac_cv_type_double" = yes; then
27022      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27024 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27025 See \`config.log' for more details." >&5
27026 $as_echo "$as_me: error: cannot compute alignment of double
27027 See \`config.log' for more details." >&2;}
27028    { (exit 77); exit 77; }; }; }
27029    else
27030      ac_cv_alignof_double=0
27031    fi
27032 fi
27033 rm -rf conftest.dSYM
27034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27035 fi
27036 rm -f conftest.val
27037 fi
27038 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27039 $as_echo "$ac_cv_alignof_double" >&6; }
27040
27041
27042
27043 cat >>confdefs.h <<_ACEOF
27044 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27045 _ACEOF
27046
27047
27048
27049 # Compute maximum alignment of any basic type.
27050 # We assume long's alignment is at least as strong as char, short, or int;
27051 # but we must check long long (if it exists) and double.
27052
27053 MAX_ALIGNOF=$ac_cv_alignof_long
27054 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27055   MAX_ALIGNOF=$ac_cv_alignof_double
27056 fi
27057 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27058   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27059 fi
27060
27061 cat >>confdefs.h <<_ACEOF
27062 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27063 _ACEOF
27064
27065
27066
27067 # Some platforms predefine the types int8, int16, etc.  Only check
27068 # a (hopefully) representative subset.
27069 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27070 $as_echo_n "checking for int8... " >&6; }
27071 if test "${ac_cv_type_int8+set}" = set; then
27072   $as_echo_n "(cached) " >&6
27073 else
27074   ac_cv_type_int8=no
27075 cat >conftest.$ac_ext <<_ACEOF
27076 /* confdefs.h.  */
27077 _ACEOF
27078 cat confdefs.h >>conftest.$ac_ext
27079 cat >>conftest.$ac_ext <<_ACEOF
27080 /* end confdefs.h.  */
27081 #include <stdio.h>
27082 #ifdef HAVE_SUPPORTDEFS_H
27083 #include <SupportDefs.h>
27084 #endif
27085
27086 int
27087 main ()
27088 {
27089 if (sizeof (int8))
27090        return 0;
27091   ;
27092   return 0;
27093 }
27094 _ACEOF
27095 rm -f conftest.$ac_objext
27096 if { (ac_try="$ac_compile"
27097 case "(($ac_try" in
27098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099   *) ac_try_echo=$ac_try;;
27100 esac
27101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27102 $as_echo "$ac_try_echo") >&5
27103   (eval "$ac_compile") 2>conftest.er1
27104   ac_status=$?
27105   grep -v '^ *+' conftest.er1 >conftest.err
27106   rm -f conftest.er1
27107   cat conftest.err >&5
27108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109   (exit $ac_status); } && {
27110          test -z "$ac_c_werror_flag" ||
27111          test ! -s conftest.err
27112        } && test -s conftest.$ac_objext; then
27113   cat >conftest.$ac_ext <<_ACEOF
27114 /* confdefs.h.  */
27115 _ACEOF
27116 cat confdefs.h >>conftest.$ac_ext
27117 cat >>conftest.$ac_ext <<_ACEOF
27118 /* end confdefs.h.  */
27119 #include <stdio.h>
27120 #ifdef HAVE_SUPPORTDEFS_H
27121 #include <SupportDefs.h>
27122 #endif
27123
27124 int
27125 main ()
27126 {
27127 if (sizeof ((int8)))
27128           return 0;
27129   ;
27130   return 0;
27131 }
27132 _ACEOF
27133 rm -f conftest.$ac_objext
27134 if { (ac_try="$ac_compile"
27135 case "(($ac_try" in
27136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137   *) ac_try_echo=$ac_try;;
27138 esac
27139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27140 $as_echo "$ac_try_echo") >&5
27141   (eval "$ac_compile") 2>conftest.er1
27142   ac_status=$?
27143   grep -v '^ *+' conftest.er1 >conftest.err
27144   rm -f conftest.er1
27145   cat conftest.err >&5
27146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); } && {
27148          test -z "$ac_c_werror_flag" ||
27149          test ! -s conftest.err
27150        } && test -s conftest.$ac_objext; then
27151   :
27152 else
27153   $as_echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156         ac_cv_type_int8=yes
27157 fi
27158
27159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27160 else
27161   $as_echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27163
27164
27165 fi
27166
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27168 fi
27169 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27170 $as_echo "$ac_cv_type_int8" >&6; }
27171 if test "x$ac_cv_type_int8" = x""yes; then
27172
27173 cat >>confdefs.h <<_ACEOF
27174 #define HAVE_INT8 1
27175 _ACEOF
27176
27177
27178 fi
27179 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27180 $as_echo_n "checking for uint8... " >&6; }
27181 if test "${ac_cv_type_uint8+set}" = set; then
27182   $as_echo_n "(cached) " >&6
27183 else
27184   ac_cv_type_uint8=no
27185 cat >conftest.$ac_ext <<_ACEOF
27186 /* confdefs.h.  */
27187 _ACEOF
27188 cat confdefs.h >>conftest.$ac_ext
27189 cat >>conftest.$ac_ext <<_ACEOF
27190 /* end confdefs.h.  */
27191 #include <stdio.h>
27192 #ifdef HAVE_SUPPORTDEFS_H
27193 #include <SupportDefs.h>
27194 #endif
27195
27196 int
27197 main ()
27198 {
27199 if (sizeof (uint8))
27200        return 0;
27201   ;
27202   return 0;
27203 }
27204 _ACEOF
27205 rm -f conftest.$ac_objext
27206 if { (ac_try="$ac_compile"
27207 case "(($ac_try" in
27208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209   *) ac_try_echo=$ac_try;;
27210 esac
27211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27212 $as_echo "$ac_try_echo") >&5
27213   (eval "$ac_compile") 2>conftest.er1
27214   ac_status=$?
27215   grep -v '^ *+' conftest.er1 >conftest.err
27216   rm -f conftest.er1
27217   cat conftest.err >&5
27218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219   (exit $ac_status); } && {
27220          test -z "$ac_c_werror_flag" ||
27221          test ! -s conftest.err
27222        } && test -s conftest.$ac_objext; then
27223   cat >conftest.$ac_ext <<_ACEOF
27224 /* confdefs.h.  */
27225 _ACEOF
27226 cat confdefs.h >>conftest.$ac_ext
27227 cat >>conftest.$ac_ext <<_ACEOF
27228 /* end confdefs.h.  */
27229 #include <stdio.h>
27230 #ifdef HAVE_SUPPORTDEFS_H
27231 #include <SupportDefs.h>
27232 #endif
27233
27234 int
27235 main ()
27236 {
27237 if (sizeof ((uint8)))
27238           return 0;
27239   ;
27240   return 0;
27241 }
27242 _ACEOF
27243 rm -f conftest.$ac_objext
27244 if { (ac_try="$ac_compile"
27245 case "(($ac_try" in
27246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247   *) ac_try_echo=$ac_try;;
27248 esac
27249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27250 $as_echo "$ac_try_echo") >&5
27251   (eval "$ac_compile") 2>conftest.er1
27252   ac_status=$?
27253   grep -v '^ *+' conftest.er1 >conftest.err
27254   rm -f conftest.er1
27255   cat conftest.err >&5
27256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257   (exit $ac_status); } && {
27258          test -z "$ac_c_werror_flag" ||
27259          test ! -s conftest.err
27260        } && test -s conftest.$ac_objext; then
27261   :
27262 else
27263   $as_echo "$as_me: failed program was:" >&5
27264 sed 's/^/| /' conftest.$ac_ext >&5
27265
27266         ac_cv_type_uint8=yes
27267 fi
27268
27269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27270 else
27271   $as_echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27273
27274
27275 fi
27276
27277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27278 fi
27279 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27280 $as_echo "$ac_cv_type_uint8" >&6; }
27281 if test "x$ac_cv_type_uint8" = x""yes; then
27282
27283 cat >>confdefs.h <<_ACEOF
27284 #define HAVE_UINT8 1
27285 _ACEOF
27286
27287
27288 fi
27289 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27290 $as_echo_n "checking for int64... " >&6; }
27291 if test "${ac_cv_type_int64+set}" = set; then
27292   $as_echo_n "(cached) " >&6
27293 else
27294   ac_cv_type_int64=no
27295 cat >conftest.$ac_ext <<_ACEOF
27296 /* confdefs.h.  */
27297 _ACEOF
27298 cat confdefs.h >>conftest.$ac_ext
27299 cat >>conftest.$ac_ext <<_ACEOF
27300 /* end confdefs.h.  */
27301 #include <stdio.h>
27302 #ifdef HAVE_SUPPORTDEFS_H
27303 #include <SupportDefs.h>
27304 #endif
27305
27306 int
27307 main ()
27308 {
27309 if (sizeof (int64))
27310        return 0;
27311   ;
27312   return 0;
27313 }
27314 _ACEOF
27315 rm -f conftest.$ac_objext
27316 if { (ac_try="$ac_compile"
27317 case "(($ac_try" in
27318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319   *) ac_try_echo=$ac_try;;
27320 esac
27321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27322 $as_echo "$ac_try_echo") >&5
27323   (eval "$ac_compile") 2>conftest.er1
27324   ac_status=$?
27325   grep -v '^ *+' conftest.er1 >conftest.err
27326   rm -f conftest.er1
27327   cat conftest.err >&5
27328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329   (exit $ac_status); } && {
27330          test -z "$ac_c_werror_flag" ||
27331          test ! -s conftest.err
27332        } && test -s conftest.$ac_objext; then
27333   cat >conftest.$ac_ext <<_ACEOF
27334 /* confdefs.h.  */
27335 _ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h.  */
27339 #include <stdio.h>
27340 #ifdef HAVE_SUPPORTDEFS_H
27341 #include <SupportDefs.h>
27342 #endif
27343
27344 int
27345 main ()
27346 {
27347 if (sizeof ((int64)))
27348           return 0;
27349   ;
27350   return 0;
27351 }
27352 _ACEOF
27353 rm -f conftest.$ac_objext
27354 if { (ac_try="$ac_compile"
27355 case "(($ac_try" in
27356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357   *) ac_try_echo=$ac_try;;
27358 esac
27359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27360 $as_echo "$ac_try_echo") >&5
27361   (eval "$ac_compile") 2>conftest.er1
27362   ac_status=$?
27363   grep -v '^ *+' conftest.er1 >conftest.err
27364   rm -f conftest.er1
27365   cat conftest.err >&5
27366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367   (exit $ac_status); } && {
27368          test -z "$ac_c_werror_flag" ||
27369          test ! -s conftest.err
27370        } && test -s conftest.$ac_objext; then
27371   :
27372 else
27373   $as_echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27375
27376         ac_cv_type_int64=yes
27377 fi
27378
27379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27380 else
27381   $as_echo "$as_me: failed program was:" >&5
27382 sed 's/^/| /' conftest.$ac_ext >&5
27383
27384
27385 fi
27386
27387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27388 fi
27389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27390 $as_echo "$ac_cv_type_int64" >&6; }
27391 if test "x$ac_cv_type_int64" = x""yes; then
27392
27393 cat >>confdefs.h <<_ACEOF
27394 #define HAVE_INT64 1
27395 _ACEOF
27396
27397
27398 fi
27399 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27400 $as_echo_n "checking for uint64... " >&6; }
27401 if test "${ac_cv_type_uint64+set}" = set; then
27402   $as_echo_n "(cached) " >&6
27403 else
27404   ac_cv_type_uint64=no
27405 cat >conftest.$ac_ext <<_ACEOF
27406 /* confdefs.h.  */
27407 _ACEOF
27408 cat confdefs.h >>conftest.$ac_ext
27409 cat >>conftest.$ac_ext <<_ACEOF
27410 /* end confdefs.h.  */
27411 #include <stdio.h>
27412 #ifdef HAVE_SUPPORTDEFS_H
27413 #include <SupportDefs.h>
27414 #endif
27415
27416 int
27417 main ()
27418 {
27419 if (sizeof (uint64))
27420        return 0;
27421   ;
27422   return 0;
27423 }
27424 _ACEOF
27425 rm -f conftest.$ac_objext
27426 if { (ac_try="$ac_compile"
27427 case "(($ac_try" in
27428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27429   *) ac_try_echo=$ac_try;;
27430 esac
27431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27432 $as_echo "$ac_try_echo") >&5
27433   (eval "$ac_compile") 2>conftest.er1
27434   ac_status=$?
27435   grep -v '^ *+' conftest.er1 >conftest.err
27436   rm -f conftest.er1
27437   cat conftest.err >&5
27438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439   (exit $ac_status); } && {
27440          test -z "$ac_c_werror_flag" ||
27441          test ! -s conftest.err
27442        } && test -s conftest.$ac_objext; then
27443   cat >conftest.$ac_ext <<_ACEOF
27444 /* confdefs.h.  */
27445 _ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h.  */
27449 #include <stdio.h>
27450 #ifdef HAVE_SUPPORTDEFS_H
27451 #include <SupportDefs.h>
27452 #endif
27453
27454 int
27455 main ()
27456 {
27457 if (sizeof ((uint64)))
27458           return 0;
27459   ;
27460   return 0;
27461 }
27462 _ACEOF
27463 rm -f conftest.$ac_objext
27464 if { (ac_try="$ac_compile"
27465 case "(($ac_try" in
27466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27467   *) ac_try_echo=$ac_try;;
27468 esac
27469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27470 $as_echo "$ac_try_echo") >&5
27471   (eval "$ac_compile") 2>conftest.er1
27472   ac_status=$?
27473   grep -v '^ *+' conftest.er1 >conftest.err
27474   rm -f conftest.er1
27475   cat conftest.err >&5
27476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477   (exit $ac_status); } && {
27478          test -z "$ac_c_werror_flag" ||
27479          test ! -s conftest.err
27480        } && test -s conftest.$ac_objext; then
27481   :
27482 else
27483   $as_echo "$as_me: failed program was:" >&5
27484 sed 's/^/| /' conftest.$ac_ext >&5
27485
27486         ac_cv_type_uint64=yes
27487 fi
27488
27489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27490 else
27491   $as_echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27493
27494
27495 fi
27496
27497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27498 fi
27499 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27500 $as_echo "$ac_cv_type_uint64" >&6; }
27501 if test "x$ac_cv_type_uint64" = x""yes; then
27502
27503 cat >>confdefs.h <<_ACEOF
27504 #define HAVE_UINT64 1
27505 _ACEOF
27506
27507
27508 fi
27509
27510
27511 # We also check for sig_atomic_t, which *should* be defined per ANSI
27512 # C, but is missing on some old platforms.
27513 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27514 $as_echo_n "checking for sig_atomic_t... " >&6; }
27515 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27516   $as_echo_n "(cached) " >&6
27517 else
27518   ac_cv_type_sig_atomic_t=no
27519 cat >conftest.$ac_ext <<_ACEOF
27520 /* confdefs.h.  */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h.  */
27525 #include <signal.h>
27526
27527 int
27528 main ()
27529 {
27530 if (sizeof (sig_atomic_t))
27531        return 0;
27532   ;
27533   return 0;
27534 }
27535 _ACEOF
27536 rm -f conftest.$ac_objext
27537 if { (ac_try="$ac_compile"
27538 case "(($ac_try" in
27539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27540   *) ac_try_echo=$ac_try;;
27541 esac
27542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27543 $as_echo "$ac_try_echo") >&5
27544   (eval "$ac_compile") 2>conftest.er1
27545   ac_status=$?
27546   grep -v '^ *+' conftest.er1 >conftest.err
27547   rm -f conftest.er1
27548   cat conftest.err >&5
27549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550   (exit $ac_status); } && {
27551          test -z "$ac_c_werror_flag" ||
27552          test ! -s conftest.err
27553        } && test -s conftest.$ac_objext; then
27554   cat >conftest.$ac_ext <<_ACEOF
27555 /* confdefs.h.  */
27556 _ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h.  */
27560 #include <signal.h>
27561
27562 int
27563 main ()
27564 {
27565 if (sizeof ((sig_atomic_t)))
27566           return 0;
27567   ;
27568   return 0;
27569 }
27570 _ACEOF
27571 rm -f conftest.$ac_objext
27572 if { (ac_try="$ac_compile"
27573 case "(($ac_try" in
27574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575   *) ac_try_echo=$ac_try;;
27576 esac
27577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27578 $as_echo "$ac_try_echo") >&5
27579   (eval "$ac_compile") 2>conftest.er1
27580   ac_status=$?
27581   grep -v '^ *+' conftest.er1 >conftest.err
27582   rm -f conftest.er1
27583   cat conftest.err >&5
27584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); } && {
27586          test -z "$ac_c_werror_flag" ||
27587          test ! -s conftest.err
27588        } && test -s conftest.$ac_objext; then
27589   :
27590 else
27591   $as_echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27593
27594         ac_cv_type_sig_atomic_t=yes
27595 fi
27596
27597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27598 else
27599   $as_echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27601
27602
27603 fi
27604
27605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27606 fi
27607 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27608 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27609 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27610
27611 cat >>confdefs.h <<_ACEOF
27612 #define HAVE_SIG_ATOMIC_T 1
27613 _ACEOF
27614
27615
27616 fi
27617
27618
27619
27620 if test "$PORTNAME" != "win32"
27621 then
27622 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27623 $as_echo_n "checking for POSIX signal interface... " >&6; }
27624 if test "${pgac_cv_func_posix_signals+set}" = set; then
27625   $as_echo_n "(cached) " >&6
27626 else
27627   cat >conftest.$ac_ext <<_ACEOF
27628 /* confdefs.h.  */
27629 _ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h.  */
27633 #include <signal.h>
27634
27635 int
27636 main ()
27637 {
27638 struct sigaction act, oact;
27639 sigemptyset(&act.sa_mask);
27640 act.sa_flags = SA_RESTART;
27641 sigaction(0, &act, &oact);
27642   ;
27643   return 0;
27644 }
27645 _ACEOF
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650   *) ac_try_echo=$ac_try;;
27651 esac
27652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27653 $as_echo "$ac_try_echo") >&5
27654   (eval "$ac_link") 2>conftest.er1
27655   ac_status=$?
27656   grep -v '^ *+' conftest.er1 >conftest.err
27657   rm -f conftest.er1
27658   cat conftest.err >&5
27659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); } && {
27661          test -z "$ac_c_werror_flag" ||
27662          test ! -s conftest.err
27663        } && test -s conftest$ac_exeext && {
27664          test "$cross_compiling" = yes ||
27665          $as_test_x conftest$ac_exeext
27666        }; then
27667   pgac_cv_func_posix_signals=yes
27668 else
27669   $as_echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27671
27672         pgac_cv_func_posix_signals=no
27673 fi
27674
27675 rm -rf conftest.dSYM
27676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27677       conftest$ac_exeext conftest.$ac_ext
27678 fi
27679 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27680 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27681 if test x"$pgac_cv_func_posix_signals" = xyes ; then
27682
27683 cat >>confdefs.h <<\_ACEOF
27684 #define HAVE_POSIX_SIGNALS /**/
27685 _ACEOF
27686
27687 fi
27688 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
27689
27690 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27691   { { $as_echo "$as_me:$LINENO: error:
27692 Thread-safety requires POSIX signals, which are not supported by this
27693 operating system;  use --disable-thread-safety to disable thread safety." >&5
27694 $as_echo "$as_me: error:
27695 Thread-safety requires POSIX signals, which are not supported by this
27696 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
27697    { (exit 1); exit 1; }; }
27698 fi
27699 fi
27700
27701 # SunOS doesn't handle negative byte comparisons properly with +/- return
27702 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27703 $as_echo_n "checking for working memcmp... " >&6; }
27704 if test "${ac_cv_func_memcmp_working+set}" = set; then
27705   $as_echo_n "(cached) " >&6
27706 else
27707   if test "$cross_compiling" = yes; then
27708   ac_cv_func_memcmp_working=no
27709 else
27710   cat >conftest.$ac_ext <<_ACEOF
27711 /* confdefs.h.  */
27712 _ACEOF
27713 cat confdefs.h >>conftest.$ac_ext
27714 cat >>conftest.$ac_ext <<_ACEOF
27715 /* end confdefs.h.  */
27716 $ac_includes_default
27717 int
27718 main ()
27719 {
27720
27721   /* Some versions of memcmp are not 8-bit clean.  */
27722   char c0 = '\100', c1 = '\200', c2 = '\201';
27723   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27724     return 1;
27725
27726   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27727      or more and with at least one buffer not starting on a 4-byte boundary.
27728      William Lewis provided this test program.   */
27729   {
27730     char foo[21];
27731     char bar[21];
27732     int i;
27733     for (i = 0; i < 4; i++)
27734       {
27735         char *a = foo + i;
27736         char *b = bar + i;
27737         strcpy (a, "--------01111111");
27738         strcpy (b, "--------10000000");
27739         if (memcmp (a, b, 16) >= 0)
27740           return 1;
27741       }
27742     return 0;
27743   }
27744
27745   ;
27746   return 0;
27747 }
27748 _ACEOF
27749 rm -f conftest$ac_exeext
27750 if { (ac_try="$ac_link"
27751 case "(($ac_try" in
27752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753   *) ac_try_echo=$ac_try;;
27754 esac
27755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27756 $as_echo "$ac_try_echo") >&5
27757   (eval "$ac_link") 2>&5
27758   ac_status=$?
27759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27761   { (case "(($ac_try" in
27762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763   *) ac_try_echo=$ac_try;;
27764 esac
27765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27766 $as_echo "$ac_try_echo") >&5
27767   (eval "$ac_try") 2>&5
27768   ac_status=$?
27769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770   (exit $ac_status); }; }; then
27771   ac_cv_func_memcmp_working=yes
27772 else
27773   $as_echo "$as_me: program exited with status $ac_status" >&5
27774 $as_echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.$ac_ext >&5
27776
27777 ( exit $ac_status )
27778 ac_cv_func_memcmp_working=no
27779 fi
27780 rm -rf conftest.dSYM
27781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27782 fi
27783
27784
27785 fi
27786 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27787 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27788 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27789   *" memcmp.$ac_objext "* ) ;;
27790   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27791  ;;
27792 esac
27793
27794
27795
27796
27797 # Select semaphore implementation type.
27798 if test "$PORTNAME" != "win32"; then
27799   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27800
27801 cat >>confdefs.h <<\_ACEOF
27802 #define USE_NAMED_POSIX_SEMAPHORES 1
27803 _ACEOF
27804
27805     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27806   else
27807     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27808
27809 cat >>confdefs.h <<\_ACEOF
27810 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27811 _ACEOF
27812
27813       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27814     else
27815
27816 cat >>confdefs.h <<\_ACEOF
27817 #define USE_SYSV_SEMAPHORES 1
27818 _ACEOF
27819
27820       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27821     fi
27822   fi
27823 else
27824
27825 cat >>confdefs.h <<\_ACEOF
27826 #define USE_WIN32_SEMAPHORES 1
27827 _ACEOF
27828
27829   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27830 fi
27831
27832
27833 # Select shared-memory implementation type.
27834 if test "$PORTNAME" != "win32"; then
27835
27836 cat >>confdefs.h <<\_ACEOF
27837 #define USE_SYSV_SHARED_MEMORY 1
27838 _ACEOF
27839
27840   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27841 else
27842
27843 cat >>confdefs.h <<\_ACEOF
27844 #define USE_WIN32_SHARED_MEMORY 1
27845 _ACEOF
27846
27847   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27848 fi
27849
27850 # Select latch implementation type.
27851 if test "$PORTNAME" != "win32"; then
27852   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
27853 else
27854   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
27855 fi
27856
27857 # If not set in template file, set bytes to use libc memset()
27858 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27859   MEMSET_LOOP_LIMIT=1024
27860 fi
27861
27862 cat >>confdefs.h <<_ACEOF
27863 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27864 _ACEOF
27865
27866
27867
27868 if test "$enable_nls" = yes ; then
27869
27870   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27871 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27872 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27873   $as_echo_n "(cached) " >&6
27874 else
27875   ac_func_search_save_LIBS=$LIBS
27876 cat >conftest.$ac_ext <<_ACEOF
27877 /* confdefs.h.  */
27878 _ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h.  */
27882
27883 /* Override any GCC internal prototype to avoid an error.
27884    Use char because int might match the return type of a GCC
27885    builtin and then its argument prototype would still apply.  */
27886 #ifdef __cplusplus
27887 extern "C"
27888 #endif
27889 char bind_textdomain_codeset ();
27890 int
27891 main ()
27892 {
27893 return bind_textdomain_codeset ();
27894   ;
27895   return 0;
27896 }
27897 _ACEOF
27898 for ac_lib in '' intl; do
27899   if test -z "$ac_lib"; then
27900     ac_res="none required"
27901   else
27902     ac_res=-l$ac_lib
27903     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27904   fi
27905   rm -f conftest.$ac_objext conftest$ac_exeext
27906 if { (ac_try="$ac_link"
27907 case "(($ac_try" in
27908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909   *) ac_try_echo=$ac_try;;
27910 esac
27911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27912 $as_echo "$ac_try_echo") >&5
27913   (eval "$ac_link") 2>conftest.er1
27914   ac_status=$?
27915   grep -v '^ *+' conftest.er1 >conftest.err
27916   rm -f conftest.er1
27917   cat conftest.err >&5
27918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27919   (exit $ac_status); } && {
27920          test -z "$ac_c_werror_flag" ||
27921          test ! -s conftest.err
27922        } && test -s conftest$ac_exeext && {
27923          test "$cross_compiling" = yes ||
27924          $as_test_x conftest$ac_exeext
27925        }; then
27926   ac_cv_search_bind_textdomain_codeset=$ac_res
27927 else
27928   $as_echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.$ac_ext >&5
27930
27931
27932 fi
27933
27934 rm -rf conftest.dSYM
27935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27936       conftest$ac_exeext
27937   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27938   break
27939 fi
27940 done
27941 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27942   :
27943 else
27944   ac_cv_search_bind_textdomain_codeset=no
27945 fi
27946 rm conftest.$ac_ext
27947 LIBS=$ac_func_search_save_LIBS
27948 fi
27949 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27950 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27951 ac_res=$ac_cv_search_bind_textdomain_codeset
27952 if test "$ac_res" != no; then
27953   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27954
27955 else
27956   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27957 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27958    { (exit 1); exit 1; }; }
27959 fi
27960
27961   if test "${ac_cv_header_libintl_h+set}" = set; then
27962   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27963 $as_echo_n "checking for libintl.h... " >&6; }
27964 if test "${ac_cv_header_libintl_h+set}" = set; then
27965   $as_echo_n "(cached) " >&6
27966 fi
27967 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27968 $as_echo "$ac_cv_header_libintl_h" >&6; }
27969 else
27970   # Is the header compilable?
27971 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27972 $as_echo_n "checking libintl.h usability... " >&6; }
27973 cat >conftest.$ac_ext <<_ACEOF
27974 /* confdefs.h.  */
27975 _ACEOF
27976 cat confdefs.h >>conftest.$ac_ext
27977 cat >>conftest.$ac_ext <<_ACEOF
27978 /* end confdefs.h.  */
27979 $ac_includes_default
27980 #include <libintl.h>
27981 _ACEOF
27982 rm -f conftest.$ac_objext
27983 if { (ac_try="$ac_compile"
27984 case "(($ac_try" in
27985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986   *) ac_try_echo=$ac_try;;
27987 esac
27988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27989 $as_echo "$ac_try_echo") >&5
27990   (eval "$ac_compile") 2>conftest.er1
27991   ac_status=$?
27992   grep -v '^ *+' conftest.er1 >conftest.err
27993   rm -f conftest.er1
27994   cat conftest.err >&5
27995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996   (exit $ac_status); } && {
27997          test -z "$ac_c_werror_flag" ||
27998          test ! -s conftest.err
27999        } && test -s conftest.$ac_objext; then
28000   ac_header_compiler=yes
28001 else
28002   $as_echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28004
28005         ac_header_compiler=no
28006 fi
28007
28008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28009 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28010 $as_echo "$ac_header_compiler" >&6; }
28011
28012 # Is the header present?
28013 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28014 $as_echo_n "checking libintl.h presence... " >&6; }
28015 cat >conftest.$ac_ext <<_ACEOF
28016 /* confdefs.h.  */
28017 _ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h.  */
28021 #include <libintl.h>
28022 _ACEOF
28023 if { (ac_try="$ac_cpp conftest.$ac_ext"
28024 case "(($ac_try" in
28025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026   *) ac_try_echo=$ac_try;;
28027 esac
28028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28029 $as_echo "$ac_try_echo") >&5
28030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28031   ac_status=$?
28032   grep -v '^ *+' conftest.er1 >conftest.err
28033   rm -f conftest.er1
28034   cat conftest.err >&5
28035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); } >/dev/null && {
28037          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28038          test ! -s conftest.err
28039        }; then
28040   ac_header_preproc=yes
28041 else
28042   $as_echo "$as_me: failed program was:" >&5
28043 sed 's/^/| /' conftest.$ac_ext >&5
28044
28045   ac_header_preproc=no
28046 fi
28047
28048 rm -f conftest.err conftest.$ac_ext
28049 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28050 $as_echo "$ac_header_preproc" >&6; }
28051
28052 # So?  What about this header?
28053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28054   yes:no: )
28055     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28056 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28057     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28058 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28059     ac_header_preproc=yes
28060     ;;
28061   no:yes:* )
28062     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28063 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28064     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28065 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28066     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28067 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28068     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28069 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28070     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28071 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28072     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28073 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28074     ( cat <<\_ASBOX
28075 ## ---------------------------------------- ##
28076 ## Report this to pgsql-bugs@postgresql.org ##
28077 ## ---------------------------------------- ##
28078 _ASBOX
28079      ) | sed "s/^/$as_me: WARNING:     /" >&2
28080     ;;
28081 esac
28082 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28083 $as_echo_n "checking for libintl.h... " >&6; }
28084 if test "${ac_cv_header_libintl_h+set}" = set; then
28085   $as_echo_n "(cached) " >&6
28086 else
28087   ac_cv_header_libintl_h=$ac_header_preproc
28088 fi
28089 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28090 $as_echo "$ac_cv_header_libintl_h" >&6; }
28091
28092 fi
28093 if test "x$ac_cv_header_libintl_h" = x""yes; then
28094   :
28095 else
28096   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28097 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28098    { (exit 1); exit 1; }; }
28099 fi
28100
28101
28102   for ac_prog in msgfmt
28103 do
28104   # Extract the first word of "$ac_prog", so it can be a program name with args.
28105 set dummy $ac_prog; ac_word=$2
28106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28107 $as_echo_n "checking for $ac_word... " >&6; }
28108 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28109   $as_echo_n "(cached) " >&6
28110 else
28111   if test -n "$MSGFMT"; then
28112   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28113 else
28114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28115 for as_dir in $PATH
28116 do
28117   IFS=$as_save_IFS
28118   test -z "$as_dir" && as_dir=.
28119   for ac_exec_ext in '' $ac_executable_extensions; do
28120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28121     ac_cv_prog_MSGFMT="$ac_prog"
28122     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28123     break 2
28124   fi
28125 done
28126 done
28127 IFS=$as_save_IFS
28128
28129 fi
28130 fi
28131 MSGFMT=$ac_cv_prog_MSGFMT
28132 if test -n "$MSGFMT"; then
28133   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28134 $as_echo "$MSGFMT" >&6; }
28135 else
28136   { $as_echo "$as_me:$LINENO: result: no" >&5
28137 $as_echo "no" >&6; }
28138 fi
28139
28140
28141   test -n "$MSGFMT" && break
28142 done
28143
28144   if test -z "$MSGFMT"; then
28145     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28146 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28147    { (exit 1); exit 1; }; }
28148   fi
28149   for ac_prog in msgmerge
28150 do
28151   # Extract the first word of "$ac_prog", so it can be a program name with args.
28152 set dummy $ac_prog; ac_word=$2
28153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28154 $as_echo_n "checking for $ac_word... " >&6; }
28155 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28156   $as_echo_n "(cached) " >&6
28157 else
28158   if test -n "$MSGMERGE"; then
28159   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28160 else
28161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28162 for as_dir in $PATH
28163 do
28164   IFS=$as_save_IFS
28165   test -z "$as_dir" && as_dir=.
28166   for ac_exec_ext in '' $ac_executable_extensions; do
28167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28168     ac_cv_prog_MSGMERGE="$ac_prog"
28169     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28170     break 2
28171   fi
28172 done
28173 done
28174 IFS=$as_save_IFS
28175
28176 fi
28177 fi
28178 MSGMERGE=$ac_cv_prog_MSGMERGE
28179 if test -n "$MSGMERGE"; then
28180   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28181 $as_echo "$MSGMERGE" >&6; }
28182 else
28183   { $as_echo "$as_me:$LINENO: result: no" >&5
28184 $as_echo "no" >&6; }
28185 fi
28186
28187
28188   test -n "$MSGMERGE" && break
28189 done
28190
28191   for ac_prog in xgettext
28192 do
28193   # Extract the first word of "$ac_prog", so it can be a program name with args.
28194 set dummy $ac_prog; ac_word=$2
28195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28196 $as_echo_n "checking for $ac_word... " >&6; }
28197 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28198   $as_echo_n "(cached) " >&6
28199 else
28200   if test -n "$XGETTEXT"; then
28201   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28202 else
28203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28204 for as_dir in $PATH
28205 do
28206   IFS=$as_save_IFS
28207   test -z "$as_dir" && as_dir=.
28208   for ac_exec_ext in '' $ac_executable_extensions; do
28209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28210     ac_cv_prog_XGETTEXT="$ac_prog"
28211     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28212     break 2
28213   fi
28214 done
28215 done
28216 IFS=$as_save_IFS
28217
28218 fi
28219 fi
28220 XGETTEXT=$ac_cv_prog_XGETTEXT
28221 if test -n "$XGETTEXT"; then
28222   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28223 $as_echo "$XGETTEXT" >&6; }
28224 else
28225   { $as_echo "$as_me:$LINENO: result: no" >&5
28226 $as_echo "no" >&6; }
28227 fi
28228
28229
28230   test -n "$XGETTEXT" && break
28231 done
28232
28233
28234 fi
28235
28236 # Check for Tcl configuration script tclConfig.sh
28237 if test "$with_tcl" = yes; then
28238     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28239 do
28240   # Extract the first word of "$ac_prog", so it can be a program name with args.
28241 set dummy $ac_prog; ac_word=$2
28242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28243 $as_echo_n "checking for $ac_word... " >&6; }
28244 if test "${ac_cv_path_TCLSH+set}" = set; then
28245   $as_echo_n "(cached) " >&6
28246 else
28247   case $TCLSH in
28248   [\\/]* | ?:[\\/]*)
28249   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28250   ;;
28251   *)
28252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28253 for as_dir in $PATH
28254 do
28255   IFS=$as_save_IFS
28256   test -z "$as_dir" && as_dir=.
28257   for ac_exec_ext in '' $ac_executable_extensions; do
28258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28259     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28260     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28261     break 2
28262   fi
28263 done
28264 done
28265 IFS=$as_save_IFS
28266
28267   ;;
28268 esac
28269 fi
28270 TCLSH=$ac_cv_path_TCLSH
28271 if test -n "$TCLSH"; then
28272   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28273 $as_echo "$TCLSH" >&6; }
28274 else
28275   { $as_echo "$as_me:$LINENO: result: no" >&5
28276 $as_echo "no" >&6; }
28277 fi
28278
28279
28280   test -n "$TCLSH" && break
28281 done
28282
28283 if test x"$TCLSH" = x""; then
28284   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28285 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28286    { (exit 1); exit 1; }; }
28287 fi
28288
28289 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28290 $as_echo_n "checking for tclConfig.sh... " >&6; }
28291 # Let user override test
28292 if test -z "$TCL_CONFIG_SH"; then
28293     pgac_test_dirs="$with_tclconfig"
28294
28295     set X $pgac_test_dirs; shift
28296     if test $# -eq 0; then
28297         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28298 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28299    { (exit 1); exit 1; }; }
28300         set X `echo 'puts $auto_path' | $TCLSH`; shift
28301     fi
28302
28303     for pgac_dir do
28304         if test -r "$pgac_dir/tclConfig.sh"; then
28305             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28306             break
28307         fi
28308     done
28309 fi
28310
28311 if test -z "$TCL_CONFIG_SH"; then
28312     { $as_echo "$as_me:$LINENO: result: no" >&5
28313 $as_echo "no" >&6; }
28314     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28315 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28316    { (exit 1); exit 1; }; }
28317 else
28318     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28319 $as_echo "$TCL_CONFIG_SH" >&6; }
28320 fi
28321
28322
28323
28324     . "$TCL_CONFIG_SH"
28325 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28326 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28327 eval TCL_LIBS=\"$TCL_LIBS\"
28328 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28329 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28330
28331         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28332     ac_save_CPPFLAGS=$CPPFLAGS
28333     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28334     if test "${ac_cv_header_tcl_h+set}" = set; then
28335   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28336 $as_echo_n "checking for tcl.h... " >&6; }
28337 if test "${ac_cv_header_tcl_h+set}" = set; then
28338   $as_echo_n "(cached) " >&6
28339 fi
28340 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28341 $as_echo "$ac_cv_header_tcl_h" >&6; }
28342 else
28343   # Is the header compilable?
28344 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28345 $as_echo_n "checking tcl.h usability... " >&6; }
28346 cat >conftest.$ac_ext <<_ACEOF
28347 /* confdefs.h.  */
28348 _ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h.  */
28352 $ac_includes_default
28353 #include <tcl.h>
28354 _ACEOF
28355 rm -f conftest.$ac_objext
28356 if { (ac_try="$ac_compile"
28357 case "(($ac_try" in
28358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359   *) ac_try_echo=$ac_try;;
28360 esac
28361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28362 $as_echo "$ac_try_echo") >&5
28363   (eval "$ac_compile") 2>conftest.er1
28364   ac_status=$?
28365   grep -v '^ *+' conftest.er1 >conftest.err
28366   rm -f conftest.er1
28367   cat conftest.err >&5
28368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); } && {
28370          test -z "$ac_c_werror_flag" ||
28371          test ! -s conftest.err
28372        } && test -s conftest.$ac_objext; then
28373   ac_header_compiler=yes
28374 else
28375   $as_echo "$as_me: failed program was:" >&5
28376 sed 's/^/| /' conftest.$ac_ext >&5
28377
28378         ac_header_compiler=no
28379 fi
28380
28381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28382 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28383 $as_echo "$ac_header_compiler" >&6; }
28384
28385 # Is the header present?
28386 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28387 $as_echo_n "checking tcl.h presence... " >&6; }
28388 cat >conftest.$ac_ext <<_ACEOF
28389 /* confdefs.h.  */
28390 _ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h.  */
28394 #include <tcl.h>
28395 _ACEOF
28396 if { (ac_try="$ac_cpp conftest.$ac_ext"
28397 case "(($ac_try" in
28398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399   *) ac_try_echo=$ac_try;;
28400 esac
28401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28402 $as_echo "$ac_try_echo") >&5
28403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28404   ac_status=$?
28405   grep -v '^ *+' conftest.er1 >conftest.err
28406   rm -f conftest.er1
28407   cat conftest.err >&5
28408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409   (exit $ac_status); } >/dev/null && {
28410          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28411          test ! -s conftest.err
28412        }; then
28413   ac_header_preproc=yes
28414 else
28415   $as_echo "$as_me: failed program was:" >&5
28416 sed 's/^/| /' conftest.$ac_ext >&5
28417
28418   ac_header_preproc=no
28419 fi
28420
28421 rm -f conftest.err conftest.$ac_ext
28422 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28423 $as_echo "$ac_header_preproc" >&6; }
28424
28425 # So?  What about this header?
28426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28427   yes:no: )
28428     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28429 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28430     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28431 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28432     ac_header_preproc=yes
28433     ;;
28434   no:yes:* )
28435     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28436 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28437     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28438 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28439     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28440 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28441     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28442 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28443     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28444 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28445     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28446 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28447     ( cat <<\_ASBOX
28448 ## ---------------------------------------- ##
28449 ## Report this to pgsql-bugs@postgresql.org ##
28450 ## ---------------------------------------- ##
28451 _ASBOX
28452      ) | sed "s/^/$as_me: WARNING:     /" >&2
28453     ;;
28454 esac
28455 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28456 $as_echo_n "checking for tcl.h... " >&6; }
28457 if test "${ac_cv_header_tcl_h+set}" = set; then
28458   $as_echo_n "(cached) " >&6
28459 else
28460   ac_cv_header_tcl_h=$ac_header_preproc
28461 fi
28462 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28463 $as_echo "$ac_cv_header_tcl_h" >&6; }
28464
28465 fi
28466 if test "x$ac_cv_header_tcl_h" = x""yes; then
28467   :
28468 else
28469   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28470 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28471    { (exit 1); exit 1; }; }
28472 fi
28473
28474
28475     CPPFLAGS=$ac_save_CPPFLAGS
28476 fi
28477
28478 #
28479 # Check for DocBook and tools
28480 #
28481 for ac_prog in onsgmls nsgmls
28482 do
28483   # Extract the first word of "$ac_prog", so it can be a program name with args.
28484 set dummy $ac_prog; ac_word=$2
28485 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28486 $as_echo_n "checking for $ac_word... " >&6; }
28487 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28488   $as_echo_n "(cached) " >&6
28489 else
28490   if test -n "$NSGMLS"; then
28491   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28492 else
28493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28494 for as_dir in $PATH
28495 do
28496   IFS=$as_save_IFS
28497   test -z "$as_dir" && as_dir=.
28498   for ac_exec_ext in '' $ac_executable_extensions; do
28499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28500     ac_cv_prog_NSGMLS="$ac_prog"
28501     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28502     break 2
28503   fi
28504 done
28505 done
28506 IFS=$as_save_IFS
28507
28508 fi
28509 fi
28510 NSGMLS=$ac_cv_prog_NSGMLS
28511 if test -n "$NSGMLS"; then
28512   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28513 $as_echo "$NSGMLS" >&6; }
28514 else
28515   { $as_echo "$as_me:$LINENO: result: no" >&5
28516 $as_echo "no" >&6; }
28517 fi
28518
28519
28520   test -n "$NSGMLS" && break
28521 done
28522
28523 for ac_prog in openjade jade
28524 do
28525   # Extract the first word of "$ac_prog", so it can be a program name with args.
28526 set dummy $ac_prog; ac_word=$2
28527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28528 $as_echo_n "checking for $ac_word... " >&6; }
28529 if test "${ac_cv_prog_JADE+set}" = set; then
28530   $as_echo_n "(cached) " >&6
28531 else
28532   if test -n "$JADE"; then
28533   ac_cv_prog_JADE="$JADE" # Let the user override the test.
28534 else
28535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28536 for as_dir in $PATH
28537 do
28538   IFS=$as_save_IFS
28539   test -z "$as_dir" && as_dir=.
28540   for ac_exec_ext in '' $ac_executable_extensions; do
28541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28542     ac_cv_prog_JADE="$ac_prog"
28543     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28544     break 2
28545   fi
28546 done
28547 done
28548 IFS=$as_save_IFS
28549
28550 fi
28551 fi
28552 JADE=$ac_cv_prog_JADE
28553 if test -n "$JADE"; then
28554   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28555 $as_echo "$JADE" >&6; }
28556 else
28557   { $as_echo "$as_me:$LINENO: result: no" >&5
28558 $as_echo "no" >&6; }
28559 fi
28560
28561
28562   test -n "$JADE" && break
28563 done
28564
28565
28566 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28567 $as_echo_n "checking for DocBook V4.2... " >&6; }
28568 if test "${pgac_cv_check_docbook+set}" = set; then
28569   $as_echo_n "(cached) " >&6
28570 else
28571   cat >conftest.sgml <<EOF
28572 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28573 <book>
28574  <title>test</title>
28575  <chapter>
28576   <title>random</title>
28577    <sect1>
28578     <title>testsect</title>
28579     <para>text</para>
28580   </sect1>
28581  </chapter>
28582 </book>
28583 EOF
28584
28585 pgac_cv_check_docbook=no
28586
28587 if test -n "$NSGMLS"; then
28588   $NSGMLS -s conftest.sgml 1>&5 2>&1
28589   if test $? -eq 0; then
28590     pgac_cv_check_docbook=yes
28591   fi
28592 fi
28593 rm -f conftest.sgml
28594 fi
28595 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28596 $as_echo "$pgac_cv_check_docbook" >&6; }
28597
28598 have_docbook=$pgac_cv_check_docbook
28599
28600
28601 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28602 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28603 if test "${pgac_cv_path_stylesheets+set}" = set; then
28604   $as_echo_n "(cached) " >&6
28605 else
28606   if test -n "$DOCBOOKSTYLE"; then
28607   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28608 else
28609   for pgac_prefix in /usr /usr/local /opt /sw; do
28610     for pgac_infix in share lib; do
28611       for pgac_postfix in \
28612         sgml/stylesheets/nwalsh-modular \
28613         sgml/stylesheets/docbook \
28614         sgml/stylesheets/dsssl/docbook \
28615         sgml/docbook-dsssl \
28616         sgml/docbook/dsssl/modular \
28617         sgml/docbook/stylesheet/dsssl/modular \
28618         sgml/docbook/dsssl-stylesheets \
28619         sgml/dsssl/docbook-dsssl-nwalsh
28620       do
28621         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28622         if test -r "$pgac_candidate/html/docbook.dsl" \
28623            && test -r "$pgac_candidate/print/docbook.dsl"
28624         then
28625           pgac_cv_path_stylesheets=$pgac_candidate
28626           break 3
28627         fi
28628       done
28629     done
28630   done
28631 fi
28632 fi
28633
28634 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28635
28636 if test -n "$DOCBOOKSTYLE"; then
28637   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28638 $as_echo "$DOCBOOKSTYLE" >&6; }
28639 else
28640   { $as_echo "$as_me:$LINENO: result: no" >&5
28641 $as_echo "no" >&6; }
28642 fi
28643 if test -n "$DOCBOOKSTYLE"; then
28644   for ac_prog in collateindex.pl
28645 do
28646   # Extract the first word of "$ac_prog", so it can be a program name with args.
28647 set dummy $ac_prog; ac_word=$2
28648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28649 $as_echo_n "checking for $ac_word... " >&6; }
28650 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28651   $as_echo_n "(cached) " >&6
28652 else
28653   case $COLLATEINDEX in
28654   [\\/]* | ?:[\\/]*)
28655   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28656   ;;
28657   *)
28658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28659 for as_dir in $DOCBOOKSTYLE/bin $PATH
28660 do
28661   IFS=$as_save_IFS
28662   test -z "$as_dir" && as_dir=.
28663   for ac_exec_ext in '' $ac_executable_extensions; do
28664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28665     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28667     break 2
28668   fi
28669 done
28670 done
28671 IFS=$as_save_IFS
28672
28673   ;;
28674 esac
28675 fi
28676 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28677 if test -n "$COLLATEINDEX"; then
28678   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28679 $as_echo "$COLLATEINDEX" >&6; }
28680 else
28681   { $as_echo "$as_me:$LINENO: result: no" >&5
28682 $as_echo "no" >&6; }
28683 fi
28684
28685
28686   test -n "$COLLATEINDEX" && break
28687 done
28688
28689 else
28690   for ac_prog in collateindex.pl
28691 do
28692   # Extract the first word of "$ac_prog", so it can be a program name with args.
28693 set dummy $ac_prog; ac_word=$2
28694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28695 $as_echo_n "checking for $ac_word... " >&6; }
28696 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28697   $as_echo_n "(cached) " >&6
28698 else
28699   case $COLLATEINDEX in
28700   [\\/]* | ?:[\\/]*)
28701   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28702   ;;
28703   *)
28704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28705 for as_dir in $PATH
28706 do
28707   IFS=$as_save_IFS
28708   test -z "$as_dir" && as_dir=.
28709   for ac_exec_ext in '' $ac_executable_extensions; do
28710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28711     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28712     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28713     break 2
28714   fi
28715 done
28716 done
28717 IFS=$as_save_IFS
28718
28719   ;;
28720 esac
28721 fi
28722 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28723 if test -n "$COLLATEINDEX"; then
28724   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28725 $as_echo "$COLLATEINDEX" >&6; }
28726 else
28727   { $as_echo "$as_me:$LINENO: result: no" >&5
28728 $as_echo "no" >&6; }
28729 fi
28730
28731
28732   test -n "$COLLATEINDEX" && break
28733 done
28734
28735 fi
28736 for ac_prog in xsltproc
28737 do
28738   # Extract the first word of "$ac_prog", so it can be a program name with args.
28739 set dummy $ac_prog; ac_word=$2
28740 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28741 $as_echo_n "checking for $ac_word... " >&6; }
28742 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28743   $as_echo_n "(cached) " >&6
28744 else
28745   if test -n "$XSLTPROC"; then
28746   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28747 else
28748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28749 for as_dir in $PATH
28750 do
28751   IFS=$as_save_IFS
28752   test -z "$as_dir" && as_dir=.
28753   for ac_exec_ext in '' $ac_executable_extensions; do
28754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28755     ac_cv_prog_XSLTPROC="$ac_prog"
28756     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28757     break 2
28758   fi
28759 done
28760 done
28761 IFS=$as_save_IFS
28762
28763 fi
28764 fi
28765 XSLTPROC=$ac_cv_prog_XSLTPROC
28766 if test -n "$XSLTPROC"; then
28767   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28768 $as_echo "$XSLTPROC" >&6; }
28769 else
28770   { $as_echo "$as_me:$LINENO: result: no" >&5
28771 $as_echo "no" >&6; }
28772 fi
28773
28774
28775   test -n "$XSLTPROC" && break
28776 done
28777
28778 for ac_prog in osx sgml2xml sx
28779 do
28780   # Extract the first word of "$ac_prog", so it can be a program name with args.
28781 set dummy $ac_prog; ac_word=$2
28782 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28783 $as_echo_n "checking for $ac_word... " >&6; }
28784 if test "${ac_cv_prog_OSX+set}" = set; then
28785   $as_echo_n "(cached) " >&6
28786 else
28787   if test -n "$OSX"; then
28788   ac_cv_prog_OSX="$OSX" # Let the user override the test.
28789 else
28790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28791 for as_dir in $PATH
28792 do
28793   IFS=$as_save_IFS
28794   test -z "$as_dir" && as_dir=.
28795   for ac_exec_ext in '' $ac_executable_extensions; do
28796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28797     ac_cv_prog_OSX="$ac_prog"
28798     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28799     break 2
28800   fi
28801 done
28802 done
28803 IFS=$as_save_IFS
28804
28805 fi
28806 fi
28807 OSX=$ac_cv_prog_OSX
28808 if test -n "$OSX"; then
28809   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28810 $as_echo "$OSX" >&6; }
28811 else
28812   { $as_echo "$as_me:$LINENO: result: no" >&5
28813 $as_echo "no" >&6; }
28814 fi
28815
28816
28817   test -n "$OSX" && break
28818 done
28819
28820
28821 # Thread testing
28822
28823 # We have to run the thread test near the end so we have all our symbols
28824 # defined.  Cross compiling throws a warning.
28825 #
28826 if test "$enable_thread_safety" = yes; then
28827 if test "$PORTNAME" != "win32"
28828 then
28829 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28830 $as_echo_n "checking thread safety of required library functions... " >&6; }
28831
28832 _CFLAGS="$CFLAGS"
28833 _LIBS="$LIBS"
28834 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28835 LIBS="$LIBS $PTHREAD_LIBS"
28836 if test "$cross_compiling" = yes; then
28837   { $as_echo "$as_me:$LINENO: result: maybe" >&5
28838 $as_echo "maybe" >&6; }
28839   { $as_echo "$as_me:$LINENO: WARNING:
28840 *** Skipping thread test program because of cross-compile build.
28841 *** Run the program in src/test/thread on the target machine.
28842 " >&5
28843 $as_echo "$as_me: WARNING:
28844 *** Skipping thread test program because of cross-compile build.
28845 *** Run the program in src/test/thread on the target machine.
28846 " >&2;}
28847 else
28848   cat >conftest.$ac_ext <<_ACEOF
28849 /* confdefs.h.  */
28850 _ACEOF
28851 cat confdefs.h >>conftest.$ac_ext
28852 cat >>conftest.$ac_ext <<_ACEOF
28853 /* end confdefs.h.  */
28854 #include "$srcdir/src/test/thread/thread_test.c"
28855 _ACEOF
28856 rm -f conftest$ac_exeext
28857 if { (ac_try="$ac_link"
28858 case "(($ac_try" in
28859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28860   *) ac_try_echo=$ac_try;;
28861 esac
28862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28863 $as_echo "$ac_try_echo") >&5
28864   (eval "$ac_link") 2>&5
28865   ac_status=$?
28866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28868   { (case "(($ac_try" in
28869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870   *) ac_try_echo=$ac_try;;
28871 esac
28872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28873 $as_echo "$ac_try_echo") >&5
28874   (eval "$ac_try") 2>&5
28875   ac_status=$?
28876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877   (exit $ac_status); }; }; then
28878   { $as_echo "$as_me:$LINENO: result: yes" >&5
28879 $as_echo "yes" >&6; }
28880 else
28881   $as_echo "$as_me: program exited with status $ac_status" >&5
28882 $as_echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.$ac_ext >&5
28884
28885 ( exit $ac_status )
28886 { $as_echo "$as_me:$LINENO: result: no" >&5
28887 $as_echo "no" >&6; }
28888   { { $as_echo "$as_me:$LINENO: error: thread test program failed
28889 This platform is not thread-safe.  Check the file 'config.log' or compile
28890 and run src/test/thread/thread_test for the exact reason.
28891 Use --disable-thread-safety to disable thread safety." >&5
28892 $as_echo "$as_me: error: thread test program failed
28893 This platform is not thread-safe.  Check the file 'config.log' or compile
28894 and run src/test/thread/thread_test for the exact reason.
28895 Use --disable-thread-safety to disable thread safety." >&2;}
28896    { (exit 1); exit 1; }; }
28897 fi
28898 rm -rf conftest.dSYM
28899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28900 fi
28901
28902
28903 CFLAGS="$_CFLAGS"
28904 LIBS="$_LIBS"
28905 else
28906 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28907 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28908 fi
28909 fi
28910
28911 # If compiler will take -Wl,--as-needed (or various platform-specific
28912 # spellings thereof) then add that to LDFLAGS.  This is much easier than
28913 # trying to filter LIBS to the minimum for each executable.
28914 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28915 # libreadline; therefore we postpone testing it until we know what library
28916 # dependencies readline has.  The test code will try to link with $LIBS.
28917 if test "$with_readline" = yes; then
28918   link_test_func=readline
28919 else
28920   link_test_func=exit
28921 fi
28922
28923 if test "$PORTNAME" = "darwin"; then
28924   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
28925 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28926 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
28927   $as_echo_n "(cached) " >&6
28928 else
28929   pgac_save_LDFLAGS=$LDFLAGS
28930 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28931 if test "$cross_compiling" = yes; then
28932   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
28933 else
28934   cat >conftest.$ac_ext <<_ACEOF
28935 /* confdefs.h.  */
28936 _ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h.  */
28940 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28941 int
28942 main ()
28943 {
28944
28945   ;
28946   return 0;
28947 }
28948 _ACEOF
28949 rm -f conftest$ac_exeext
28950 if { (ac_try="$ac_link"
28951 case "(($ac_try" in
28952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953   *) ac_try_echo=$ac_try;;
28954 esac
28955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28956 $as_echo "$ac_try_echo") >&5
28957   (eval "$ac_link") 2>&5
28958   ac_status=$?
28959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28961   { (case "(($ac_try" in
28962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963   *) ac_try_echo=$ac_try;;
28964 esac
28965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28966 $as_echo "$ac_try_echo") >&5
28967   (eval "$ac_try") 2>&5
28968   ac_status=$?
28969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970   (exit $ac_status); }; }; then
28971   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
28972 else
28973   $as_echo "$as_me: program exited with status $ac_status" >&5
28974 $as_echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28976
28977 ( exit $ac_status )
28978 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
28979 fi
28980 rm -rf conftest.dSYM
28981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28982 fi
28983
28984
28985 LDFLAGS="$pgac_save_LDFLAGS"
28986 fi
28987 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
28988 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
28989 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
28990   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
28991 fi
28992
28993 elif test "$PORTNAME" = "openbsd"; then
28994   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
28995 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
28996 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
28997   $as_echo_n "(cached) " >&6
28998 else
28999   pgac_save_LDFLAGS=$LDFLAGS
29000 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29001 if test "$cross_compiling" = yes; then
29002   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29003 else
29004   cat >conftest.$ac_ext <<_ACEOF
29005 /* confdefs.h.  */
29006 _ACEOF
29007 cat confdefs.h >>conftest.$ac_ext
29008 cat >>conftest.$ac_ext <<_ACEOF
29009 /* end confdefs.h.  */
29010 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29011 int
29012 main ()
29013 {
29014
29015   ;
29016   return 0;
29017 }
29018 _ACEOF
29019 rm -f conftest$ac_exeext
29020 if { (ac_try="$ac_link"
29021 case "(($ac_try" in
29022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29023   *) ac_try_echo=$ac_try;;
29024 esac
29025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29026 $as_echo "$ac_try_echo") >&5
29027   (eval "$ac_link") 2>&5
29028   ac_status=$?
29029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29031   { (case "(($ac_try" in
29032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29033   *) ac_try_echo=$ac_try;;
29034 esac
29035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29036 $as_echo "$ac_try_echo") >&5
29037   (eval "$ac_try") 2>&5
29038   ac_status=$?
29039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040   (exit $ac_status); }; }; then
29041   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29042 else
29043   $as_echo "$as_me: program exited with status $ac_status" >&5
29044 $as_echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29046
29047 ( exit $ac_status )
29048 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29049 fi
29050 rm -rf conftest.dSYM
29051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29052 fi
29053
29054
29055 LDFLAGS="$pgac_save_LDFLAGS"
29056 fi
29057 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29058 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29059 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29060   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29061 fi
29062
29063 else
29064   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29065 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29066 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29067   $as_echo_n "(cached) " >&6
29068 else
29069   pgac_save_LDFLAGS=$LDFLAGS
29070 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29071 if test "$cross_compiling" = yes; then
29072   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29073 else
29074   cat >conftest.$ac_ext <<_ACEOF
29075 /* confdefs.h.  */
29076 _ACEOF
29077 cat confdefs.h >>conftest.$ac_ext
29078 cat >>conftest.$ac_ext <<_ACEOF
29079 /* end confdefs.h.  */
29080 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29081 int
29082 main ()
29083 {
29084
29085   ;
29086   return 0;
29087 }
29088 _ACEOF
29089 rm -f conftest$ac_exeext
29090 if { (ac_try="$ac_link"
29091 case "(($ac_try" in
29092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29093   *) ac_try_echo=$ac_try;;
29094 esac
29095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29096 $as_echo "$ac_try_echo") >&5
29097   (eval "$ac_link") 2>&5
29098   ac_status=$?
29099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29101   { (case "(($ac_try" in
29102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103   *) ac_try_echo=$ac_try;;
29104 esac
29105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29106 $as_echo "$ac_try_echo") >&5
29107   (eval "$ac_try") 2>&5
29108   ac_status=$?
29109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); }; }; then
29111   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29112 else
29113   $as_echo "$as_me: program exited with status $ac_status" >&5
29114 $as_echo "$as_me: failed program was:" >&5
29115 sed 's/^/| /' conftest.$ac_ext >&5
29116
29117 ( exit $ac_status )
29118 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29119 fi
29120 rm -rf conftest.dSYM
29121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29122 fi
29123
29124
29125 LDFLAGS="$pgac_save_LDFLAGS"
29126 fi
29127 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29128 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29129 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29130   LDFLAGS="$LDFLAGS -Wl,--as-needed"
29131 fi
29132
29133 fi
29134
29135
29136 # Begin output steps
29137
29138 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29139 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29140 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29141 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29142 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29143 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29144
29145 # Create compiler version string
29146 if test x"$GCC" = x"yes" ; then
29147   cc_string="GCC `${CC} --version | sed q`"
29148 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29149   cc_string=`${CC} -V 2>&1 | sed q`
29150 else
29151   cc_string=$CC
29152 fi
29153
29154
29155 cat >>confdefs.h <<_ACEOF
29156 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29157 _ACEOF
29158
29159
29160 # Supply a numeric version string for use by 3rd party add-ons
29161 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29162 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29163 tr '.' '        ' |
29164 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29165
29166 cat >>confdefs.h <<_ACEOF
29167 #define PG_VERSION_NUM $PG_VERSION_NUM
29168 _ACEOF
29169
29170
29171
29172 # prepare build tree if outside source tree
29173 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29174 # Note 2: /bin/pwd might be better than shell's built-in at getting
29175 #         a symlink-free name.
29176 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29177   vpath_build=no
29178 else
29179   vpath_build=yes
29180   if test "$no_create" != yes; then
29181     $as_echo_n "preparing build tree... " >&6
29182     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29183     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29184       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29185 $as_echo "$as_me: error: failed" >&2;}
29186    { (exit 1); exit 1; }; }
29187     { $as_echo "$as_me:$LINENO: result: done" >&5
29188 $as_echo "done" >&6; }
29189   fi
29190 fi
29191
29192
29193
29194 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29195
29196
29197 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}"
29198
29199
29200 if test "$PORTNAME" = "win32"; then
29201 ac_config_commands="$ac_config_commands check_win32_symlinks"
29202
29203 fi
29204
29205 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29206
29207
29208 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29209
29210
29211 cat >confcache <<\_ACEOF
29212 # This file is a shell script that caches the results of configure
29213 # tests run on this system so they can be shared between configure
29214 # scripts and configure runs, see configure's option --config-cache.
29215 # It is not useful on other systems.  If it contains results you don't
29216 # want to keep, you may remove or edit it.
29217 #
29218 # config.status only pays attention to the cache file if you give it
29219 # the --recheck option to rerun configure.
29220 #
29221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29223 # following values.
29224
29225 _ACEOF
29226
29227 # The following way of writing the cache mishandles newlines in values,
29228 # but we know of no workaround that is simple, portable, and efficient.
29229 # So, we kill variables containing newlines.
29230 # Ultrix sh set writes to stderr and can't be redirected directly,
29231 # and sets the high bit in the cache file unless we assign to the vars.
29232 (
29233   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29234     eval ac_val=\$$ac_var
29235     case $ac_val in #(
29236     *${as_nl}*)
29237       case $ac_var in #(
29238       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29240       esac
29241       case $ac_var in #(
29242       _ | IFS | as_nl) ;; #(
29243       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29244       *) $as_unset $ac_var ;;
29245       esac ;;
29246     esac
29247   done
29248
29249   (set) 2>&1 |
29250     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29251     *${as_nl}ac_space=\ *)
29252       # `set' does not quote correctly, so add quotes (double-quote
29253       # substitution turns \\\\ into \\, and sed turns \\ into \).
29254       sed -n \
29255         "s/'/'\\\\''/g;
29256           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29257       ;; #(
29258     *)
29259       # `set' quotes correctly as required by POSIX, so do not add quotes.
29260       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29261       ;;
29262     esac |
29263     sort
29264 ) |
29265   sed '
29266      /^ac_cv_env_/b end
29267      t clear
29268      :clear
29269      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29270      t end
29271      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29272      :end' >>confcache
29273 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29274   if test -w "$cache_file"; then
29275     test "x$cache_file" != "x/dev/null" &&
29276       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29277 $as_echo "$as_me: updating cache $cache_file" >&6;}
29278     cat confcache >$cache_file
29279   else
29280     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29282   fi
29283 fi
29284 rm -f confcache
29285
29286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29287 # Let make expand exec_prefix.
29288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29289
29290 DEFS=-DHAVE_CONFIG_H
29291
29292 ac_libobjs=
29293 ac_ltlibobjs=
29294 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29295   # 1. Remove the extension, and $U if already installed.
29296   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29297   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29298   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29299   #    will be set to the directory where LIBOBJS objects are built.
29300   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29301   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29302 done
29303 LIBOBJS=$ac_libobjs
29304
29305 LTLIBOBJS=$ac_ltlibobjs
29306
29307
29308
29309
29310 : ${CONFIG_STATUS=./config.status}
29311 ac_write_fail=0
29312 ac_clean_files_save=$ac_clean_files
29313 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29314 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29315 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29316 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29317 #! $SHELL
29318 # Generated by $as_me.
29319 # Run this file to recreate the current configuration.
29320 # Compiler output produced by configure, useful for debugging
29321 # configure, is in config.log if it exists.
29322
29323 debug=false
29324 ac_cs_recheck=false
29325 ac_cs_silent=false
29326 SHELL=\${CONFIG_SHELL-$SHELL}
29327 _ACEOF
29328
29329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29330 ## --------------------- ##
29331 ## M4sh Initialization.  ##
29332 ## --------------------- ##
29333
29334 # Be more Bourne compatible
29335 DUALCASE=1; export DUALCASE # for MKS sh
29336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29337   emulate sh
29338   NULLCMD=:
29339   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29340   # is contrary to our usage.  Disable this feature.
29341   alias -g '${1+"$@"}'='"$@"'
29342   setopt NO_GLOB_SUBST
29343 else
29344   case `(set -o) 2>/dev/null` in
29345   *posix*) set -o posix ;;
29346 esac
29347
29348 fi
29349
29350
29351
29352
29353 # PATH needs CR
29354 # Avoid depending upon Character Ranges.
29355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29358 as_cr_digits='0123456789'
29359 as_cr_alnum=$as_cr_Letters$as_cr_digits
29360
29361 as_nl='
29362 '
29363 export as_nl
29364 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29365 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29366 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29367 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29368 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29369   as_echo='printf %s\n'
29370   as_echo_n='printf %s'
29371 else
29372   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29373     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29374     as_echo_n='/usr/ucb/echo -n'
29375   else
29376     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29377     as_echo_n_body='eval
29378       arg=$1;
29379       case $arg in
29380       *"$as_nl"*)
29381         expr "X$arg" : "X\\(.*\\)$as_nl";
29382         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29383       esac;
29384       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29385     '
29386     export as_echo_n_body
29387     as_echo_n='sh -c $as_echo_n_body as_echo'
29388   fi
29389   export as_echo_body
29390   as_echo='sh -c $as_echo_body as_echo'
29391 fi
29392
29393 # The user is always right.
29394 if test "${PATH_SEPARATOR+set}" != set; then
29395   PATH_SEPARATOR=:
29396   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29397     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29398       PATH_SEPARATOR=';'
29399   }
29400 fi
29401
29402 # Support unset when possible.
29403 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29404   as_unset=unset
29405 else
29406   as_unset=false
29407 fi
29408
29409
29410 # IFS
29411 # We need space, tab and new line, in precisely that order.  Quoting is
29412 # there to prevent editors from complaining about space-tab.
29413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29414 # splitting by setting IFS to empty value.)
29415 IFS=" ""        $as_nl"
29416
29417 # Find who we are.  Look in the path if we contain no directory separator.
29418 case $0 in
29419   *[\\/]* ) as_myself=$0 ;;
29420   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29421 for as_dir in $PATH
29422 do
29423   IFS=$as_save_IFS
29424   test -z "$as_dir" && as_dir=.
29425   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29426 done
29427 IFS=$as_save_IFS
29428
29429      ;;
29430 esac
29431 # We did not find ourselves, most probably we were run as `sh COMMAND'
29432 # in which case we are not to be found in the path.
29433 if test "x$as_myself" = x; then
29434   as_myself=$0
29435 fi
29436 if test ! -f "$as_myself"; then
29437   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29438   { (exit 1); exit 1; }
29439 fi
29440
29441 # Work around bugs in pre-3.0 UWIN ksh.
29442 for as_var in ENV MAIL MAILPATH
29443 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29444 done
29445 PS1='$ '
29446 PS2='> '
29447 PS4='+ '
29448
29449 # NLS nuisances.
29450 LC_ALL=C
29451 export LC_ALL
29452 LANGUAGE=C
29453 export LANGUAGE
29454
29455 # Required to use basename.
29456 if expr a : '\(a\)' >/dev/null 2>&1 &&
29457    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29458   as_expr=expr
29459 else
29460   as_expr=false
29461 fi
29462
29463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29464   as_basename=basename
29465 else
29466   as_basename=false
29467 fi
29468
29469
29470 # Name of the executable.
29471 as_me=`$as_basename -- "$0" ||
29472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29473          X"$0" : 'X\(//\)$' \| \
29474          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29475 $as_echo X/"$0" |
29476     sed '/^.*\/\([^/][^/]*\)\/*$/{
29477             s//\1/
29478             q
29479           }
29480           /^X\/\(\/\/\)$/{
29481             s//\1/
29482             q
29483           }
29484           /^X\/\(\/\).*/{
29485             s//\1/
29486             q
29487           }
29488           s/.*/./; q'`
29489
29490 # CDPATH.
29491 $as_unset CDPATH
29492
29493
29494
29495   as_lineno_1=$LINENO
29496   as_lineno_2=$LINENO
29497   test "x$as_lineno_1" != "x$as_lineno_2" &&
29498   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29499
29500   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29501   # uniformly replaced by the line number.  The first 'sed' inserts a
29502   # line-number line after each line using $LINENO; the second 'sed'
29503   # does the real work.  The second script uses 'N' to pair each
29504   # line-number line with the line containing $LINENO, and appends
29505   # trailing '-' during substitution so that $LINENO is not a special
29506   # case at line end.
29507   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29508   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29509   # E. McMahon (1931-1989) for sed's syntax.  :-)
29510   sed -n '
29511     p
29512     /[$]LINENO/=
29513   ' <$as_myself |
29514     sed '
29515       s/[$]LINENO.*/&-/
29516       t lineno
29517       b
29518       :lineno
29519       N
29520       :loop
29521       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29522       t loop
29523       s/-\n.*//
29524     ' >$as_me.lineno &&
29525   chmod +x "$as_me.lineno" ||
29526     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29527    { (exit 1); exit 1; }; }
29528
29529   # Don't try to exec as it changes $[0], causing all sort of problems
29530   # (the dirname of $[0] is not the place where we might find the
29531   # original and so on.  Autoconf is especially sensitive to this).
29532   . "./$as_me.lineno"
29533   # Exit status is that of the last command.
29534   exit
29535 }
29536
29537
29538 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29539   as_dirname=dirname
29540 else
29541   as_dirname=false
29542 fi
29543
29544 ECHO_C= ECHO_N= ECHO_T=
29545 case `echo -n x` in
29546 -n*)
29547   case `echo 'x\c'` in
29548   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29549   *)   ECHO_C='\c';;
29550   esac;;
29551 *)
29552   ECHO_N='-n';;
29553 esac
29554 if expr a : '\(a\)' >/dev/null 2>&1 &&
29555    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29556   as_expr=expr
29557 else
29558   as_expr=false
29559 fi
29560
29561 rm -f conf$$ conf$$.exe conf$$.file
29562 if test -d conf$$.dir; then
29563   rm -f conf$$.dir/conf$$.file
29564 else
29565   rm -f conf$$.dir
29566   mkdir conf$$.dir 2>/dev/null
29567 fi
29568 if (echo >conf$$.file) 2>/dev/null; then
29569   if ln -s conf$$.file conf$$ 2>/dev/null; then
29570     as_ln_s='ln -s'
29571     # ... but there are two gotchas:
29572     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29573     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29574     # In both cases, we have to default to `cp -p'.
29575     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29576       as_ln_s='cp -p'
29577   elif ln conf$$.file conf$$ 2>/dev/null; then
29578     as_ln_s=ln
29579   else
29580     as_ln_s='cp -p'
29581   fi
29582 else
29583   as_ln_s='cp -p'
29584 fi
29585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29586 rmdir conf$$.dir 2>/dev/null
29587
29588 if mkdir -p . 2>/dev/null; then
29589   as_mkdir_p=:
29590 else
29591   test -d ./-p && rmdir ./-p
29592   as_mkdir_p=false
29593 fi
29594
29595 if test -x / >/dev/null 2>&1; then
29596   as_test_x='test -x'
29597 else
29598   if ls -dL / >/dev/null 2>&1; then
29599     as_ls_L_option=L
29600   else
29601     as_ls_L_option=
29602   fi
29603   as_test_x='
29604     eval sh -c '\''
29605       if test -d "$1"; then
29606         test -d "$1/.";
29607       else
29608         case $1 in
29609         -*)set "./$1";;
29610         esac;
29611         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29612         ???[sx]*):;;*)false;;esac;fi
29613     '\'' sh
29614   '
29615 fi
29616 as_executable_p=$as_test_x
29617
29618 # Sed expression to map a string onto a valid CPP name.
29619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29620
29621 # Sed expression to map a string onto a valid variable name.
29622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29623
29624
29625 exec 6>&1
29626
29627 # Save the log message, to keep $[0] and so on meaningful, and to
29628 # report actual input values of CONFIG_FILES etc. instead of their
29629 # values after options handling.
29630 ac_log="
29631 This file was extended by PostgreSQL $as_me 9.1devel, which was
29632 generated by GNU Autoconf 2.63.  Invocation command line was
29633
29634   CONFIG_FILES    = $CONFIG_FILES
29635   CONFIG_HEADERS  = $CONFIG_HEADERS
29636   CONFIG_LINKS    = $CONFIG_LINKS
29637   CONFIG_COMMANDS = $CONFIG_COMMANDS
29638   $ $0 $@
29639
29640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29641 "
29642
29643 _ACEOF
29644
29645 case $ac_config_files in *"
29646 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29647 esac
29648
29649 case $ac_config_headers in *"
29650 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29651 esac
29652
29653
29654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29655 # Files that config.status was made for.
29656 config_files="$ac_config_files"
29657 config_headers="$ac_config_headers"
29658 config_links="$ac_config_links"
29659 config_commands="$ac_config_commands"
29660
29661 _ACEOF
29662
29663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29664 ac_cs_usage="\
29665 \`$as_me' instantiates files from templates according to the
29666 current configuration.
29667
29668 Usage: $0 [OPTION]... [FILE]...
29669
29670   -h, --help       print this help, then exit
29671   -V, --version    print version number and configuration settings, then exit
29672   -q, --quiet, --silent
29673                    do not print progress messages
29674   -d, --debug      don't remove temporary files
29675       --recheck    update $as_me by reconfiguring in the same conditions
29676       --file=FILE[:TEMPLATE]
29677                    instantiate the configuration file FILE
29678       --header=FILE[:TEMPLATE]
29679                    instantiate the configuration header FILE
29680
29681 Configuration files:
29682 $config_files
29683
29684 Configuration headers:
29685 $config_headers
29686
29687 Configuration links:
29688 $config_links
29689
29690 Configuration commands:
29691 $config_commands
29692
29693 Report bugs to <bug-autoconf@gnu.org>."
29694
29695 _ACEOF
29696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29697 ac_cs_version="\\
29698 PostgreSQL config.status 9.1devel
29699 configured by $0, generated by GNU Autoconf 2.63,
29700   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29701
29702 Copyright (C) 2008 Free Software Foundation, Inc.
29703 This config.status script is free software; the Free Software Foundation
29704 gives unlimited permission to copy, distribute and modify it."
29705
29706 ac_pwd='$ac_pwd'
29707 srcdir='$srcdir'
29708 MKDIR_P='$MKDIR_P'
29709 AWK='$AWK'
29710 test -n "\$AWK" || AWK=awk
29711 _ACEOF
29712
29713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29714 # The default lists apply if the user does not specify any file.
29715 ac_need_defaults=:
29716 while test $# != 0
29717 do
29718   case $1 in
29719   --*=*)
29720     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29721     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29722     ac_shift=:
29723     ;;
29724   *)
29725     ac_option=$1
29726     ac_optarg=$2
29727     ac_shift=shift
29728     ;;
29729   esac
29730
29731   case $ac_option in
29732   # Handling of the options.
29733   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29734     ac_cs_recheck=: ;;
29735   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29736     $as_echo "$ac_cs_version"; exit ;;
29737   --debug | --debu | --deb | --de | --d | -d )
29738     debug=: ;;
29739   --file | --fil | --fi | --f )
29740     $ac_shift
29741     case $ac_optarg in
29742     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29743     esac
29744     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29745     ac_need_defaults=false;;
29746   --header | --heade | --head | --hea )
29747     $ac_shift
29748     case $ac_optarg in
29749     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29750     esac
29751     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29752     ac_need_defaults=false;;
29753   --he | --h)
29754     # Conflict between --help and --header
29755     { $as_echo "$as_me: error: ambiguous option: $1
29756 Try \`$0 --help' for more information." >&2
29757    { (exit 1); exit 1; }; };;
29758   --help | --hel | -h )
29759     $as_echo "$ac_cs_usage"; exit ;;
29760   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29761   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29762     ac_cs_silent=: ;;
29763
29764   # This is an error.
29765   -*) { $as_echo "$as_me: error: unrecognized option: $1
29766 Try \`$0 --help' for more information." >&2
29767    { (exit 1); exit 1; }; } ;;
29768
29769   *) ac_config_targets="$ac_config_targets $1"
29770      ac_need_defaults=false ;;
29771
29772   esac
29773   shift
29774 done
29775
29776 ac_configure_extra_args=
29777
29778 if $ac_cs_silent; then
29779   exec 6>/dev/null
29780   ac_configure_extra_args="$ac_configure_extra_args --silent"
29781 fi
29782
29783 _ACEOF
29784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29785 if \$ac_cs_recheck; then
29786   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29787   shift
29788   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29789   CONFIG_SHELL='$SHELL'
29790   export CONFIG_SHELL
29791   exec "\$@"
29792 fi
29793
29794 _ACEOF
29795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29796 exec 5>>config.log
29797 {
29798   echo
29799   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29800 ## Running $as_me. ##
29801 _ASBOX
29802   $as_echo "$ac_log"
29803 } >&5
29804
29805 _ACEOF
29806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29807 _ACEOF
29808
29809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29810
29811 # Handling of arguments.
29812 for ac_config_target in $ac_config_targets
29813 do
29814   case $ac_config_target in
29815     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29816     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29817     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29818     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29819     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29820     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29821     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
29822     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29823     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29824     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29825     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29826     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29827     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29828
29829   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29830 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29831    { (exit 1); exit 1; }; };;
29832   esac
29833 done
29834
29835
29836 # If the user did not use the arguments to specify the items to instantiate,
29837 # then the envvar interface is used.  Set only those that are not.
29838 # We use the long form for the default assignment because of an extremely
29839 # bizarre bug on SunOS 4.1.3.
29840 if $ac_need_defaults; then
29841   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29842   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29843   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29844   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29845 fi
29846
29847 # Have a temporary directory for convenience.  Make it in the build tree
29848 # simply because there is no reason against having it here, and in addition,
29849 # creating and moving files from /tmp can sometimes cause problems.
29850 # Hook for its removal unless debugging.
29851 # Note that there is a small window in which the directory will not be cleaned:
29852 # after its creation but before its name has been assigned to `$tmp'.
29853 $debug ||
29854 {
29855   tmp=
29856   trap 'exit_status=$?
29857   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29858 ' 0
29859   trap '{ (exit 1); exit 1; }' 1 2 13 15
29860 }
29861 # Create a (secure) tmp directory for tmp files.
29862
29863 {
29864   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29865   test -n "$tmp" && test -d "$tmp"
29866 }  ||
29867 {
29868   tmp=./conf$$-$RANDOM
29869   (umask 077 && mkdir "$tmp")
29870 } ||
29871 {
29872    $as_echo "$as_me: cannot create a temporary directory in ." >&2
29873    { (exit 1); exit 1; }
29874 }
29875
29876 # Set up the scripts for CONFIG_FILES section.
29877 # No need to generate them if there are no CONFIG_FILES.
29878 # This happens for instance with `./config.status config.h'.
29879 if test -n "$CONFIG_FILES"; then
29880
29881
29882 ac_cr='\r'
29883 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29884 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29885   ac_cs_awk_cr='\\r'
29886 else
29887   ac_cs_awk_cr=$ac_cr
29888 fi
29889
29890 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29891 _ACEOF
29892
29893
29894 {
29895   echo "cat >conf$$subs.awk <<_ACEOF" &&
29896   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29897   echo "_ACEOF"
29898 } >conf$$subs.sh ||
29899   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29900 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29901    { (exit 1); exit 1; }; }
29902 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29903 ac_delim='%!_!# '
29904 for ac_last_try in false false false false false :; do
29905   . ./conf$$subs.sh ||
29906     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29907 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29908    { (exit 1); exit 1; }; }
29909
29910   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29911   if test $ac_delim_n = $ac_delim_num; then
29912     break
29913   elif $ac_last_try; then
29914     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29915 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29916    { (exit 1); exit 1; }; }
29917   else
29918     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29919   fi
29920 done
29921 rm -f conf$$subs.sh
29922
29923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29924 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29925 _ACEOF
29926 sed -n '
29927 h
29928 s/^/S["/; s/!.*/"]=/
29929 p
29930 g
29931 s/^[^!]*!//
29932 :repl
29933 t repl
29934 s/'"$ac_delim"'$//
29935 t delim
29936 :nl
29937 h
29938 s/\(.\{148\}\).*/\1/
29939 t more1
29940 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29941 p
29942 n
29943 b repl
29944 :more1
29945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29946 p
29947 g
29948 s/.\{148\}//
29949 t nl
29950 :delim
29951 h
29952 s/\(.\{148\}\).*/\1/
29953 t more2
29954 s/["\\]/\\&/g; s/^/"/; s/$/"/
29955 p
29956 b
29957 :more2
29958 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29959 p
29960 g
29961 s/.\{148\}//
29962 t delim
29963 ' <conf$$subs.awk | sed '
29964 /^[^""]/{
29965   N
29966   s/\n//
29967 }
29968 ' >>$CONFIG_STATUS || ac_write_fail=1
29969 rm -f conf$$subs.awk
29970 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29971 _ACAWK
29972 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29973   for (key in S) S_is_set[key] = 1
29974   FS = "\a"
29975
29976 }
29977 {
29978   line = $ 0
29979   nfields = split(line, field, "@")
29980   substed = 0
29981   len = length(field[1])
29982   for (i = 2; i < nfields; i++) {
29983     key = field[i]
29984     keylen = length(key)
29985     if (S_is_set[key]) {
29986       value = S[key]
29987       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29988       len += length(value) + length(field[++i])
29989       substed = 1
29990     } else
29991       len += 1 + keylen
29992   }
29993
29994   print line
29995 }
29996
29997 _ACAWK
29998 _ACEOF
29999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30000 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30001   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30002 else
30003   cat
30004 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30005   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30006 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30007    { (exit 1); exit 1; }; }
30008 _ACEOF
30009
30010 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30011 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30012 # trailing colons and then remove the whole line if VPATH becomes empty
30013 # (actually we leave an empty line to preserve line numbers).
30014 if test "x$srcdir" = x.; then
30015   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30016 s/:*\$(srcdir):*/:/
30017 s/:*\${srcdir}:*/:/
30018 s/:*@srcdir@:*/:/
30019 s/^\([^=]*=[     ]*\):*/\1/
30020 s/:*$//
30021 s/^[^=]*=[       ]*$//
30022 }'
30023 fi
30024
30025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30026 fi # test -n "$CONFIG_FILES"
30027
30028 # Set up the scripts for CONFIG_HEADERS section.
30029 # No need to generate them if there are no CONFIG_HEADERS.
30030 # This happens for instance with `./config.status Makefile'.
30031 if test -n "$CONFIG_HEADERS"; then
30032 cat >"$tmp/defines.awk" <<\_ACAWK ||
30033 BEGIN {
30034 _ACEOF
30035
30036 # Transform confdefs.h into an awk script `defines.awk', embedded as
30037 # here-document in config.status, that substitutes the proper values into
30038 # config.h.in to produce config.h.
30039
30040 # Create a delimiter string that does not exist in confdefs.h, to ease
30041 # handling of long lines.
30042 ac_delim='%!_!# '
30043 for ac_last_try in false false :; do
30044   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30045   if test -z "$ac_t"; then
30046     break
30047   elif $ac_last_try; then
30048     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30049 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30050    { (exit 1); exit 1; }; }
30051   else
30052     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30053   fi
30054 done
30055
30056 # For the awk script, D is an array of macro values keyed by name,
30057 # likewise P contains macro parameters if any.  Preserve backslash
30058 # newline sequences.
30059
30060 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30061 sed -n '
30062 s/.\{148\}/&'"$ac_delim"'/g
30063 t rset
30064 :rset
30065 s/^[     ]*#[    ]*define[       ][      ]*/ /
30066 t def
30067 d
30068 :def
30069 s/\\$//
30070 t bsnl
30071 s/["\\]/\\&/g
30072 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30073 D["\1"]=" \3"/p
30074 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30075 d
30076 :bsnl
30077 s/["\\]/\\&/g
30078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30079 D["\1"]=" \3\\\\\\n"\\/p
30080 t cont
30081 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30082 t cont
30083 d
30084 :cont
30085 n
30086 s/.\{148\}/&'"$ac_delim"'/g
30087 t clear
30088 :clear
30089 s/\\$//
30090 t bsnlc
30091 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30092 d
30093 :bsnlc
30094 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30095 b cont
30096 ' <confdefs.h | sed '
30097 s/'"$ac_delim"'/"\\\
30098 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30099
30100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30101   for (key in D) D_is_set[key] = 1
30102   FS = "\a"
30103 }
30104 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30105   line = \$ 0
30106   split(line, arg, " ")
30107   if (arg[1] == "#") {
30108     defundef = arg[2]
30109     mac1 = arg[3]
30110   } else {
30111     defundef = substr(arg[1], 2)
30112     mac1 = arg[2]
30113   }
30114   split(mac1, mac2, "(") #)
30115   macro = mac2[1]
30116   prefix = substr(line, 1, index(line, defundef) - 1)
30117   if (D_is_set[macro]) {
30118     # Preserve the white space surrounding the "#".
30119     print prefix "define", macro P[macro] D[macro]
30120     next
30121   } else {
30122     # Replace #undef with comments.  This is necessary, for example,
30123     # in the case of _POSIX_SOURCE, which is predefined and required
30124     # on some systems where configure will not decide to define it.
30125     if (defundef == "undef") {
30126       print "/*", prefix defundef, macro, "*/"
30127       next
30128     }
30129   }
30130 }
30131 { print }
30132 _ACAWK
30133 _ACEOF
30134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30135   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30136 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30137    { (exit 1); exit 1; }; }
30138 fi # test -n "$CONFIG_HEADERS"
30139
30140
30141 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30142 shift
30143 for ac_tag
30144 do
30145   case $ac_tag in
30146   :[FHLC]) ac_mode=$ac_tag; continue;;
30147   esac
30148   case $ac_mode$ac_tag in
30149   :[FHL]*:*);;
30150   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30151 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30152    { (exit 1); exit 1; }; };;
30153   :[FH]-) ac_tag=-:-;;
30154   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30155   esac
30156   ac_save_IFS=$IFS
30157   IFS=:
30158   set x $ac_tag
30159   IFS=$ac_save_IFS
30160   shift
30161   ac_file=$1
30162   shift
30163
30164   case $ac_mode in
30165   :L) ac_source=$1;;
30166   :[FH])
30167     ac_file_inputs=
30168     for ac_f
30169     do
30170       case $ac_f in
30171       -) ac_f="$tmp/stdin";;
30172       *) # Look for the file first in the build tree, then in the source tree
30173          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30174          # because $ac_f cannot contain `:'.
30175          test -f "$ac_f" ||
30176            case $ac_f in
30177            [\\/$]*) false;;
30178            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30179            esac ||
30180            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30181 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30182    { (exit 1); exit 1; }; };;
30183       esac
30184       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30185       ac_file_inputs="$ac_file_inputs '$ac_f'"
30186     done
30187
30188     # Let's still pretend it is `configure' which instantiates (i.e., don't
30189     # use $as_me), people would be surprised to read:
30190     #    /* config.h.  Generated by config.status.  */
30191     configure_input='Generated from '`
30192           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30193         `' by configure.'
30194     if test x"$ac_file" != x-; then
30195       configure_input="$ac_file.  $configure_input"
30196       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30197 $as_echo "$as_me: creating $ac_file" >&6;}
30198     fi
30199     # Neutralize special characters interpreted by sed in replacement strings.
30200     case $configure_input in #(
30201     *\&* | *\|* | *\\* )
30202        ac_sed_conf_input=`$as_echo "$configure_input" |
30203        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30204     *) ac_sed_conf_input=$configure_input;;
30205     esac
30206
30207     case $ac_tag in
30208     *:-:* | *:-) cat >"$tmp/stdin" \
30209       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30210 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30211    { (exit 1); exit 1; }; } ;;
30212     esac
30213     ;;
30214   esac
30215
30216   ac_dir=`$as_dirname -- "$ac_file" ||
30217 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30218          X"$ac_file" : 'X\(//\)[^/]' \| \
30219          X"$ac_file" : 'X\(//\)$' \| \
30220          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30221 $as_echo X"$ac_file" |
30222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30223             s//\1/
30224             q
30225           }
30226           /^X\(\/\/\)[^/].*/{
30227             s//\1/
30228             q
30229           }
30230           /^X\(\/\/\)$/{
30231             s//\1/
30232             q
30233           }
30234           /^X\(\/\).*/{
30235             s//\1/
30236             q
30237           }
30238           s/.*/./; q'`
30239   { as_dir="$ac_dir"
30240   case $as_dir in #(
30241   -*) as_dir=./$as_dir;;
30242   esac
30243   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30244     as_dirs=
30245     while :; do
30246       case $as_dir in #(
30247       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30248       *) as_qdir=$as_dir;;
30249       esac
30250       as_dirs="'$as_qdir' $as_dirs"
30251       as_dir=`$as_dirname -- "$as_dir" ||
30252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30253          X"$as_dir" : 'X\(//\)[^/]' \| \
30254          X"$as_dir" : 'X\(//\)$' \| \
30255          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30256 $as_echo X"$as_dir" |
30257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30258             s//\1/
30259             q
30260           }
30261           /^X\(\/\/\)[^/].*/{
30262             s//\1/
30263             q
30264           }
30265           /^X\(\/\/\)$/{
30266             s//\1/
30267             q
30268           }
30269           /^X\(\/\).*/{
30270             s//\1/
30271             q
30272           }
30273           s/.*/./; q'`
30274       test -d "$as_dir" && break
30275     done
30276     test -z "$as_dirs" || eval "mkdir $as_dirs"
30277   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30278 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30279    { (exit 1); exit 1; }; }; }
30280   ac_builddir=.
30281
30282 case "$ac_dir" in
30283 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30284 *)
30285   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30286   # A ".." for each directory in $ac_dir_suffix.
30287   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30288   case $ac_top_builddir_sub in
30289   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30290   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30291   esac ;;
30292 esac
30293 ac_abs_top_builddir=$ac_pwd
30294 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30295 # for backward compatibility:
30296 ac_top_builddir=$ac_top_build_prefix
30297
30298 case $srcdir in
30299   .)  # We are building in place.
30300     ac_srcdir=.
30301     ac_top_srcdir=$ac_top_builddir_sub
30302     ac_abs_top_srcdir=$ac_pwd ;;
30303   [\\/]* | ?:[\\/]* )  # Absolute name.
30304     ac_srcdir=$srcdir$ac_dir_suffix;
30305     ac_top_srcdir=$srcdir
30306     ac_abs_top_srcdir=$srcdir ;;
30307   *) # Relative name.
30308     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30309     ac_top_srcdir=$ac_top_build_prefix$srcdir
30310     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30311 esac
30312 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30313
30314
30315   case $ac_mode in
30316   :F)
30317   #
30318   # CONFIG_FILE
30319   #
30320
30321   ac_MKDIR_P=$MKDIR_P
30322   case $MKDIR_P in
30323   [\\/$]* | ?:[\\/]* ) ;;
30324   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30325   esac
30326 _ACEOF
30327
30328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30329 # If the template does not know about datarootdir, expand it.
30330 # FIXME: This hack should be removed a few years after 2.60.
30331 ac_datarootdir_hack=; ac_datarootdir_seen=
30332
30333 ac_sed_dataroot='
30334 /datarootdir/ {
30335   p
30336   q
30337 }
30338 /@datadir@/p
30339 /@docdir@/p
30340 /@infodir@/p
30341 /@localedir@/p
30342 /@mandir@/p
30343 '
30344 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30345 *datarootdir*) ac_datarootdir_seen=yes;;
30346 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30347   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30348 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30349 _ACEOF
30350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30351   ac_datarootdir_hack='
30352   s&@datadir@&$datadir&g
30353   s&@docdir@&$docdir&g
30354   s&@infodir@&$infodir&g
30355   s&@localedir@&$localedir&g
30356   s&@mandir@&$mandir&g
30357     s&\\\${datarootdir}&$datarootdir&g' ;;
30358 esac
30359 _ACEOF
30360
30361 # Neutralize VPATH when `$srcdir' = `.'.
30362 # Shell code in configure.ac might set extrasub.
30363 # FIXME: do we really want to maintain this feature?
30364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30365 ac_sed_extra="$ac_vpsub
30366 $extrasub
30367 _ACEOF
30368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30369 :t
30370 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30371 s|@configure_input@|$ac_sed_conf_input|;t t
30372 s&@top_builddir@&$ac_top_builddir_sub&;t t
30373 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30374 s&@srcdir@&$ac_srcdir&;t t
30375 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30376 s&@top_srcdir@&$ac_top_srcdir&;t t
30377 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30378 s&@builddir@&$ac_builddir&;t t
30379 s&@abs_builddir@&$ac_abs_builddir&;t t
30380 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30381 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30382 $ac_datarootdir_hack
30383 "
30384 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30385   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30386 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30387    { (exit 1); exit 1; }; }
30388
30389 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30390   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30391   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30392   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30393 which seems to be undefined.  Please make sure it is defined." >&5
30394 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30395 which seems to be undefined.  Please make sure it is defined." >&2;}
30396
30397   rm -f "$tmp/stdin"
30398   case $ac_file in
30399   -) cat "$tmp/out" && rm -f "$tmp/out";;
30400   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30401   esac \
30402   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30403 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30404    { (exit 1); exit 1; }; }
30405  ;;
30406   :H)
30407   #
30408   # CONFIG_HEADER
30409   #
30410   if test x"$ac_file" != x-; then
30411     {
30412       $as_echo "/* $configure_input  */" \
30413       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30414     } >"$tmp/config.h" \
30415       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30416 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30417    { (exit 1); exit 1; }; }
30418     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30419       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30420 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30421     else
30422       rm -f "$ac_file"
30423       mv "$tmp/config.h" "$ac_file" \
30424         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30425 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30426    { (exit 1); exit 1; }; }
30427     fi
30428   else
30429     $as_echo "/* $configure_input  */" \
30430       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30431       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30432 $as_echo "$as_me: error: could not create -" >&2;}
30433    { (exit 1); exit 1; }; }
30434   fi
30435  ;;
30436   :L)
30437   #
30438   # CONFIG_LINK
30439   #
30440
30441   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30442     :
30443   else
30444     # Prefer the file from the source tree if names are identical.
30445     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30446       ac_source=$srcdir/$ac_source
30447     fi
30448
30449     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30450 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30451
30452     if test ! -r "$ac_source"; then
30453       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30454 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30455    { (exit 1); exit 1; }; }
30456     fi
30457     rm -f "$ac_file"
30458
30459     # Try a relative symlink, then a hard link, then a copy.
30460     case $srcdir in
30461     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30462         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30463     esac
30464     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30465       ln "$ac_source" "$ac_file" 2>/dev/null ||
30466       cp -p "$ac_source" "$ac_file" ||
30467       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30468 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30469    { (exit 1); exit 1; }; }
30470   fi
30471  ;;
30472   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30473 $as_echo "$as_me: executing $ac_file commands" >&6;}
30474  ;;
30475   esac
30476
30477
30478   case $ac_file$ac_mode in
30479     "check_win32_symlinks":C)
30480 # Links sometimes fail undetected on Mingw -
30481 # so here we detect it and warn the user
30482 for FILE in $CONFIG_LINKS
30483  do
30484         # test -e works for symlinks in the MinGW console
30485         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30486 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30487  done
30488  ;;
30489     "src/include/pg_config.h":H)
30490 # Update timestamp for pg_config.h (see Makefile.global)
30491 echo >src/include/stamp-h
30492  ;;
30493     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30494
30495   esac
30496 done # for ac_tag
30497
30498
30499 { (exit 0); exit 0; }
30500 _ACEOF
30501 chmod +x $CONFIG_STATUS
30502 ac_clean_files=$ac_clean_files_save
30503
30504 test $ac_write_fail = 0 ||
30505   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30506 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30507    { (exit 1); exit 1; }; }
30508
30509
30510 # configure is writing to config.log, and then calls config.status.
30511 # config.status does its own redirection, appending to config.log.
30512 # Unfortunately, on DOS this fails, as config.log is still kept open
30513 # by configure, so config.status won't be able to write to it; its
30514 # output is simply discarded.  So we exec the FD to /dev/null,
30515 # effectively closing config.log, so it can be properly (re)opened and
30516 # appended to by config.status.  When coming back to configure, we
30517 # need to make the FD available again.
30518 if test "$no_create" != yes; then
30519   ac_cs_success=:
30520   ac_config_status_args=
30521   test "$silent" = yes &&
30522     ac_config_status_args="$ac_config_status_args --quiet"
30523   exec 5>/dev/null
30524   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30525   exec 5>>config.log
30526   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30527   # would make configure fail if this is the last instruction.
30528   $ac_cs_success || { (exit 1); exit 1; }
30529 fi
30530 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30531   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30532 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30533 fi
30534