]> granicus.if.org Git - postgresql/blob - configure
Message style improvements
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.4devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 1996-2013, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.4devel'
602 PACKAGE_STRING='PostgreSQL 9.4devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 have_win32_dbghelp
671 HAVE_IPV6
672 LIBOBJS
673 OSSP_UUID_LIBS
674 ZIC
675 python_enable_shared
676 python_additional_libs
677 python_libspec
678 python_libdir
679 python_includespec
680 python_version
681 python_majorversion
682 PYTHON
683 perl_embed_ldflags
684 perl_useshrplib
685 perl_privlibexp
686 perl_archlibexp
687 PERL
688 FLEXFLAGS
689 FLEX
690 BISONFLAGS
691 BISON
692 MKDIR_P
693 AWK
694 LN_S
695 TAR
696 install_bin
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 WINDRES
701 DLLWRAP
702 DLLTOOL
703 AR
704 STRIP_SHARED_LIB
705 STRIP_STATIC_LIB
706 STRIP
707 RANLIB
708 ld_R_works
709 with_gnu_ld
710 LD
711 LDFLAGS_SL
712 LDFLAGS_EX
713 ELF_SYS
714 EGREP
715 GREP
716 with_zlib
717 with_system_tzdata
718 with_libxslt
719 with_libxml
720 XML2_CONFIG
721 with_ossp_uuid
722 with_selinux
723 with_openssl
724 krb_srvtab
725 with_python
726 with_perl
727 with_tcl
728 enable_thread_safety
729 INCLUDES
730 autodepend
731 TAS
732 GCC
733 CPP
734 CFLAGS_VECTOR
735 SUN_STUDIO_CC
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 enable_dtrace
744 DTRACEFLAGS
745 DTRACE
746 enable_coverage
747 GENHTML
748 LCOV
749 GCOV
750 enable_debug
751 enable_rpath
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_rpath
814 enable_spinlocks
815 enable_debug
816 enable_profiling
817 enable_coverage
818 enable_dtrace
819 with_blocksize
820 with_segsize
821 with_wal_blocksize
822 with_wal_segsize
823 with_CC
824 enable_depend
825 enable_cassert
826 enable_thread_safety
827 with_tcl
828 with_tclconfig
829 with_perl
830 with_python
831 with_gssapi
832 with_krb5
833 with_krb_srvnam
834 with_pam
835 with_ldap
836 with_bonjour
837 with_openssl
838 with_selinux
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.4devel 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.4devel:";;
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-rpath         do not embed shared library search path in
1493                           executables
1494   --disable-spinlocks     do not use spinlocks
1495   --enable-debug          build with debugging symbols (-g)
1496   --enable-profiling      build with profiling enabled
1497   --enable-coverage       build with coverage testing instrumentation
1498   --enable-dtrace         build with DTrace support
1499   --enable-depend         turn on automatic dependency tracking
1500   --enable-cassert        enable assertion checks (for debugging)
1501   --disable-thread-safety disable thread-safety in client libraries
1502   --disable-largefile     omit support for large files
1503   --disable-float4-byval  disable float4 passed by value
1504   --disable-float8-byval  disable float8 passed by value
1505
1506 Optional Packages:
1507   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509   --with-template=NAME    override operating system template
1510   --with-includes=DIRS    look for additional header files in DIRS
1511   --with-libraries=DIRS   look for additional libraries in DIRS
1512   --with-libs=DIRS        alternative spelling of --with-libraries
1513   --with-pgport=PORTNUM   set default port number [5432]
1514   --with-blocksize=BLOCKSIZE
1515                           set table block size in kB [8]
1516   --with-segsize=SEGSIZE  set table segment size in GB [1]
1517   --with-wal-blocksize=BLOCKSIZE
1518                           set WAL block size in kB [8]
1519   --with-wal-segsize=SEGSIZE
1520                           set WAL segment size in MB [16]
1521   --with-CC=CMD           set compiler (deprecated)
1522   --with-tcl              build Tcl modules (PL/Tcl)
1523   --with-tclconfig=DIR    tclConfig.sh is in DIR
1524   --with-perl             build Perl modules (PL/Perl)
1525   --with-python           build Python modules (PL/Python)
1526   --with-gssapi           build with GSSAPI support
1527   --with-krb5             build with Kerberos 5 support
1528   --with-krb-srvnam=NAME  default service principal name in Kerberos
1529                           [postgres]
1530   --with-pam              build with PAM support
1531   --with-ldap             build with LDAP support
1532   --with-bonjour          build with Bonjour support
1533   --with-openssl          build with OpenSSL support
1534   --with-selinux          build with SELinux 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        build contrib/uuid-ossp, requires OSSP UUID library
1539   --with-libxml           build with XML support
1540   --with-libxslt          use XSLT support when building contrib/xml2
1541   --with-system-tzdata=DIR
1542                           use system time zone data in DIR
1543   --without-zlib          do not use Zlib
1544   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1545
1546 Some influential environment variables:
1547   CC          C compiler command
1548   CFLAGS      C compiler flags
1549   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1550               nonstandard directory <lib dir>
1551   LIBS        libraries to pass to the linker, e.g. -l<library>
1552   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553               you have headers in a nonstandard directory <include dir>
1554   CPP         C preprocessor
1555   LDFLAGS_EX  extra linker flags for linking executables only
1556   LDFLAGS_SL  extra linker flags for linking shared libraries only
1557   DOCBOOKSTYLE
1558               location of DocBook stylesheets
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to <pgsql-bugs@postgresql.org>.
1564 _ACEOF
1565 ac_status=$?
1566 fi
1567
1568 if test "$ac_init_help" = "recursive"; then
1569   # If there are subdirs, report their specific --help.
1570   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571     test -d "$ac_dir" ||
1572       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573       continue
1574     ac_builddir=.
1575
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *)
1579   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580   # A ".." for each directory in $ac_dir_suffix.
1581   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582   case $ac_top_builddir_sub in
1583   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585   esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1591
1592 case $srcdir in
1593   .)  # We are building in place.
1594     ac_srcdir=.
1595     ac_top_srcdir=$ac_top_builddir_sub
1596     ac_abs_top_srcdir=$ac_pwd ;;
1597   [\\/]* | ?:[\\/]* )  # Absolute name.
1598     ac_srcdir=$srcdir$ac_dir_suffix;
1599     ac_top_srcdir=$srcdir
1600     ac_abs_top_srcdir=$srcdir ;;
1601   *) # Relative name.
1602     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603     ac_top_srcdir=$ac_top_build_prefix$srcdir
1604     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608     cd "$ac_dir" || { ac_status=$?; continue; }
1609     # Check for guested configure.
1610     if test -f "$ac_srcdir/configure.gnu"; then
1611       echo &&
1612       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613     elif test -f "$ac_srcdir/configure"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure" --help=recursive
1616     else
1617       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618     fi || ac_status=$?
1619     cd "$ac_pwd" || { ac_status=$?; break; }
1620   done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625   cat <<\_ACEOF
1626 PostgreSQL configure 9.4devel
1627 generated by GNU Autoconf 2.63
1628
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633
1634 Copyright (c) 1996-2013, PostgreSQL Global Development Group
1635 _ACEOF
1636   exit
1637 fi
1638 cat >config.log <<_ACEOF
1639 This file contains any messages produced by compilers while
1640 running configure, to aid debugging if configure makes a mistake.
1641
1642 It was created by PostgreSQL $as_me 9.4devel, which was
1643 generated by GNU Autoconf 2.63.  Invocation command line was
1644
1645   $ $0 $@
1646
1647 _ACEOF
1648 exec 5>>config.log
1649 {
1650 cat <<_ASUNAME
1651 ## --------- ##
1652 ## Platform. ##
1653 ## --------- ##
1654
1655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1656 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1657 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1658 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1659 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1660
1661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1662 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1663
1664 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1665 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1667 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1668 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1669 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1670 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1671
1672 _ASUNAME
1673
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1676 do
1677   IFS=$as_save_IFS
1678   test -z "$as_dir" && as_dir=.
1679   $as_echo "PATH: $as_dir"
1680 done
1681 IFS=$as_save_IFS
1682
1683 } >&5
1684
1685 cat >&5 <<_ACEOF
1686
1687
1688 ## ----------- ##
1689 ## Core tests. ##
1690 ## ----------- ##
1691
1692 _ACEOF
1693
1694
1695 # Keep a trace of the command line.
1696 # Strip out --no-create and --no-recursion so they do not pile up.
1697 # Strip out --silent because we don't want to record it for future runs.
1698 # Also quote any args containing shell meta-characters.
1699 # Make two passes to allow for proper duplicate-argument suppression.
1700 ac_configure_args=
1701 ac_configure_args0=
1702 ac_configure_args1=
1703 ac_must_keep_next=false
1704 for ac_pass in 1 2
1705 do
1706   for ac_arg
1707   do
1708     case $ac_arg in
1709     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1710     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1711     | -silent | --silent | --silen | --sile | --sil)
1712       continue ;;
1713     *\'*)
1714       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715     esac
1716     case $ac_pass in
1717     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1718     2)
1719       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1720       if test $ac_must_keep_next = true; then
1721         ac_must_keep_next=false # Got value, back to normal.
1722       else
1723         case $ac_arg in
1724           *=* | --config-cache | -C | -disable-* | --disable-* \
1725           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1726           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1727           | -with-* | --with-* | -without-* | --without-* | --x)
1728             case "$ac_configure_args0 " in
1729               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1730             esac
1731             ;;
1732           -* ) ac_must_keep_next=true ;;
1733         esac
1734       fi
1735       ac_configure_args="$ac_configure_args '$ac_arg'"
1736       ;;
1737     esac
1738   done
1739 done
1740 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1741 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1742
1743 # When interrupted or exit'd, cleanup temporary files, and complete
1744 # config.log.  We remove comments because anyway the quotes in there
1745 # would cause problems or look ugly.
1746 # WARNING: Use '\'' to represent an apostrophe within the trap.
1747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1748 trap 'exit_status=$?
1749   # Save into config.log some information that might help in debugging.
1750   {
1751     echo
1752
1753     cat <<\_ASBOX
1754 ## ---------------- ##
1755 ## Cache variables. ##
1756 ## ---------------- ##
1757 _ASBOX
1758     echo
1759     # The following way of writing the cache mishandles newlines in values,
1760 (
1761   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1762     eval ac_val=\$$ac_var
1763     case $ac_val in #(
1764     *${as_nl}*)
1765       case $ac_var in #(
1766       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1768       esac
1769       case $ac_var in #(
1770       _ | IFS | as_nl) ;; #(
1771       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1772       *) $as_unset $ac_var ;;
1773       esac ;;
1774     esac
1775   done
1776   (set) 2>&1 |
1777     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1778     *${as_nl}ac_space=\ *)
1779       sed -n \
1780         "s/'\''/'\''\\\\'\'''\''/g;
1781           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1782       ;; #(
1783     *)
1784       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1785       ;;
1786     esac |
1787     sort
1788 )
1789     echo
1790
1791     cat <<\_ASBOX
1792 ## ----------------- ##
1793 ## Output variables. ##
1794 ## ----------------- ##
1795 _ASBOX
1796     echo
1797     for ac_var in $ac_subst_vars
1798     do
1799       eval ac_val=\$$ac_var
1800       case $ac_val in
1801       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802       esac
1803       $as_echo "$ac_var='\''$ac_val'\''"
1804     done | sort
1805     echo
1806
1807     if test -n "$ac_subst_files"; then
1808       cat <<\_ASBOX
1809 ## ------------------- ##
1810 ## File substitutions. ##
1811 ## ------------------- ##
1812 _ASBOX
1813       echo
1814       for ac_var in $ac_subst_files
1815       do
1816         eval ac_val=\$$ac_var
1817         case $ac_val in
1818         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819         esac
1820         $as_echo "$ac_var='\''$ac_val'\''"
1821       done | sort
1822       echo
1823     fi
1824
1825     if test -s confdefs.h; then
1826       cat <<\_ASBOX
1827 ## ----------- ##
1828 ## confdefs.h. ##
1829 ## ----------- ##
1830 _ASBOX
1831       echo
1832       cat confdefs.h
1833       echo
1834     fi
1835     test "$ac_signal" != 0 &&
1836       $as_echo "$as_me: caught signal $ac_signal"
1837     $as_echo "$as_me: exit $exit_status"
1838   } >&5
1839   rm -f core *.core core.conftest.* &&
1840     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1841     exit $exit_status
1842 ' 0
1843 for ac_signal in 1 2 13 15; do
1844   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1845 done
1846 ac_signal=0
1847
1848 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1849 rm -f -r conftest* confdefs.h
1850
1851 # Predefined preprocessor variables.
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_NAME "$PACKAGE_NAME"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_STRING "$PACKAGE_STRING"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1875 _ACEOF
1876
1877
1878 # Let the site file select an alternate cache file if it wants to.
1879 # Prefer an explicitly selected file to automatically selected ones.
1880 ac_site_file1=NONE
1881 ac_site_file2=NONE
1882 if test -n "$CONFIG_SITE"; then
1883   ac_site_file1=$CONFIG_SITE
1884 elif test "x$prefix" != xNONE; then
1885   ac_site_file1=$prefix/share/config.site
1886   ac_site_file2=$prefix/etc/config.site
1887 else
1888   ac_site_file1=$ac_default_prefix/share/config.site
1889   ac_site_file2=$ac_default_prefix/etc/config.site
1890 fi
1891 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 do
1893   test "x$ac_site_file" = xNONE && continue
1894   if test -r "$ac_site_file"; then
1895     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1897     sed 's/^/| /' "$ac_site_file" >&5
1898     . "$ac_site_file"
1899   fi
1900 done
1901
1902 if test -r "$cache_file"; then
1903   # Some versions of bash will fail to source /dev/null (special
1904   # files actually), so we avoid doing that.
1905   if test -f "$cache_file"; then
1906     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908     case $cache_file in
1909       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910       *)                      . "./$cache_file";;
1911     esac
1912   fi
1913 else
1914   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 $as_echo "$as_me: creating cache $cache_file" >&6;}
1916   >$cache_file
1917 fi
1918
1919 # Check that the precious variables saved in the cache have kept the same
1920 # value.
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924   eval ac_new_set=\$ac_env_${ac_var}_set
1925   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926   eval ac_new_val=\$ac_env_${ac_var}_value
1927   case $ac_old_set,$ac_new_set in
1928     set,)
1929       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931       ac_cache_corrupted=: ;;
1932     ,set)
1933       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935       ac_cache_corrupted=: ;;
1936     ,);;
1937     *)
1938       if test "x$ac_old_val" != "x$ac_new_val"; then
1939         # differences in whitespace do not lead to failure.
1940         ac_old_val_w=`echo x $ac_old_val`
1941         ac_new_val_w=`echo x $ac_new_val`
1942         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1943           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945           ac_cache_corrupted=:
1946         else
1947           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1948 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1949           eval $ac_var=\$ac_old_val
1950         fi
1951         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1952 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1953         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1954 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1955       fi;;
1956   esac
1957   # Pass precious variables to config.status.
1958   if test "$ac_new_set" = set; then
1959     case $ac_new_val in
1960     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961     *) ac_arg=$ac_var=$ac_new_val ;;
1962     esac
1963     case " $ac_configure_args " in
1964       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1965       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1966     esac
1967   fi
1968 done
1969 if $ac_cache_corrupted; then
1970   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1972   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1973 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1974   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1975 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1976    { (exit 1); exit 1; }; }
1977 fi
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008
2009
2010
2011
2012
2013
2014 ac_aux_dir=
2015 for ac_dir in config "$srcdir"/config; do
2016   if test -f "$ac_dir/install-sh"; then
2017     ac_aux_dir=$ac_dir
2018     ac_install_sh="$ac_aux_dir/install-sh -c"
2019     break
2020   elif test -f "$ac_dir/install.sh"; then
2021     ac_aux_dir=$ac_dir
2022     ac_install_sh="$ac_aux_dir/install.sh -c"
2023     break
2024   elif test -f "$ac_dir/shtool"; then
2025     ac_aux_dir=$ac_dir
2026     ac_install_sh="$ac_aux_dir/shtool install -c"
2027     break
2028   fi
2029 done
2030 if test -z "$ac_aux_dir"; then
2031   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2032 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2033    { (exit 1); exit 1; }; }
2034 fi
2035
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2043
2044
2045
2046 configure_args=$ac_configure_args
2047
2048
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PG_VERSION "$PACKAGE_VERSION"
2052 _ACEOF
2053
2054 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2055
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2059 _ACEOF
2060
2061
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2064   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066    { (exit 1); exit 1; }; }
2067
2068 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2069 $as_echo_n "checking build system type... " >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071   $as_echo_n "(cached) " >&6
2072 else
2073   ac_build_alias=$build_alias
2074 test "x$ac_build_alias" = x &&
2075   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x &&
2077   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079    { (exit 1); exit 1; }; }
2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083    { (exit 1); exit 1; }; }
2084
2085 fi
2086 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 $as_echo "$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2089 *-*-*) ;;
2090 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2092    { (exit 1); exit 1; }; };;
2093 esac
2094 build=$ac_cv_build
2095 ac_save_IFS=$IFS; IFS='-'
2096 set x $ac_cv_build
2097 shift
2098 build_cpu=$1
2099 build_vendor=$2
2100 shift; shift
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2103 build_os=$*
2104 IFS=$ac_save_IFS
2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106
2107
2108 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2109 $as_echo_n "checking host system type... " >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111   $as_echo_n "(cached) " >&6
2112 else
2113   if test "x$host_alias" = x; then
2114   ac_cv_host=$ac_cv_build
2115 else
2116   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119    { (exit 1); exit 1; }; }
2120 fi
2121
2122 fi
2123 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 $as_echo "$ac_cv_host" >&6; }
2125 case $ac_cv_host in
2126 *-*-*) ;;
2127 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2129    { (exit 1); exit 1; }; };;
2130 esac
2131 host=$ac_cv_host
2132 ac_save_IFS=$IFS; IFS='-'
2133 set x $ac_cv_host
2134 shift
2135 host_cpu=$1
2136 host_vendor=$2
2137 shift; shift
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2140 host_os=$*
2141 IFS=$ac_save_IFS
2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2143
2144
2145
2146 template=
2147 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2148 $as_echo_n "checking which template to use... " >&6; }
2149
2150
2151
2152
2153 # Check whether --with-template was given.
2154 if test "${with_template+set}" = set; then
2155   withval=$with_template;
2156   case $withval in
2157     yes)
2158       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2159 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2160    { (exit 1); exit 1; }; }
2161       ;;
2162     no)
2163       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2164 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2165    { (exit 1); exit 1; }; }
2166       ;;
2167     *)
2168
2169   case $withval in
2170     list)   echo; ls "$srcdir/src/template"; exit;;
2171     *)      if test -f "$srcdir/src/template/$with_template" ; then
2172               template=$withval
2173             else
2174               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2175 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2176    { (exit 1); exit 1; }; }
2177             fi;;
2178   esac
2179
2180       ;;
2181   esac
2182
2183 else
2184
2185 # --with-template not given
2186
2187 case $host_os in
2188      aix*) template=aix ;;
2189   cygwin*) template=cygwin ;;
2190   darwin*) template=darwin ;;
2191 dragonfly*) template=netbsd ;;
2192  freebsd*) template=freebsd ;;
2193     hpux*) template=hpux ;;
2194     irix*) template=irix ;;
2195  linux*|gnu*|k*bsd*-gnu)
2196            template=linux ;;
2197    mingw*) template=win32 ;;
2198   netbsd*) template=netbsd ;;
2199  openbsd*) template=openbsd ;;
2200      osf*) template=osf ;;
2201      sco*) template=sco ;;
2202  solaris*) template=solaris ;;
2203    sysv5*) template=unixware ;;
2204 esac
2205
2206   if test x"$template" = x"" ; then
2207     { { $as_echo "$as_me:$LINENO: error:
2208 *******************************************************************
2209 PostgreSQL has apparently not been ported to your platform yet.
2210 To try a manual configuration, look into the src/template directory
2211 for a similar platform and use the '--with-template=' option.
2212
2213 Please also contact <pgsql-bugs@postgresql.org> to see about
2214 rectifying this.  Include the above 'checking host system type...'
2215 line.
2216 *******************************************************************
2217 " >&5
2218 $as_echo "$as_me: error:
2219 *******************************************************************
2220 PostgreSQL has apparently not been ported to your platform yet.
2221 To try a manual configuration, look into the src/template directory
2222 for a similar platform and use the '--with-template=' option.
2223
2224 Please also contact <pgsql-bugs@postgresql.org> to see about
2225 rectifying this.  Include the above 'checking host system type...'
2226 line.
2227 *******************************************************************
2228 " >&2;}
2229    { (exit 1); exit 1; }; }
2230   fi
2231
2232
2233 fi
2234
2235
2236
2237 { $as_echo "$as_me:$LINENO: result: $template" >&5
2238 $as_echo "$template" >&6; }
2239
2240 PORTNAME=$template
2241
2242
2243 # Initialize default assumption that we do not need separate assembly code
2244 # for TAS (test-and-set).  This can be overridden by the template file
2245 # when it's executed.
2246 need_tas=no
2247 tas_file=dummy.s
2248
2249
2250
2251 ##
2252 ## Command line options
2253 ##
2254
2255 #
2256 # Add non-standard directories to the include path
2257 #
2258
2259
2260
2261 # Check whether --with-includes was given.
2262 if test "${with_includes+set}" = set; then
2263   withval=$with_includes;
2264   case $withval in
2265     yes)
2266       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2267 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2268    { (exit 1); exit 1; }; }
2269       ;;
2270     no)
2271       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2272 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2273    { (exit 1); exit 1; }; }
2274       ;;
2275     *)
2276
2277       ;;
2278   esac
2279
2280 fi
2281
2282
2283
2284
2285 #
2286 # Add non-standard directories to the library search path
2287 #
2288
2289
2290
2291 # Check whether --with-libraries was given.
2292 if test "${with_libraries+set}" = set; then
2293   withval=$with_libraries;
2294   case $withval in
2295     yes)
2296       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2297 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2298    { (exit 1); exit 1; }; }
2299       ;;
2300     no)
2301       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2302 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2303    { (exit 1); exit 1; }; }
2304       ;;
2305     *)
2306       LIBRARY_DIRS=$withval
2307       ;;
2308   esac
2309
2310 fi
2311
2312
2313
2314
2315
2316
2317 # Check whether --with-libs was given.
2318 if test "${with_libs+set}" = set; then
2319   withval=$with_libs;
2320   case $withval in
2321     yes)
2322       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2323 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2324    { (exit 1); exit 1; }; }
2325       ;;
2326     no)
2327       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2328 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2329    { (exit 1); exit 1; }; }
2330       ;;
2331     *)
2332       LIBRARY_DIRS=$withval
2333       ;;
2334   esac
2335
2336 fi
2337
2338
2339
2340
2341 #
2342 # 64-bit integer date/time storage: enabled by default.
2343 #
2344 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2345 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2346
2347
2348 # Check whether --enable-integer-datetimes was given.
2349 if test "${enable_integer_datetimes+set}" = set; then
2350   enableval=$enable_integer_datetimes;
2351   case $enableval in
2352     yes)
2353
2354 cat >>confdefs.h <<\_ACEOF
2355 #define USE_INTEGER_DATETIMES 1
2356 _ACEOF
2357
2358       ;;
2359     no)
2360       :
2361       ;;
2362     *)
2363       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2364 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2365    { (exit 1); exit 1; }; }
2366       ;;
2367   esac
2368
2369 else
2370   enable_integer_datetimes=yes
2371
2372 cat >>confdefs.h <<\_ACEOF
2373 #define USE_INTEGER_DATETIMES 1
2374 _ACEOF
2375
2376 fi
2377
2378
2379 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2380 $as_echo "$enable_integer_datetimes" >&6; }
2381
2382
2383 #
2384 # NLS
2385 #
2386 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2387 $as_echo_n "checking whether NLS is wanted... " >&6; }
2388
2389
2390 # Check whether --enable-nls was given.
2391 if test "${enable_nls+set}" = set; then
2392   enableval=$enable_nls;
2393   case $enableval in
2394     yes)
2395       :
2396       ;;
2397     no)
2398       :
2399       ;;
2400     *)
2401       enable_nls=yes
2402 WANTED_LANGUAGES=$enableval
2403       ;;
2404   esac
2405
2406 else
2407   enable_nls=no
2408 fi
2409
2410
2411
2412 if test "$enable_nls" = yes; then
2413
2414 cat >>confdefs.h <<\_ACEOF
2415 #define ENABLE_NLS 1
2416 _ACEOF
2417
2418 fi
2419
2420 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2421 $as_echo "$enable_nls" >&6; }
2422
2423
2424
2425 #
2426 # Default port number (--with-pgport), default 5432
2427 #
2428 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2429 $as_echo_n "checking for default port number... " >&6; }
2430
2431
2432
2433 # Check whether --with-pgport was given.
2434 if test "${with_pgport+set}" = set; then
2435   withval=$with_pgport;
2436   case $withval in
2437     yes)
2438       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2439 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2440    { (exit 1); exit 1; }; }
2441       ;;
2442     no)
2443       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2444 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2445    { (exit 1); exit 1; }; }
2446       ;;
2447     *)
2448       default_port=$withval
2449       ;;
2450   esac
2451
2452 else
2453   default_port=5432
2454 fi
2455
2456
2457 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2458 $as_echo "$default_port" >&6; }
2459 # Need both of these because some places want an integer and some a string
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define DEF_PGPORT ${default_port}
2463 _ACEOF
2464
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define DEF_PGPORT_STR "${default_port}"
2468 _ACEOF
2469
2470
2471
2472 #
2473 # '-rpath'-like feature can be disabled
2474 #
2475
2476
2477 # Check whether --enable-rpath was given.
2478 if test "${enable_rpath+set}" = set; then
2479   enableval=$enable_rpath;
2480   case $enableval in
2481     yes)
2482       :
2483       ;;
2484     no)
2485       :
2486       ;;
2487     *)
2488       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2489 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2490    { (exit 1); exit 1; }; }
2491       ;;
2492   esac
2493
2494 else
2495   enable_rpath=yes
2496
2497 fi
2498
2499
2500
2501
2502 #
2503 # Spinlocks
2504 #
2505
2506
2507 # Check whether --enable-spinlocks was given.
2508 if test "${enable_spinlocks+set}" = set; then
2509   enableval=$enable_spinlocks;
2510   case $enableval in
2511     yes)
2512       :
2513       ;;
2514     no)
2515       :
2516       ;;
2517     *)
2518       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2519 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2520    { (exit 1); exit 1; }; }
2521       ;;
2522   esac
2523
2524 else
2525   enable_spinlocks=yes
2526
2527 fi
2528
2529
2530
2531 #
2532 # --enable-debug adds -g to compiler flags
2533 #
2534
2535
2536 # Check whether --enable-debug was given.
2537 if test "${enable_debug+set}" = set; then
2538   enableval=$enable_debug;
2539   case $enableval in
2540     yes)
2541       :
2542       ;;
2543     no)
2544       :
2545       ;;
2546     *)
2547       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2548 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2549    { (exit 1); exit 1; }; }
2550       ;;
2551   esac
2552
2553 else
2554   enable_debug=no
2555
2556 fi
2557
2558
2559
2560
2561 #
2562 # --enable-profiling enables gcc profiling
2563 #
2564
2565
2566 # Check whether --enable-profiling was given.
2567 if test "${enable_profiling+set}" = set; then
2568   enableval=$enable_profiling;
2569   case $enableval in
2570     yes)
2571       :
2572       ;;
2573     no)
2574       :
2575       ;;
2576     *)
2577       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2578 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2579    { (exit 1); exit 1; }; }
2580       ;;
2581   esac
2582
2583 else
2584   enable_profiling=no
2585
2586 fi
2587
2588
2589
2590 #
2591 # --enable-coverage enables generation of code coverage metrics with gcov
2592 #
2593
2594
2595 # Check whether --enable-coverage was given.
2596 if test "${enable_coverage+set}" = set; then
2597   enableval=$enable_coverage;
2598   case $enableval in
2599     yes)
2600       for ac_prog in gcov
2601 do
2602   # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_GCOV+set}" = set; then
2607   $as_echo_n "(cached) " >&6
2608 else
2609   if test -n "$GCOV"; then
2610   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617   for ac_exec_ext in '' $ac_executable_extensions; do
2618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619     ac_cv_prog_GCOV="$ac_prog"
2620     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624 done
2625 IFS=$as_save_IFS
2626
2627 fi
2628 fi
2629 GCOV=$ac_cv_prog_GCOV
2630 if test -n "$GCOV"; then
2631   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2632 $as_echo "$GCOV" >&6; }
2633 else
2634   { $as_echo "$as_me:$LINENO: result: no" >&5
2635 $as_echo "no" >&6; }
2636 fi
2637
2638
2639   test -n "$GCOV" && break
2640 done
2641
2642 if test -z "$GCOV"; then
2643   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2644 $as_echo "$as_me: error: gcov not found" >&2;}
2645    { (exit 1); exit 1; }; }
2646 fi
2647 for ac_prog in lcov
2648 do
2649   # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_LCOV+set}" = set; then
2654   $as_echo_n "(cached) " >&6
2655 else
2656   if test -n "$LCOV"; then
2657   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2658 else
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662   IFS=$as_save_IFS
2663   test -z "$as_dir" && as_dir=.
2664   for ac_exec_ext in '' $ac_executable_extensions; do
2665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666     ac_cv_prog_LCOV="$ac_prog"
2667     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669   fi
2670 done
2671 done
2672 IFS=$as_save_IFS
2673
2674 fi
2675 fi
2676 LCOV=$ac_cv_prog_LCOV
2677 if test -n "$LCOV"; then
2678   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2679 $as_echo "$LCOV" >&6; }
2680 else
2681   { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2683 fi
2684
2685
2686   test -n "$LCOV" && break
2687 done
2688
2689 if test -z "$LCOV"; then
2690   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2691 $as_echo "$as_me: error: lcov not found" >&2;}
2692    { (exit 1); exit 1; }; }
2693 fi
2694 for ac_prog in genhtml
2695 do
2696   # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_GENHTML+set}" = set; then
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$GENHTML"; then
2704   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711   for ac_exec_ext in '' $ac_executable_extensions; do
2712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713     ac_cv_prog_GENHTML="$ac_prog"
2714     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718 done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 GENHTML=$ac_cv_prog_GENHTML
2724 if test -n "$GENHTML"; then
2725   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2726 $as_echo "$GENHTML" >&6; }
2727 else
2728   { $as_echo "$as_me:$LINENO: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732
2733   test -n "$GENHTML" && break
2734 done
2735
2736 if test -z "$GENHTML"; then
2737   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2738 $as_echo "$as_me: error: genhtml not found" >&2;}
2739    { (exit 1); exit 1; }; }
2740 fi
2741       ;;
2742     no)
2743       :
2744       ;;
2745     *)
2746       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2747 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2748    { (exit 1); exit 1; }; }
2749       ;;
2750   esac
2751
2752 else
2753   enable_coverage=no
2754
2755 fi
2756
2757
2758
2759
2760 #
2761 # DTrace
2762 #
2763
2764
2765 # Check whether --enable-dtrace was given.
2766 if test "${enable_dtrace+set}" = set; then
2767   enableval=$enable_dtrace;
2768   case $enableval in
2769     yes)
2770       for ac_prog in dtrace
2771 do
2772   # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if test "${ac_cv_prog_DTRACE+set}" = set; then
2777   $as_echo_n "(cached) " >&6
2778 else
2779   if test -n "$DTRACE"; then
2780   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785   IFS=$as_save_IFS
2786   test -z "$as_dir" && as_dir=.
2787   for ac_exec_ext in '' $ac_executable_extensions; do
2788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789     ac_cv_prog_DTRACE="$ac_prog"
2790     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791     break 2
2792   fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 DTRACE=$ac_cv_prog_DTRACE
2800 if test -n "$DTRACE"; then
2801   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2802 $as_echo "$DTRACE" >&6; }
2803 else
2804   { $as_echo "$as_me:$LINENO: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809   test -n "$DTRACE" && break
2810 done
2811
2812 if test -z "$DTRACE"; then
2813   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2814 $as_echo "$as_me: error: dtrace not found" >&2;}
2815    { (exit 1); exit 1; }; }
2816 fi
2817
2818       ;;
2819     no)
2820       :
2821       ;;
2822     *)
2823       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2824 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2825    { (exit 1); exit 1; }; }
2826       ;;
2827   esac
2828
2829 else
2830   enable_dtrace=no
2831
2832 fi
2833
2834
2835
2836
2837 #
2838 # Block size
2839 #
2840 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2841 $as_echo_n "checking for block size... " >&6; }
2842
2843
2844
2845 # Check whether --with-blocksize was given.
2846 if test "${with_blocksize+set}" = set; then
2847   withval=$with_blocksize;
2848   case $withval in
2849     yes)
2850       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2851 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2852    { (exit 1); exit 1; }; }
2853       ;;
2854     no)
2855       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2856 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2857    { (exit 1); exit 1; }; }
2858       ;;
2859     *)
2860       blocksize=$withval
2861       ;;
2862   esac
2863
2864 else
2865   blocksize=8
2866 fi
2867
2868
2869 case ${blocksize} in
2870   1) BLCKSZ=1024;;
2871   2) BLCKSZ=2048;;
2872   4) BLCKSZ=4096;;
2873   8) BLCKSZ=8192;;
2874  16) BLCKSZ=16384;;
2875  32) BLCKSZ=32768;;
2876   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2877 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2878    { (exit 1); exit 1; }; }
2879 esac
2880 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2881 $as_echo "${blocksize}kB" >&6; }
2882
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define BLCKSZ ${BLCKSZ}
2886 _ACEOF
2887
2888
2889 #
2890 # Relation segment size
2891 #
2892 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2893 $as_echo_n "checking for segment size... " >&6; }
2894
2895
2896
2897 # Check whether --with-segsize was given.
2898 if test "${with_segsize+set}" = set; then
2899   withval=$with_segsize;
2900   case $withval in
2901     yes)
2902       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2903 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2904    { (exit 1); exit 1; }; }
2905       ;;
2906     no)
2907       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2908 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2909    { (exit 1); exit 1; }; }
2910       ;;
2911     *)
2912       segsize=$withval
2913       ;;
2914   esac
2915
2916 else
2917   segsize=1
2918 fi
2919
2920
2921 # this expression is set up to avoid unnecessary integer overflow
2922 # blocksize is already guaranteed to be a factor of 1024
2923 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2924 test $? -eq 0 || exit 1
2925 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2926 $as_echo "${segsize}GB" >&6; }
2927
2928
2929 cat >>confdefs.h <<_ACEOF
2930 #define RELSEG_SIZE ${RELSEG_SIZE}
2931 _ACEOF
2932
2933
2934 #
2935 # WAL block size
2936 #
2937 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2938 $as_echo_n "checking for WAL block size... " >&6; }
2939
2940
2941
2942 # Check whether --with-wal-blocksize was given.
2943 if test "${with_wal_blocksize+set}" = set; then
2944   withval=$with_wal_blocksize;
2945   case $withval in
2946     yes)
2947       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2948 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2949    { (exit 1); exit 1; }; }
2950       ;;
2951     no)
2952       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2954    { (exit 1); exit 1; }; }
2955       ;;
2956     *)
2957       wal_blocksize=$withval
2958       ;;
2959   esac
2960
2961 else
2962   wal_blocksize=8
2963 fi
2964
2965
2966 case ${wal_blocksize} in
2967   1) XLOG_BLCKSZ=1024;;
2968   2) XLOG_BLCKSZ=2048;;
2969   4) XLOG_BLCKSZ=4096;;
2970   8) XLOG_BLCKSZ=8192;;
2971  16) XLOG_BLCKSZ=16384;;
2972  32) XLOG_BLCKSZ=32768;;
2973  64) XLOG_BLCKSZ=65536;;
2974   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2975 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2976    { (exit 1); exit 1; }; }
2977 esac
2978 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2979 $as_echo "${wal_blocksize}kB" >&6; }
2980
2981
2982 cat >>confdefs.h <<_ACEOF
2983 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2984 _ACEOF
2985
2986
2987 #
2988 # WAL segment size
2989 #
2990 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2991 $as_echo_n "checking for WAL segment size... " >&6; }
2992
2993
2994
2995 # Check whether --with-wal-segsize was given.
2996 if test "${with_wal_segsize+set}" = set; then
2997   withval=$with_wal_segsize;
2998   case $withval in
2999     yes)
3000       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3001 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3002    { (exit 1); exit 1; }; }
3003       ;;
3004     no)
3005       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3006 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3007    { (exit 1); exit 1; }; }
3008       ;;
3009     *)
3010       wal_segsize=$withval
3011       ;;
3012   esac
3013
3014 else
3015   wal_segsize=16
3016 fi
3017
3018
3019 case ${wal_segsize} in
3020   1) ;;
3021   2) ;;
3022   4) ;;
3023   8) ;;
3024  16) ;;
3025  32) ;;
3026  64) ;;
3027   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3028 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3029    { (exit 1); exit 1; }; }
3030 esac
3031 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3032 $as_echo "${wal_segsize}MB" >&6; }
3033
3034
3035 cat >>confdefs.h <<_ACEOF
3036 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3037 _ACEOF
3038
3039
3040 #
3041 # C compiler
3042 #
3043
3044 # For historical reasons you can also use --with-CC to specify the C compiler
3045 # to use, although the standard way to do this is to set the CC environment
3046 # variable.
3047
3048
3049
3050 # Check whether --with-CC was given.
3051 if test "${with_CC+set}" = set; then
3052   withval=$with_CC;
3053   case $withval in
3054     yes)
3055       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3056 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3057    { (exit 1); exit 1; }; }
3058       ;;
3059     no)
3060       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3061 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3062    { (exit 1); exit 1; }; }
3063       ;;
3064     *)
3065       CC=$with_CC
3066       ;;
3067   esac
3068
3069 fi
3070
3071
3072
3073 case $template in
3074   aix) pgac_cc_list="gcc xlc";;
3075  irix) pgac_cc_list="cc";; # no gcc
3076     *) pgac_cc_list="gcc cc";;
3077 esac
3078
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084 if test -n "$ac_tool_prefix"; then
3085   for ac_prog in $pgac_cc_list
3086   do
3087     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_CC+set}" = set; then
3092   $as_echo_n "(cached) " >&6
3093 else
3094   if test -n "$CC"; then
3095   ac_cv_prog_CC="$CC" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100   IFS=$as_save_IFS
3101   test -z "$as_dir" && as_dir=.
3102   for ac_exec_ext in '' $ac_executable_extensions; do
3103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3105     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106     break 2
3107   fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 fi
3113 fi
3114 CC=$ac_cv_prog_CC
3115 if test -n "$CC"; then
3116   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3118 else
3119   { $as_echo "$as_me:$LINENO: result: no" >&5
3120 $as_echo "no" >&6; }
3121 fi
3122
3123
3124     test -n "$CC" && break
3125   done
3126 fi
3127 if test -z "$CC"; then
3128   ac_ct_CC=$CC
3129   for ac_prog in $pgac_cc_list
3130 do
3131   # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3136   $as_echo_n "(cached) " >&6
3137 else
3138   if test -n "$ac_ct_CC"; then
3139   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144   IFS=$as_save_IFS
3145   test -z "$as_dir" && as_dir=.
3146   for ac_exec_ext in '' $ac_executable_extensions; do
3147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148     ac_cv_prog_ac_ct_CC="$ac_prog"
3149     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150     break 2
3151   fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 fi
3157 fi
3158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159 if test -n "$ac_ct_CC"; then
3160   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3161 $as_echo "$ac_ct_CC" >&6; }
3162 else
3163   { $as_echo "$as_me:$LINENO: result: no" >&5
3164 $as_echo "no" >&6; }
3165 fi
3166
3167
3168   test -n "$ac_ct_CC" && break
3169 done
3170
3171   if test "x$ac_ct_CC" = x; then
3172     CC=""
3173   else
3174     case $cross_compiling:$ac_tool_warned in
3175 yes:)
3176 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178 ac_tool_warned=yes ;;
3179 esac
3180     CC=$ac_ct_CC
3181   fi
3182 fi
3183
3184
3185 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details." >&5
3189 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3190 See \`config.log' for more details." >&2;}
3191    { (exit 1); exit 1; }; }; }
3192
3193 # Provide some information about the compiler.
3194 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3195 set X $ac_compile
3196 ac_compiler=$2
3197 { (ac_try="$ac_compiler --version >&5"
3198 case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203 $as_echo "$ac_try_echo") >&5
3204   (eval "$ac_compiler --version >&5") 2>&5
3205   ac_status=$?
3206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }
3208 { (ac_try="$ac_compiler -v >&5"
3209 case "(($ac_try" in
3210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211   *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214 $as_echo "$ac_try_echo") >&5
3215   (eval "$ac_compiler -v >&5") 2>&5
3216   ac_status=$?
3217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }
3219 { (ac_try="$ac_compiler -V >&5"
3220 case "(($ac_try" in
3221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222   *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3225 $as_echo "$ac_try_echo") >&5
3226   (eval "$ac_compiler -V >&5") 2>&5
3227   ac_status=$?
3228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); }
3230
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237
3238 int
3239 main ()
3240 {
3241
3242   ;
3243   return 0;
3244 }
3245 _ACEOF
3246 ac_clean_files_save=$ac_clean_files
3247 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3248 # Try to create an executable without -o first, disregard a.out.
3249 # It will help us diagnose broken compilers, and finding out an intuition
3250 # of exeext.
3251 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3252 $as_echo_n "checking for C compiler default output file name... " >&6; }
3253 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3254
3255 # The possible output files:
3256 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3257
3258 ac_rmfiles=
3259 for ac_file in $ac_files
3260 do
3261   case $ac_file in
3262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3263     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3264   esac
3265 done
3266 rm -f $ac_rmfiles
3267
3268 if { (ac_try="$ac_link_default"
3269 case "(($ac_try" in
3270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271   *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275   (eval "$ac_link_default") 2>&5
3276   ac_status=$?
3277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; then
3279   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3280 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3281 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3282 # so that the user can short-circuit this test for compilers unknown to
3283 # Autoconf.
3284 for ac_file in $ac_files ''
3285 do
3286   test -f "$ac_file" || continue
3287   case $ac_file in
3288     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3289         ;;
3290     [ab].out )
3291         # We found the default executable, but exeext='' is most
3292         # certainly right.
3293         break;;
3294     *.* )
3295         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3296         then :; else
3297            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3298         fi
3299         # We set ac_cv_exeext here because the later test for it is not
3300         # safe: cross compilers may not add the suffix if given an `-o'
3301         # argument, so we may need to know it at that point already.
3302         # Even if this section looks crufty: it has the advantage of
3303         # actually working.
3304         break;;
3305     * )
3306         break;;
3307   esac
3308 done
3309 test "$ac_cv_exeext" = no && ac_cv_exeext=
3310
3311 else
3312   ac_file=''
3313 fi
3314
3315 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3316 $as_echo "$ac_file" >&6; }
3317 if test -z "$ac_file"; then
3318   $as_echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3320
3321 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3324 See \`config.log' for more details." >&5
3325 $as_echo "$as_me: error: C compiler cannot create executables
3326 See \`config.log' for more details." >&2;}
3327    { (exit 77); exit 77; }; }; }
3328 fi
3329
3330 ac_exeext=$ac_cv_exeext
3331
3332 # Check that the compiler produces executables we can run.  If not, either
3333 # the compiler is broken, or we cross compile.
3334 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3335 $as_echo_n "checking whether the C compiler works... " >&6; }
3336 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3337 # If not cross compiling, check that we can run a simple program.
3338 if test "$cross_compiling" != yes; then
3339   if { ac_try='./$ac_file'
3340   { (case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3345 $as_echo "$ac_try_echo") >&5
3346   (eval "$ac_try") 2>&5
3347   ac_status=$?
3348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }; }; then
3350     cross_compiling=no
3351   else
3352     if test "$cross_compiling" = maybe; then
3353         cross_compiling=yes
3354     else
3355         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3358 If you meant to cross compile, use \`--host'.
3359 See \`config.log' for more details." >&5
3360 $as_echo "$as_me: error: cannot run C compiled programs.
3361 If you meant to cross compile, use \`--host'.
3362 See \`config.log' for more details." >&2;}
3363    { (exit 1); exit 1; }; }; }
3364     fi
3365   fi
3366 fi
3367 { $as_echo "$as_me:$LINENO: result: yes" >&5
3368 $as_echo "yes" >&6; }
3369
3370 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3371 ac_clean_files=$ac_clean_files_save
3372 # Check that the compiler produces executables we can run.  If not, either
3373 # the compiler is broken, or we cross compile.
3374 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3375 $as_echo_n "checking whether we are cross compiling... " >&6; }
3376 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3377 $as_echo "$cross_compiling" >&6; }
3378
3379 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3380 $as_echo_n "checking for suffix of executables... " >&6; }
3381 if { (ac_try="$ac_link"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3387 $as_echo "$ac_try_echo") >&5
3388   (eval "$ac_link") 2>&5
3389   ac_status=$?
3390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; then
3392   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 # `rm'.
3396 for ac_file in conftest.exe conftest conftest.*; do
3397   test -f "$ac_file" || continue
3398   case $ac_file in
3399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401           break;;
3402     * ) break;;
3403   esac
3404 done
3405 else
3406   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details." >&5
3410 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3411 See \`config.log' for more details." >&2;}
3412    { (exit 1); exit 1; }; }; }
3413 fi
3414
3415 rm -f conftest$ac_cv_exeext
3416 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3417 $as_echo "$ac_cv_exeext" >&6; }
3418
3419 rm -f conftest.$ac_ext
3420 EXEEXT=$ac_cv_exeext
3421 ac_exeext=$EXEEXT
3422 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3423 $as_echo_n "checking for suffix of object files... " >&6; }
3424 if test "${ac_cv_objext+set}" = set; then
3425   $as_echo_n "(cached) " >&6
3426 else
3427   cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h.  */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h.  */
3433
3434 int
3435 main ()
3436 {
3437
3438   ;
3439   return 0;
3440 }
3441 _ACEOF
3442 rm -f conftest.o conftest.obj
3443 if { (ac_try="$ac_compile"
3444 case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3449 $as_echo "$ac_try_echo") >&5
3450   (eval "$ac_compile") 2>&5
3451   ac_status=$?
3452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); }; then
3454   for ac_file in conftest.o conftest.obj conftest.*; do
3455   test -f "$ac_file" || continue;
3456   case $ac_file in
3457     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3458     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3459        break;;
3460   esac
3461 done
3462 else
3463   $as_echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3469 See \`config.log' for more details." >&5
3470 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3471 See \`config.log' for more details." >&2;}
3472    { (exit 1); exit 1; }; }; }
3473 fi
3474
3475 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476 fi
3477 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3478 $as_echo "$ac_cv_objext" >&6; }
3479 OBJEXT=$ac_cv_objext
3480 ac_objext=$OBJEXT
3481 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3482 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3483 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3484   $as_echo_n "(cached) " >&6
3485 else
3486   cat >conftest.$ac_ext <<_ACEOF
3487 /* confdefs.h.  */
3488 _ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h.  */
3492
3493 int
3494 main ()
3495 {
3496 #ifndef __GNUC__
3497        choke me
3498 #endif
3499
3500   ;
3501   return 0;
3502 }
3503 _ACEOF
3504 rm -f conftest.$ac_objext
3505 if { (ac_try="$ac_compile"
3506 case "(($ac_try" in
3507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508   *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3511 $as_echo "$ac_try_echo") >&5
3512   (eval "$ac_compile") 2>conftest.er1
3513   ac_status=$?
3514   grep -v '^ *+' conftest.er1 >conftest.err
3515   rm -f conftest.er1
3516   cat conftest.err >&5
3517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); } && {
3519          test -z "$ac_c_werror_flag" ||
3520          test ! -s conftest.err
3521        } && test -s conftest.$ac_objext; then
3522   ac_compiler_gnu=yes
3523 else
3524   $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527         ac_compiler_gnu=no
3528 fi
3529
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3532
3533 fi
3534 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3535 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3536 if test $ac_compiler_gnu = yes; then
3537   GCC=yes
3538 else
3539   GCC=
3540 fi
3541 ac_test_CFLAGS=${CFLAGS+set}
3542 ac_save_CFLAGS=$CFLAGS
3543 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3544 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3545 if test "${ac_cv_prog_cc_g+set}" = set; then
3546   $as_echo_n "(cached) " >&6
3547 else
3548   ac_save_c_werror_flag=$ac_c_werror_flag
3549    ac_c_werror_flag=yes
3550    ac_cv_prog_cc_g=no
3551    CFLAGS="-g"
3552    cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h.  */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h.  */
3558
3559 int
3560 main ()
3561 {
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (ac_try="$ac_compile"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575   (eval "$ac_compile") 2>conftest.er1
3576   ac_status=$?
3577   grep -v '^ *+' conftest.er1 >conftest.err
3578   rm -f conftest.er1
3579   cat conftest.err >&5
3580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); } && {
3582          test -z "$ac_c_werror_flag" ||
3583          test ! -s conftest.err
3584        } && test -s conftest.$ac_objext; then
3585   ac_cv_prog_cc_g=yes
3586 else
3587   $as_echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590         CFLAGS=""
3591       cat >conftest.$ac_ext <<_ACEOF
3592 /* confdefs.h.  */
3593 _ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h.  */
3597
3598 int
3599 main ()
3600 {
3601
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 rm -f conftest.$ac_objext
3607 if { (ac_try="$ac_compile"
3608 case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3613 $as_echo "$ac_try_echo") >&5
3614   (eval "$ac_compile") 2>conftest.er1
3615   ac_status=$?
3616   grep -v '^ *+' conftest.er1 >conftest.err
3617   rm -f conftest.er1
3618   cat conftest.err >&5
3619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620   (exit $ac_status); } && {
3621          test -z "$ac_c_werror_flag" ||
3622          test ! -s conftest.err
3623        } && test -s conftest.$ac_objext; then
3624   :
3625 else
3626   $as_echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629         ac_c_werror_flag=$ac_save_c_werror_flag
3630          CFLAGS="-g"
3631          cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3648 case "(($ac_try" in
3649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650   *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3653 $as_echo "$ac_try_echo") >&5
3654   (eval "$ac_compile") 2>conftest.er1
3655   ac_status=$?
3656   grep -v '^ *+' conftest.er1 >conftest.err
3657   rm -f conftest.er1
3658   cat conftest.err >&5
3659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660   (exit $ac_status); } && {
3661          test -z "$ac_c_werror_flag" ||
3662          test ! -s conftest.err
3663        } && test -s conftest.$ac_objext; then
3664   ac_cv_prog_cc_g=yes
3665 else
3666   $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3668
3669
3670 fi
3671
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 fi
3674
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 fi
3677
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679    ac_c_werror_flag=$ac_save_c_werror_flag
3680 fi
3681 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3682 $as_echo "$ac_cv_prog_cc_g" >&6; }
3683 if test "$ac_test_CFLAGS" = set; then
3684   CFLAGS=$ac_save_CFLAGS
3685 elif test $ac_cv_prog_cc_g = yes; then
3686   if test "$GCC" = yes; then
3687     CFLAGS="-g -O2"
3688   else
3689     CFLAGS="-g"
3690   fi
3691 else
3692   if test "$GCC" = yes; then
3693     CFLAGS="-O2"
3694   else
3695     CFLAGS=
3696   fi
3697 fi
3698 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3699 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3700 if test "${ac_cv_prog_cc_c89+set}" = set; then
3701   $as_echo_n "(cached) " >&6
3702 else
3703   ac_cv_prog_cc_c89=no
3704 ac_save_CC=$CC
3705 cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 #include <stdarg.h>
3712 #include <stdio.h>
3713 #include <sys/types.h>
3714 #include <sys/stat.h>
3715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3716 struct buf { int x; };
3717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3718 static char *e (p, i)
3719      char **p;
3720      int i;
3721 {
3722   return p[i];
3723 }
3724 static char *f (char * (*g) (char **, int), char **p, ...)
3725 {
3726   char *s;
3727   va_list v;
3728   va_start (v,p);
3729   s = g (p, va_arg (v,int));
3730   va_end (v);
3731   return s;
3732 }
3733
3734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3735    function prototypes and stuff, but not '\xHH' hex character constants.
3736    These don't provoke an error unfortunately, instead are silently treated
3737    as 'x'.  The following induces an error, until -std is added to get
3738    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3739    array size at least.  It's necessary to write '\x00'==0 to get something
3740    that's true only with -std.  */
3741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3742
3743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3744    inside strings and character constants.  */
3745 #define FOO(x) 'x'
3746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3747
3748 int test (int i, double x);
3749 struct s1 {int (*f) (int a);};
3750 struct s2 {int (*f) (double a);};
3751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3752 int argc;
3753 char **argv;
3754 int
3755 main ()
3756 {
3757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3758   ;
3759   return 0;
3760 }
3761 _ACEOF
3762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3763         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3764 do
3765   CC="$ac_save_CC $ac_arg"
3766   rm -f conftest.$ac_objext
3767 if { (ac_try="$ac_compile"
3768 case "(($ac_try" in
3769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770   *) ac_try_echo=$ac_try;;
3771 esac
3772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3773 $as_echo "$ac_try_echo") >&5
3774   (eval "$ac_compile") 2>conftest.er1
3775   ac_status=$?
3776   grep -v '^ *+' conftest.er1 >conftest.err
3777   rm -f conftest.er1
3778   cat conftest.err >&5
3779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); } && {
3781          test -z "$ac_c_werror_flag" ||
3782          test ! -s conftest.err
3783        } && test -s conftest.$ac_objext; then
3784   ac_cv_prog_cc_c89=$ac_arg
3785 else
3786   $as_echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3788
3789
3790 fi
3791
3792 rm -f core conftest.err conftest.$ac_objext
3793   test "x$ac_cv_prog_cc_c89" != "xno" && break
3794 done
3795 rm -f conftest.$ac_ext
3796 CC=$ac_save_CC
3797
3798 fi
3799 # AC_CACHE_VAL
3800 case "x$ac_cv_prog_cc_c89" in
3801   x)
3802     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3803 $as_echo "none needed" >&6; } ;;
3804   xno)
3805     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3806 $as_echo "unsupported" >&6; } ;;
3807   *)
3808     CC="$CC $ac_cv_prog_cc_c89"
3809     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3810 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3811 esac
3812
3813
3814 ac_ext=c
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819
3820
3821 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3822 # but has idiosyncrasies of its own.  We assume icc will define
3823 # __INTEL_COMPILER regardless of CFLAGS.
3824
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h.  */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h.  */
3831
3832 int
3833 main ()
3834 {
3835 #ifndef __INTEL_COMPILER
3836 choke me
3837 #endif
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3844 case "(($ac_try" in
3845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846   *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849 $as_echo "$ac_try_echo") >&5
3850   (eval "$ac_compile") 2>conftest.er1
3851   ac_status=$?
3852   grep -v '^ *+' conftest.er1 >conftest.err
3853   rm -f conftest.er1
3854   cat conftest.err >&5
3855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856   (exit $ac_status); } && {
3857          test -z "$ac_c_werror_flag" ||
3858          test ! -s conftest.err
3859        } && test -s conftest.$ac_objext; then
3860   ICC=yes
3861 else
3862   $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865         ICC=no
3866 fi
3867
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869
3870 # Check if it's Sun Studio compiler. We assume that
3871 # __SUNPRO_C will be defined for Sun Studio compilers
3872 cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882 #ifndef __SUNPRO_C
3883 choke me
3884 #endif
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3896 $as_echo "$ac_try_echo") >&5
3897   (eval "$ac_compile") 2>conftest.er1
3898   ac_status=$?
3899   grep -v '^ *+' conftest.er1 >conftest.err
3900   rm -f conftest.er1
3901   cat conftest.err >&5
3902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); } && {
3904          test -z "$ac_c_werror_flag" ||
3905          test ! -s conftest.err
3906        } && test -s conftest.$ac_objext; then
3907   SUN_STUDIO_CC=yes
3908 else
3909   $as_echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912         SUN_STUDIO_CC=no
3913 fi
3914
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916
3917
3918
3919 unset CFLAGS
3920
3921 #
3922 # Read the template
3923 #
3924 . "$srcdir/src/template/$template" || exit
3925
3926 # CFLAGS are selected so:
3927 # If the user specifies something in the environment, that is used.
3928 # else:  If the template file set something, that is used.
3929 # else:  If coverage was enabled, don't set anything.
3930 # else:  If the compiler is GCC, then we use -O2.
3931 # else:  If the compiler is something else, then we use -O, unless debugging.
3932
3933 if test "$ac_env_CFLAGS_set" = set; then
3934   CFLAGS=$ac_env_CFLAGS_value
3935 elif test "${CFLAGS+set}" = set; then
3936   : # (keep what template set)
3937 elif test "$enable_coverage" = yes; then
3938   : # no optimization by default
3939 elif test "$GCC" = yes; then
3940   CFLAGS="-O2"
3941 else
3942   # if the user selected debug mode, don't use -O
3943   if test "$enable_debug" != yes; then
3944     CFLAGS="-O"
3945   fi
3946 fi
3947
3948 # set CFLAGS_VECTOR from the environment, if available
3949 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
3950   CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
3951 fi
3952
3953 # Some versions of GCC support some additional useful warning flags.
3954 # Check whether they are supported, and add them to CFLAGS if so.
3955 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3956 # but has its own.  Also check other compiler-specific flags here.
3957
3958 if test "$GCC" = yes -a "$ICC" = no; then
3959   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3960   # These work in some but not all gcc versions
3961   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3962 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3963 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3964   $as_echo_n "(cached) " >&6
3965 else
3966   pgac_save_CFLAGS=$CFLAGS
3967 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3968 ac_save_c_werror_flag=$ac_c_werror_flag
3969 ac_c_werror_flag=yes
3970 cat >conftest.$ac_ext <<_ACEOF
3971 /* confdefs.h.  */
3972 _ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h.  */
3976
3977 int
3978 main ()
3979 {
3980
3981   ;
3982   return 0;
3983 }
3984 _ACEOF
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3987 case "(($ac_try" in
3988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989   *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3992 $as_echo "$ac_try_echo") >&5
3993   (eval "$ac_compile") 2>conftest.er1
3994   ac_status=$?
3995   grep -v '^ *+' conftest.er1 >conftest.err
3996   rm -f conftest.er1
3997   cat conftest.err >&5
3998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); } && {
4000          test -z "$ac_c_werror_flag" ||
4001          test ! -s conftest.err
4002        } && test -s conftest.$ac_objext; then
4003   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4004 else
4005   $as_echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4007
4008         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4009 fi
4010
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_c_werror_flag=$ac_save_c_werror_flag
4013 CFLAGS="$pgac_save_CFLAGS"
4014 fi
4015 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4016 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4017 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4018   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4019 fi
4020
4021   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4022 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4023 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4024   $as_echo_n "(cached) " >&6
4025 else
4026   pgac_save_CFLAGS=$CFLAGS
4027 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4028 ac_save_c_werror_flag=$ac_c_werror_flag
4029 ac_c_werror_flag=yes
4030 cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036
4037 int
4038 main ()
4039 {
4040
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
4047 case "(($ac_try" in
4048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049   *) ac_try_echo=$ac_try;;
4050 esac
4051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4052 $as_echo "$ac_try_echo") >&5
4053   (eval "$ac_compile") 2>conftest.er1
4054   ac_status=$?
4055   grep -v '^ *+' conftest.er1 >conftest.err
4056   rm -f conftest.er1
4057   cat conftest.err >&5
4058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); } && {
4060          test -z "$ac_c_werror_flag" ||
4061          test ! -s conftest.err
4062        } && test -s conftest.$ac_objext; then
4063   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4064 else
4065   $as_echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4067
4068         pgac_cv_prog_cc_cflags__Wendif_labels=no
4069 fi
4070
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4073 CFLAGS="$pgac_save_CFLAGS"
4074 fi
4075 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4076 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4077 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4078   CFLAGS="$CFLAGS -Wendif-labels"
4079 fi
4080
4081   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4082 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4083 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4084   $as_echo_n "(cached) " >&6
4085 else
4086   pgac_save_CFLAGS=$CFLAGS
4087 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4088 ac_save_c_werror_flag=$ac_c_werror_flag
4089 ac_c_werror_flag=yes
4090 cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h.  */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h.  */
4096
4097 int
4098 main ()
4099 {
4100
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 rm -f conftest.$ac_objext
4106 if { (ac_try="$ac_compile"
4107 case "(($ac_try" in
4108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109   *) ac_try_echo=$ac_try;;
4110 esac
4111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4112 $as_echo "$ac_try_echo") >&5
4113   (eval "$ac_compile") 2>conftest.er1
4114   ac_status=$?
4115   grep -v '^ *+' conftest.er1 >conftest.err
4116   rm -f conftest.er1
4117   cat conftest.err >&5
4118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119   (exit $ac_status); } && {
4120          test -z "$ac_c_werror_flag" ||
4121          test ! -s conftest.err
4122        } && test -s conftest.$ac_objext; then
4123   pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4124 else
4125   $as_echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4127
4128         pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4129 fi
4130
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_c_werror_flag=$ac_save_c_werror_flag
4133 CFLAGS="$pgac_save_CFLAGS"
4134 fi
4135 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4136 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4137 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4138   CFLAGS="$CFLAGS -Wmissing-format-attribute"
4139 fi
4140
4141   # This was included in -Wall/-Wformat in older GCC versions
4142   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4143 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4144 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4145   $as_echo_n "(cached) " >&6
4146 else
4147   pgac_save_CFLAGS=$CFLAGS
4148 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157
4158 int
4159 main ()
4160 {
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173 $as_echo "$ac_try_echo") >&5
4174   (eval "$ac_compile") 2>conftest.er1
4175   ac_status=$?
4176   grep -v '^ *+' conftest.er1 >conftest.err
4177   rm -f conftest.er1
4178   cat conftest.err >&5
4179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); } && {
4181          test -z "$ac_c_werror_flag" ||
4182          test ! -s conftest.err
4183        } && test -s conftest.$ac_objext; then
4184   pgac_cv_prog_cc_cflags__Wformat_security=yes
4185 else
4186   $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4188
4189         pgac_cv_prog_cc_cflags__Wformat_security=no
4190 fi
4191
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_c_werror_flag=$ac_save_c_werror_flag
4194 CFLAGS="$pgac_save_CFLAGS"
4195 fi
4196 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4197 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4198 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4199   CFLAGS="$CFLAGS -Wformat-security"
4200 fi
4201
4202   # Disable strict-aliasing rules; needed for gcc 3.3+
4203   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4204 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4205 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4206   $as_echo_n "(cached) " >&6
4207 else
4208   pgac_save_CFLAGS=$CFLAGS
4209 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4210 ac_save_c_werror_flag=$ac_c_werror_flag
4211 ac_c_werror_flag=yes
4212 cat >conftest.$ac_ext <<_ACEOF
4213 /* confdefs.h.  */
4214 _ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h.  */
4218
4219 int
4220 main ()
4221 {
4222
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 rm -f conftest.$ac_objext
4228 if { (ac_try="$ac_compile"
4229 case "(($ac_try" in
4230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231   *) ac_try_echo=$ac_try;;
4232 esac
4233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4234 $as_echo "$ac_try_echo") >&5
4235   (eval "$ac_compile") 2>conftest.er1
4236   ac_status=$?
4237   grep -v '^ *+' conftest.er1 >conftest.err
4238   rm -f conftest.er1
4239   cat conftest.err >&5
4240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241   (exit $ac_status); } && {
4242          test -z "$ac_c_werror_flag" ||
4243          test ! -s conftest.err
4244        } && test -s conftest.$ac_objext; then
4245   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4246 else
4247   $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4249
4250         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4251 fi
4252
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 ac_c_werror_flag=$ac_save_c_werror_flag
4255 CFLAGS="$pgac_save_CFLAGS"
4256 fi
4257 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4258 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4259 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4260   CFLAGS="$CFLAGS -fno-strict-aliasing"
4261 fi
4262
4263   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4264   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4265 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4266 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4267   $as_echo_n "(cached) " >&6
4268 else
4269   pgac_save_CFLAGS=$CFLAGS
4270 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4271 ac_save_c_werror_flag=$ac_c_werror_flag
4272 ac_c_werror_flag=yes
4273 cat >conftest.$ac_ext <<_ACEOF
4274 /* confdefs.h.  */
4275 _ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h.  */
4279
4280 int
4281 main ()
4282 {
4283
4284   ;
4285   return 0;
4286 }
4287 _ACEOF
4288 rm -f conftest.$ac_objext
4289 if { (ac_try="$ac_compile"
4290 case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4295 $as_echo "$ac_try_echo") >&5
4296   (eval "$ac_compile") 2>conftest.er1
4297   ac_status=$?
4298   grep -v '^ *+' conftest.er1 >conftest.err
4299   rm -f conftest.er1
4300   cat conftest.err >&5
4301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); } && {
4303          test -z "$ac_c_werror_flag" ||
4304          test ! -s conftest.err
4305        } && test -s conftest.$ac_objext; then
4306   pgac_cv_prog_cc_cflags__fwrapv=yes
4307 else
4308   $as_echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311         pgac_cv_prog_cc_cflags__fwrapv=no
4312 fi
4313
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_c_werror_flag=$ac_save_c_werror_flag
4316 CFLAGS="$pgac_save_CFLAGS"
4317 fi
4318 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4319 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4320 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4321   CFLAGS="$CFLAGS -fwrapv"
4322 fi
4323
4324   # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4325   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4326 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4327 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4328   $as_echo_n "(cached) " >&6
4329 else
4330   pgac_save_CFLAGS=$CFLAGS
4331 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4332 ac_save_c_werror_flag=$ac_c_werror_flag
4333 ac_c_werror_flag=yes
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340
4341 int
4342 main ()
4343 {
4344
4345   ;
4346   return 0;
4347 }
4348 _ACEOF
4349 rm -f conftest.$ac_objext
4350 if { (ac_try="$ac_compile"
4351 case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4356 $as_echo "$ac_try_echo") >&5
4357   (eval "$ac_compile") 2>conftest.er1
4358   ac_status=$?
4359   grep -v '^ *+' conftest.er1 >conftest.err
4360   rm -f conftest.er1
4361   cat conftest.err >&5
4362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } && {
4364          test -z "$ac_c_werror_flag" ||
4365          test ! -s conftest.err
4366        } && test -s conftest.$ac_objext; then
4367   pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4368 else
4369   $as_echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372         pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4373 fi
4374
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 ac_c_werror_flag=$ac_save_c_werror_flag
4377 CFLAGS="$pgac_save_CFLAGS"
4378 fi
4379 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4380 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4381 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4382   CFLAGS="$CFLAGS -fexcess-precision=standard"
4383 fi
4384
4385   # Optimization flags for specific files that benefit from vectorization
4386   { $as_echo "$as_me:$LINENO: checking whether $CC supports -funroll-loops" >&5
4387 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4388 if test "${pgac_cv_prog_cc_cflags__funroll_loops+set}" = set; then
4389   $as_echo_n "(cached) " >&6
4390 else
4391   pgac_save_CFLAGS=$CFLAGS
4392 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4393 ac_save_c_werror_flag=$ac_c_werror_flag
4394 ac_c_werror_flag=yes
4395 cat >conftest.$ac_ext <<_ACEOF
4396 /* confdefs.h.  */
4397 _ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h.  */
4401
4402 int
4403 main ()
4404 {
4405
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 rm -f conftest.$ac_objext
4411 if { (ac_try="$ac_compile"
4412 case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4417 $as_echo "$ac_try_echo") >&5
4418   (eval "$ac_compile") 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } && {
4425          test -z "$ac_c_werror_flag" ||
4426          test ! -s conftest.err
4427        } && test -s conftest.$ac_objext; then
4428   pgac_cv_prog_cc_cflags__funroll_loops=yes
4429 else
4430   $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433         pgac_cv_prog_cc_cflags__funroll_loops=no
4434 fi
4435
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 ac_c_werror_flag=$ac_save_c_werror_flag
4438 CFLAGS="$pgac_save_CFLAGS"
4439 fi
4440 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4441 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4442 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4443   CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4444 fi
4445
4446   { $as_echo "$as_me:$LINENO: checking whether $CC supports -ftree-vectorize" >&5
4447 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4448 if test "${pgac_cv_prog_cc_cflags__ftree_vectorize+set}" = set; then
4449   $as_echo_n "(cached) " >&6
4450 else
4451   pgac_save_CFLAGS=$CFLAGS
4452 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4453 ac_save_c_werror_flag=$ac_c_werror_flag
4454 ac_c_werror_flag=yes
4455 cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461
4462 int
4463 main ()
4464 {
4465
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4477 $as_echo "$ac_try_echo") >&5
4478   (eval "$ac_compile") 2>conftest.er1
4479   ac_status=$?
4480   grep -v '^ *+' conftest.er1 >conftest.err
4481   rm -f conftest.er1
4482   cat conftest.err >&5
4483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } && {
4485          test -z "$ac_c_werror_flag" ||
4486          test ! -s conftest.err
4487        } && test -s conftest.$ac_objext; then
4488   pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4489 else
4490   $as_echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493         pgac_cv_prog_cc_cflags__ftree_vectorize=no
4494 fi
4495
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 ac_c_werror_flag=$ac_save_c_werror_flag
4498 CFLAGS="$pgac_save_CFLAGS"
4499 fi
4500 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4501 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4502 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4503   CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4504 fi
4505
4506 elif test "$ICC" = yes; then
4507   # Intel's compiler has a bug/misoptimization in checking for
4508   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4509   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4510 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4511 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4512   $as_echo_n "(cached) " >&6
4513 else
4514   pgac_save_CFLAGS=$CFLAGS
4515 CFLAGS="$pgac_save_CFLAGS -mp1"
4516 ac_save_c_werror_flag=$ac_c_werror_flag
4517 ac_c_werror_flag=yes
4518 cat >conftest.$ac_ext <<_ACEOF
4519 /* confdefs.h.  */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h.  */
4524
4525 int
4526 main ()
4527 {
4528
4529   ;
4530   return 0;
4531 }
4532 _ACEOF
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4535 case "(($ac_try" in
4536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537   *) ac_try_echo=$ac_try;;
4538 esac
4539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4540 $as_echo "$ac_try_echo") >&5
4541   (eval "$ac_compile") 2>conftest.er1
4542   ac_status=$?
4543   grep -v '^ *+' conftest.er1 >conftest.err
4544   rm -f conftest.er1
4545   cat conftest.err >&5
4546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } && {
4548          test -z "$ac_c_werror_flag" ||
4549          test ! -s conftest.err
4550        } && test -s conftest.$ac_objext; then
4551   pgac_cv_prog_cc_cflags__mp1=yes
4552 else
4553   $as_echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556         pgac_cv_prog_cc_cflags__mp1=no
4557 fi
4558
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_c_werror_flag=$ac_save_c_werror_flag
4561 CFLAGS="$pgac_save_CFLAGS"
4562 fi
4563 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4564 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4565 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4566   CFLAGS="$CFLAGS -mp1"
4567 fi
4568
4569   # Make sure strict aliasing is off (though this is said to be the default)
4570   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4571 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4572 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4573   $as_echo_n "(cached) " >&6
4574 else
4575   pgac_save_CFLAGS=$CFLAGS
4576 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4577 ac_save_c_werror_flag=$ac_c_werror_flag
4578 ac_c_werror_flag=yes
4579 cat >conftest.$ac_ext <<_ACEOF
4580 /* confdefs.h.  */
4581 _ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h.  */
4585
4586 int
4587 main ()
4588 {
4589
4590   ;
4591   return 0;
4592 }
4593 _ACEOF
4594 rm -f conftest.$ac_objext
4595 if { (ac_try="$ac_compile"
4596 case "(($ac_try" in
4597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598   *) ac_try_echo=$ac_try;;
4599 esac
4600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4601 $as_echo "$ac_try_echo") >&5
4602   (eval "$ac_compile") 2>conftest.er1
4603   ac_status=$?
4604   grep -v '^ *+' conftest.er1 >conftest.err
4605   rm -f conftest.er1
4606   cat conftest.err >&5
4607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); } && {
4609          test -z "$ac_c_werror_flag" ||
4610          test ! -s conftest.err
4611        } && test -s conftest.$ac_objext; then
4612   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4613 else
4614   $as_echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4618 fi
4619
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 ac_c_werror_flag=$ac_save_c_werror_flag
4622 CFLAGS="$pgac_save_CFLAGS"
4623 fi
4624 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4625 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4626 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4627   CFLAGS="$CFLAGS -fno-strict-aliasing"
4628 fi
4629
4630 elif test "$PORTNAME" = "aix"; then
4631   # AIX's xlc has to have strict aliasing turned off too
4632   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4633 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4634 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4635   $as_echo_n "(cached) " >&6
4636 else
4637   pgac_save_CFLAGS=$CFLAGS
4638 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4639 ac_save_c_werror_flag=$ac_c_werror_flag
4640 ac_c_werror_flag=yes
4641 cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647
4648 int
4649 main ()
4650 {
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (ac_try="$ac_compile"
4658 case "(($ac_try" in
4659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660   *) ac_try_echo=$ac_try;;
4661 esac
4662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4663 $as_echo "$ac_try_echo") >&5
4664   (eval "$ac_compile") 2>conftest.er1
4665   ac_status=$?
4666   grep -v '^ *+' conftest.er1 >conftest.err
4667   rm -f conftest.er1
4668   cat conftest.err >&5
4669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); } && {
4671          test -z "$ac_c_werror_flag" ||
4672          test ! -s conftest.err
4673        } && test -s conftest.$ac_objext; then
4674   pgac_cv_prog_cc_cflags__qnoansialias=yes
4675 else
4676   $as_echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679         pgac_cv_prog_cc_cflags__qnoansialias=no
4680 fi
4681
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 ac_c_werror_flag=$ac_save_c_werror_flag
4684 CFLAGS="$pgac_save_CFLAGS"
4685 fi
4686 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4687 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4688 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4689   CFLAGS="$CFLAGS -qnoansialias"
4690 fi
4691
4692 elif test "$PORTNAME" = "hpux"; then
4693   # On some versions of HP-UX, libm functions do not set errno by default.
4694   # Fix that by using +Olibmerrno if the compiler recognizes it.
4695   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4696 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4697 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4698   $as_echo_n "(cached) " >&6
4699 else
4700   pgac_save_CFLAGS=$CFLAGS
4701 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4702 ac_save_c_werror_flag=$ac_c_werror_flag
4703 ac_c_werror_flag=yes
4704 cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h.  */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h.  */
4710
4711 int
4712 main ()
4713 {
4714
4715   ;
4716   return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4721 case "(($ac_try" in
4722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723   *) ac_try_echo=$ac_try;;
4724 esac
4725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4726 $as_echo "$ac_try_echo") >&5
4727   (eval "$ac_compile") 2>conftest.er1
4728   ac_status=$?
4729   grep -v '^ *+' conftest.er1 >conftest.err
4730   rm -f conftest.er1
4731   cat conftest.err >&5
4732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } && {
4734          test -z "$ac_c_werror_flag" ||
4735          test ! -s conftest.err
4736        } && test -s conftest.$ac_objext; then
4737   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4738 else
4739   $as_echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4743 fi
4744
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_c_werror_flag=$ac_save_c_werror_flag
4747 CFLAGS="$pgac_save_CFLAGS"
4748 fi
4749 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4750 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4751 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4752   CFLAGS="$CFLAGS +Olibmerrno"
4753 fi
4754
4755 fi
4756
4757 CFLAGS_VECTOR=$CFLAGS_VECTOR
4758
4759
4760 # supply -g if --enable-debug
4761 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4762   CFLAGS="$CFLAGS -g"
4763 fi
4764
4765 # enable code coverage if --enable-coverage
4766 if test "$enable_coverage" = yes; then
4767   if test "$GCC" = yes; then
4768     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4769   else
4770     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4771 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4772    { (exit 1); exit 1; }; }
4773   fi
4774 fi
4775
4776 # enable profiling if --enable-profiling
4777 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4778   if test "$GCC" = yes; then
4779
4780 cat >>confdefs.h <<\_ACEOF
4781 #define PROFILE_PID_DIR 1
4782 _ACEOF
4783
4784     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4785   else
4786     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4787 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4788    { (exit 1); exit 1; }; }
4789   fi
4790 fi
4791
4792 # We already have this in Makefile.win32, but configure needs it too
4793 if test "$PORTNAME" = "win32"; then
4794   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4795 fi
4796
4797 # Check if the compiler still works with the template settings
4798 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4799 $as_echo_n "checking whether the C compiler still works... " >&6; }
4800 cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h.  */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h.  */
4806
4807 int
4808 main ()
4809 {
4810 return 0;
4811   ;
4812   return 0;
4813 }
4814 _ACEOF
4815 rm -f conftest.$ac_objext conftest$ac_exeext
4816 if { (ac_try="$ac_link"
4817 case "(($ac_try" in
4818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819   *) ac_try_echo=$ac_try;;
4820 esac
4821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4822 $as_echo "$ac_try_echo") >&5
4823   (eval "$ac_link") 2>conftest.er1
4824   ac_status=$?
4825   grep -v '^ *+' conftest.er1 >conftest.err
4826   rm -f conftest.er1
4827   cat conftest.err >&5
4828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); } && {
4830          test -z "$ac_c_werror_flag" ||
4831          test ! -s conftest.err
4832        } && test -s conftest$ac_exeext && {
4833          test "$cross_compiling" = yes ||
4834          $as_test_x conftest$ac_exeext
4835        }; then
4836   { $as_echo "$as_me:$LINENO: result: yes" >&5
4837 $as_echo "yes" >&6; }
4838 else
4839   $as_echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842         { $as_echo "$as_me:$LINENO: result: no" >&5
4843 $as_echo "no" >&6; }
4844    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4845 $as_echo "$as_me: error: cannot proceed" >&2;}
4846    { (exit 1); exit 1; }; }
4847 fi
4848
4849 rm -rf conftest.dSYM
4850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4851       conftest$ac_exeext conftest.$ac_ext
4852
4853 # Defend against gcc -ffast-math
4854 if test "$GCC" = yes; then
4855 cat >conftest.$ac_ext <<_ACEOF
4856 /* confdefs.h.  */
4857 _ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h.  */
4861
4862 int
4863 main ()
4864 {
4865 #ifdef __FAST_MATH__
4866 choke me
4867 #endif
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 rm -f conftest.$ac_objext
4873 if { (ac_try="$ac_compile"
4874 case "(($ac_try" in
4875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876   *) ac_try_echo=$ac_try;;
4877 esac
4878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4879 $as_echo "$ac_try_echo") >&5
4880   (eval "$ac_compile") 2>conftest.er1
4881   ac_status=$?
4882   grep -v '^ *+' conftest.er1 >conftest.err
4883   rm -f conftest.er1
4884   cat conftest.err >&5
4885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); } && {
4887          test -z "$ac_c_werror_flag" ||
4888          test ! -s conftest.err
4889        } && test -s conftest.$ac_objext; then
4890   :
4891 else
4892   $as_echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4894
4895         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4896 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4897    { (exit 1); exit 1; }; }
4898 fi
4899
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 fi
4902
4903 ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4909 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4910 # On Suns, sometimes $CPP names a directory.
4911 if test -n "$CPP" && test -d "$CPP"; then
4912   CPP=
4913 fi
4914 if test -z "$CPP"; then
4915   if test "${ac_cv_prog_CPP+set}" = set; then
4916   $as_echo_n "(cached) " >&6
4917 else
4918       # Double quotes because CPP needs to be expanded
4919     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4920     do
4921       ac_preproc_ok=false
4922 for ac_c_preproc_warn_flag in '' yes
4923 do
4924   # Use a header file that comes with gcc, so configuring glibc
4925   # with a fresh cross-compiler works.
4926   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927   # <limits.h> exists even on freestanding compilers.
4928   # On the NeXT, cc -E runs the code through the compiler's parser,
4929   # not just through cpp. "Syntax error" is here to catch this case.
4930   cat >conftest.$ac_ext <<_ACEOF
4931 /* confdefs.h.  */
4932 _ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h.  */
4936 #ifdef __STDC__
4937 # include <limits.h>
4938 #else
4939 # include <assert.h>
4940 #endif
4941                      Syntax error
4942 _ACEOF
4943 if { (ac_try="$ac_cpp conftest.$ac_ext"
4944 case "(($ac_try" in
4945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946   *) ac_try_echo=$ac_try;;
4947 esac
4948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4949 $as_echo "$ac_try_echo") >&5
4950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4951   ac_status=$?
4952   grep -v '^ *+' conftest.er1 >conftest.err
4953   rm -f conftest.er1
4954   cat conftest.err >&5
4955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); } >/dev/null && {
4957          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4958          test ! -s conftest.err
4959        }; then
4960   :
4961 else
4962   $as_echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4964
4965   # Broken: fails on valid input.
4966 continue
4967 fi
4968
4969 rm -f conftest.err conftest.$ac_ext
4970
4971   # OK, works on sane cases.  Now check whether nonexistent headers
4972   # can be detected and how.
4973   cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h.  */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h.  */
4979 #include <ac_nonexistent.h>
4980 _ACEOF
4981 if { (ac_try="$ac_cpp conftest.$ac_ext"
4982 case "(($ac_try" in
4983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984   *) ac_try_echo=$ac_try;;
4985 esac
4986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4987 $as_echo "$ac_try_echo") >&5
4988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4989   ac_status=$?
4990   grep -v '^ *+' conftest.er1 >conftest.err
4991   rm -f conftest.er1
4992   cat conftest.err >&5
4993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); } >/dev/null && {
4995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4996          test ! -s conftest.err
4997        }; then
4998   # Broken: success on invalid input.
4999 continue
5000 else
5001   $as_echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004   # Passes both tests.
5005 ac_preproc_ok=:
5006 break
5007 fi
5008
5009 rm -f conftest.err conftest.$ac_ext
5010
5011 done
5012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5013 rm -f conftest.err conftest.$ac_ext
5014 if $ac_preproc_ok; then
5015   break
5016 fi
5017
5018     done
5019     ac_cv_prog_CPP=$CPP
5020
5021 fi
5022   CPP=$ac_cv_prog_CPP
5023 else
5024   ac_cv_prog_CPP=$CPP
5025 fi
5026 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5027 $as_echo "$CPP" >&6; }
5028 ac_preproc_ok=false
5029 for ac_c_preproc_warn_flag in '' yes
5030 do
5031   # Use a header file that comes with gcc, so configuring glibc
5032   # with a fresh cross-compiler works.
5033   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034   # <limits.h> exists even on freestanding compilers.
5035   # On the NeXT, cc -E runs the code through the compiler's parser,
5036   # not just through cpp. "Syntax error" is here to catch this case.
5037   cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043 #ifdef __STDC__
5044 # include <limits.h>
5045 #else
5046 # include <assert.h>
5047 #endif
5048                      Syntax error
5049 _ACEOF
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5051 case "(($ac_try" in
5052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053   *) ac_try_echo=$ac_try;;
5054 esac
5055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5056 $as_echo "$ac_try_echo") >&5
5057   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058   ac_status=$?
5059   grep -v '^ *+' conftest.er1 >conftest.err
5060   rm -f conftest.er1
5061   cat conftest.err >&5
5062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); } >/dev/null && {
5064          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5065          test ! -s conftest.err
5066        }; then
5067   :
5068 else
5069   $as_echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072   # Broken: fails on valid input.
5073 continue
5074 fi
5075
5076 rm -f conftest.err conftest.$ac_ext
5077
5078   # OK, works on sane cases.  Now check whether nonexistent headers
5079   # can be detected and how.
5080   cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h.  */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h.  */
5086 #include <ac_nonexistent.h>
5087 _ACEOF
5088 if { (ac_try="$ac_cpp conftest.$ac_ext"
5089 case "(($ac_try" in
5090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091   *) ac_try_echo=$ac_try;;
5092 esac
5093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094 $as_echo "$ac_try_echo") >&5
5095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5096   ac_status=$?
5097   grep -v '^ *+' conftest.er1 >conftest.err
5098   rm -f conftest.er1
5099   cat conftest.err >&5
5100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101   (exit $ac_status); } >/dev/null && {
5102          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5103          test ! -s conftest.err
5104        }; then
5105   # Broken: success on invalid input.
5106 continue
5107 else
5108   $as_echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5110
5111   # Passes both tests.
5112 ac_preproc_ok=:
5113 break
5114 fi
5115
5116 rm -f conftest.err conftest.$ac_ext
5117
5118 done
5119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5120 rm -f conftest.err conftest.$ac_ext
5121 if $ac_preproc_ok; then
5122   :
5123 else
5124   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5126 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5127 See \`config.log' for more details." >&5
5128 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5129 See \`config.log' for more details." >&2;}
5130    { (exit 1); exit 1; }; }; }
5131 fi
5132
5133 ac_ext=c
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138
5139
5140
5141
5142 #
5143 # Set up TAS assembly code if needed; the template file has now had its
5144 # chance to request this.
5145 #
5146 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5147
5148
5149 if test "$need_tas" = yes ; then
5150   TAS=tas.o
5151 else
5152   TAS=""
5153 fi
5154
5155
5156
5157 #
5158 # Automatic dependency tracking
5159 #
5160
5161
5162 # Check whether --enable-depend was given.
5163 if test "${enable_depend+set}" = set; then
5164   enableval=$enable_depend;
5165   case $enableval in
5166     yes)
5167       autodepend=yes
5168       ;;
5169     no)
5170       :
5171       ;;
5172     *)
5173       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5174 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5175    { (exit 1); exit 1; }; }
5176       ;;
5177   esac
5178
5179 else
5180   enable_depend=no
5181
5182 fi
5183
5184
5185
5186
5187
5188 #
5189 # Enable assert checks
5190 #
5191
5192
5193 # Check whether --enable-cassert was given.
5194 if test "${enable_cassert+set}" = set; then
5195   enableval=$enable_cassert;
5196   case $enableval in
5197     yes)
5198
5199 cat >>confdefs.h <<\_ACEOF
5200 #define USE_ASSERT_CHECKING 1
5201 _ACEOF
5202
5203       ;;
5204     no)
5205       :
5206       ;;
5207     *)
5208       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5209 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5210    { (exit 1); exit 1; }; }
5211       ;;
5212   esac
5213
5214 else
5215   enable_cassert=no
5216
5217 fi
5218
5219
5220
5221
5222 #
5223 # Include directories
5224 #
5225 ac_save_IFS=$IFS
5226 IFS="${IFS}${PATH_SEPARATOR}"
5227 # SRCH_INC comes from the template file
5228 for dir in $with_includes $SRCH_INC; do
5229   if test -d "$dir"; then
5230     INCLUDES="$INCLUDES -I$dir"
5231   else
5232     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5233 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5234   fi
5235 done
5236 IFS=$ac_save_IFS
5237
5238
5239
5240 #
5241 # Library directories
5242 #
5243 ac_save_IFS=$IFS
5244 IFS="${IFS}${PATH_SEPARATOR}"
5245 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5246 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5247   if test -d "$dir"; then
5248     LIBDIRS="$LIBDIRS -L$dir"
5249   else
5250     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5251 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5252   fi
5253 done
5254 IFS=$ac_save_IFS
5255
5256 #
5257 # Enable thread-safe client libraries
5258 #
5259 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5260 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5261
5262
5263 # Check whether --enable-thread-safety was given.
5264 if test "${enable_thread_safety+set}" = set; then
5265   enableval=$enable_thread_safety;
5266   case $enableval in
5267     yes)
5268       :
5269       ;;
5270     no)
5271       :
5272       ;;
5273     *)
5274       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5275 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5276    { (exit 1); exit 1; }; }
5277       ;;
5278   esac
5279
5280 else
5281   enable_thread_safety=yes
5282
5283 fi
5284
5285
5286 if test "$enable_thread_safety" = yes; then
5287
5288 cat >>confdefs.h <<\_ACEOF
5289 #define ENABLE_THREAD_SAFETY 1
5290 _ACEOF
5291
5292 fi
5293 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5294 $as_echo "$enable_thread_safety" >&6; }
5295
5296
5297 #
5298 # Optionally build Tcl modules (PL/Tcl)
5299 #
5300 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5301 $as_echo_n "checking whether to build with Tcl... " >&6; }
5302
5303
5304
5305 # Check whether --with-tcl was given.
5306 if test "${with_tcl+set}" = set; then
5307   withval=$with_tcl;
5308   case $withval in
5309     yes)
5310       :
5311       ;;
5312     no)
5313       :
5314       ;;
5315     *)
5316       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5317 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5318    { (exit 1); exit 1; }; }
5319       ;;
5320   esac
5321
5322 else
5323   with_tcl=no
5324
5325 fi
5326
5327
5328 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5329 $as_echo "$with_tcl" >&6; }
5330
5331
5332 # We see if the path to the Tcl/Tk configuration scripts is specified.
5333 # This will override the use of tclsh to find the paths to search.
5334
5335
5336
5337
5338 # Check whether --with-tclconfig was given.
5339 if test "${with_tclconfig+set}" = set; then
5340   withval=$with_tclconfig;
5341   case $withval in
5342     yes)
5343       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5344 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5345    { (exit 1); exit 1; }; }
5346       ;;
5347     no)
5348       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5349 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5350    { (exit 1); exit 1; }; }
5351       ;;
5352     *)
5353
5354       ;;
5355   esac
5356
5357 fi
5358
5359
5360
5361 #
5362 # Optionally build Perl modules (PL/Perl)
5363 #
5364 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5365 $as_echo_n "checking whether to build Perl modules... " >&6; }
5366
5367
5368
5369 # Check whether --with-perl was given.
5370 if test "${with_perl+set}" = set; then
5371   withval=$with_perl;
5372   case $withval in
5373     yes)
5374       :
5375       ;;
5376     no)
5377       :
5378       ;;
5379     *)
5380       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5381 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5382    { (exit 1); exit 1; }; }
5383       ;;
5384   esac
5385
5386 else
5387   with_perl=no
5388
5389 fi
5390
5391
5392 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5393 $as_echo "$with_perl" >&6; }
5394
5395
5396 #
5397 # Optionally build Python modules (PL/Python)
5398 #
5399 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5400 $as_echo_n "checking whether to build Python modules... " >&6; }
5401
5402
5403
5404 # Check whether --with-python was given.
5405 if test "${with_python+set}" = set; then
5406   withval=$with_python;
5407   case $withval in
5408     yes)
5409       :
5410       ;;
5411     no)
5412       :
5413       ;;
5414     *)
5415       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5416 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5417    { (exit 1); exit 1; }; }
5418       ;;
5419   esac
5420
5421 else
5422   with_python=no
5423
5424 fi
5425
5426
5427 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5428 $as_echo "$with_python" >&6; }
5429
5430
5431 #
5432 # GSSAPI
5433 #
5434 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5435 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5436
5437
5438
5439 # Check whether --with-gssapi was given.
5440 if test "${with_gssapi+set}" = set; then
5441   withval=$with_gssapi;
5442   case $withval in
5443     yes)
5444
5445
5446 cat >>confdefs.h <<\_ACEOF
5447 #define ENABLE_GSS 1
5448 _ACEOF
5449
5450   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5451
5452       ;;
5453     no)
5454       :
5455       ;;
5456     *)
5457       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5458 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5459    { (exit 1); exit 1; }; }
5460       ;;
5461   esac
5462
5463 else
5464   with_gssapi=no
5465
5466 fi
5467
5468
5469 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5470 $as_echo "$with_gssapi" >&6; }
5471
5472 #
5473 # Kerberos 5
5474 #
5475 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5476 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5477
5478
5479
5480 # Check whether --with-krb5 was given.
5481 if test "${with_krb5+set}" = set; then
5482   withval=$with_krb5;
5483   case $withval in
5484     yes)
5485
5486
5487 cat >>confdefs.h <<\_ACEOF
5488 #define KRB5 1
5489 _ACEOF
5490
5491   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5492
5493       ;;
5494     no)
5495       :
5496       ;;
5497     *)
5498       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5499 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5500    { (exit 1); exit 1; }; }
5501       ;;
5502   esac
5503
5504 else
5505   with_krb5=no
5506
5507 fi
5508
5509
5510 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5511 $as_echo "$with_krb5" >&6; }
5512
5513
5514
5515
5516
5517 #
5518 # Kerberos configuration parameters
5519 #
5520
5521
5522
5523 # Check whether --with-krb-srvnam was given.
5524 if test "${with_krb_srvnam+set}" = set; then
5525   withval=$with_krb_srvnam;
5526   case $withval in
5527     yes)
5528       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5529 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5530    { (exit 1); exit 1; }; }
5531       ;;
5532     no)
5533       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5534 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5535    { (exit 1); exit 1; }; }
5536       ;;
5537     *)
5538
5539       ;;
5540   esac
5541
5542 else
5543   with_krb_srvnam="postgres"
5544 fi
5545
5546
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5550 _ACEOF
5551
5552
5553
5554 #
5555 # PAM
5556 #
5557 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5558 $as_echo_n "checking whether to build with PAM support... " >&6; }
5559
5560
5561
5562 # Check whether --with-pam was given.
5563 if test "${with_pam+set}" = set; then
5564   withval=$with_pam;
5565   case $withval in
5566     yes)
5567
5568 cat >>confdefs.h <<\_ACEOF
5569 #define USE_PAM 1
5570 _ACEOF
5571
5572       ;;
5573     no)
5574       :
5575       ;;
5576     *)
5577       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5578 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5579    { (exit 1); exit 1; }; }
5580       ;;
5581   esac
5582
5583 else
5584   with_pam=no
5585
5586 fi
5587
5588
5589 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5590 $as_echo "$with_pam" >&6; }
5591
5592
5593 #
5594 # LDAP
5595 #
5596 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5597 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5598
5599
5600
5601 # Check whether --with-ldap was given.
5602 if test "${with_ldap+set}" = set; then
5603   withval=$with_ldap;
5604   case $withval in
5605     yes)
5606
5607 cat >>confdefs.h <<\_ACEOF
5608 #define USE_LDAP 1
5609 _ACEOF
5610
5611       ;;
5612     no)
5613       :
5614       ;;
5615     *)
5616       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5617 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5618    { (exit 1); exit 1; }; }
5619       ;;
5620   esac
5621
5622 else
5623   with_ldap=no
5624
5625 fi
5626
5627
5628 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5629 $as_echo "$with_ldap" >&6; }
5630
5631
5632 #
5633 # Bonjour
5634 #
5635 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5636 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5637
5638
5639
5640 # Check whether --with-bonjour was given.
5641 if test "${with_bonjour+set}" = set; then
5642   withval=$with_bonjour;
5643   case $withval in
5644     yes)
5645
5646 cat >>confdefs.h <<\_ACEOF
5647 #define USE_BONJOUR 1
5648 _ACEOF
5649
5650       ;;
5651     no)
5652       :
5653       ;;
5654     *)
5655       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5656 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5657    { (exit 1); exit 1; }; }
5658       ;;
5659   esac
5660
5661 else
5662   with_bonjour=no
5663
5664 fi
5665
5666
5667 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5668 $as_echo "$with_bonjour" >&6; }
5669
5670
5671 #
5672 # OpenSSL
5673 #
5674 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5675 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5676
5677
5678
5679 # Check whether --with-openssl was given.
5680 if test "${with_openssl+set}" = set; then
5681   withval=$with_openssl;
5682   case $withval in
5683     yes)
5684
5685 cat >>confdefs.h <<\_ACEOF
5686 #define USE_SSL 1
5687 _ACEOF
5688
5689       ;;
5690     no)
5691       :
5692       ;;
5693     *)
5694       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5695 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5696    { (exit 1); exit 1; }; }
5697       ;;
5698   esac
5699
5700 else
5701   with_openssl=no
5702
5703 fi
5704
5705
5706 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5707 $as_echo "$with_openssl" >&6; }
5708
5709
5710 #
5711 # SELinux
5712 #
5713 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5714 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5715
5716
5717
5718 # Check whether --with-selinux was given.
5719 if test "${with_selinux+set}" = set; then
5720   withval=$with_selinux;
5721   case $withval in
5722     yes)
5723       :
5724       ;;
5725     no)
5726       :
5727       ;;
5728     *)
5729       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5730 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5731    { (exit 1); exit 1; }; }
5732       ;;
5733   esac
5734
5735 else
5736   with_selinux=no
5737
5738 fi
5739
5740
5741
5742 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5743 $as_echo "$with_selinux" >&6; }
5744
5745 #
5746 # Readline
5747 #
5748
5749
5750
5751 # Check whether --with-readline was given.
5752 if test "${with_readline+set}" = set; then
5753   withval=$with_readline;
5754   case $withval in
5755     yes)
5756       :
5757       ;;
5758     no)
5759       :
5760       ;;
5761     *)
5762       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5763 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5764    { (exit 1); exit 1; }; }
5765       ;;
5766   esac
5767
5768 else
5769   with_readline=yes
5770
5771 fi
5772
5773
5774 # readline on MinGW has problems with backslashes in psql and other bugs.
5775 # This is particularly a problem with non-US code pages.
5776 # Therefore disable its use until we understand the cause. 2004-07-20
5777 if test "$PORTNAME" = "win32"; then
5778   if test "$with_readline" = yes; then
5779     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5780 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5781     with_readline=no
5782   fi
5783 fi
5784
5785
5786 #
5787 # Prefer libedit
5788 #
5789
5790
5791
5792 # Check whether --with-libedit-preferred was given.
5793 if test "${with_libedit_preferred+set}" = set; then
5794   withval=$with_libedit_preferred;
5795   case $withval in
5796     yes)
5797       :
5798       ;;
5799     no)
5800       :
5801       ;;
5802     *)
5803       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5804 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5805    { (exit 1); exit 1; }; }
5806       ;;
5807   esac
5808
5809 else
5810   with_libedit_preferred=no
5811
5812 fi
5813
5814
5815
5816
5817 #
5818 # OSSP UUID library
5819 #
5820
5821
5822
5823 # Check whether --with-ossp-uuid was given.
5824 if test "${with_ossp_uuid+set}" = set; then
5825   withval=$with_ossp_uuid;
5826   case $withval in
5827     yes)
5828       :
5829       ;;
5830     no)
5831       :
5832       ;;
5833     *)
5834       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5835 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5836    { (exit 1); exit 1; }; }
5837       ;;
5838   esac
5839
5840 else
5841   with_ossp_uuid=no
5842
5843 fi
5844
5845
5846
5847
5848
5849 #
5850 # XML
5851 #
5852
5853
5854
5855 # Check whether --with-libxml was given.
5856 if test "${with_libxml+set}" = set; then
5857   withval=$with_libxml;
5858   case $withval in
5859     yes)
5860
5861 cat >>confdefs.h <<\_ACEOF
5862 #define USE_LIBXML 1
5863 _ACEOF
5864
5865       ;;
5866     no)
5867       :
5868       ;;
5869     *)
5870       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5871 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5872    { (exit 1); exit 1; }; }
5873       ;;
5874   esac
5875
5876 else
5877   with_libxml=no
5878
5879 fi
5880
5881
5882
5883 if test "$with_libxml" = yes ; then
5884   for ac_prog in xml2-config
5885 do
5886   # Extract the first word of "$ac_prog", so it can be a program name with args.
5887 set dummy $ac_prog; ac_word=$2
5888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5891   $as_echo_n "(cached) " >&6
5892 else
5893   if test -n "$XML2_CONFIG"; then
5894   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901   for ac_exec_ext in '' $ac_executable_extensions; do
5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903     ac_cv_prog_XML2_CONFIG="$ac_prog"
5904     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5914 if test -n "$XML2_CONFIG"; then
5915   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5916 $as_echo "$XML2_CONFIG" >&6; }
5917 else
5918   { $as_echo "$as_me:$LINENO: result: no" >&5
5919 $as_echo "no" >&6; }
5920 fi
5921
5922
5923   test -n "$XML2_CONFIG" && break
5924 done
5925
5926   if test -n "$XML2_CONFIG"; then
5927     for pgac_option in `$XML2_CONFIG --cflags`; do
5928       case $pgac_option in
5929         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5930       esac
5931     done
5932     for pgac_option in `$XML2_CONFIG --libs`; do
5933       case $pgac_option in
5934         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5935       esac
5936     done
5937   fi
5938 fi
5939
5940
5941
5942 #
5943 # XSLT
5944 #
5945
5946
5947
5948 # Check whether --with-libxslt was given.
5949 if test "${with_libxslt+set}" = set; then
5950   withval=$with_libxslt;
5951   case $withval in
5952     yes)
5953
5954 cat >>confdefs.h <<\_ACEOF
5955 #define USE_LIBXSLT 1
5956 _ACEOF
5957
5958       ;;
5959     no)
5960       :
5961       ;;
5962     *)
5963       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5964 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5965    { (exit 1); exit 1; }; }
5966       ;;
5967   esac
5968
5969 else
5970   with_libxslt=no
5971
5972 fi
5973
5974
5975
5976
5977
5978
5979 #
5980 # tzdata
5981 #
5982
5983
5984
5985 # Check whether --with-system-tzdata was given.
5986 if test "${with_system_tzdata+set}" = set; then
5987   withval=$with_system_tzdata;
5988   case $withval in
5989     yes)
5990       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5991 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5992    { (exit 1); exit 1; }; }
5993       ;;
5994     no)
5995       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5996 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5997    { (exit 1); exit 1; }; }
5998       ;;
5999     *)
6000
6001       ;;
6002   esac
6003
6004 fi
6005
6006
6007
6008
6009 #
6010 # Zlib
6011 #
6012
6013
6014
6015 # Check whether --with-zlib was given.
6016 if test "${with_zlib+set}" = set; then
6017   withval=$with_zlib;
6018   case $withval in
6019     yes)
6020       :
6021       ;;
6022     no)
6023       :
6024       ;;
6025     *)
6026       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
6027 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
6028    { (exit 1); exit 1; }; }
6029       ;;
6030   esac
6031
6032 else
6033   with_zlib=yes
6034
6035 fi
6036
6037
6038
6039
6040 #
6041 # Elf
6042 #
6043
6044 # Assume system is ELF if it predefines __ELF__ as 1,
6045 # otherwise believe host_os based default.
6046 case $host_os in
6047     freebsd1*|freebsd2*) elf=no;;
6048     freebsd3*|freebsd4*) elf=yes;;
6049 esac
6050
6051
6052 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6053 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6054 if test "${ac_cv_path_GREP+set}" = set; then
6055   $as_echo_n "(cached) " >&6
6056 else
6057   if test -z "$GREP"; then
6058   ac_path_GREP_found=false
6059   # Loop through the user's path and test for each of PROGNAME-LIST
6060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6062 do
6063   IFS=$as_save_IFS
6064   test -z "$as_dir" && as_dir=.
6065   for ac_prog in grep ggrep; do
6066     for ac_exec_ext in '' $ac_executable_extensions; do
6067       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6068       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6069 # Check for GNU ac_path_GREP and select it if it is found.
6070   # Check for GNU $ac_path_GREP
6071 case `"$ac_path_GREP" --version 2>&1` in
6072 *GNU*)
6073   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6074 *)
6075   ac_count=0
6076   $as_echo_n 0123456789 >"conftest.in"
6077   while :
6078   do
6079     cat "conftest.in" "conftest.in" >"conftest.tmp"
6080     mv "conftest.tmp" "conftest.in"
6081     cp "conftest.in" "conftest.nl"
6082     $as_echo 'GREP' >> "conftest.nl"
6083     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6084     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6085     ac_count=`expr $ac_count + 1`
6086     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6087       # Best one so far, save it but keep looking for a better one
6088       ac_cv_path_GREP="$ac_path_GREP"
6089       ac_path_GREP_max=$ac_count
6090     fi
6091     # 10*(2^10) chars as input seems more than enough
6092     test $ac_count -gt 10 && break
6093   done
6094   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6095 esac
6096
6097       $ac_path_GREP_found && break 3
6098     done
6099   done
6100 done
6101 IFS=$as_save_IFS
6102   if test -z "$ac_cv_path_GREP"; then
6103     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6104 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6105    { (exit 1); exit 1; }; }
6106   fi
6107 else
6108   ac_cv_path_GREP=$GREP
6109 fi
6110
6111 fi
6112 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6113 $as_echo "$ac_cv_path_GREP" >&6; }
6114  GREP="$ac_cv_path_GREP"
6115
6116
6117 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6118 $as_echo_n "checking for egrep... " >&6; }
6119 if test "${ac_cv_path_EGREP+set}" = set; then
6120   $as_echo_n "(cached) " >&6
6121 else
6122   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6123    then ac_cv_path_EGREP="$GREP -E"
6124    else
6125      if test -z "$EGREP"; then
6126   ac_path_EGREP_found=false
6127   # Loop through the user's path and test for each of PROGNAME-LIST
6128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6130 do
6131   IFS=$as_save_IFS
6132   test -z "$as_dir" && as_dir=.
6133   for ac_prog in egrep; do
6134     for ac_exec_ext in '' $ac_executable_extensions; do
6135       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6136       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6137 # Check for GNU ac_path_EGREP and select it if it is found.
6138   # Check for GNU $ac_path_EGREP
6139 case `"$ac_path_EGREP" --version 2>&1` in
6140 *GNU*)
6141   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6142 *)
6143   ac_count=0
6144   $as_echo_n 0123456789 >"conftest.in"
6145   while :
6146   do
6147     cat "conftest.in" "conftest.in" >"conftest.tmp"
6148     mv "conftest.tmp" "conftest.in"
6149     cp "conftest.in" "conftest.nl"
6150     $as_echo 'EGREP' >> "conftest.nl"
6151     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6152     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6153     ac_count=`expr $ac_count + 1`
6154     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6155       # Best one so far, save it but keep looking for a better one
6156       ac_cv_path_EGREP="$ac_path_EGREP"
6157       ac_path_EGREP_max=$ac_count
6158     fi
6159     # 10*(2^10) chars as input seems more than enough
6160     test $ac_count -gt 10 && break
6161   done
6162   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6163 esac
6164
6165       $ac_path_EGREP_found && break 3
6166     done
6167   done
6168 done
6169 IFS=$as_save_IFS
6170   if test -z "$ac_cv_path_EGREP"; then
6171     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6172 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6173    { (exit 1); exit 1; }; }
6174   fi
6175 else
6176   ac_cv_path_EGREP=$EGREP
6177 fi
6178
6179    fi
6180 fi
6181 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6182 $as_echo "$ac_cv_path_EGREP" >&6; }
6183  EGREP="$ac_cv_path_EGREP"
6184
6185
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h.  */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h.  */
6192 #if __ELF__
6193   yes
6194 #endif
6195
6196 _ACEOF
6197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6198   $EGREP "yes" >/dev/null 2>&1; then
6199   ELF_SYS=true
6200 else
6201   if test "X$elf" = "Xyes" ; then
6202   ELF_SYS=true
6203 else
6204   ELF_SYS=
6205 fi
6206 fi
6207 rm -f conftest*
6208
6209
6210
6211 #
6212 # Assignments
6213 #
6214
6215 CPPFLAGS="$CPPFLAGS $INCLUDES"
6216 LDFLAGS="$LDFLAGS $LIBDIRS"
6217
6218
6219
6220
6221
6222 # Check whether --with-gnu-ld was given.
6223 if test "${with_gnu_ld+set}" = set; then
6224   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6225 else
6226   with_gnu_ld=no
6227 fi
6228
6229 ac_prog=ld
6230 if test "$GCC" = yes; then
6231   # Check if gcc -print-prog-name=ld gives a path.
6232   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6233 $as_echo_n "checking for ld used by GCC... " >&6; }
6234   case $host in
6235   *-*-mingw*)
6236     # gcc leaves a trailing carriage return which upsets mingw
6237     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6238   *)
6239     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6240   esac
6241   case "$ac_prog" in
6242     # Accept absolute paths.
6243     [\\/]* | [A-Za-z]:[\\/]*)
6244       re_direlt='/[^/][^/]*/\.\./'
6245       # Canonicalize the path of ld
6246       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6247       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6248         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6249       done
6250       test -z "$LD" && LD="$ac_prog"
6251       ;;
6252   "")
6253     # If it fails, then pretend we aren't using GCC.
6254     ac_prog=ld
6255     ;;
6256   *)
6257     # If it is relative, then search for the first ld in PATH.
6258     with_gnu_ld=unknown
6259     ;;
6260   esac
6261 elif test "$with_gnu_ld" = yes; then
6262   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6263 $as_echo_n "checking for GNU ld... " >&6; }
6264 else
6265   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6266 $as_echo_n "checking for non-GNU ld... " >&6; }
6267 fi
6268 if test "${ac_cv_path_LD+set}" = set; then
6269   $as_echo_n "(cached) " >&6
6270 else
6271   if test -z "$LD"; then
6272   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6273   for ac_dir in $PATH; do
6274     test -z "$ac_dir" && ac_dir=.
6275     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6276       ac_cv_path_LD="$ac_dir/$ac_prog"
6277       # Check to see if the program is GNU ld.  I'd rather use --version,
6278       # but apparently some GNU ld's only accept -v.
6279       # Break only if it was the GNU/non-GNU ld that we prefer.
6280       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6281         test "$with_gnu_ld" != no && break
6282       else
6283         test "$with_gnu_ld" != yes && break
6284       fi
6285     fi
6286   done
6287   IFS="$ac_save_ifs"
6288 else
6289   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6290 fi
6291 fi
6292
6293 LD="$ac_cv_path_LD"
6294 if test -n "$LD"; then
6295   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6296 $as_echo "$LD" >&6; }
6297 else
6298   { $as_echo "$as_me:$LINENO: result: no" >&5
6299 $as_echo "no" >&6; }
6300 fi
6301 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6302 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6303    { (exit 1); exit 1; }; }
6304 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6305 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6306 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6307   $as_echo_n "(cached) " >&6
6308 else
6309   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6310 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6311   ac_cv_prog_gnu_ld=yes
6312 else
6313   ac_cv_prog_gnu_ld=no
6314 fi
6315 fi
6316 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6317 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6318 with_gnu_ld=$ac_cv_prog_gnu_ld
6319
6320
6321
6322
6323 case $host_os in sysv5*)
6324   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6325 $as_echo_n "checking whether ld -R works... " >&6; }
6326 if test "${pgac_cv_prog_ld_R+set}" = set; then
6327   $as_echo_n "(cached) " >&6
6328 else
6329
6330     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6331     cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337
6338 int
6339 main ()
6340 {
6341
6342   ;
6343   return 0;
6344 }
6345 _ACEOF
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (ac_try="$ac_link"
6348 case "(($ac_try" in
6349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350   *) ac_try_echo=$ac_try;;
6351 esac
6352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6353 $as_echo "$ac_try_echo") >&5
6354   (eval "$ac_link") 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } && {
6361          test -z "$ac_c_werror_flag" ||
6362          test ! -s conftest.err
6363        } && test -s conftest$ac_exeext && {
6364          test "$cross_compiling" = yes ||
6365          $as_test_x conftest$ac_exeext
6366        }; then
6367   pgac_cv_prog_ld_R=yes
6368 else
6369   $as_echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6371
6372         pgac_cv_prog_ld_R=no
6373 fi
6374
6375 rm -rf conftest.dSYM
6376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6377       conftest$ac_exeext conftest.$ac_ext
6378     LDFLAGS=$pgac_save_LDFLAGS
6379
6380 fi
6381 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6382 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6383   ld_R_works=$pgac_cv_prog_ld_R
6384
6385 esac
6386 if test -n "$ac_tool_prefix"; then
6387   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6388 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_RANLIB+set}" = set; then
6392   $as_echo_n "(cached) " >&6
6393 else
6394   if test -n "$RANLIB"; then
6395   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402   for ac_exec_ext in '' $ac_executable_extensions; do
6403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6405     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409 done
6410 IFS=$as_save_IFS
6411
6412 fi
6413 fi
6414 RANLIB=$ac_cv_prog_RANLIB
6415 if test -n "$RANLIB"; then
6416   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6417 $as_echo "$RANLIB" >&6; }
6418 else
6419   { $as_echo "$as_me:$LINENO: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422
6423
6424 fi
6425 if test -z "$ac_cv_prog_RANLIB"; then
6426   ac_ct_RANLIB=$RANLIB
6427   # Extract the first word of "ranlib", so it can be a program name with args.
6428 set dummy ranlib; ac_word=$2
6429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6432   $as_echo_n "(cached) " >&6
6433 else
6434   if test -n "$ac_ct_RANLIB"; then
6435   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442   for ac_exec_ext in '' $ac_executable_extensions; do
6443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444     ac_cv_prog_ac_ct_RANLIB="ranlib"
6445     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449 done
6450 IFS=$as_save_IFS
6451
6452 fi
6453 fi
6454 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6455 if test -n "$ac_ct_RANLIB"; then
6456   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6457 $as_echo "$ac_ct_RANLIB" >&6; }
6458 else
6459   { $as_echo "$as_me:$LINENO: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462
6463   if test "x$ac_ct_RANLIB" = x; then
6464     RANLIB=":"
6465   else
6466     case $cross_compiling:$ac_tool_warned in
6467 yes:)
6468 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470 ac_tool_warned=yes ;;
6471 esac
6472     RANLIB=$ac_ct_RANLIB
6473   fi
6474 else
6475   RANLIB="$ac_cv_prog_RANLIB"
6476 fi
6477
6478
6479   if test -n "$ac_tool_prefix"; then
6480   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}strip; ac_word=$2
6482 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if test "${ac_cv_prog_STRIP+set}" = set; then
6485   $as_echo_n "(cached) " >&6
6486 else
6487   if test -n "$STRIP"; then
6488   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495   for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6498     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502 done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 STRIP=$ac_cv_prog_STRIP
6508 if test -n "$STRIP"; then
6509   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6510 $as_echo "$STRIP" >&6; }
6511 else
6512   { $as_echo "$as_me:$LINENO: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516
6517 fi
6518 if test -z "$ac_cv_prog_STRIP"; then
6519   ac_ct_STRIP=$STRIP
6520   # Extract the first word of "strip", so it can be a program name with args.
6521 set dummy strip; ac_word=$2
6522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6525   $as_echo_n "(cached) " >&6
6526 else
6527   if test -n "$ac_ct_STRIP"; then
6528   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533   IFS=$as_save_IFS
6534   test -z "$as_dir" && as_dir=.
6535   for ac_exec_ext in '' $ac_executable_extensions; do
6536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537     ac_cv_prog_ac_ct_STRIP="strip"
6538     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539     break 2
6540   fi
6541 done
6542 done
6543 IFS=$as_save_IFS
6544
6545 fi
6546 fi
6547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6548 if test -n "$ac_ct_STRIP"; then
6549   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6550 $as_echo "$ac_ct_STRIP" >&6; }
6551 else
6552   { $as_echo "$as_me:$LINENO: result: no" >&5
6553 $as_echo "no" >&6; }
6554 fi
6555
6556   if test "x$ac_ct_STRIP" = x; then
6557     STRIP=":"
6558   else
6559     case $cross_compiling:$ac_tool_warned in
6560 yes:)
6561 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563 ac_tool_warned=yes ;;
6564 esac
6565     STRIP=$ac_ct_STRIP
6566   fi
6567 else
6568   STRIP="$ac_cv_prog_STRIP"
6569 fi
6570
6571
6572   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6573 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6574   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6575     STRIP_STATIC_LIB="$STRIP -x"
6576     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6577     { $as_echo "$as_me:$LINENO: result: yes" >&5
6578 $as_echo "yes" >&6; }
6579   else
6580     case $host_os in
6581       darwin*)
6582         STRIP="$STRIP -x"
6583         STRIP_STATIC_LIB=$STRIP
6584         STRIP_SHARED_LIB=$STRIP
6585         { $as_echo "$as_me:$LINENO: result: yes" >&5
6586 $as_echo "yes" >&6; }
6587         ;;
6588       *)
6589         STRIP_STATIC_LIB=:
6590         STRIP_SHARED_LIB=:
6591         { $as_echo "$as_me:$LINENO: result: no" >&5
6592 $as_echo "no" >&6; }
6593         ;;
6594     esac
6595   fi
6596
6597
6598
6599 if test -n "$ac_tool_prefix"; then
6600   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}ar; ac_word=$2
6602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if test "${ac_cv_prog_AR+set}" = set; then
6605   $as_echo_n "(cached) " >&6
6606 else
6607   if test -n "$AR"; then
6608   ac_cv_prog_AR="$AR" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613   IFS=$as_save_IFS
6614   test -z "$as_dir" && as_dir=.
6615   for ac_exec_ext in '' $ac_executable_extensions; do
6616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617     ac_cv_prog_AR="${ac_tool_prefix}ar"
6618     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619     break 2
6620   fi
6621 done
6622 done
6623 IFS=$as_save_IFS
6624
6625 fi
6626 fi
6627 AR=$ac_cv_prog_AR
6628 if test -n "$AR"; then
6629   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6630 $as_echo "$AR" >&6; }
6631 else
6632   { $as_echo "$as_me:$LINENO: result: no" >&5
6633 $as_echo "no" >&6; }
6634 fi
6635
6636
6637 fi
6638 if test -z "$ac_cv_prog_AR"; then
6639   ac_ct_AR=$AR
6640   # Extract the first word of "ar", so it can be a program name with args.
6641 set dummy ar; ac_word=$2
6642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6645   $as_echo_n "(cached) " >&6
6646 else
6647   if test -n "$ac_ct_AR"; then
6648   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655   for ac_exec_ext in '' $ac_executable_extensions; do
6656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657     ac_cv_prog_ac_ct_AR="ar"
6658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6668 if test -n "$ac_ct_AR"; then
6669   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6670 $as_echo "$ac_ct_AR" >&6; }
6671 else
6672   { $as_echo "$as_me:$LINENO: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675
6676   if test "x$ac_ct_AR" = x; then
6677     AR="ar"
6678   else
6679     case $cross_compiling:$ac_tool_warned in
6680 yes:)
6681 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6684 esac
6685     AR=$ac_ct_AR
6686   fi
6687 else
6688   AR="$ac_cv_prog_AR"
6689 fi
6690
6691 if test "$PORTNAME" = "win32"; then
6692   if test -n "$ac_tool_prefix"; then
6693   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6698   $as_echo_n "(cached) " >&6
6699 else
6700   if test -n "$DLLTOOL"; then
6701   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708   for ac_exec_ext in '' $ac_executable_extensions; do
6709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6711     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 DLLTOOL=$ac_cv_prog_DLLTOOL
6721 if test -n "$DLLTOOL"; then
6722   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6723 $as_echo "$DLLTOOL" >&6; }
6724 else
6725   { $as_echo "$as_me:$LINENO: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729
6730 fi
6731 if test -z "$ac_cv_prog_DLLTOOL"; then
6732   ac_ct_DLLTOOL=$DLLTOOL
6733   # Extract the first word of "dlltool", so it can be a program name with args.
6734 set dummy dlltool; ac_word=$2
6735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6738   $as_echo_n "(cached) " >&6
6739 else
6740   if test -n "$ac_ct_DLLTOOL"; then
6741   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748   for ac_exec_ext in '' $ac_executable_extensions; do
6749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6751     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755 done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6761 if test -n "$ac_ct_DLLTOOL"; then
6762   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6763 $as_echo "$ac_ct_DLLTOOL" >&6; }
6764 else
6765   { $as_echo "$as_me:$LINENO: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769   if test "x$ac_ct_DLLTOOL" = x; then
6770     DLLTOOL="dlltool"
6771   else
6772     case $cross_compiling:$ac_tool_warned in
6773 yes:)
6774 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6777 esac
6778     DLLTOOL=$ac_ct_DLLTOOL
6779   fi
6780 else
6781   DLLTOOL="$ac_cv_prog_DLLTOOL"
6782 fi
6783
6784   if test -n "$ac_tool_prefix"; then
6785   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6787 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6790   $as_echo_n "(cached) " >&6
6791 else
6792   if test -n "$DLLWRAP"; then
6793   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800   for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6803     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 DLLWRAP=$ac_cv_prog_DLLWRAP
6813 if test -n "$DLLWRAP"; then
6814   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6815 $as_echo "$DLLWRAP" >&6; }
6816 else
6817   { $as_echo "$as_me:$LINENO: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821
6822 fi
6823 if test -z "$ac_cv_prog_DLLWRAP"; then
6824   ac_ct_DLLWRAP=$DLLWRAP
6825   # Extract the first word of "dllwrap", so it can be a program name with args.
6826 set dummy dllwrap; ac_word=$2
6827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6830   $as_echo_n "(cached) " >&6
6831 else
6832   if test -n "$ac_ct_DLLWRAP"; then
6833   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840   for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6843     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6853 if test -n "$ac_ct_DLLWRAP"; then
6854   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6855 $as_echo "$ac_ct_DLLWRAP" >&6; }
6856 else
6857   { $as_echo "$as_me:$LINENO: result: no" >&5
6858 $as_echo "no" >&6; }
6859 fi
6860
6861   if test "x$ac_ct_DLLWRAP" = x; then
6862     DLLWRAP="dllwrap"
6863   else
6864     case $cross_compiling:$ac_tool_warned in
6865 yes:)
6866 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868 ac_tool_warned=yes ;;
6869 esac
6870     DLLWRAP=$ac_ct_DLLWRAP
6871   fi
6872 else
6873   DLLWRAP="$ac_cv_prog_DLLWRAP"
6874 fi
6875
6876   if test -n "$ac_tool_prefix"; then
6877   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6878 set dummy ${ac_tool_prefix}windres; ac_word=$2
6879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if test "${ac_cv_prog_WINDRES+set}" = set; then
6882   $as_echo_n "(cached) " >&6
6883 else
6884   if test -n "$WINDRES"; then
6885   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892   for ac_exec_ext in '' $ac_executable_extensions; do
6893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6895     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896     break 2
6897   fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 WINDRES=$ac_cv_prog_WINDRES
6905 if test -n "$WINDRES"; then
6906   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6907 $as_echo "$WINDRES" >&6; }
6908 else
6909   { $as_echo "$as_me:$LINENO: result: no" >&5
6910 $as_echo "no" >&6; }
6911 fi
6912
6913
6914 fi
6915 if test -z "$ac_cv_prog_WINDRES"; then
6916   ac_ct_WINDRES=$WINDRES
6917   # Extract the first word of "windres", so it can be a program name with args.
6918 set dummy windres; ac_word=$2
6919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6922   $as_echo_n "(cached) " >&6
6923 else
6924   if test -n "$ac_ct_WINDRES"; then
6925   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930   IFS=$as_save_IFS
6931   test -z "$as_dir" && as_dir=.
6932   for ac_exec_ext in '' $ac_executable_extensions; do
6933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934     ac_cv_prog_ac_ct_WINDRES="windres"
6935     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6936     break 2
6937   fi
6938 done
6939 done
6940 IFS=$as_save_IFS
6941
6942 fi
6943 fi
6944 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6945 if test -n "$ac_ct_WINDRES"; then
6946   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6947 $as_echo "$ac_ct_WINDRES" >&6; }
6948 else
6949   { $as_echo "$as_me:$LINENO: result: no" >&5
6950 $as_echo "no" >&6; }
6951 fi
6952
6953   if test "x$ac_ct_WINDRES" = x; then
6954     WINDRES="windres"
6955   else
6956     case $cross_compiling:$ac_tool_warned in
6957 yes:)
6958 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960 ac_tool_warned=yes ;;
6961 esac
6962     WINDRES=$ac_ct_WINDRES
6963   fi
6964 else
6965   WINDRES="$ac_cv_prog_WINDRES"
6966 fi
6967
6968 fi
6969
6970 # Find a good install program.  We prefer a C program (faster),
6971 # so one script is as good as another.  But avoid the broken or
6972 # incompatible versions:
6973 # SysV /etc/install, /usr/sbin/install
6974 # SunOS /usr/etc/install
6975 # IRIX /sbin/install
6976 # AIX /bin/install
6977 # AmigaOS /C/install, which installs bootblocks on floppy discs
6978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6981 # OS/2's system install, which has a completely different semantic
6982 # ./install, which can be erroneously created by make from ./install.sh.
6983 # Reject install programs that cannot install multiple files.
6984 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6985 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6986 if test -z "$INSTALL"; then
6987 if test "${ac_cv_path_install+set}" = set; then
6988   $as_echo_n "(cached) " >&6
6989 else
6990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995   # Account for people who put trailing slashes in PATH elements.
6996 case $as_dir/ in
6997   ./ | .// | /cC/* | \
6998   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6999   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7000   /usr/ucb/* ) ;;
7001   *)
7002     # OSF1 and SCO ODT 3.0 have their own names for install.
7003     # Don't use installbsd from OSF since it installs stuff as root
7004     # by default.
7005     for ac_prog in ginstall scoinst install; do
7006       for ac_exec_ext in '' $ac_executable_extensions; do
7007         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7008           if test $ac_prog = install &&
7009             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7010             # AIX install.  It has an incompatible calling convention.
7011             :
7012           elif test $ac_prog = install &&
7013             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014             # program-specific install script used by HP pwplus--don't use.
7015             :
7016           else
7017             rm -rf conftest.one conftest.two conftest.dir
7018             echo one > conftest.one
7019             echo two > conftest.two
7020             mkdir conftest.dir
7021             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7022               test -s conftest.one && test -s conftest.two &&
7023               test -s conftest.dir/conftest.one &&
7024               test -s conftest.dir/conftest.two
7025             then
7026               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7027               break 3
7028             fi
7029           fi
7030         fi
7031       done
7032     done
7033     ;;
7034 esac
7035
7036 done
7037 IFS=$as_save_IFS
7038
7039 rm -rf conftest.one conftest.two conftest.dir
7040
7041 fi
7042   if test "${ac_cv_path_install+set}" = set; then
7043     INSTALL=$ac_cv_path_install
7044   else
7045     # As a last resort, use the slow shell script.  Don't cache a
7046     # value for INSTALL within a source directory, because that will
7047     # break other packages using the cache if that directory is
7048     # removed, or if the value is a relative name.
7049     INSTALL=$ac_install_sh
7050   fi
7051 fi
7052 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7053 $as_echo "$INSTALL" >&6; }
7054
7055 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7056 # It thinks the first close brace ends the variable substitution.
7057 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7058
7059 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7060
7061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7062
7063 # When Autoconf chooses install-sh as install program it tries to generate
7064 # a relative path to it in each makefile where it subsitutes it. This clashes
7065 # with our Makefile.global concept. This workaround helps.
7066 case $INSTALL in
7067   *install-sh*) install_bin='';;
7068   *) install_bin=$INSTALL;;
7069 esac
7070
7071
7072 # Extract the first word of "tar", so it can be a program name with args.
7073 set dummy tar; ac_word=$2
7074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if test "${ac_cv_path_TAR+set}" = set; then
7077   $as_echo_n "(cached) " >&6
7078 else
7079   case $TAR in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089   for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7092     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096 done
7097 IFS=$as_save_IFS
7098
7099   ;;
7100 esac
7101 fi
7102 TAR=$ac_cv_path_TAR
7103 if test -n "$TAR"; then
7104   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
7105 $as_echo "$TAR" >&6; }
7106 else
7107   { $as_echo "$as_me:$LINENO: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111
7112 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7113 $as_echo_n "checking whether ln -s works... " >&6; }
7114 LN_S=$as_ln_s
7115 if test "$LN_S" = "ln -s"; then
7116   { $as_echo "$as_me:$LINENO: result: yes" >&5
7117 $as_echo "yes" >&6; }
7118 else
7119   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7120 $as_echo "no, using $LN_S" >&6; }
7121 fi
7122
7123 for ac_prog in gawk mawk nawk awk
7124 do
7125   # Extract the first word of "$ac_prog", so it can be a program name with args.
7126 set dummy $ac_prog; ac_word=$2
7127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_AWK+set}" = set; then
7130   $as_echo_n "(cached) " >&6
7131 else
7132   if test -n "$AWK"; then
7133   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_prog_AWK="$ac_prog"
7143     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 AWK=$ac_cv_prog_AWK
7153 if test -n "$AWK"; then
7154   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7155 $as_echo "$AWK" >&6; }
7156 else
7157   { $as_echo "$as_me:$LINENO: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161
7162   test -n "$AWK" && break
7163 done
7164
7165 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7166 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7167 if test -z "$MKDIR_P"; then
7168   if test "${ac_cv_path_mkdir+set}" = set; then
7169   $as_echo_n "(cached) " >&6
7170 else
7171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7173 do
7174   IFS=$as_save_IFS
7175   test -z "$as_dir" && as_dir=.
7176   for ac_prog in mkdir gmkdir; do
7177          for ac_exec_ext in '' $ac_executable_extensions; do
7178            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7179            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7180              'mkdir (GNU coreutils) '* | \
7181              'mkdir (coreutils) '* | \
7182              'mkdir (fileutils) '4.1*)
7183                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7184                break 3;;
7185            esac
7186          done
7187        done
7188 done
7189 IFS=$as_save_IFS
7190
7191 fi
7192
7193   if test "${ac_cv_path_mkdir+set}" = set; then
7194     MKDIR_P="$ac_cv_path_mkdir -p"
7195   else
7196     # As a last resort, use the slow shell script.  Don't cache a
7197     # value for MKDIR_P within a source directory, because that will
7198     # break other packages using the cache if that directory is
7199     # removed, or if the value is a relative name.
7200     test -d ./--version && rmdir ./--version
7201     MKDIR_P="$ac_install_sh -d"
7202   fi
7203 fi
7204 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7205 $as_echo "$MKDIR_P" >&6; }
7206
7207 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7208 # a relative path to it in each makefile where it subsitutes it. This clashes
7209 # with our Makefile.global concept. This workaround helps.
7210 case $MKDIR_P in
7211   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7212 esac
7213
7214 # Let the user override the search
7215 if test -z "$BISON"; then
7216   for ac_prog in bison
7217 do
7218   # Extract the first word of "$ac_prog", so it can be a program name with args.
7219 set dummy $ac_prog; ac_word=$2
7220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_path_BISON+set}" = set; then
7223   $as_echo_n "(cached) " >&6
7224 else
7225   case $BISON in
7226   [\\/]* | ?:[\\/]*)
7227   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7228   ;;
7229   *)
7230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233   IFS=$as_save_IFS
7234   test -z "$as_dir" && as_dir=.
7235   for ac_exec_ext in '' $ac_executable_extensions; do
7236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7238     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239     break 2
7240   fi
7241 done
7242 done
7243 IFS=$as_save_IFS
7244
7245   ;;
7246 esac
7247 fi
7248 BISON=$ac_cv_path_BISON
7249 if test -n "$BISON"; then
7250   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7251 $as_echo "$BISON" >&6; }
7252 else
7253   { $as_echo "$as_me:$LINENO: result: no" >&5
7254 $as_echo "no" >&6; }
7255 fi
7256
7257
7258   test -n "$BISON" && break
7259 done
7260
7261 fi
7262
7263 if test "$BISON"; then
7264   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7265   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7266 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7267   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7268   then
7269     { $as_echo "$as_me:$LINENO: WARNING:
7270 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7271 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7272 $as_echo "$as_me: WARNING:
7273 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7274 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7275     BISON=""
7276   fi
7277 fi
7278
7279 if test -z "$BISON"; then
7280   { $as_echo "$as_me:$LINENO: WARNING:
7281 *** Without Bison you will not be able to build PostgreSQL from Git nor
7282 *** change any of the parser definition files.  You can obtain Bison from
7283 *** a GNU mirror site.  (If you are using the official distribution of
7284 *** PostgreSQL then you do not need to worry about this, because the Bison
7285 *** output is pre-generated.)" >&5
7286 $as_echo "$as_me: WARNING:
7287 *** Without Bison you will not be able to build PostgreSQL from Git nor
7288 *** change any of the parser definition files.  You can obtain Bison from
7289 *** a GNU mirror site.  (If you are using the official distribution of
7290 *** PostgreSQL then you do not need to worry about this, because the Bison
7291 *** output is pre-generated.)" >&2;}
7292 fi
7293 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7294
7295
7296 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7297 $as_echo_n "checking for flex... " >&6; }
7298 if test "${pgac_cv_path_flex+set}" = set; then
7299   $as_echo_n "(cached) " >&6
7300 else
7301   # Let the user override the test
7302 if test -n "$FLEX"; then
7303   pgac_cv_path_flex=$FLEX
7304 else
7305   pgac_save_IFS=$IFS
7306   IFS=$PATH_SEPARATOR
7307   for pgac_dir in $PATH; do
7308     IFS=$pgac_save_IFS
7309     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7310       pgac_dir=`pwd`
7311     fi
7312     for pgac_prog in flex lex; do
7313       pgac_candidate="$pgac_dir/$pgac_prog"
7314       if test -f "$pgac_candidate" \
7315         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7316       then
7317         echo '%%'  > conftest.l
7318         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7319           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7320           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7321           then
7322             pgac_cv_path_flex=$pgac_candidate
7323             break 2
7324           else
7325             { $as_echo "$as_me:$LINENO: WARNING:
7326 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7327 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7328 $as_echo "$as_me: WARNING:
7329 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7330 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7331           fi
7332         fi
7333       fi
7334     done
7335   done
7336   rm -f conftest.l lex.yy.c
7337   : ${pgac_cv_path_flex=no}
7338 fi
7339
7340 fi
7341 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7342 $as_echo "$pgac_cv_path_flex" >&6; }
7343 if test x"$pgac_cv_path_flex" = x"no"; then
7344   { $as_echo "$as_me:$LINENO: WARNING:
7345 *** Without Flex you will not be able to build PostgreSQL from Git nor
7346 *** change any of the scanner definition files.  You can obtain Flex from
7347 *** a GNU mirror site.  (If you are using the official distribution of
7348 *** PostgreSQL then you do not need to worry about this because the Flex
7349 *** output is pre-generated.)" >&5
7350 $as_echo "$as_me: WARNING:
7351 *** Without Flex you will not be able to build PostgreSQL from Git nor
7352 *** change any of the scanner definition files.  You can obtain Flex from
7353 *** a GNU mirror site.  (If you are using the official distribution of
7354 *** PostgreSQL then you do not need to worry about this because the Flex
7355 *** output is pre-generated.)" >&2;}
7356
7357   FLEX=
7358 else
7359   FLEX=$pgac_cv_path_flex
7360   pgac_flex_version=`$FLEX --version 2>/dev/null`
7361   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7362 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7363 fi
7364
7365
7366
7367
7368
7369 # Let the user override the search
7370 if test -z "$PERL"; then
7371   # Extract the first word of "perl", so it can be a program name with args.
7372 set dummy perl; ac_word=$2
7373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_path_PERL+set}" = set; then
7376   $as_echo_n "(cached) " >&6
7377 else
7378   case $PERL in
7379   [\\/]* | ?:[\\/]*)
7380   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7381   ;;
7382   *)
7383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388   for ac_exec_ext in '' $ac_executable_extensions; do
7389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7391     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398   ;;
7399 esac
7400 fi
7401 PERL=$ac_cv_path_PERL
7402 if test -n "$PERL"; then
7403   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7404 $as_echo "$PERL" >&6; }
7405 else
7406   { $as_echo "$as_me:$LINENO: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410
7411 fi
7412
7413 if test "$PERL"; then
7414   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'`
7415   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7416 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7417   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7418     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7419   then
7420     { $as_echo "$as_me:$LINENO: WARNING:
7421 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7422 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7423 $as_echo "$as_me: WARNING:
7424 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7425 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7426     PERL=""
7427   fi
7428 fi
7429
7430 if test -z "$PERL"; then
7431   { $as_echo "$as_me:$LINENO: WARNING:
7432 *** Without Perl you will not be able to build PostgreSQL from Git.
7433 *** You can obtain Perl from any CPAN mirror site.
7434 *** (If you are using the official distribution of PostgreSQL then you do not
7435 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7436 $as_echo "$as_me: WARNING:
7437 *** Without Perl you will not be able to build PostgreSQL from Git.
7438 *** You can obtain Perl from any CPAN mirror site.
7439 *** (If you are using the official distribution of PostgreSQL then you do not
7440 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7441 fi
7442
7443 if test "$with_perl" = yes; then
7444   if test -z "$PERL"; then
7445     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7446 $as_echo "$as_me: error: Perl not found" >&2;}
7447    { (exit 1); exit 1; }; }
7448   fi
7449
7450 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7451 $as_echo_n "checking for Perl archlibexp... " >&6; }
7452 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7453 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7454 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7455 $as_echo "$perl_archlibexp" >&6; }
7456 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7457 $as_echo_n "checking for Perl privlibexp... " >&6; }
7458 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7459 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7460 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7461 $as_echo "$perl_privlibexp" >&6; }
7462 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7463 $as_echo_n "checking for Perl useshrplib... " >&6; }
7464 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7465 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7466 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7467 $as_echo "$perl_useshrplib" >&6; }
7468
7469 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7470 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7471 if test "$PORTNAME" = "win32" ; then
7472 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7473 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7474 else
7475 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7476 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7477 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7478 fi
7479 if test -z "$perl_embed_ldflags" ; then
7480         { $as_echo "$as_me:$LINENO: result: no" >&5
7481 $as_echo "no" >&6; }
7482         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7483 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7484 installed." >&5
7485 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7486 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7487 installed." >&2;}
7488    { (exit 1); exit 1; }; }
7489 else
7490         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7491 $as_echo "$perl_embed_ldflags" >&6; }
7492 fi
7493
7494 fi
7495
7496 if test "$with_python" = yes; then
7497   # Extract the first word of "python", so it can be a program name with args.
7498 set dummy python; ac_word=$2
7499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if test "${ac_cv_path_PYTHON+set}" = set; then
7502   $as_echo_n "(cached) " >&6
7503 else
7504   case $PYTHON in
7505   [\\/]* | ?:[\\/]*)
7506   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7507   ;;
7508   *)
7509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514   for ac_exec_ext in '' $ac_executable_extensions; do
7515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7517     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524   ;;
7525 esac
7526 fi
7527 PYTHON=$ac_cv_path_PYTHON
7528 if test -n "$PYTHON"; then
7529   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7530 $as_echo "$PYTHON" >&6; }
7531 else
7532   { $as_echo "$as_me:$LINENO: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535
7536
7537 if test x"$PYTHON" = x""; then
7538   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7539 $as_echo "$as_me: error: Python not found" >&2;}
7540    { (exit 1); exit 1; }; }
7541 fi
7542
7543
7544 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7545 $as_echo_n "checking for Python distutils module... " >&6; }
7546 if "${PYTHON}" -c 'import distutils' 2>&5
7547 then
7548     { $as_echo "$as_me:$LINENO: result: yes" >&5
7549 $as_echo "yes" >&6; }
7550 else
7551     { $as_echo "$as_me:$LINENO: result: no" >&5
7552 $as_echo "no" >&6; }
7553     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7554 $as_echo "$as_me: error: distutils module not found" >&2;}
7555    { (exit 1); exit 1; }; }
7556 fi
7557 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7558 $as_echo_n "checking Python configuration directory... " >&6; }
7559 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7560 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7561 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7562 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7563 $as_echo "$python_configdir" >&6; }
7564
7565 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7566 $as_echo_n "checking Python include directories... " >&6; }
7567 python_includespec=`${PYTHON} -c "
7568 import distutils.sysconfig
7569 a = '-I' + distutils.sysconfig.get_python_inc(False)
7570 b = '-I' + distutils.sysconfig.get_python_inc(True)
7571 if a == b:
7572     print(a)
7573 else:
7574     print(a + ' ' + b)"`
7575 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7576 $as_echo "$python_includespec" >&6; }
7577
7578
7579
7580 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7581 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7582
7583 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7584 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7585 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7586 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7587 python_framework=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORK'))))"`
7588 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7589
7590 if test -n "$python_framework"; then
7591         python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7592         python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7593         python_enable_shared=1
7594 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7595 then
7596         # New way: use the official shared library
7597         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7598         python_libspec="-L${python_libdir} -l${ldlibrary}"
7599 else
7600         # Old way: use libpython from python_configdir
7601         python_libdir="${python_configdir}"
7602         # LDVERSION was introduced in Python 3.2.
7603         python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7604         if test x"${python_ldversion}" = x""; then
7605                 python_ldversion=$python_version
7606         fi
7607         python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7608 fi
7609
7610 if test -z "$python_framework"; then
7611         python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7612 fi
7613
7614 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7615 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7616
7617
7618 # threaded python is not supported on OpenBSD
7619 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7620 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7621 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7622 if test "$pythreads" = "1"; then
7623   { $as_echo "$as_me:$LINENO: result: yes" >&5
7624 $as_echo "yes" >&6; }
7625   case $host_os in
7626   openbsd*)
7627     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7628 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7629    { (exit 1); exit 1; }; }
7630     ;;
7631   esac
7632 else
7633   { $as_echo "$as_me:$LINENO: result: no" >&5
7634 $as_echo "no" >&6; }
7635 fi
7636
7637
7638 fi
7639
7640 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7641   # Extract the first word of "zic", so it can be a program name with args.
7642 set dummy zic; ac_word=$2
7643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_path_ZIC+set}" = set; then
7646   $as_echo_n "(cached) " >&6
7647 else
7648   case $ZIC in
7649   [\\/]* | ?:[\\/]*)
7650   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7651   ;;
7652   *)
7653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654 for as_dir in $PATH
7655 do
7656   IFS=$as_save_IFS
7657   test -z "$as_dir" && as_dir=.
7658   for ac_exec_ext in '' $ac_executable_extensions; do
7659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7661     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662     break 2
7663   fi
7664 done
7665 done
7666 IFS=$as_save_IFS
7667
7668   ;;
7669 esac
7670 fi
7671 ZIC=$ac_cv_path_ZIC
7672 if test -n "$ZIC"; then
7673   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7674 $as_echo "$ZIC" >&6; }
7675 else
7676   { $as_echo "$as_me:$LINENO: result: no" >&5
7677 $as_echo "no" >&6; }
7678 fi
7679
7680
7681   if test -z "$ZIC"; then
7682     { { $as_echo "$as_me:$LINENO: error:
7683 When cross-compiling, either use the option --with-system-tzdata to use
7684 existing time-zone data, or set the environment variable ZIC to a zic
7685 program to use during the build." >&5
7686 $as_echo "$as_me: error:
7687 When cross-compiling, either use the option --with-system-tzdata to use
7688 existing time-zone data, or set the environment variable ZIC to a zic
7689 program to use during the build." >&2;}
7690    { (exit 1); exit 1; }; }
7691   fi
7692 fi
7693
7694
7695 ##
7696 ## Libraries
7697 ##
7698 ## Most libraries are included only if they demonstrably provide a function
7699 ## we need, but libm is an exception: always include it, because there are
7700 ## too many compilers that play cute optimization games that will break
7701 ## probes for standard functions such as pow().
7702 ##
7703
7704
7705 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7706 $as_echo_n "checking for main in -lm... " >&6; }
7707 if test "${ac_cv_lib_m_main+set}" = set; then
7708   $as_echo_n "(cached) " >&6
7709 else
7710   ac_check_lib_save_LIBS=$LIBS
7711 LIBS="-lm  $LIBS"
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h.  */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h.  */
7718
7719
7720 int
7721 main ()
7722 {
7723 return main ();
7724   ;
7725   return 0;
7726 }
7727 _ACEOF
7728 rm -f conftest.$ac_objext conftest$ac_exeext
7729 if { (ac_try="$ac_link"
7730 case "(($ac_try" in
7731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732   *) ac_try_echo=$ac_try;;
7733 esac
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736   (eval "$ac_link") 2>conftest.er1
7737   ac_status=$?
7738   grep -v '^ *+' conftest.er1 >conftest.err
7739   rm -f conftest.er1
7740   cat conftest.err >&5
7741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); } && {
7743          test -z "$ac_c_werror_flag" ||
7744          test ! -s conftest.err
7745        } && test -s conftest$ac_exeext && {
7746          test "$cross_compiling" = yes ||
7747          $as_test_x conftest$ac_exeext
7748        }; then
7749   ac_cv_lib_m_main=yes
7750 else
7751   $as_echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754         ac_cv_lib_m_main=no
7755 fi
7756
7757 rm -rf conftest.dSYM
7758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7759       conftest$ac_exeext conftest.$ac_ext
7760 LIBS=$ac_check_lib_save_LIBS
7761 fi
7762 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7763 $as_echo "$ac_cv_lib_m_main" >&6; }
7764 if test "x$ac_cv_lib_m_main" = x""yes; then
7765   cat >>confdefs.h <<_ACEOF
7766 #define HAVE_LIBM 1
7767 _ACEOF
7768
7769   LIBS="-lm $LIBS"
7770
7771 fi
7772
7773 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7774 $as_echo_n "checking for library containing setproctitle... " >&6; }
7775 if test "${ac_cv_search_setproctitle+set}" = set; then
7776   $as_echo_n "(cached) " >&6
7777 else
7778   ac_func_search_save_LIBS=$LIBS
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h.  */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h.  */
7785
7786 /* Override any GCC internal prototype to avoid an error.
7787    Use char because int might match the return type of a GCC
7788    builtin and then its argument prototype would still apply.  */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 char setproctitle ();
7793 int
7794 main ()
7795 {
7796 return setproctitle ();
7797   ;
7798   return 0;
7799 }
7800 _ACEOF
7801 for ac_lib in '' util; do
7802   if test -z "$ac_lib"; then
7803     ac_res="none required"
7804   else
7805     ac_res=-l$ac_lib
7806     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7807   fi
7808   rm -f conftest.$ac_objext conftest$ac_exeext
7809 if { (ac_try="$ac_link"
7810 case "(($ac_try" in
7811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812   *) ac_try_echo=$ac_try;;
7813 esac
7814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7815 $as_echo "$ac_try_echo") >&5
7816   (eval "$ac_link") 2>conftest.er1
7817   ac_status=$?
7818   grep -v '^ *+' conftest.er1 >conftest.err
7819   rm -f conftest.er1
7820   cat conftest.err >&5
7821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); } && {
7823          test -z "$ac_c_werror_flag" ||
7824          test ! -s conftest.err
7825        } && test -s conftest$ac_exeext && {
7826          test "$cross_compiling" = yes ||
7827          $as_test_x conftest$ac_exeext
7828        }; then
7829   ac_cv_search_setproctitle=$ac_res
7830 else
7831   $as_echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7833
7834
7835 fi
7836
7837 rm -rf conftest.dSYM
7838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7839       conftest$ac_exeext
7840   if test "${ac_cv_search_setproctitle+set}" = set; then
7841   break
7842 fi
7843 done
7844 if test "${ac_cv_search_setproctitle+set}" = set; then
7845   :
7846 else
7847   ac_cv_search_setproctitle=no
7848 fi
7849 rm conftest.$ac_ext
7850 LIBS=$ac_func_search_save_LIBS
7851 fi
7852 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7853 $as_echo "$ac_cv_search_setproctitle" >&6; }
7854 ac_res=$ac_cv_search_setproctitle
7855 if test "$ac_res" != no; then
7856   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7857
7858 fi
7859
7860 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7861 $as_echo_n "checking for library containing dlopen... " >&6; }
7862 if test "${ac_cv_search_dlopen+set}" = set; then
7863   $as_echo_n "(cached) " >&6
7864 else
7865   ac_func_search_save_LIBS=$LIBS
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h.  */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h.  */
7872
7873 /* Override any GCC internal prototype to avoid an error.
7874    Use char because int might match the return type of a GCC
7875    builtin and then its argument prototype would still apply.  */
7876 #ifdef __cplusplus
7877 extern "C"
7878 #endif
7879 char dlopen ();
7880 int
7881 main ()
7882 {
7883 return dlopen ();
7884   ;
7885   return 0;
7886 }
7887 _ACEOF
7888 for ac_lib in '' dl; do
7889   if test -z "$ac_lib"; then
7890     ac_res="none required"
7891   else
7892     ac_res=-l$ac_lib
7893     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7894   fi
7895   rm -f conftest.$ac_objext conftest$ac_exeext
7896 if { (ac_try="$ac_link"
7897 case "(($ac_try" in
7898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899   *) ac_try_echo=$ac_try;;
7900 esac
7901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7902 $as_echo "$ac_try_echo") >&5
7903   (eval "$ac_link") 2>conftest.er1
7904   ac_status=$?
7905   grep -v '^ *+' conftest.er1 >conftest.err
7906   rm -f conftest.er1
7907   cat conftest.err >&5
7908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } && {
7910          test -z "$ac_c_werror_flag" ||
7911          test ! -s conftest.err
7912        } && test -s conftest$ac_exeext && {
7913          test "$cross_compiling" = yes ||
7914          $as_test_x conftest$ac_exeext
7915        }; then
7916   ac_cv_search_dlopen=$ac_res
7917 else
7918   $as_echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921
7922 fi
7923
7924 rm -rf conftest.dSYM
7925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7926       conftest$ac_exeext
7927   if test "${ac_cv_search_dlopen+set}" = set; then
7928   break
7929 fi
7930 done
7931 if test "${ac_cv_search_dlopen+set}" = set; then
7932   :
7933 else
7934   ac_cv_search_dlopen=no
7935 fi
7936 rm conftest.$ac_ext
7937 LIBS=$ac_func_search_save_LIBS
7938 fi
7939 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7940 $as_echo "$ac_cv_search_dlopen" >&6; }
7941 ac_res=$ac_cv_search_dlopen
7942 if test "$ac_res" != no; then
7943   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7944
7945 fi
7946
7947 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7948 $as_echo_n "checking for library containing socket... " >&6; }
7949 if test "${ac_cv_search_socket+set}" = set; then
7950   $as_echo_n "(cached) " >&6
7951 else
7952   ac_func_search_save_LIBS=$LIBS
7953 cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h.  */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h.  */
7959
7960 /* Override any GCC internal prototype to avoid an error.
7961    Use char because int might match the return type of a GCC
7962    builtin and then its argument prototype would still apply.  */
7963 #ifdef __cplusplus
7964 extern "C"
7965 #endif
7966 char socket ();
7967 int
7968 main ()
7969 {
7970 return socket ();
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 for ac_lib in '' socket wsock32; do
7976   if test -z "$ac_lib"; then
7977     ac_res="none required"
7978   else
7979     ac_res=-l$ac_lib
7980     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7981   fi
7982   rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (ac_try="$ac_link"
7984 case "(($ac_try" in
7985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986   *) ac_try_echo=$ac_try;;
7987 esac
7988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7989 $as_echo "$ac_try_echo") >&5
7990   (eval "$ac_link") 2>conftest.er1
7991   ac_status=$?
7992   grep -v '^ *+' conftest.er1 >conftest.err
7993   rm -f conftest.er1
7994   cat conftest.err >&5
7995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996   (exit $ac_status); } && {
7997          test -z "$ac_c_werror_flag" ||
7998          test ! -s conftest.err
7999        } && test -s conftest$ac_exeext && {
8000          test "$cross_compiling" = yes ||
8001          $as_test_x conftest$ac_exeext
8002        }; then
8003   ac_cv_search_socket=$ac_res
8004 else
8005   $as_echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008
8009 fi
8010
8011 rm -rf conftest.dSYM
8012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8013       conftest$ac_exeext
8014   if test "${ac_cv_search_socket+set}" = set; then
8015   break
8016 fi
8017 done
8018 if test "${ac_cv_search_socket+set}" = set; then
8019   :
8020 else
8021   ac_cv_search_socket=no
8022 fi
8023 rm conftest.$ac_ext
8024 LIBS=$ac_func_search_save_LIBS
8025 fi
8026 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8027 $as_echo "$ac_cv_search_socket" >&6; }
8028 ac_res=$ac_cv_search_socket
8029 if test "$ac_res" != no; then
8030   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8031
8032 fi
8033
8034 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
8035 $as_echo_n "checking for library containing shl_load... " >&6; }
8036 if test "${ac_cv_search_shl_load+set}" = set; then
8037   $as_echo_n "(cached) " >&6
8038 else
8039   ac_func_search_save_LIBS=$LIBS
8040 cat >conftest.$ac_ext <<_ACEOF
8041 /* confdefs.h.  */
8042 _ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h.  */
8046
8047 /* Override any GCC internal prototype to avoid an error.
8048    Use char because int might match the return type of a GCC
8049    builtin and then its argument prototype would still apply.  */
8050 #ifdef __cplusplus
8051 extern "C"
8052 #endif
8053 char shl_load ();
8054 int
8055 main ()
8056 {
8057 return shl_load ();
8058   ;
8059   return 0;
8060 }
8061 _ACEOF
8062 for ac_lib in '' dld; do
8063   if test -z "$ac_lib"; then
8064     ac_res="none required"
8065   else
8066     ac_res=-l$ac_lib
8067     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8068   fi
8069   rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8071 case "(($ac_try" in
8072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073   *) ac_try_echo=$ac_try;;
8074 esac
8075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8076 $as_echo "$ac_try_echo") >&5
8077   (eval "$ac_link") 2>conftest.er1
8078   ac_status=$?
8079   grep -v '^ *+' conftest.er1 >conftest.err
8080   rm -f conftest.er1
8081   cat conftest.err >&5
8082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } && {
8084          test -z "$ac_c_werror_flag" ||
8085          test ! -s conftest.err
8086        } && test -s conftest$ac_exeext && {
8087          test "$cross_compiling" = yes ||
8088          $as_test_x conftest$ac_exeext
8089        }; then
8090   ac_cv_search_shl_load=$ac_res
8091 else
8092   $as_echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095
8096 fi
8097
8098 rm -rf conftest.dSYM
8099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8100       conftest$ac_exeext
8101   if test "${ac_cv_search_shl_load+set}" = set; then
8102   break
8103 fi
8104 done
8105 if test "${ac_cv_search_shl_load+set}" = set; then
8106   :
8107 else
8108   ac_cv_search_shl_load=no
8109 fi
8110 rm conftest.$ac_ext
8111 LIBS=$ac_func_search_save_LIBS
8112 fi
8113 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
8114 $as_echo "$ac_cv_search_shl_load" >&6; }
8115 ac_res=$ac_cv_search_shl_load
8116 if test "$ac_res" != no; then
8117   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8118
8119 fi
8120
8121 # We only use libld in port/dynloader/aix.c
8122 case $host_os in
8123      aix*)
8124         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
8125 $as_echo_n "checking for library containing ldopen... " >&6; }
8126 if test "${ac_cv_search_ldopen+set}" = set; then
8127   $as_echo_n "(cached) " >&6
8128 else
8129   ac_func_search_save_LIBS=$LIBS
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136
8137 /* Override any GCC internal prototype to avoid an error.
8138    Use char because int might match the return type of a GCC
8139    builtin and then its argument prototype would still apply.  */
8140 #ifdef __cplusplus
8141 extern "C"
8142 #endif
8143 char ldopen ();
8144 int
8145 main ()
8146 {
8147 return ldopen ();
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 for ac_lib in '' ld; do
8153   if test -z "$ac_lib"; then
8154     ac_res="none required"
8155   else
8156     ac_res=-l$ac_lib
8157     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8158   fi
8159   rm -f conftest.$ac_objext conftest$ac_exeext
8160 if { (ac_try="$ac_link"
8161 case "(($ac_try" in
8162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163   *) ac_try_echo=$ac_try;;
8164 esac
8165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8166 $as_echo "$ac_try_echo") >&5
8167   (eval "$ac_link") 2>conftest.er1
8168   ac_status=$?
8169   grep -v '^ *+' conftest.er1 >conftest.err
8170   rm -f conftest.er1
8171   cat conftest.err >&5
8172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); } && {
8174          test -z "$ac_c_werror_flag" ||
8175          test ! -s conftest.err
8176        } && test -s conftest$ac_exeext && {
8177          test "$cross_compiling" = yes ||
8178          $as_test_x conftest$ac_exeext
8179        }; then
8180   ac_cv_search_ldopen=$ac_res
8181 else
8182   $as_echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185
8186 fi
8187
8188 rm -rf conftest.dSYM
8189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8190       conftest$ac_exeext
8191   if test "${ac_cv_search_ldopen+set}" = set; then
8192   break
8193 fi
8194 done
8195 if test "${ac_cv_search_ldopen+set}" = set; then
8196   :
8197 else
8198   ac_cv_search_ldopen=no
8199 fi
8200 rm conftest.$ac_ext
8201 LIBS=$ac_func_search_save_LIBS
8202 fi
8203 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8204 $as_echo "$ac_cv_search_ldopen" >&6; }
8205 ac_res=$ac_cv_search_ldopen
8206 if test "$ac_res" != no; then
8207   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8208
8209 fi
8210
8211         ;;
8212 esac
8213 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8214 $as_echo_n "checking for library containing getopt_long... " >&6; }
8215 if test "${ac_cv_search_getopt_long+set}" = set; then
8216   $as_echo_n "(cached) " >&6
8217 else
8218   ac_func_search_save_LIBS=$LIBS
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h.  */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h.  */
8225
8226 /* Override any GCC internal prototype to avoid an error.
8227    Use char because int might match the return type of a GCC
8228    builtin and then its argument prototype would still apply.  */
8229 #ifdef __cplusplus
8230 extern "C"
8231 #endif
8232 char getopt_long ();
8233 int
8234 main ()
8235 {
8236 return getopt_long ();
8237   ;
8238   return 0;
8239 }
8240 _ACEOF
8241 for ac_lib in '' getopt gnugetopt; do
8242   if test -z "$ac_lib"; then
8243     ac_res="none required"
8244   else
8245     ac_res=-l$ac_lib
8246     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8247   fi
8248   rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (ac_try="$ac_link"
8250 case "(($ac_try" in
8251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252   *) ac_try_echo=$ac_try;;
8253 esac
8254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8255 $as_echo "$ac_try_echo") >&5
8256   (eval "$ac_link") 2>conftest.er1
8257   ac_status=$?
8258   grep -v '^ *+' conftest.er1 >conftest.err
8259   rm -f conftest.er1
8260   cat conftest.err >&5
8261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); } && {
8263          test -z "$ac_c_werror_flag" ||
8264          test ! -s conftest.err
8265        } && test -s conftest$ac_exeext && {
8266          test "$cross_compiling" = yes ||
8267          $as_test_x conftest$ac_exeext
8268        }; then
8269   ac_cv_search_getopt_long=$ac_res
8270 else
8271   $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274
8275 fi
8276
8277 rm -rf conftest.dSYM
8278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8279       conftest$ac_exeext
8280   if test "${ac_cv_search_getopt_long+set}" = set; then
8281   break
8282 fi
8283 done
8284 if test "${ac_cv_search_getopt_long+set}" = set; then
8285   :
8286 else
8287   ac_cv_search_getopt_long=no
8288 fi
8289 rm conftest.$ac_ext
8290 LIBS=$ac_func_search_save_LIBS
8291 fi
8292 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8293 $as_echo "$ac_cv_search_getopt_long" >&6; }
8294 ac_res=$ac_cv_search_getopt_long
8295 if test "$ac_res" != no; then
8296   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8297
8298 fi
8299
8300 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8301 $as_echo_n "checking for library containing crypt... " >&6; }
8302 if test "${ac_cv_search_crypt+set}" = set; then
8303   $as_echo_n "(cached) " >&6
8304 else
8305   ac_func_search_save_LIBS=$LIBS
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h.  */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h.  */
8312
8313 /* Override any GCC internal prototype to avoid an error.
8314    Use char because int might match the return type of a GCC
8315    builtin and then its argument prototype would still apply.  */
8316 #ifdef __cplusplus
8317 extern "C"
8318 #endif
8319 char crypt ();
8320 int
8321 main ()
8322 {
8323 return crypt ();
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 for ac_lib in '' crypt; do
8329   if test -z "$ac_lib"; then
8330     ac_res="none required"
8331   else
8332     ac_res=-l$ac_lib
8333     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8334   fi
8335   rm -f conftest.$ac_objext conftest$ac_exeext
8336 if { (ac_try="$ac_link"
8337 case "(($ac_try" in
8338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339   *) ac_try_echo=$ac_try;;
8340 esac
8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342 $as_echo "$ac_try_echo") >&5
8343   (eval "$ac_link") 2>conftest.er1
8344   ac_status=$?
8345   grep -v '^ *+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } && {
8350          test -z "$ac_c_werror_flag" ||
8351          test ! -s conftest.err
8352        } && test -s conftest$ac_exeext && {
8353          test "$cross_compiling" = yes ||
8354          $as_test_x conftest$ac_exeext
8355        }; then
8356   ac_cv_search_crypt=$ac_res
8357 else
8358   $as_echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361
8362 fi
8363
8364 rm -rf conftest.dSYM
8365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8366       conftest$ac_exeext
8367   if test "${ac_cv_search_crypt+set}" = set; then
8368   break
8369 fi
8370 done
8371 if test "${ac_cv_search_crypt+set}" = set; then
8372   :
8373 else
8374   ac_cv_search_crypt=no
8375 fi
8376 rm conftest.$ac_ext
8377 LIBS=$ac_func_search_save_LIBS
8378 fi
8379 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8380 $as_echo "$ac_cv_search_crypt" >&6; }
8381 ac_res=$ac_cv_search_crypt
8382 if test "$ac_res" != no; then
8383   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8384
8385 fi
8386
8387 # Solaris:
8388 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8389 $as_echo_n "checking for library containing fdatasync... " >&6; }
8390 if test "${ac_cv_search_fdatasync+set}" = set; then
8391   $as_echo_n "(cached) " >&6
8392 else
8393   ac_func_search_save_LIBS=$LIBS
8394 cat >conftest.$ac_ext <<_ACEOF
8395 /* confdefs.h.  */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h.  */
8400
8401 /* Override any GCC internal prototype to avoid an error.
8402    Use char because int might match the return type of a GCC
8403    builtin and then its argument prototype would still apply.  */
8404 #ifdef __cplusplus
8405 extern "C"
8406 #endif
8407 char fdatasync ();
8408 int
8409 main ()
8410 {
8411 return fdatasync ();
8412   ;
8413   return 0;
8414 }
8415 _ACEOF
8416 for ac_lib in '' rt posix4; do
8417   if test -z "$ac_lib"; then
8418     ac_res="none required"
8419   else
8420     ac_res=-l$ac_lib
8421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8422   fi
8423   rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (ac_try="$ac_link"
8425 case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8430 $as_echo "$ac_try_echo") >&5
8431   (eval "$ac_link") 2>conftest.er1
8432   ac_status=$?
8433   grep -v '^ *+' conftest.er1 >conftest.err
8434   rm -f conftest.er1
8435   cat conftest.err >&5
8436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); } && {
8438          test -z "$ac_c_werror_flag" ||
8439          test ! -s conftest.err
8440        } && test -s conftest$ac_exeext && {
8441          test "$cross_compiling" = yes ||
8442          $as_test_x conftest$ac_exeext
8443        }; then
8444   ac_cv_search_fdatasync=$ac_res
8445 else
8446   $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449
8450 fi
8451
8452 rm -rf conftest.dSYM
8453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8454       conftest$ac_exeext
8455   if test "${ac_cv_search_fdatasync+set}" = set; then
8456   break
8457 fi
8458 done
8459 if test "${ac_cv_search_fdatasync+set}" = set; then
8460   :
8461 else
8462   ac_cv_search_fdatasync=no
8463 fi
8464 rm conftest.$ac_ext
8465 LIBS=$ac_func_search_save_LIBS
8466 fi
8467 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8468 $as_echo "$ac_cv_search_fdatasync" >&6; }
8469 ac_res=$ac_cv_search_fdatasync
8470 if test "$ac_res" != no; then
8471   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8472
8473 fi
8474
8475 # Required for thread_test.c on Solaris 2.5:
8476 # Other ports use it too (HP-UX) so test unconditionally
8477 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8478 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8479 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8480   $as_echo_n "(cached) " >&6
8481 else
8482   ac_func_search_save_LIBS=$LIBS
8483 cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h.  */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h.  */
8489
8490 /* Override any GCC internal prototype to avoid an error.
8491    Use char because int might match the return type of a GCC
8492    builtin and then its argument prototype would still apply.  */
8493 #ifdef __cplusplus
8494 extern "C"
8495 #endif
8496 char gethostbyname_r ();
8497 int
8498 main ()
8499 {
8500 return gethostbyname_r ();
8501   ;
8502   return 0;
8503 }
8504 _ACEOF
8505 for ac_lib in '' nsl; do
8506   if test -z "$ac_lib"; then
8507     ac_res="none required"
8508   else
8509     ac_res=-l$ac_lib
8510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8511   fi
8512   rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (ac_try="$ac_link"
8514 case "(($ac_try" in
8515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516   *) ac_try_echo=$ac_try;;
8517 esac
8518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8519 $as_echo "$ac_try_echo") >&5
8520   (eval "$ac_link") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } && {
8527          test -z "$ac_c_werror_flag" ||
8528          test ! -s conftest.err
8529        } && test -s conftest$ac_exeext && {
8530          test "$cross_compiling" = yes ||
8531          $as_test_x conftest$ac_exeext
8532        }; then
8533   ac_cv_search_gethostbyname_r=$ac_res
8534 else
8535   $as_echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8537
8538
8539 fi
8540
8541 rm -rf conftest.dSYM
8542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8543       conftest$ac_exeext
8544   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8545   break
8546 fi
8547 done
8548 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8549   :
8550 else
8551   ac_cv_search_gethostbyname_r=no
8552 fi
8553 rm conftest.$ac_ext
8554 LIBS=$ac_func_search_save_LIBS
8555 fi
8556 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8557 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8558 ac_res=$ac_cv_search_gethostbyname_r
8559 if test "$ac_res" != no; then
8560   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8561
8562 fi
8563
8564 # Cygwin:
8565 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8566 $as_echo_n "checking for library containing shmget... " >&6; }
8567 if test "${ac_cv_search_shmget+set}" = set; then
8568   $as_echo_n "(cached) " >&6
8569 else
8570   ac_func_search_save_LIBS=$LIBS
8571 cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h.  */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h.  */
8577
8578 /* Override any GCC internal prototype to avoid an error.
8579    Use char because int might match the return type of a GCC
8580    builtin and then its argument prototype would still apply.  */
8581 #ifdef __cplusplus
8582 extern "C"
8583 #endif
8584 char shmget ();
8585 int
8586 main ()
8587 {
8588 return shmget ();
8589   ;
8590   return 0;
8591 }
8592 _ACEOF
8593 for ac_lib in '' cygipc; do
8594   if test -z "$ac_lib"; then
8595     ac_res="none required"
8596   else
8597     ac_res=-l$ac_lib
8598     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8599   fi
8600   rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (ac_try="$ac_link"
8602 case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8607 $as_echo "$ac_try_echo") >&5
8608   (eval "$ac_link") 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } && {
8615          test -z "$ac_c_werror_flag" ||
8616          test ! -s conftest.err
8617        } && test -s conftest$ac_exeext && {
8618          test "$cross_compiling" = yes ||
8619          $as_test_x conftest$ac_exeext
8620        }; then
8621   ac_cv_search_shmget=$ac_res
8622 else
8623   $as_echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626
8627 fi
8628
8629 rm -rf conftest.dSYM
8630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8631       conftest$ac_exeext
8632   if test "${ac_cv_search_shmget+set}" = set; then
8633   break
8634 fi
8635 done
8636 if test "${ac_cv_search_shmget+set}" = set; then
8637   :
8638 else
8639   ac_cv_search_shmget=no
8640 fi
8641 rm conftest.$ac_ext
8642 LIBS=$ac_func_search_save_LIBS
8643 fi
8644 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8645 $as_echo "$ac_cv_search_shmget" >&6; }
8646 ac_res=$ac_cv_search_shmget
8647 if test "$ac_res" != no; then
8648   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8649
8650 fi
8651
8652
8653 if test "$with_readline" = yes; then
8654
8655
8656 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8657 $as_echo_n "checking for library containing readline... " >&6; }
8658 if test "${pgac_cv_check_readline+set}" = set; then
8659   $as_echo_n "(cached) " >&6
8660 else
8661   pgac_cv_check_readline=no
8662 pgac_save_LIBS=$LIBS
8663 if test x"$with_libedit_preferred" != x"yes"
8664 then    READLINE_ORDER="-lreadline -ledit"
8665 else    READLINE_ORDER="-ledit -lreadline"
8666 fi
8667 for pgac_rllib in $READLINE_ORDER ; do
8668   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8669     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8670     cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676
8677 /* Override any GCC internal prototype to avoid an error.
8678    Use char because int might match the return type of a GCC
8679    builtin and then its argument prototype would still apply.  */
8680 #ifdef __cplusplus
8681 extern "C"
8682 #endif
8683 char readline ();
8684 int
8685 main ()
8686 {
8687 return readline ();
8688   ;
8689   return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (ac_try="$ac_link"
8694 case "(($ac_try" in
8695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696   *) ac_try_echo=$ac_try;;
8697 esac
8698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8699 $as_echo "$ac_try_echo") >&5
8700   (eval "$ac_link") 2>conftest.er1
8701   ac_status=$?
8702   grep -v '^ *+' conftest.er1 >conftest.err
8703   rm -f conftest.er1
8704   cat conftest.err >&5
8705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } && {
8707          test -z "$ac_c_werror_flag" ||
8708          test ! -s conftest.err
8709        } && test -s conftest$ac_exeext && {
8710          test "$cross_compiling" = yes ||
8711          $as_test_x conftest$ac_exeext
8712        }; then
8713
8714       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8715       # recognize dependent libraries; assume curses is needed if we didn't
8716       # find any dependency.
8717       case $host_os in
8718         netbsd* | openbsd* | irix*)
8719           if test x"$pgac_lib" = x"" ; then
8720             pgac_lib=" -lcurses"
8721           fi ;;
8722       esac
8723
8724       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8725       break
8726
8727 else
8728   $as_echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731
8732 fi
8733
8734 rm -rf conftest.dSYM
8735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8736       conftest$ac_exeext conftest.$ac_ext
8737   done
8738   if test "$pgac_cv_check_readline" != no ; then
8739     break
8740   fi
8741 done
8742 LIBS=$pgac_save_LIBS
8743
8744 fi
8745 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8746 $as_echo "$pgac_cv_check_readline" >&6; }
8747 if test "$pgac_cv_check_readline" != no ; then
8748   LIBS="$pgac_cv_check_readline $LIBS"
8749
8750 cat >>confdefs.h <<\_ACEOF
8751 #define HAVE_LIBREADLINE 1
8752 _ACEOF
8753
8754 fi
8755
8756
8757   if test x"$pgac_cv_check_readline" = x"no"; then
8758     { { $as_echo "$as_me:$LINENO: error: readline library not found
8759 If you have readline already installed, see config.log for details on the
8760 failure.  It is possible the compiler isn't looking in the proper directory.
8761 Use --without-readline to disable readline support." >&5
8762 $as_echo "$as_me: error: readline library not found
8763 If you have readline already installed, see config.log for details on the
8764 failure.  It is possible the compiler isn't looking in the proper directory.
8765 Use --without-readline to disable readline support." >&2;}
8766    { (exit 1); exit 1; }; }
8767   fi
8768 fi
8769
8770 if test "$with_zlib" = yes; then
8771
8772 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8773 $as_echo_n "checking for inflate in -lz... " >&6; }
8774 if test "${ac_cv_lib_z_inflate+set}" = set; then
8775   $as_echo_n "(cached) " >&6
8776 else
8777   ac_check_lib_save_LIBS=$LIBS
8778 LIBS="-lz  $LIBS"
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h.  */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h.  */
8785
8786 /* Override any GCC internal prototype to avoid an error.
8787    Use char because int might match the return type of a GCC
8788    builtin and then its argument prototype would still apply.  */
8789 #ifdef __cplusplus
8790 extern "C"
8791 #endif
8792 char inflate ();
8793 int
8794 main ()
8795 {
8796 return inflate ();
8797   ;
8798   return 0;
8799 }
8800 _ACEOF
8801 rm -f conftest.$ac_objext conftest$ac_exeext
8802 if { (ac_try="$ac_link"
8803 case "(($ac_try" in
8804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805   *) ac_try_echo=$ac_try;;
8806 esac
8807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8808 $as_echo "$ac_try_echo") >&5
8809   (eval "$ac_link") 2>conftest.er1
8810   ac_status=$?
8811   grep -v '^ *+' conftest.er1 >conftest.err
8812   rm -f conftest.er1
8813   cat conftest.err >&5
8814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); } && {
8816          test -z "$ac_c_werror_flag" ||
8817          test ! -s conftest.err
8818        } && test -s conftest$ac_exeext && {
8819          test "$cross_compiling" = yes ||
8820          $as_test_x conftest$ac_exeext
8821        }; then
8822   ac_cv_lib_z_inflate=yes
8823 else
8824   $as_echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827         ac_cv_lib_z_inflate=no
8828 fi
8829
8830 rm -rf conftest.dSYM
8831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8832       conftest$ac_exeext conftest.$ac_ext
8833 LIBS=$ac_check_lib_save_LIBS
8834 fi
8835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8836 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8837 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8838   cat >>confdefs.h <<_ACEOF
8839 #define HAVE_LIBZ 1
8840 _ACEOF
8841
8842   LIBS="-lz $LIBS"
8843
8844 else
8845   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8846 If you have zlib already installed, see config.log for details on the
8847 failure.  It is possible the compiler isn't looking in the proper directory.
8848 Use --without-zlib to disable zlib support." >&5
8849 $as_echo "$as_me: error: zlib library not found
8850 If you have zlib already installed, see config.log for details on the
8851 failure.  It is possible the compiler isn't looking in the proper directory.
8852 Use --without-zlib to disable zlib support." >&2;}
8853    { (exit 1); exit 1; }; }
8854 fi
8855
8856 fi
8857
8858 if test "$enable_spinlocks" = yes; then
8859
8860 cat >>confdefs.h <<\_ACEOF
8861 #define HAVE_SPINLOCKS 1
8862 _ACEOF
8863
8864 else
8865   { $as_echo "$as_me:$LINENO: WARNING:
8866 *** Not using spinlocks will cause poor performance." >&5
8867 $as_echo "$as_me: WARNING:
8868 *** Not using spinlocks will cause poor performance." >&2;}
8869 fi
8870
8871 if test "$with_gssapi" = yes ; then
8872   if test "$PORTNAME" != "win32"; then
8873     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8874 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8875 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8876   $as_echo_n "(cached) " >&6
8877 else
8878   ac_func_search_save_LIBS=$LIBS
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885
8886 /* Override any GCC internal prototype to avoid an error.
8887    Use char because int might match the return type of a GCC
8888    builtin and then its argument prototype would still apply.  */
8889 #ifdef __cplusplus
8890 extern "C"
8891 #endif
8892 char gss_init_sec_context ();
8893 int
8894 main ()
8895 {
8896 return gss_init_sec_context ();
8897   ;
8898   return 0;
8899 }
8900 _ACEOF
8901 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8902   if test -z "$ac_lib"; then
8903     ac_res="none required"
8904   else
8905     ac_res=-l$ac_lib
8906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8907   fi
8908   rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (ac_try="$ac_link"
8910 case "(($ac_try" in
8911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912   *) ac_try_echo=$ac_try;;
8913 esac
8914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8915 $as_echo "$ac_try_echo") >&5
8916   (eval "$ac_link") 2>conftest.er1
8917   ac_status=$?
8918   grep -v '^ *+' conftest.er1 >conftest.err
8919   rm -f conftest.er1
8920   cat conftest.err >&5
8921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } && {
8923          test -z "$ac_c_werror_flag" ||
8924          test ! -s conftest.err
8925        } && test -s conftest$ac_exeext && {
8926          test "$cross_compiling" = yes ||
8927          $as_test_x conftest$ac_exeext
8928        }; then
8929   ac_cv_search_gss_init_sec_context=$ac_res
8930 else
8931   $as_echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934
8935 fi
8936
8937 rm -rf conftest.dSYM
8938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8939       conftest$ac_exeext
8940   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8941   break
8942 fi
8943 done
8944 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8945   :
8946 else
8947   ac_cv_search_gss_init_sec_context=no
8948 fi
8949 rm conftest.$ac_ext
8950 LIBS=$ac_func_search_save_LIBS
8951 fi
8952 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8953 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8954 ac_res=$ac_cv_search_gss_init_sec_context
8955 if test "$ac_res" != no; then
8956   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8957
8958 else
8959   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8960 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8961    { (exit 1); exit 1; }; }
8962 fi
8963
8964   else
8965     LIBS="$LIBS -lgssapi32"
8966   fi
8967 fi
8968
8969 if test "$with_krb5" = yes ; then
8970   if test "$PORTNAME" != "win32"; then
8971      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8972 $as_echo_n "checking for library containing com_err... " >&6; }
8973 if test "${ac_cv_search_com_err+set}" = set; then
8974   $as_echo_n "(cached) " >&6
8975 else
8976   ac_func_search_save_LIBS=$LIBS
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h.  */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h.  */
8983
8984 /* Override any GCC internal prototype to avoid an error.
8985    Use char because int might match the return type of a GCC
8986    builtin and then its argument prototype would still apply.  */
8987 #ifdef __cplusplus
8988 extern "C"
8989 #endif
8990 char com_err ();
8991 int
8992 main ()
8993 {
8994 return com_err ();
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
9000   if test -z "$ac_lib"; then
9001     ac_res="none required"
9002   else
9003     ac_res=-l$ac_lib
9004     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9005   fi
9006   rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (ac_try="$ac_link"
9008 case "(($ac_try" in
9009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010   *) ac_try_echo=$ac_try;;
9011 esac
9012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9013 $as_echo "$ac_try_echo") >&5
9014   (eval "$ac_link") 2>conftest.er1
9015   ac_status=$?
9016   grep -v '^ *+' conftest.er1 >conftest.err
9017   rm -f conftest.er1
9018   cat conftest.err >&5
9019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); } && {
9021          test -z "$ac_c_werror_flag" ||
9022          test ! -s conftest.err
9023        } && test -s conftest$ac_exeext && {
9024          test "$cross_compiling" = yes ||
9025          $as_test_x conftest$ac_exeext
9026        }; then
9027   ac_cv_search_com_err=$ac_res
9028 else
9029   $as_echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032
9033 fi
9034
9035 rm -rf conftest.dSYM
9036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9037       conftest$ac_exeext
9038   if test "${ac_cv_search_com_err+set}" = set; then
9039   break
9040 fi
9041 done
9042 if test "${ac_cv_search_com_err+set}" = set; then
9043   :
9044 else
9045   ac_cv_search_com_err=no
9046 fi
9047 rm conftest.$ac_ext
9048 LIBS=$ac_func_search_save_LIBS
9049 fi
9050 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9051 $as_echo "$ac_cv_search_com_err" >&6; }
9052 ac_res=$ac_cv_search_com_err
9053 if test "$ac_res" != no; then
9054   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9055
9056 else
9057   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9058 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9059    { (exit 1); exit 1; }; }
9060 fi
9061
9062      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
9063 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
9064 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9065   $as_echo_n "(cached) " >&6
9066 else
9067   ac_func_search_save_LIBS=$LIBS
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h.  */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h.  */
9074
9075 /* Override any GCC internal prototype to avoid an error.
9076    Use char because int might match the return type of a GCC
9077    builtin and then its argument prototype would still apply.  */
9078 #ifdef __cplusplus
9079 extern "C"
9080 #endif
9081 char krb5_sendauth ();
9082 int
9083 main ()
9084 {
9085 return krb5_sendauth ();
9086   ;
9087   return 0;
9088 }
9089 _ACEOF
9090 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
9091   if test -z "$ac_lib"; then
9092     ac_res="none required"
9093   else
9094     ac_res=-l$ac_lib
9095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9096   fi
9097   rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (ac_try="$ac_link"
9099 case "(($ac_try" in
9100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101   *) ac_try_echo=$ac_try;;
9102 esac
9103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9104 $as_echo "$ac_try_echo") >&5
9105   (eval "$ac_link") 2>conftest.er1
9106   ac_status=$?
9107   grep -v '^ *+' conftest.er1 >conftest.err
9108   rm -f conftest.er1
9109   cat conftest.err >&5
9110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111   (exit $ac_status); } && {
9112          test -z "$ac_c_werror_flag" ||
9113          test ! -s conftest.err
9114        } && test -s conftest$ac_exeext && {
9115          test "$cross_compiling" = yes ||
9116          $as_test_x conftest$ac_exeext
9117        }; then
9118   ac_cv_search_krb5_sendauth=$ac_res
9119 else
9120   $as_echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9122
9123
9124 fi
9125
9126 rm -rf conftest.dSYM
9127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9128       conftest$ac_exeext
9129   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9130   break
9131 fi
9132 done
9133 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9134   :
9135 else
9136   ac_cv_search_krb5_sendauth=no
9137 fi
9138 rm conftest.$ac_ext
9139 LIBS=$ac_func_search_save_LIBS
9140 fi
9141 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9142 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9143 ac_res=$ac_cv_search_krb5_sendauth
9144 if test "$ac_res" != no; then
9145   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9146
9147 else
9148   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9149 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9150    { (exit 1); exit 1; }; }
9151 fi
9152
9153   else
9154      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9155 $as_echo_n "checking for library containing com_err... " >&6; }
9156 if test "${ac_cv_search_com_err+set}" = set; then
9157   $as_echo_n "(cached) " >&6
9158 else
9159   ac_func_search_save_LIBS=$LIBS
9160 cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h.  */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h.  */
9166
9167 /* Override any GCC internal prototype to avoid an error.
9168    Use char because int might match the return type of a GCC
9169    builtin and then its argument prototype would still apply.  */
9170 #ifdef __cplusplus
9171 extern "C"
9172 #endif
9173 char com_err ();
9174 int
9175 main ()
9176 {
9177 return com_err ();
9178   ;
9179   return 0;
9180 }
9181 _ACEOF
9182 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9183   if test -z "$ac_lib"; then
9184     ac_res="none required"
9185   else
9186     ac_res=-l$ac_lib
9187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9188   fi
9189   rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (ac_try="$ac_link"
9191 case "(($ac_try" in
9192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193   *) ac_try_echo=$ac_try;;
9194 esac
9195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9196 $as_echo "$ac_try_echo") >&5
9197   (eval "$ac_link") 2>conftest.er1
9198   ac_status=$?
9199   grep -v '^ *+' conftest.er1 >conftest.err
9200   rm -f conftest.er1
9201   cat conftest.err >&5
9202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); } && {
9204          test -z "$ac_c_werror_flag" ||
9205          test ! -s conftest.err
9206        } && test -s conftest$ac_exeext && {
9207          test "$cross_compiling" = yes ||
9208          $as_test_x conftest$ac_exeext
9209        }; then
9210   ac_cv_search_com_err=$ac_res
9211 else
9212   $as_echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215
9216 fi
9217
9218 rm -rf conftest.dSYM
9219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9220       conftest$ac_exeext
9221   if test "${ac_cv_search_com_err+set}" = set; then
9222   break
9223 fi
9224 done
9225 if test "${ac_cv_search_com_err+set}" = set; then
9226   :
9227 else
9228   ac_cv_search_com_err=no
9229 fi
9230 rm conftest.$ac_ext
9231 LIBS=$ac_func_search_save_LIBS
9232 fi
9233 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9234 $as_echo "$ac_cv_search_com_err" >&6; }
9235 ac_res=$ac_cv_search_com_err
9236 if test "$ac_res" != no; then
9237   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9238
9239 else
9240   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9241 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9242    { (exit 1); exit 1; }; }
9243 fi
9244
9245   fi
9246 fi
9247
9248 if test "$with_openssl" = yes ; then
9249     if test "$PORTNAME" != "win32"; then
9250
9251 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9252 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9253 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9254   $as_echo_n "(cached) " >&6
9255 else
9256   ac_check_lib_save_LIBS=$LIBS
9257 LIBS="-lcrypto  $LIBS"
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h.  */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h.  */
9264
9265 /* Override any GCC internal prototype to avoid an error.
9266    Use char because int might match the return type of a GCC
9267    builtin and then its argument prototype would still apply.  */
9268 #ifdef __cplusplus
9269 extern "C"
9270 #endif
9271 char CRYPTO_new_ex_data ();
9272 int
9273 main ()
9274 {
9275 return CRYPTO_new_ex_data ();
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 rm -f conftest.$ac_objext conftest$ac_exeext
9281 if { (ac_try="$ac_link"
9282 case "(($ac_try" in
9283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284   *) ac_try_echo=$ac_try;;
9285 esac
9286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9287 $as_echo "$ac_try_echo") >&5
9288   (eval "$ac_link") 2>conftest.er1
9289   ac_status=$?
9290   grep -v '^ *+' conftest.er1 >conftest.err
9291   rm -f conftest.er1
9292   cat conftest.err >&5
9293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); } && {
9295          test -z "$ac_c_werror_flag" ||
9296          test ! -s conftest.err
9297        } && test -s conftest$ac_exeext && {
9298          test "$cross_compiling" = yes ||
9299          $as_test_x conftest$ac_exeext
9300        }; then
9301   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9302 else
9303   $as_echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9305
9306         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9307 fi
9308
9309 rm -rf conftest.dSYM
9310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9311       conftest$ac_exeext conftest.$ac_ext
9312 LIBS=$ac_check_lib_save_LIBS
9313 fi
9314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9315 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9316 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9317   cat >>confdefs.h <<_ACEOF
9318 #define HAVE_LIBCRYPTO 1
9319 _ACEOF
9320
9321   LIBS="-lcrypto $LIBS"
9322
9323 else
9324   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9325 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9326    { (exit 1); exit 1; }; }
9327 fi
9328
9329
9330 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9331 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9332 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9333   $as_echo_n "(cached) " >&6
9334 else
9335   ac_check_lib_save_LIBS=$LIBS
9336 LIBS="-lssl  $LIBS"
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h.  */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h.  */
9343
9344 /* Override any GCC internal prototype to avoid an error.
9345    Use char because int might match the return type of a GCC
9346    builtin and then its argument prototype would still apply.  */
9347 #ifdef __cplusplus
9348 extern "C"
9349 #endif
9350 char SSL_library_init ();
9351 int
9352 main ()
9353 {
9354 return SSL_library_init ();
9355   ;
9356   return 0;
9357 }
9358 _ACEOF
9359 rm -f conftest.$ac_objext conftest$ac_exeext
9360 if { (ac_try="$ac_link"
9361 case "(($ac_try" in
9362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363   *) ac_try_echo=$ac_try;;
9364 esac
9365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9366 $as_echo "$ac_try_echo") >&5
9367   (eval "$ac_link") 2>conftest.er1
9368   ac_status=$?
9369   grep -v '^ *+' conftest.er1 >conftest.err
9370   rm -f conftest.er1
9371   cat conftest.err >&5
9372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); } && {
9374          test -z "$ac_c_werror_flag" ||
9375          test ! -s conftest.err
9376        } && test -s conftest$ac_exeext && {
9377          test "$cross_compiling" = yes ||
9378          $as_test_x conftest$ac_exeext
9379        }; then
9380   ac_cv_lib_ssl_SSL_library_init=yes
9381 else
9382   $as_echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9384
9385         ac_cv_lib_ssl_SSL_library_init=no
9386 fi
9387
9388 rm -rf conftest.dSYM
9389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9390       conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9392 fi
9393 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9394 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9395 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9396   cat >>confdefs.h <<_ACEOF
9397 #define HAVE_LIBSSL 1
9398 _ACEOF
9399
9400   LIBS="-lssl $LIBS"
9401
9402 else
9403   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9404 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9405    { (exit 1); exit 1; }; }
9406 fi
9407
9408   else
9409      { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9410 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9411 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9412   $as_echo_n "(cached) " >&6
9413 else
9414   ac_func_search_save_LIBS=$LIBS
9415 cat >conftest.$ac_ext <<_ACEOF
9416 /* confdefs.h.  */
9417 _ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h.  */
9421
9422 /* Override any GCC internal prototype to avoid an error.
9423    Use char because int might match the return type of a GCC
9424    builtin and then its argument prototype would still apply.  */
9425 #ifdef __cplusplus
9426 extern "C"
9427 #endif
9428 char CRYPTO_new_ex_data ();
9429 int
9430 main ()
9431 {
9432 return CRYPTO_new_ex_data ();
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 for ac_lib in '' eay32 crypto; do
9438   if test -z "$ac_lib"; then
9439     ac_res="none required"
9440   else
9441     ac_res=-l$ac_lib
9442     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9443   fi
9444   rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9446 case "(($ac_try" in
9447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448   *) ac_try_echo=$ac_try;;
9449 esac
9450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9451 $as_echo "$ac_try_echo") >&5
9452   (eval "$ac_link") 2>conftest.er1
9453   ac_status=$?
9454   grep -v '^ *+' conftest.er1 >conftest.err
9455   rm -f conftest.er1
9456   cat conftest.err >&5
9457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); } && {
9459          test -z "$ac_c_werror_flag" ||
9460          test ! -s conftest.err
9461        } && test -s conftest$ac_exeext && {
9462          test "$cross_compiling" = yes ||
9463          $as_test_x conftest$ac_exeext
9464        }; then
9465   ac_cv_search_CRYPTO_new_ex_data=$ac_res
9466 else
9467   $as_echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470
9471 fi
9472
9473 rm -rf conftest.dSYM
9474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9475       conftest$ac_exeext
9476   if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9477   break
9478 fi
9479 done
9480 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9481   :
9482 else
9483   ac_cv_search_CRYPTO_new_ex_data=no
9484 fi
9485 rm conftest.$ac_ext
9486 LIBS=$ac_func_search_save_LIBS
9487 fi
9488 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9489 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9490 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9491 if test "$ac_res" != no; then
9492   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9493
9494 else
9495   { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9496 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9497    { (exit 1); exit 1; }; }
9498 fi
9499
9500      { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9501 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9502 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9503   $as_echo_n "(cached) " >&6
9504 else
9505   ac_func_search_save_LIBS=$LIBS
9506 cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h.  */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h.  */
9512
9513 /* Override any GCC internal prototype to avoid an error.
9514    Use char because int might match the return type of a GCC
9515    builtin and then its argument prototype would still apply.  */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char SSL_library_init ();
9520 int
9521 main ()
9522 {
9523 return SSL_library_init ();
9524   ;
9525   return 0;
9526 }
9527 _ACEOF
9528 for ac_lib in '' ssleay32 ssl; do
9529   if test -z "$ac_lib"; then
9530     ac_res="none required"
9531   else
9532     ac_res=-l$ac_lib
9533     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9534   fi
9535   rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9537 case "(($ac_try" in
9538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539   *) ac_try_echo=$ac_try;;
9540 esac
9541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542 $as_echo "$ac_try_echo") >&5
9543   (eval "$ac_link") 2>conftest.er1
9544   ac_status=$?
9545   grep -v '^ *+' conftest.er1 >conftest.err
9546   rm -f conftest.er1
9547   cat conftest.err >&5
9548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549   (exit $ac_status); } && {
9550          test -z "$ac_c_werror_flag" ||
9551          test ! -s conftest.err
9552        } && test -s conftest$ac_exeext && {
9553          test "$cross_compiling" = yes ||
9554          $as_test_x conftest$ac_exeext
9555        }; then
9556   ac_cv_search_SSL_library_init=$ac_res
9557 else
9558   $as_echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561
9562 fi
9563
9564 rm -rf conftest.dSYM
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566       conftest$ac_exeext
9567   if test "${ac_cv_search_SSL_library_init+set}" = set; then
9568   break
9569 fi
9570 done
9571 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9572   :
9573 else
9574   ac_cv_search_SSL_library_init=no
9575 fi
9576 rm conftest.$ac_ext
9577 LIBS=$ac_func_search_save_LIBS
9578 fi
9579 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9580 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9581 ac_res=$ac_cv_search_SSL_library_init
9582 if test "$ac_res" != no; then
9583   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9584
9585 else
9586   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9587 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9588    { (exit 1); exit 1; }; }
9589 fi
9590
9591   fi
9592 fi
9593
9594 if test "$with_pam" = yes ; then
9595
9596 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9597 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9598 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9599   $as_echo_n "(cached) " >&6
9600 else
9601   ac_check_lib_save_LIBS=$LIBS
9602 LIBS="-lpam  $LIBS"
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h.  */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h.  */
9609
9610 /* Override any GCC internal prototype to avoid an error.
9611    Use char because int might match the return type of a GCC
9612    builtin and then its argument prototype would still apply.  */
9613 #ifdef __cplusplus
9614 extern "C"
9615 #endif
9616 char pam_start ();
9617 int
9618 main ()
9619 {
9620 return pam_start ();
9621   ;
9622   return 0;
9623 }
9624 _ACEOF
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (ac_try="$ac_link"
9627 case "(($ac_try" in
9628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629   *) ac_try_echo=$ac_try;;
9630 esac
9631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9632 $as_echo "$ac_try_echo") >&5
9633   (eval "$ac_link") 2>conftest.er1
9634   ac_status=$?
9635   grep -v '^ *+' conftest.er1 >conftest.err
9636   rm -f conftest.er1
9637   cat conftest.err >&5
9638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); } && {
9640          test -z "$ac_c_werror_flag" ||
9641          test ! -s conftest.err
9642        } && test -s conftest$ac_exeext && {
9643          test "$cross_compiling" = yes ||
9644          $as_test_x conftest$ac_exeext
9645        }; then
9646   ac_cv_lib_pam_pam_start=yes
9647 else
9648   $as_echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9650
9651         ac_cv_lib_pam_pam_start=no
9652 fi
9653
9654 rm -rf conftest.dSYM
9655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9656       conftest$ac_exeext conftest.$ac_ext
9657 LIBS=$ac_check_lib_save_LIBS
9658 fi
9659 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9660 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9661 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9662   cat >>confdefs.h <<_ACEOF
9663 #define HAVE_LIBPAM 1
9664 _ACEOF
9665
9666   LIBS="-lpam $LIBS"
9667
9668 else
9669   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9670 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9671    { (exit 1); exit 1; }; }
9672 fi
9673
9674 fi
9675
9676 if test "$with_libxml" = yes ; then
9677
9678 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9679 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9680 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9681   $as_echo_n "(cached) " >&6
9682 else
9683   ac_check_lib_save_LIBS=$LIBS
9684 LIBS="-lxml2  $LIBS"
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691
9692 /* Override any GCC internal prototype to avoid an error.
9693    Use char because int might match the return type of a GCC
9694    builtin and then its argument prototype would still apply.  */
9695 #ifdef __cplusplus
9696 extern "C"
9697 #endif
9698 char xmlSaveToBuffer ();
9699 int
9700 main ()
9701 {
9702 return xmlSaveToBuffer ();
9703   ;
9704   return 0;
9705 }
9706 _ACEOF
9707 rm -f conftest.$ac_objext conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9709 case "(($ac_try" in
9710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711   *) ac_try_echo=$ac_try;;
9712 esac
9713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9714 $as_echo "$ac_try_echo") >&5
9715   (eval "$ac_link") 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } && {
9722          test -z "$ac_c_werror_flag" ||
9723          test ! -s conftest.err
9724        } && test -s conftest$ac_exeext && {
9725          test "$cross_compiling" = yes ||
9726          $as_test_x conftest$ac_exeext
9727        }; then
9728   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9729 else
9730   $as_echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733         ac_cv_lib_xml2_xmlSaveToBuffer=no
9734 fi
9735
9736 rm -rf conftest.dSYM
9737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9738       conftest$ac_exeext conftest.$ac_ext
9739 LIBS=$ac_check_lib_save_LIBS
9740 fi
9741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9742 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9743 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9744   cat >>confdefs.h <<_ACEOF
9745 #define HAVE_LIBXML2 1
9746 _ACEOF
9747
9748   LIBS="-lxml2 $LIBS"
9749
9750 else
9751   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9752 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9753    { (exit 1); exit 1; }; }
9754 fi
9755
9756 fi
9757
9758 if test "$with_libxslt" = yes ; then
9759
9760 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9761 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9762 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9763   $as_echo_n "(cached) " >&6
9764 else
9765   ac_check_lib_save_LIBS=$LIBS
9766 LIBS="-lxslt  $LIBS"
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773
9774 /* Override any GCC internal prototype to avoid an error.
9775    Use char because int might match the return type of a GCC
9776    builtin and then its argument prototype would still apply.  */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char xsltCleanupGlobals ();
9781 int
9782 main ()
9783 {
9784 return xsltCleanupGlobals ();
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9791 case "(($ac_try" in
9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793   *) ac_try_echo=$ac_try;;
9794 esac
9795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9796 $as_echo "$ac_try_echo") >&5
9797   (eval "$ac_link") 2>conftest.er1
9798   ac_status=$?
9799   grep -v '^ *+' conftest.er1 >conftest.err
9800   rm -f conftest.er1
9801   cat conftest.err >&5
9802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); } && {
9804          test -z "$ac_c_werror_flag" ||
9805          test ! -s conftest.err
9806        } && test -s conftest$ac_exeext && {
9807          test "$cross_compiling" = yes ||
9808          $as_test_x conftest$ac_exeext
9809        }; then
9810   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9811 else
9812   $as_echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815         ac_cv_lib_xslt_xsltCleanupGlobals=no
9816 fi
9817
9818 rm -rf conftest.dSYM
9819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9820       conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9822 fi
9823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9824 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9825 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9826   cat >>confdefs.h <<_ACEOF
9827 #define HAVE_LIBXSLT 1
9828 _ACEOF
9829
9830   LIBS="-lxslt $LIBS"
9831
9832 else
9833   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9834 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9835    { (exit 1); exit 1; }; }
9836 fi
9837
9838 fi
9839
9840 # for contrib/sepgsql
9841 if test "$with_selinux" = yes; then
9842
9843 { $as_echo "$as_me:$LINENO: checking for security_compute_create_name in -lselinux" >&5
9844 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
9845 if test "${ac_cv_lib_selinux_security_compute_create_name+set}" = set; then
9846   $as_echo_n "(cached) " >&6
9847 else
9848   ac_check_lib_save_LIBS=$LIBS
9849 LIBS="-lselinux  $LIBS"
9850 cat >conftest.$ac_ext <<_ACEOF
9851 /* confdefs.h.  */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h.  */
9856
9857 /* Override any GCC internal prototype to avoid an error.
9858    Use char because int might match the return type of a GCC
9859    builtin and then its argument prototype would still apply.  */
9860 #ifdef __cplusplus
9861 extern "C"
9862 #endif
9863 char security_compute_create_name ();
9864 int
9865 main ()
9866 {
9867 return security_compute_create_name ();
9868   ;
9869   return 0;
9870 }
9871 _ACEOF
9872 rm -f conftest.$ac_objext conftest$ac_exeext
9873 if { (ac_try="$ac_link"
9874 case "(($ac_try" in
9875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876   *) ac_try_echo=$ac_try;;
9877 esac
9878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9879 $as_echo "$ac_try_echo") >&5
9880   (eval "$ac_link") 2>conftest.er1
9881   ac_status=$?
9882   grep -v '^ *+' conftest.er1 >conftest.err
9883   rm -f conftest.er1
9884   cat conftest.err >&5
9885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); } && {
9887          test -z "$ac_c_werror_flag" ||
9888          test ! -s conftest.err
9889        } && test -s conftest$ac_exeext && {
9890          test "$cross_compiling" = yes ||
9891          $as_test_x conftest$ac_exeext
9892        }; then
9893   ac_cv_lib_selinux_security_compute_create_name=yes
9894 else
9895   $as_echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898         ac_cv_lib_selinux_security_compute_create_name=no
9899 fi
9900
9901 rm -rf conftest.dSYM
9902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9903       conftest$ac_exeext conftest.$ac_ext
9904 LIBS=$ac_check_lib_save_LIBS
9905 fi
9906 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
9907 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
9908 if test "x$ac_cv_lib_selinux_security_compute_create_name" = x""yes; then
9909   cat >>confdefs.h <<_ACEOF
9910 #define HAVE_LIBSELINUX 1
9911 _ACEOF
9912
9913   LIBS="-lselinux $LIBS"
9914
9915 else
9916   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&5
9917 $as_echo "$as_me: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&2;}
9918    { (exit 1); exit 1; }; }
9919 fi
9920
9921 fi
9922
9923 # for contrib/uuid-ossp
9924 if test "$with_ossp_uuid" = yes ; then
9925   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9926 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9927 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9928   $as_echo_n "(cached) " >&6
9929 else
9930   ac_check_lib_save_LIBS=$LIBS
9931 LIBS="-lossp-uuid  $LIBS"
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h.  */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h.  */
9938
9939 /* Override any GCC internal prototype to avoid an error.
9940    Use char because int might match the return type of a GCC
9941    builtin and then its argument prototype would still apply.  */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 char uuid_export ();
9946 int
9947 main ()
9948 {
9949 return uuid_export ();
9950   ;
9951   return 0;
9952 }
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9956 case "(($ac_try" in
9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958   *) ac_try_echo=$ac_try;;
9959 esac
9960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9961 $as_echo "$ac_try_echo") >&5
9962   (eval "$ac_link") 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } && {
9969          test -z "$ac_c_werror_flag" ||
9970          test ! -s conftest.err
9971        } && test -s conftest$ac_exeext && {
9972          test "$cross_compiling" = yes ||
9973          $as_test_x conftest$ac_exeext
9974        }; then
9975   ac_cv_lib_ossp_uuid_uuid_export=yes
9976 else
9977   $as_echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980         ac_cv_lib_ossp_uuid_uuid_export=no
9981 fi
9982
9983 rm -rf conftest.dSYM
9984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9985       conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9987 fi
9988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9989 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9990 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9991   OSSP_UUID_LIBS="-lossp-uuid"
9992 else
9993   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9994 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9995 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9996   $as_echo_n "(cached) " >&6
9997 else
9998   ac_check_lib_save_LIBS=$LIBS
9999 LIBS="-luuid  $LIBS"
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006
10007 /* Override any GCC internal prototype to avoid an error.
10008    Use char because int might match the return type of a GCC
10009    builtin and then its argument prototype would still apply.  */
10010 #ifdef __cplusplus
10011 extern "C"
10012 #endif
10013 char uuid_export ();
10014 int
10015 main ()
10016 {
10017 return uuid_export ();
10018   ;
10019   return 0;
10020 }
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (ac_try="$ac_link"
10024 case "(($ac_try" in
10025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026   *) ac_try_echo=$ac_try;;
10027 esac
10028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10029 $as_echo "$ac_try_echo") >&5
10030   (eval "$ac_link") 2>conftest.er1
10031   ac_status=$?
10032   grep -v '^ *+' conftest.er1 >conftest.err
10033   rm -f conftest.er1
10034   cat conftest.err >&5
10035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); } && {
10037          test -z "$ac_c_werror_flag" ||
10038          test ! -s conftest.err
10039        } && test -s conftest$ac_exeext && {
10040          test "$cross_compiling" = yes ||
10041          $as_test_x conftest$ac_exeext
10042        }; then
10043   ac_cv_lib_uuid_uuid_export=yes
10044 else
10045   $as_echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10047
10048         ac_cv_lib_uuid_uuid_export=no
10049 fi
10050
10051 rm -rf conftest.dSYM
10052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10053       conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10055 fi
10056 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
10057 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10058 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
10059   OSSP_UUID_LIBS="-luuid"
10060 else
10061   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
10062 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
10063    { (exit 1); exit 1; }; }
10064 fi
10065
10066 fi
10067
10068 fi
10069
10070
10071
10072 ##
10073 ## Header files
10074 ##
10075
10076 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10077 $as_echo_n "checking for ANSI C header files... " >&6; }
10078 if test "${ac_cv_header_stdc+set}" = set; then
10079   $as_echo_n "(cached) " >&6
10080 else
10081   cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087 #include <stdlib.h>
10088 #include <stdarg.h>
10089 #include <string.h>
10090 #include <float.h>
10091
10092 int
10093 main ()
10094 {
10095
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104   *) ac_try_echo=$ac_try;;
10105 esac
10106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10107 $as_echo "$ac_try_echo") >&5
10108   (eval "$ac_compile") 2>conftest.er1
10109   ac_status=$?
10110   grep -v '^ *+' conftest.er1 >conftest.err
10111   rm -f conftest.er1
10112   cat conftest.err >&5
10113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } && {
10115          test -z "$ac_c_werror_flag" ||
10116          test ! -s conftest.err
10117        } && test -s conftest.$ac_objext; then
10118   ac_cv_header_stdc=yes
10119 else
10120   $as_echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123         ac_cv_header_stdc=no
10124 fi
10125
10126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127
10128 if test $ac_cv_header_stdc = yes; then
10129   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10130   cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h.  */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h.  */
10136 #include <string.h>
10137
10138 _ACEOF
10139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10140   $EGREP "memchr" >/dev/null 2>&1; then
10141   :
10142 else
10143   ac_cv_header_stdc=no
10144 fi
10145 rm -f conftest*
10146
10147 fi
10148
10149 if test $ac_cv_header_stdc = yes; then
10150   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10151   cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157 #include <stdlib.h>
10158
10159 _ACEOF
10160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10161   $EGREP "free" >/dev/null 2>&1; then
10162   :
10163 else
10164   ac_cv_header_stdc=no
10165 fi
10166 rm -f conftest*
10167
10168 fi
10169
10170 if test $ac_cv_header_stdc = yes; then
10171   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10172   if test "$cross_compiling" = yes; then
10173   :
10174 else
10175   cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181 #include <ctype.h>
10182 #include <stdlib.h>
10183 #if ((' ' & 0x0FF) == 0x020)
10184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10186 #else
10187 # define ISLOWER(c) \
10188                    (('a' <= (c) && (c) <= 'i') \
10189                      || ('j' <= (c) && (c) <= 'r') \
10190                      || ('s' <= (c) && (c) <= 'z'))
10191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10192 #endif
10193
10194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10195 int
10196 main ()
10197 {
10198   int i;
10199   for (i = 0; i < 256; i++)
10200     if (XOR (islower (i), ISLOWER (i))
10201         || toupper (i) != TOUPPER (i))
10202       return 2;
10203   return 0;
10204 }
10205 _ACEOF
10206 rm -f conftest$ac_exeext
10207 if { (ac_try="$ac_link"
10208 case "(($ac_try" in
10209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210   *) ac_try_echo=$ac_try;;
10211 esac
10212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10213 $as_echo "$ac_try_echo") >&5
10214   (eval "$ac_link") 2>&5
10215   ac_status=$?
10216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10218   { (case "(($ac_try" in
10219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220   *) ac_try_echo=$ac_try;;
10221 esac
10222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10223 $as_echo "$ac_try_echo") >&5
10224   (eval "$ac_try") 2>&5
10225   ac_status=$?
10226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; }; then
10228   :
10229 else
10230   $as_echo "$as_me: program exited with status $ac_status" >&5
10231 $as_echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234 ( exit $ac_status )
10235 ac_cv_header_stdc=no
10236 fi
10237 rm -rf conftest.dSYM
10238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10239 fi
10240
10241
10242 fi
10243 fi
10244 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10245 $as_echo "$ac_cv_header_stdc" >&6; }
10246 if test $ac_cv_header_stdc = yes; then
10247
10248 cat >>confdefs.h <<\_ACEOF
10249 #define STDC_HEADERS 1
10250 _ACEOF
10251
10252 fi
10253
10254 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10265                   inttypes.h stdint.h unistd.h
10266 do
10267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10269 $as_echo_n "checking for $ac_header... " >&6; }
10270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10271   $as_echo_n "(cached) " >&6
10272 else
10273   cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h.  */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h.  */
10279 $ac_includes_default
10280
10281 #include <$ac_header>
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287   *) ac_try_echo=$ac_try;;
10288 esac
10289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290 $as_echo "$ac_try_echo") >&5
10291   (eval "$ac_compile") 2>conftest.er1
10292   ac_status=$?
10293   grep -v '^ *+' conftest.er1 >conftest.err
10294   rm -f conftest.er1
10295   cat conftest.err >&5
10296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297   (exit $ac_status); } && {
10298          test -z "$ac_c_werror_flag" ||
10299          test ! -s conftest.err
10300        } && test -s conftest.$ac_objext; then
10301   eval "$as_ac_Header=yes"
10302 else
10303   $as_echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
10306         eval "$as_ac_Header=no"
10307 fi
10308
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310 fi
10311 ac_res=`eval 'as_val=${'$as_ac_Header'}
10312                  $as_echo "$as_val"'`
10313                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10314 $as_echo "$ac_res" >&6; }
10315 as_val=`eval 'as_val=${'$as_ac_Header'}
10316                  $as_echo "$as_val"'`
10317    if test "x$as_val" = x""yes; then
10318   cat >>confdefs.h <<_ACEOF
10319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10320 _ACEOF
10321
10322 fi
10323
10324 done
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354 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
10355 do
10356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10358   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10359 $as_echo_n "checking for $ac_header... " >&6; }
10360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10361   $as_echo_n "(cached) " >&6
10362 fi
10363 ac_res=`eval 'as_val=${'$as_ac_Header'}
10364                  $as_echo "$as_val"'`
10365                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10366 $as_echo "$ac_res" >&6; }
10367 else
10368   # Is the header compilable?
10369 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10370 $as_echo_n "checking $ac_header usability... " >&6; }
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h.  */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h.  */
10377 $ac_includes_default
10378 #include <$ac_header>
10379 _ACEOF
10380 rm -f conftest.$ac_objext
10381 if { (ac_try="$ac_compile"
10382 case "(($ac_try" in
10383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384   *) ac_try_echo=$ac_try;;
10385 esac
10386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10387 $as_echo "$ac_try_echo") >&5
10388   (eval "$ac_compile") 2>conftest.er1
10389   ac_status=$?
10390   grep -v '^ *+' conftest.er1 >conftest.err
10391   rm -f conftest.er1
10392   cat conftest.err >&5
10393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } && {
10395          test -z "$ac_c_werror_flag" ||
10396          test ! -s conftest.err
10397        } && test -s conftest.$ac_objext; then
10398   ac_header_compiler=yes
10399 else
10400   $as_echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10402
10403         ac_header_compiler=no
10404 fi
10405
10406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10408 $as_echo "$ac_header_compiler" >&6; }
10409
10410 # Is the header present?
10411 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10412 $as_echo_n "checking $ac_header presence... " >&6; }
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h.  */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h.  */
10419 #include <$ac_header>
10420 _ACEOF
10421 if { (ac_try="$ac_cpp conftest.$ac_ext"
10422 case "(($ac_try" in
10423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424   *) ac_try_echo=$ac_try;;
10425 esac
10426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10427 $as_echo "$ac_try_echo") >&5
10428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10429   ac_status=$?
10430   grep -v '^ *+' conftest.er1 >conftest.err
10431   rm -f conftest.er1
10432   cat conftest.err >&5
10433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); } >/dev/null && {
10435          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10436          test ! -s conftest.err
10437        }; then
10438   ac_header_preproc=yes
10439 else
10440   $as_echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443   ac_header_preproc=no
10444 fi
10445
10446 rm -f conftest.err conftest.$ac_ext
10447 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10448 $as_echo "$ac_header_preproc" >&6; }
10449
10450 # So?  What about this header?
10451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10452   yes:no: )
10453     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10454 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10456 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10457     ac_header_preproc=yes
10458     ;;
10459   no:yes:* )
10460     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10461 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10462     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10463 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10464     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10465 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10466     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10467 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10468     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10469 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10470     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10471 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10472     ( cat <<\_ASBOX
10473 ## ---------------------------------------- ##
10474 ## Report this to pgsql-bugs@postgresql.org ##
10475 ## ---------------------------------------- ##
10476 _ASBOX
10477      ) | sed "s/^/$as_me: WARNING:     /" >&2
10478     ;;
10479 esac
10480 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10481 $as_echo_n "checking for $ac_header... " >&6; }
10482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10483   $as_echo_n "(cached) " >&6
10484 else
10485   eval "$as_ac_Header=\$ac_header_preproc"
10486 fi
10487 ac_res=`eval 'as_val=${'$as_ac_Header'}
10488                  $as_echo "$as_val"'`
10489                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10490 $as_echo "$ac_res" >&6; }
10491
10492 fi
10493 as_val=`eval 'as_val=${'$as_ac_Header'}
10494                  $as_echo "$as_val"'`
10495    if test "x$as_val" = x""yes; then
10496   cat >>confdefs.h <<_ACEOF
10497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10498 _ACEOF
10499
10500 fi
10501
10502 done
10503
10504
10505 # On BSD, test for net/if.h will fail unless sys/socket.h
10506 # is included first.
10507
10508 for ac_header in net/if.h
10509 do
10510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10511 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10512 $as_echo_n "checking for $ac_header... " >&6; }
10513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514   $as_echo_n "(cached) " >&6
10515 else
10516   cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h.  */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h.  */
10522 $ac_includes_default
10523 #ifdef HAVE_SYS_SOCKET_H
10524 #include <sys/socket.h>
10525 #endif
10526
10527
10528 #include <$ac_header>
10529 _ACEOF
10530 rm -f conftest.$ac_objext
10531 if { (ac_try="$ac_compile"
10532 case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10537 $as_echo "$ac_try_echo") >&5
10538   (eval "$ac_compile") 2>conftest.er1
10539   ac_status=$?
10540   grep -v '^ *+' conftest.er1 >conftest.err
10541   rm -f conftest.er1
10542   cat conftest.err >&5
10543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } && {
10545          test -z "$ac_c_werror_flag" ||
10546          test ! -s conftest.err
10547        } && test -s conftest.$ac_objext; then
10548   eval "$as_ac_Header=yes"
10549 else
10550   $as_echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553         eval "$as_ac_Header=no"
10554 fi
10555
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10557 fi
10558 ac_res=`eval 'as_val=${'$as_ac_Header'}
10559                  $as_echo "$as_val"'`
10560                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10561 $as_echo "$ac_res" >&6; }
10562 as_val=`eval 'as_val=${'$as_ac_Header'}
10563                  $as_echo "$as_val"'`
10564    if test "x$as_val" = x""yes; then
10565   cat >>confdefs.h <<_ACEOF
10566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10567 _ACEOF
10568
10569 fi
10570
10571 done
10572
10573
10574 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10575 # is included first.
10576
10577 for ac_header in sys/ucred.h
10578 do
10579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10580 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10581 $as_echo_n "checking for $ac_header... " >&6; }
10582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10583   $as_echo_n "(cached) " >&6
10584 else
10585   cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591 $ac_includes_default
10592 #include <sys/param.h>
10593
10594
10595 #include <$ac_header>
10596 _ACEOF
10597 rm -f conftest.$ac_objext
10598 if { (ac_try="$ac_compile"
10599 case "(($ac_try" in
10600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601   *) ac_try_echo=$ac_try;;
10602 esac
10603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10604 $as_echo "$ac_try_echo") >&5
10605   (eval "$ac_compile") 2>conftest.er1
10606   ac_status=$?
10607   grep -v '^ *+' conftest.er1 >conftest.err
10608   rm -f conftest.er1
10609   cat conftest.err >&5
10610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } && {
10612          test -z "$ac_c_werror_flag" ||
10613          test ! -s conftest.err
10614        } && test -s conftest.$ac_objext; then
10615   eval "$as_ac_Header=yes"
10616 else
10617   $as_echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620         eval "$as_ac_Header=no"
10621 fi
10622
10623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624 fi
10625 ac_res=`eval 'as_val=${'$as_ac_Header'}
10626                  $as_echo "$as_val"'`
10627                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10628 $as_echo "$ac_res" >&6; }
10629 as_val=`eval 'as_val=${'$as_ac_Header'}
10630                  $as_echo "$as_val"'`
10631    if test "x$as_val" = x""yes; then
10632   cat >>confdefs.h <<_ACEOF
10633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10634 _ACEOF
10635
10636 fi
10637
10638 done
10639
10640
10641 # At least on IRIX, test for netinet/tcp.h will fail unless
10642 # netinet/in.h is included first.
10643
10644 for ac_header in netinet/in.h
10645 do
10646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10648   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10649 $as_echo_n "checking for $ac_header... " >&6; }
10650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10651   $as_echo_n "(cached) " >&6
10652 fi
10653 ac_res=`eval 'as_val=${'$as_ac_Header'}
10654                  $as_echo "$as_val"'`
10655                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10656 $as_echo "$ac_res" >&6; }
10657 else
10658   # Is the header compilable?
10659 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10660 $as_echo_n "checking $ac_header usability... " >&6; }
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h.  */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h.  */
10667 $ac_includes_default
10668 #include <$ac_header>
10669 _ACEOF
10670 rm -f conftest.$ac_objext
10671 if { (ac_try="$ac_compile"
10672 case "(($ac_try" in
10673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674   *) ac_try_echo=$ac_try;;
10675 esac
10676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10677 $as_echo "$ac_try_echo") >&5
10678   (eval "$ac_compile") 2>conftest.er1
10679   ac_status=$?
10680   grep -v '^ *+' conftest.er1 >conftest.err
10681   rm -f conftest.er1
10682   cat conftest.err >&5
10683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } && {
10685          test -z "$ac_c_werror_flag" ||
10686          test ! -s conftest.err
10687        } && test -s conftest.$ac_objext; then
10688   ac_header_compiler=yes
10689 else
10690   $as_echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693         ac_header_compiler=no
10694 fi
10695
10696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10697 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10698 $as_echo "$ac_header_compiler" >&6; }
10699
10700 # Is the header present?
10701 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10702 $as_echo_n "checking $ac_header presence... " >&6; }
10703 cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 #include <$ac_header>
10710 _ACEOF
10711 if { (ac_try="$ac_cpp conftest.$ac_ext"
10712 case "(($ac_try" in
10713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714   *) ac_try_echo=$ac_try;;
10715 esac
10716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10717 $as_echo "$ac_try_echo") >&5
10718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10719   ac_status=$?
10720   grep -v '^ *+' conftest.er1 >conftest.err
10721   rm -f conftest.er1
10722   cat conftest.err >&5
10723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); } >/dev/null && {
10725          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10726          test ! -s conftest.err
10727        }; then
10728   ac_header_preproc=yes
10729 else
10730   $as_echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10732
10733   ac_header_preproc=no
10734 fi
10735
10736 rm -f conftest.err conftest.$ac_ext
10737 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10738 $as_echo "$ac_header_preproc" >&6; }
10739
10740 # So?  What about this header?
10741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10742   yes:no: )
10743     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10744 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10745     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10746 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10747     ac_header_preproc=yes
10748     ;;
10749   no:yes:* )
10750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10751 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10752     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10753 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10754     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10755 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10756     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10757 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10758     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10759 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10760     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10761 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10762     ( cat <<\_ASBOX
10763 ## ---------------------------------------- ##
10764 ## Report this to pgsql-bugs@postgresql.org ##
10765 ## ---------------------------------------- ##
10766 _ASBOX
10767      ) | sed "s/^/$as_me: WARNING:     /" >&2
10768     ;;
10769 esac
10770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10771 $as_echo_n "checking for $ac_header... " >&6; }
10772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10773   $as_echo_n "(cached) " >&6
10774 else
10775   eval "$as_ac_Header=\$ac_header_preproc"
10776 fi
10777 ac_res=`eval 'as_val=${'$as_ac_Header'}
10778                  $as_echo "$as_val"'`
10779                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10780 $as_echo "$ac_res" >&6; }
10781
10782 fi
10783 as_val=`eval 'as_val=${'$as_ac_Header'}
10784                  $as_echo "$as_val"'`
10785    if test "x$as_val" = x""yes; then
10786   cat >>confdefs.h <<_ACEOF
10787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10788 _ACEOF
10789
10790 fi
10791
10792 done
10793
10794
10795 for ac_header in netinet/tcp.h
10796 do
10797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10799 $as_echo_n "checking for $ac_header... " >&6; }
10800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10801   $as_echo_n "(cached) " >&6
10802 else
10803   cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h.  */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h.  */
10809 $ac_includes_default
10810 #ifdef HAVE_NETINET_IN_H
10811 #include <netinet/in.h>
10812 #endif
10813
10814
10815 #include <$ac_header>
10816 _ACEOF
10817 rm -f conftest.$ac_objext
10818 if { (ac_try="$ac_compile"
10819 case "(($ac_try" in
10820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821   *) ac_try_echo=$ac_try;;
10822 esac
10823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10824 $as_echo "$ac_try_echo") >&5
10825   (eval "$ac_compile") 2>conftest.er1
10826   ac_status=$?
10827   grep -v '^ *+' conftest.er1 >conftest.err
10828   rm -f conftest.er1
10829   cat conftest.err >&5
10830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); } && {
10832          test -z "$ac_c_werror_flag" ||
10833          test ! -s conftest.err
10834        } && test -s conftest.$ac_objext; then
10835   eval "$as_ac_Header=yes"
10836 else
10837   $as_echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10839
10840         eval "$as_ac_Header=no"
10841 fi
10842
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10844 fi
10845 ac_res=`eval 'as_val=${'$as_ac_Header'}
10846                  $as_echo "$as_val"'`
10847                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10848 $as_echo "$ac_res" >&6; }
10849 as_val=`eval 'as_val=${'$as_ac_Header'}
10850                  $as_echo "$as_val"'`
10851    if test "x$as_val" = x""yes; then
10852   cat >>confdefs.h <<_ACEOF
10853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10854 _ACEOF
10855
10856 fi
10857
10858 done
10859
10860
10861 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10862
10863 for ac_header in readline/readline.h
10864 do
10865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10867   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 $as_echo_n "checking for $ac_header... " >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870   $as_echo_n "(cached) " >&6
10871 fi
10872 ac_res=`eval 'as_val=${'$as_ac_Header'}
10873                  $as_echo "$as_val"'`
10874                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10875 $as_echo "$ac_res" >&6; }
10876 else
10877   # Is the header compilable?
10878 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10879 $as_echo_n "checking $ac_header usability... " >&6; }
10880 cat >conftest.$ac_ext <<_ACEOF
10881 /* confdefs.h.  */
10882 _ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h.  */
10886 $ac_includes_default
10887 #include <$ac_header>
10888 _ACEOF
10889 rm -f conftest.$ac_objext
10890 if { (ac_try="$ac_compile"
10891 case "(($ac_try" in
10892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893   *) ac_try_echo=$ac_try;;
10894 esac
10895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897   (eval "$ac_compile") 2>conftest.er1
10898   ac_status=$?
10899   grep -v '^ *+' conftest.er1 >conftest.err
10900   rm -f conftest.er1
10901   cat conftest.err >&5
10902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); } && {
10904          test -z "$ac_c_werror_flag" ||
10905          test ! -s conftest.err
10906        } && test -s conftest.$ac_objext; then
10907   ac_header_compiler=yes
10908 else
10909   $as_echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10911
10912         ac_header_compiler=no
10913 fi
10914
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10917 $as_echo "$ac_header_compiler" >&6; }
10918
10919 # Is the header present?
10920 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10921 $as_echo_n "checking $ac_header presence... " >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h.  */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h.  */
10928 #include <$ac_header>
10929 _ACEOF
10930 if { (ac_try="$ac_cpp conftest.$ac_ext"
10931 case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10936 $as_echo "$ac_try_echo") >&5
10937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10938   ac_status=$?
10939   grep -v '^ *+' conftest.er1 >conftest.err
10940   rm -f conftest.er1
10941   cat conftest.err >&5
10942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943   (exit $ac_status); } >/dev/null && {
10944          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10945          test ! -s conftest.err
10946        }; then
10947   ac_header_preproc=yes
10948 else
10949   $as_echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10951
10952   ac_header_preproc=no
10953 fi
10954
10955 rm -f conftest.err conftest.$ac_ext
10956 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10957 $as_echo "$ac_header_preproc" >&6; }
10958
10959 # So?  What about this header?
10960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10961   yes:no: )
10962     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10963 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10964     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10966     ac_header_preproc=yes
10967     ;;
10968   no:yes:* )
10969     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10970 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10971     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10972 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10973     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10974 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10975     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10976 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10977     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10979     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10980 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10981     ( cat <<\_ASBOX
10982 ## ---------------------------------------- ##
10983 ## Report this to pgsql-bugs@postgresql.org ##
10984 ## ---------------------------------------- ##
10985 _ASBOX
10986      ) | sed "s/^/$as_me: WARNING:     /" >&2
10987     ;;
10988 esac
10989 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10990 $as_echo_n "checking for $ac_header... " >&6; }
10991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10992   $as_echo_n "(cached) " >&6
10993 else
10994   eval "$as_ac_Header=\$ac_header_preproc"
10995 fi
10996 ac_res=`eval 'as_val=${'$as_ac_Header'}
10997                  $as_echo "$as_val"'`
10998                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10999 $as_echo "$ac_res" >&6; }
11000
11001 fi
11002 as_val=`eval 'as_val=${'$as_ac_Header'}
11003                  $as_echo "$as_val"'`
11004    if test "x$as_val" = x""yes; then
11005   cat >>confdefs.h <<_ACEOF
11006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11007 _ACEOF
11008
11009 else
11010
11011 for ac_header in readline.h
11012 do
11013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11015   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11016 $as_echo_n "checking for $ac_header... " >&6; }
11017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11018   $as_echo_n "(cached) " >&6
11019 fi
11020 ac_res=`eval 'as_val=${'$as_ac_Header'}
11021                  $as_echo "$as_val"'`
11022                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11023 $as_echo "$ac_res" >&6; }
11024 else
11025   # Is the header compilable?
11026 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11027 $as_echo_n "checking $ac_header usability... " >&6; }
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h.  */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h.  */
11034 $ac_includes_default
11035 #include <$ac_header>
11036 _ACEOF
11037 rm -f conftest.$ac_objext
11038 if { (ac_try="$ac_compile"
11039 case "(($ac_try" in
11040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041   *) ac_try_echo=$ac_try;;
11042 esac
11043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11044 $as_echo "$ac_try_echo") >&5
11045   (eval "$ac_compile") 2>conftest.er1
11046   ac_status=$?
11047   grep -v '^ *+' conftest.er1 >conftest.err
11048   rm -f conftest.er1
11049   cat conftest.err >&5
11050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } && {
11052          test -z "$ac_c_werror_flag" ||
11053          test ! -s conftest.err
11054        } && test -s conftest.$ac_objext; then
11055   ac_header_compiler=yes
11056 else
11057   $as_echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11059
11060         ac_header_compiler=no
11061 fi
11062
11063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11065 $as_echo "$ac_header_compiler" >&6; }
11066
11067 # Is the header present?
11068 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11069 $as_echo_n "checking $ac_header presence... " >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h.  */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h.  */
11076 #include <$ac_header>
11077 _ACEOF
11078 if { (ac_try="$ac_cpp conftest.$ac_ext"
11079 case "(($ac_try" in
11080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081   *) ac_try_echo=$ac_try;;
11082 esac
11083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11084 $as_echo "$ac_try_echo") >&5
11085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11086   ac_status=$?
11087   grep -v '^ *+' conftest.er1 >conftest.err
11088   rm -f conftest.er1
11089   cat conftest.err >&5
11090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); } >/dev/null && {
11092          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11093          test ! -s conftest.err
11094        }; then
11095   ac_header_preproc=yes
11096 else
11097   $as_echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100   ac_header_preproc=no
11101 fi
11102
11103 rm -f conftest.err conftest.$ac_ext
11104 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11105 $as_echo "$ac_header_preproc" >&6; }
11106
11107 # So?  What about this header?
11108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11109   yes:no: )
11110     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11111 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11112     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11113 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11114     ac_header_preproc=yes
11115     ;;
11116   no:yes:* )
11117     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11118 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11119     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11120 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11121     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11122 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11123     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11124 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11125     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11127     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11128 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11129     ( cat <<\_ASBOX
11130 ## ---------------------------------------- ##
11131 ## Report this to pgsql-bugs@postgresql.org ##
11132 ## ---------------------------------------- ##
11133 _ASBOX
11134      ) | sed "s/^/$as_me: WARNING:     /" >&2
11135     ;;
11136 esac
11137 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11138 $as_echo_n "checking for $ac_header... " >&6; }
11139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11140   $as_echo_n "(cached) " >&6
11141 else
11142   eval "$as_ac_Header=\$ac_header_preproc"
11143 fi
11144 ac_res=`eval 'as_val=${'$as_ac_Header'}
11145                  $as_echo "$as_val"'`
11146                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11147 $as_echo "$ac_res" >&6; }
11148
11149 fi
11150 as_val=`eval 'as_val=${'$as_ac_Header'}
11151                  $as_echo "$as_val"'`
11152    if test "x$as_val" = x""yes; then
11153   cat >>confdefs.h <<_ACEOF
11154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11155 _ACEOF
11156
11157 else
11158   { { $as_echo "$as_me:$LINENO: error: readline header not found
11159 If you have readline already installed, see config.log for details on the
11160 failure.  It is possible the compiler isn't looking in the proper directory.
11161 Use --without-readline to disable readline support." >&5
11162 $as_echo "$as_me: error: readline header not found
11163 If you have readline already installed, see config.log for details on the
11164 failure.  It is possible the compiler isn't looking in the proper directory.
11165 Use --without-readline to disable readline support." >&2;}
11166    { (exit 1); exit 1; }; }
11167 fi
11168
11169 done
11170
11171 fi
11172
11173 done
11174
11175
11176 for ac_header in readline/history.h
11177 do
11178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11180   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11181 $as_echo_n "checking for $ac_header... " >&6; }
11182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11183   $as_echo_n "(cached) " >&6
11184 fi
11185 ac_res=`eval 'as_val=${'$as_ac_Header'}
11186                  $as_echo "$as_val"'`
11187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11188 $as_echo "$ac_res" >&6; }
11189 else
11190   # Is the header compilable?
11191 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11192 $as_echo_n "checking $ac_header usability... " >&6; }
11193 cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h.  */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h.  */
11199 $ac_includes_default
11200 #include <$ac_header>
11201 _ACEOF
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206   *) ac_try_echo=$ac_try;;
11207 esac
11208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11209 $as_echo "$ac_try_echo") >&5
11210   (eval "$ac_compile") 2>conftest.er1
11211   ac_status=$?
11212   grep -v '^ *+' conftest.er1 >conftest.err
11213   rm -f conftest.er1
11214   cat conftest.err >&5
11215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216   (exit $ac_status); } && {
11217          test -z "$ac_c_werror_flag" ||
11218          test ! -s conftest.err
11219        } && test -s conftest.$ac_objext; then
11220   ac_header_compiler=yes
11221 else
11222   $as_echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11224
11225         ac_header_compiler=no
11226 fi
11227
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11230 $as_echo "$ac_header_compiler" >&6; }
11231
11232 # Is the header present?
11233 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11234 $as_echo_n "checking $ac_header presence... " >&6; }
11235 cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 #include <$ac_header>
11242 _ACEOF
11243 if { (ac_try="$ac_cpp conftest.$ac_ext"
11244 case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11249 $as_echo "$ac_try_echo") >&5
11250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11251   ac_status=$?
11252   grep -v '^ *+' conftest.er1 >conftest.err
11253   rm -f conftest.er1
11254   cat conftest.err >&5
11255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); } >/dev/null && {
11257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11258          test ! -s conftest.err
11259        }; then
11260   ac_header_preproc=yes
11261 else
11262   $as_echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265   ac_header_preproc=no
11266 fi
11267
11268 rm -f conftest.err conftest.$ac_ext
11269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11270 $as_echo "$ac_header_preproc" >&6; }
11271
11272 # So?  What about this header?
11273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11274   yes:no: )
11275     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11276 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11277     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11279     ac_header_preproc=yes
11280     ;;
11281   no:yes:* )
11282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11283 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11284     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11285 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11286     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11287 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11288     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11289 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11290     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11294     ( cat <<\_ASBOX
11295 ## ---------------------------------------- ##
11296 ## Report this to pgsql-bugs@postgresql.org ##
11297 ## ---------------------------------------- ##
11298 _ASBOX
11299      ) | sed "s/^/$as_me: WARNING:     /" >&2
11300     ;;
11301 esac
11302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11303 $as_echo_n "checking for $ac_header... " >&6; }
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305   $as_echo_n "(cached) " >&6
11306 else
11307   eval "$as_ac_Header=\$ac_header_preproc"
11308 fi
11309 ac_res=`eval 'as_val=${'$as_ac_Header'}
11310                  $as_echo "$as_val"'`
11311                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11312 $as_echo "$ac_res" >&6; }
11313
11314 fi
11315 as_val=`eval 'as_val=${'$as_ac_Header'}
11316                  $as_echo "$as_val"'`
11317    if test "x$as_val" = x""yes; then
11318   cat >>confdefs.h <<_ACEOF
11319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11320 _ACEOF
11321
11322 else
11323
11324 for ac_header in history.h
11325 do
11326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 $as_echo_n "checking for $ac_header... " >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331   $as_echo_n "(cached) " >&6
11332 fi
11333 ac_res=`eval 'as_val=${'$as_ac_Header'}
11334                  $as_echo "$as_val"'`
11335                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11336 $as_echo "$ac_res" >&6; }
11337 else
11338   # Is the header compilable?
11339 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11340 $as_echo_n "checking $ac_header usability... " >&6; }
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 $ac_includes_default
11348 #include <$ac_header>
11349 _ACEOF
11350 rm -f conftest.$ac_objext
11351 if { (ac_try="$ac_compile"
11352 case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11357 $as_echo "$ac_try_echo") >&5
11358   (eval "$ac_compile") 2>conftest.er1
11359   ac_status=$?
11360   grep -v '^ *+' conftest.er1 >conftest.err
11361   rm -f conftest.er1
11362   cat conftest.err >&5
11363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); } && {
11365          test -z "$ac_c_werror_flag" ||
11366          test ! -s conftest.err
11367        } && test -s conftest.$ac_objext; then
11368   ac_header_compiler=yes
11369 else
11370   $as_echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373         ac_header_compiler=no
11374 fi
11375
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11378 $as_echo "$ac_header_compiler" >&6; }
11379
11380 # Is the header present?
11381 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11382 $as_echo_n "checking $ac_header presence... " >&6; }
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h.  */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h.  */
11389 #include <$ac_header>
11390 _ACEOF
11391 if { (ac_try="$ac_cpp conftest.$ac_ext"
11392 case "(($ac_try" in
11393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394   *) ac_try_echo=$ac_try;;
11395 esac
11396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397 $as_echo "$ac_try_echo") >&5
11398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } >/dev/null && {
11405          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11406          test ! -s conftest.err
11407        }; then
11408   ac_header_preproc=yes
11409 else
11410   $as_echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11412
11413   ac_header_preproc=no
11414 fi
11415
11416 rm -f conftest.err conftest.$ac_ext
11417 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11418 $as_echo "$ac_header_preproc" >&6; }
11419
11420 # So?  What about this header?
11421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11422   yes:no: )
11423     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11424 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11425     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11427     ac_header_preproc=yes
11428     ;;
11429   no:yes:* )
11430     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11433 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11434     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11435 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11436     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11437 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11438     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11441 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11442     ( cat <<\_ASBOX
11443 ## ---------------------------------------- ##
11444 ## Report this to pgsql-bugs@postgresql.org ##
11445 ## ---------------------------------------- ##
11446 _ASBOX
11447      ) | sed "s/^/$as_me: WARNING:     /" >&2
11448     ;;
11449 esac
11450 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11451 $as_echo_n "checking for $ac_header... " >&6; }
11452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11453   $as_echo_n "(cached) " >&6
11454 else
11455   eval "$as_ac_Header=\$ac_header_preproc"
11456 fi
11457 ac_res=`eval 'as_val=${'$as_ac_Header'}
11458                  $as_echo "$as_val"'`
11459                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11460 $as_echo "$ac_res" >&6; }
11461
11462 fi
11463 as_val=`eval 'as_val=${'$as_ac_Header'}
11464                  $as_echo "$as_val"'`
11465    if test "x$as_val" = x""yes; then
11466   cat >>confdefs.h <<_ACEOF
11467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11468 _ACEOF
11469
11470 else
11471   { { $as_echo "$as_me:$LINENO: error: history header not found
11472 If you have readline already installed, see config.log for details on the
11473 failure.  It is possible the compiler isn't looking in the proper directory.
11474 Use --without-readline to disable readline support." >&5
11475 $as_echo "$as_me: error: history header not found
11476 If you have readline already installed, see config.log for details on the
11477 failure.  It is possible the compiler isn't looking in the proper directory.
11478 Use --without-readline to disable readline support." >&2;}
11479    { (exit 1); exit 1; }; }
11480 fi
11481
11482 done
11483
11484 fi
11485
11486 done
11487
11488 fi
11489
11490 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11491 # Some installations of libedit usurp /usr/include/readline/, which seems
11492 # bad practice, since in combined installations readline will have its headers
11493 # there.  We might have to resort to AC_EGREP checks to make sure we found
11494 # the proper header...
11495
11496 for ac_header in editline/readline.h
11497 do
11498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11501 $as_echo_n "checking for $ac_header... " >&6; }
11502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503   $as_echo_n "(cached) " >&6
11504 fi
11505 ac_res=`eval 'as_val=${'$as_ac_Header'}
11506                  $as_echo "$as_val"'`
11507                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11508 $as_echo "$ac_res" >&6; }
11509 else
11510   # Is the header compilable?
11511 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11512 $as_echo_n "checking $ac_header usability... " >&6; }
11513 cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h.  */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h.  */
11519 $ac_includes_default
11520 #include <$ac_header>
11521 _ACEOF
11522 rm -f conftest.$ac_objext
11523 if { (ac_try="$ac_compile"
11524 case "(($ac_try" in
11525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526   *) ac_try_echo=$ac_try;;
11527 esac
11528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11529 $as_echo "$ac_try_echo") >&5
11530   (eval "$ac_compile") 2>conftest.er1
11531   ac_status=$?
11532   grep -v '^ *+' conftest.er1 >conftest.err
11533   rm -f conftest.er1
11534   cat conftest.err >&5
11535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); } && {
11537          test -z "$ac_c_werror_flag" ||
11538          test ! -s conftest.err
11539        } && test -s conftest.$ac_objext; then
11540   ac_header_compiler=yes
11541 else
11542   $as_echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545         ac_header_compiler=no
11546 fi
11547
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11550 $as_echo "$ac_header_compiler" >&6; }
11551
11552 # Is the header present?
11553 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11554 $as_echo_n "checking $ac_header presence... " >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h.  */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h.  */
11561 #include <$ac_header>
11562 _ACEOF
11563 if { (ac_try="$ac_cpp conftest.$ac_ext"
11564 case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11569 $as_echo "$ac_try_echo") >&5
11570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11571   ac_status=$?
11572   grep -v '^ *+' conftest.er1 >conftest.err
11573   rm -f conftest.er1
11574   cat conftest.err >&5
11575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); } >/dev/null && {
11577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11578          test ! -s conftest.err
11579        }; then
11580   ac_header_preproc=yes
11581 else
11582   $as_echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585   ac_header_preproc=no
11586 fi
11587
11588 rm -f conftest.err conftest.$ac_ext
11589 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11590 $as_echo "$ac_header_preproc" >&6; }
11591
11592 # So?  What about this header?
11593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11594   yes:no: )
11595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11599     ac_header_preproc=yes
11600     ;;
11601   no:yes:* )
11602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11603 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11605 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11607 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11609 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11614     ( cat <<\_ASBOX
11615 ## ---------------------------------------- ##
11616 ## Report this to pgsql-bugs@postgresql.org ##
11617 ## ---------------------------------------- ##
11618 _ASBOX
11619      ) | sed "s/^/$as_me: WARNING:     /" >&2
11620     ;;
11621 esac
11622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11623 $as_echo_n "checking for $ac_header... " >&6; }
11624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11625   $as_echo_n "(cached) " >&6
11626 else
11627   eval "$as_ac_Header=\$ac_header_preproc"
11628 fi
11629 ac_res=`eval 'as_val=${'$as_ac_Header'}
11630                  $as_echo "$as_val"'`
11631                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11632 $as_echo "$ac_res" >&6; }
11633
11634 fi
11635 as_val=`eval 'as_val=${'$as_ac_Header'}
11636                  $as_echo "$as_val"'`
11637    if test "x$as_val" = x""yes; then
11638   cat >>confdefs.h <<_ACEOF
11639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11640 _ACEOF
11641
11642 else
11643
11644 for ac_header in readline.h
11645 do
11646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11648   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11649 $as_echo_n "checking for $ac_header... " >&6; }
11650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11651   $as_echo_n "(cached) " >&6
11652 fi
11653 ac_res=`eval 'as_val=${'$as_ac_Header'}
11654                  $as_echo "$as_val"'`
11655                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11656 $as_echo "$ac_res" >&6; }
11657 else
11658   # Is the header compilable?
11659 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11660 $as_echo_n "checking $ac_header usability... " >&6; }
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667 $ac_includes_default
11668 #include <$ac_header>
11669 _ACEOF
11670 rm -f conftest.$ac_objext
11671 if { (ac_try="$ac_compile"
11672 case "(($ac_try" in
11673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674   *) ac_try_echo=$ac_try;;
11675 esac
11676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11677 $as_echo "$ac_try_echo") >&5
11678   (eval "$ac_compile") 2>conftest.er1
11679   ac_status=$?
11680   grep -v '^ *+' conftest.er1 >conftest.err
11681   rm -f conftest.er1
11682   cat conftest.err >&5
11683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); } && {
11685          test -z "$ac_c_werror_flag" ||
11686          test ! -s conftest.err
11687        } && test -s conftest.$ac_objext; then
11688   ac_header_compiler=yes
11689 else
11690   $as_echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11692
11693         ac_header_compiler=no
11694 fi
11695
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11698 $as_echo "$ac_header_compiler" >&6; }
11699
11700 # Is the header present?
11701 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11702 $as_echo_n "checking $ac_header presence... " >&6; }
11703 cat >conftest.$ac_ext <<_ACEOF
11704 /* confdefs.h.  */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h.  */
11709 #include <$ac_header>
11710 _ACEOF
11711 if { (ac_try="$ac_cpp conftest.$ac_ext"
11712 case "(($ac_try" in
11713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714   *) ac_try_echo=$ac_try;;
11715 esac
11716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11717 $as_echo "$ac_try_echo") >&5
11718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11719   ac_status=$?
11720   grep -v '^ *+' conftest.er1 >conftest.err
11721   rm -f conftest.er1
11722   cat conftest.err >&5
11723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); } >/dev/null && {
11725          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11726          test ! -s conftest.err
11727        }; then
11728   ac_header_preproc=yes
11729 else
11730   $as_echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733   ac_header_preproc=no
11734 fi
11735
11736 rm -f conftest.err conftest.$ac_ext
11737 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11738 $as_echo "$ac_header_preproc" >&6; }
11739
11740 # So?  What about this header?
11741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11742   yes:no: )
11743     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11744 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11745     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11746 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11747     ac_header_preproc=yes
11748     ;;
11749   no:yes:* )
11750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11751 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11752     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11753 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11754     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11755 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11756     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11757 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11758     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11759 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11760     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11761 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11762     ( cat <<\_ASBOX
11763 ## ---------------------------------------- ##
11764 ## Report this to pgsql-bugs@postgresql.org ##
11765 ## ---------------------------------------- ##
11766 _ASBOX
11767      ) | sed "s/^/$as_me: WARNING:     /" >&2
11768     ;;
11769 esac
11770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11771 $as_echo_n "checking for $ac_header... " >&6; }
11772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11773   $as_echo_n "(cached) " >&6
11774 else
11775   eval "$as_ac_Header=\$ac_header_preproc"
11776 fi
11777 ac_res=`eval 'as_val=${'$as_ac_Header'}
11778                  $as_echo "$as_val"'`
11779                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11780 $as_echo "$ac_res" >&6; }
11781
11782 fi
11783 as_val=`eval 'as_val=${'$as_ac_Header'}
11784                  $as_echo "$as_val"'`
11785    if test "x$as_val" = x""yes; then
11786   cat >>confdefs.h <<_ACEOF
11787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11788 _ACEOF
11789
11790 else
11791
11792 for ac_header in readline/readline.h
11793 do
11794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11796   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11797 $as_echo_n "checking for $ac_header... " >&6; }
11798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11799   $as_echo_n "(cached) " >&6
11800 fi
11801 ac_res=`eval 'as_val=${'$as_ac_Header'}
11802                  $as_echo "$as_val"'`
11803                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11804 $as_echo "$ac_res" >&6; }
11805 else
11806   # Is the header compilable?
11807 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808 $as_echo_n "checking $ac_header usability... " >&6; }
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h.  */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h.  */
11815 $ac_includes_default
11816 #include <$ac_header>
11817 _ACEOF
11818 rm -f conftest.$ac_objext
11819 if { (ac_try="$ac_compile"
11820 case "(($ac_try" in
11821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822   *) ac_try_echo=$ac_try;;
11823 esac
11824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11825 $as_echo "$ac_try_echo") >&5
11826   (eval "$ac_compile") 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } && {
11833          test -z "$ac_c_werror_flag" ||
11834          test ! -s conftest.err
11835        } && test -s conftest.$ac_objext; then
11836   ac_header_compiler=yes
11837 else
11838   $as_echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11840
11841         ac_header_compiler=no
11842 fi
11843
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11846 $as_echo "$ac_header_compiler" >&6; }
11847
11848 # Is the header present?
11849 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11850 $as_echo_n "checking $ac_header presence... " >&6; }
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h.  */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h.  */
11857 #include <$ac_header>
11858 _ACEOF
11859 if { (ac_try="$ac_cpp conftest.$ac_ext"
11860 case "(($ac_try" in
11861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862   *) ac_try_echo=$ac_try;;
11863 esac
11864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11865 $as_echo "$ac_try_echo") >&5
11866   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11867   ac_status=$?
11868   grep -v '^ *+' conftest.er1 >conftest.err
11869   rm -f conftest.er1
11870   cat conftest.err >&5
11871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); } >/dev/null && {
11873          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11874          test ! -s conftest.err
11875        }; then
11876   ac_header_preproc=yes
11877 else
11878   $as_echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881   ac_header_preproc=no
11882 fi
11883
11884 rm -f conftest.err conftest.$ac_ext
11885 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11886 $as_echo "$ac_header_preproc" >&6; }
11887
11888 # So?  What about this header?
11889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11890   yes:no: )
11891     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11892 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11894 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11895     ac_header_preproc=yes
11896     ;;
11897   no:yes:* )
11898     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11899 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11901 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11903 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11904     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11905 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11906     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11907 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11908     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11909 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11910     ( cat <<\_ASBOX
11911 ## ---------------------------------------- ##
11912 ## Report this to pgsql-bugs@postgresql.org ##
11913 ## ---------------------------------------- ##
11914 _ASBOX
11915      ) | sed "s/^/$as_me: WARNING:     /" >&2
11916     ;;
11917 esac
11918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11919 $as_echo_n "checking for $ac_header... " >&6; }
11920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11921   $as_echo_n "(cached) " >&6
11922 else
11923   eval "$as_ac_Header=\$ac_header_preproc"
11924 fi
11925 ac_res=`eval 'as_val=${'$as_ac_Header'}
11926                  $as_echo "$as_val"'`
11927                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11928 $as_echo "$ac_res" >&6; }
11929
11930 fi
11931 as_val=`eval 'as_val=${'$as_ac_Header'}
11932                  $as_echo "$as_val"'`
11933    if test "x$as_val" = x""yes; then
11934   cat >>confdefs.h <<_ACEOF
11935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11936 _ACEOF
11937
11938 else
11939   { { $as_echo "$as_me:$LINENO: error: readline header not found
11940 If you have libedit already installed, see config.log for details on the
11941 failure.  It is possible the compiler isn't looking in the proper directory.
11942 Use --without-readline to disable libedit support." >&5
11943 $as_echo "$as_me: error: readline header not found
11944 If you have libedit already installed, see config.log for details on the
11945 failure.  It is possible the compiler isn't looking in the proper directory.
11946 Use --without-readline to disable libedit support." >&2;}
11947    { (exit 1); exit 1; }; }
11948 fi
11949
11950 done
11951
11952 fi
11953
11954 done
11955
11956 fi
11957
11958 done
11959
11960 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11961 # not be there at all.  Hence, don't complain if not found.  We must check
11962 # though, since in yet other versions it is an independent header.
11963
11964 for ac_header in editline/history.h
11965 do
11966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11968   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11969 $as_echo_n "checking for $ac_header... " >&6; }
11970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11971   $as_echo_n "(cached) " >&6
11972 fi
11973 ac_res=`eval 'as_val=${'$as_ac_Header'}
11974                  $as_echo "$as_val"'`
11975                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11976 $as_echo "$ac_res" >&6; }
11977 else
11978   # Is the header compilable?
11979 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11980 $as_echo_n "checking $ac_header usability... " >&6; }
11981 cat >conftest.$ac_ext <<_ACEOF
11982 /* confdefs.h.  */
11983 _ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h.  */
11987 $ac_includes_default
11988 #include <$ac_header>
11989 _ACEOF
11990 rm -f conftest.$ac_objext
11991 if { (ac_try="$ac_compile"
11992 case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11997 $as_echo "$ac_try_echo") >&5
11998   (eval "$ac_compile") 2>conftest.er1
11999   ac_status=$?
12000   grep -v '^ *+' conftest.er1 >conftest.err
12001   rm -f conftest.er1
12002   cat conftest.err >&5
12003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); } && {
12005          test -z "$ac_c_werror_flag" ||
12006          test ! -s conftest.err
12007        } && test -s conftest.$ac_objext; then
12008   ac_header_compiler=yes
12009 else
12010   $as_echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013         ac_header_compiler=no
12014 fi
12015
12016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12018 $as_echo "$ac_header_compiler" >&6; }
12019
12020 # Is the header present?
12021 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12022 $as_echo_n "checking $ac_header presence... " >&6; }
12023 cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h.  */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h.  */
12029 #include <$ac_header>
12030 _ACEOF
12031 if { (ac_try="$ac_cpp conftest.$ac_ext"
12032 case "(($ac_try" in
12033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034   *) ac_try_echo=$ac_try;;
12035 esac
12036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12037 $as_echo "$ac_try_echo") >&5
12038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12039   ac_status=$?
12040   grep -v '^ *+' conftest.er1 >conftest.err
12041   rm -f conftest.er1
12042   cat conftest.err >&5
12043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); } >/dev/null && {
12045          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12046          test ! -s conftest.err
12047        }; then
12048   ac_header_preproc=yes
12049 else
12050   $as_echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12052
12053   ac_header_preproc=no
12054 fi
12055
12056 rm -f conftest.err conftest.$ac_ext
12057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12058 $as_echo "$ac_header_preproc" >&6; }
12059
12060 # So?  What about this header?
12061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12062   yes:no: )
12063     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12064 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12065     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12067     ac_header_preproc=yes
12068     ;;
12069   no:yes:* )
12070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12071 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12073 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12074     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12075 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12076     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12077 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12078     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12080     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12081 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12082     ( cat <<\_ASBOX
12083 ## ---------------------------------------- ##
12084 ## Report this to pgsql-bugs@postgresql.org ##
12085 ## ---------------------------------------- ##
12086 _ASBOX
12087      ) | sed "s/^/$as_me: WARNING:     /" >&2
12088     ;;
12089 esac
12090 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12091 $as_echo_n "checking for $ac_header... " >&6; }
12092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12093   $as_echo_n "(cached) " >&6
12094 else
12095   eval "$as_ac_Header=\$ac_header_preproc"
12096 fi
12097 ac_res=`eval 'as_val=${'$as_ac_Header'}
12098                  $as_echo "$as_val"'`
12099                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12100 $as_echo "$ac_res" >&6; }
12101
12102 fi
12103 as_val=`eval 'as_val=${'$as_ac_Header'}
12104                  $as_echo "$as_val"'`
12105    if test "x$as_val" = x""yes; then
12106   cat >>confdefs.h <<_ACEOF
12107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12108 _ACEOF
12109
12110 else
12111
12112 for ac_header in history.h
12113 do
12114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12116   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12117 $as_echo_n "checking for $ac_header... " >&6; }
12118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119   $as_echo_n "(cached) " >&6
12120 fi
12121 ac_res=`eval 'as_val=${'$as_ac_Header'}
12122                  $as_echo "$as_val"'`
12123                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12124 $as_echo "$ac_res" >&6; }
12125 else
12126   # Is the header compilable?
12127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12128 $as_echo_n "checking $ac_header usability... " >&6; }
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h.  */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h.  */
12135 $ac_includes_default
12136 #include <$ac_header>
12137 _ACEOF
12138 rm -f conftest.$ac_objext
12139 if { (ac_try="$ac_compile"
12140 case "(($ac_try" in
12141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142   *) ac_try_echo=$ac_try;;
12143 esac
12144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12145 $as_echo "$ac_try_echo") >&5
12146   (eval "$ac_compile") 2>conftest.er1
12147   ac_status=$?
12148   grep -v '^ *+' conftest.er1 >conftest.err
12149   rm -f conftest.er1
12150   cat conftest.err >&5
12151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } && {
12153          test -z "$ac_c_werror_flag" ||
12154          test ! -s conftest.err
12155        } && test -s conftest.$ac_objext; then
12156   ac_header_compiler=yes
12157 else
12158   $as_echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12160
12161         ac_header_compiler=no
12162 fi
12163
12164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12166 $as_echo "$ac_header_compiler" >&6; }
12167
12168 # Is the header present?
12169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12170 $as_echo_n "checking $ac_header presence... " >&6; }
12171 cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h.  */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h.  */
12177 #include <$ac_header>
12178 _ACEOF
12179 if { (ac_try="$ac_cpp conftest.$ac_ext"
12180 case "(($ac_try" in
12181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182   *) ac_try_echo=$ac_try;;
12183 esac
12184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12185 $as_echo "$ac_try_echo") >&5
12186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12187   ac_status=$?
12188   grep -v '^ *+' conftest.er1 >conftest.err
12189   rm -f conftest.er1
12190   cat conftest.err >&5
12191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } >/dev/null && {
12193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12194          test ! -s conftest.err
12195        }; then
12196   ac_header_preproc=yes
12197 else
12198   $as_echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12200
12201   ac_header_preproc=no
12202 fi
12203
12204 rm -f conftest.err conftest.$ac_ext
12205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12206 $as_echo "$ac_header_preproc" >&6; }
12207
12208 # So?  What about this header?
12209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12210   yes:no: )
12211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12215     ac_header_preproc=yes
12216     ;;
12217   no:yes:* )
12218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12221 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12225 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12230     ( cat <<\_ASBOX
12231 ## ---------------------------------------- ##
12232 ## Report this to pgsql-bugs@postgresql.org ##
12233 ## ---------------------------------------- ##
12234 _ASBOX
12235      ) | sed "s/^/$as_me: WARNING:     /" >&2
12236     ;;
12237 esac
12238 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12239 $as_echo_n "checking for $ac_header... " >&6; }
12240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12241   $as_echo_n "(cached) " >&6
12242 else
12243   eval "$as_ac_Header=\$ac_header_preproc"
12244 fi
12245 ac_res=`eval 'as_val=${'$as_ac_Header'}
12246                  $as_echo "$as_val"'`
12247                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12248 $as_echo "$ac_res" >&6; }
12249
12250 fi
12251 as_val=`eval 'as_val=${'$as_ac_Header'}
12252                  $as_echo "$as_val"'`
12253    if test "x$as_val" = x""yes; then
12254   cat >>confdefs.h <<_ACEOF
12255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12256 _ACEOF
12257
12258 else
12259
12260 for ac_header in readline/history.h
12261 do
12262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12264   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12265 $as_echo_n "checking for $ac_header... " >&6; }
12266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12267   $as_echo_n "(cached) " >&6
12268 fi
12269 ac_res=`eval 'as_val=${'$as_ac_Header'}
12270                  $as_echo "$as_val"'`
12271                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12272 $as_echo "$ac_res" >&6; }
12273 else
12274   # Is the header compilable?
12275 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12276 $as_echo_n "checking $ac_header usability... " >&6; }
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283 $ac_includes_default
12284 #include <$ac_header>
12285 _ACEOF
12286 rm -f conftest.$ac_objext
12287 if { (ac_try="$ac_compile"
12288 case "(($ac_try" in
12289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290   *) ac_try_echo=$ac_try;;
12291 esac
12292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12293 $as_echo "$ac_try_echo") >&5
12294   (eval "$ac_compile") 2>conftest.er1
12295   ac_status=$?
12296   grep -v '^ *+' conftest.er1 >conftest.err
12297   rm -f conftest.er1
12298   cat conftest.err >&5
12299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); } && {
12301          test -z "$ac_c_werror_flag" ||
12302          test ! -s conftest.err
12303        } && test -s conftest.$ac_objext; then
12304   ac_header_compiler=yes
12305 else
12306   $as_echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309         ac_header_compiler=no
12310 fi
12311
12312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12314 $as_echo "$ac_header_compiler" >&6; }
12315
12316 # Is the header present?
12317 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12318 $as_echo_n "checking $ac_header presence... " >&6; }
12319 cat >conftest.$ac_ext <<_ACEOF
12320 /* confdefs.h.  */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h.  */
12325 #include <$ac_header>
12326 _ACEOF
12327 if { (ac_try="$ac_cpp conftest.$ac_ext"
12328 case "(($ac_try" in
12329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330   *) ac_try_echo=$ac_try;;
12331 esac
12332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12333 $as_echo "$ac_try_echo") >&5
12334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12335   ac_status=$?
12336   grep -v '^ *+' conftest.er1 >conftest.err
12337   rm -f conftest.er1
12338   cat conftest.err >&5
12339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); } >/dev/null && {
12341          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12342          test ! -s conftest.err
12343        }; then
12344   ac_header_preproc=yes
12345 else
12346   $as_echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349   ac_header_preproc=no
12350 fi
12351
12352 rm -f conftest.err conftest.$ac_ext
12353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12354 $as_echo "$ac_header_preproc" >&6; }
12355
12356 # So?  What about this header?
12357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12358   yes:no: )
12359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12360 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12361     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12363     ac_header_preproc=yes
12364     ;;
12365   no:yes:* )
12366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12367 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12369 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12371 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12373 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12377 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12378     ( cat <<\_ASBOX
12379 ## ---------------------------------------- ##
12380 ## Report this to pgsql-bugs@postgresql.org ##
12381 ## ---------------------------------------- ##
12382 _ASBOX
12383      ) | sed "s/^/$as_me: WARNING:     /" >&2
12384     ;;
12385 esac
12386 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12387 $as_echo_n "checking for $ac_header... " >&6; }
12388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12389   $as_echo_n "(cached) " >&6
12390 else
12391   eval "$as_ac_Header=\$ac_header_preproc"
12392 fi
12393 ac_res=`eval 'as_val=${'$as_ac_Header'}
12394                  $as_echo "$as_val"'`
12395                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12396 $as_echo "$ac_res" >&6; }
12397
12398 fi
12399 as_val=`eval 'as_val=${'$as_ac_Header'}
12400                  $as_echo "$as_val"'`
12401    if test "x$as_val" = x""yes; then
12402   cat >>confdefs.h <<_ACEOF
12403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12404 _ACEOF
12405
12406 fi
12407
12408 done
12409
12410 fi
12411
12412 done
12413
12414 fi
12415
12416 done
12417
12418 fi
12419
12420 if test "$with_zlib" = yes; then
12421   if test "${ac_cv_header_zlib_h+set}" = set; then
12422   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12423 $as_echo_n "checking for zlib.h... " >&6; }
12424 if test "${ac_cv_header_zlib_h+set}" = set; then
12425   $as_echo_n "(cached) " >&6
12426 fi
12427 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12428 $as_echo "$ac_cv_header_zlib_h" >&6; }
12429 else
12430   # Is the header compilable?
12431 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12432 $as_echo_n "checking zlib.h usability... " >&6; }
12433 cat >conftest.$ac_ext <<_ACEOF
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439 $ac_includes_default
12440 #include <zlib.h>
12441 _ACEOF
12442 rm -f conftest.$ac_objext
12443 if { (ac_try="$ac_compile"
12444 case "(($ac_try" in
12445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446   *) ac_try_echo=$ac_try;;
12447 esac
12448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12449 $as_echo "$ac_try_echo") >&5
12450   (eval "$ac_compile") 2>conftest.er1
12451   ac_status=$?
12452   grep -v '^ *+' conftest.er1 >conftest.err
12453   rm -f conftest.er1
12454   cat conftest.err >&5
12455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } && {
12457          test -z "$ac_c_werror_flag" ||
12458          test ! -s conftest.err
12459        } && test -s conftest.$ac_objext; then
12460   ac_header_compiler=yes
12461 else
12462   $as_echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12464
12465         ac_header_compiler=no
12466 fi
12467
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12470 $as_echo "$ac_header_compiler" >&6; }
12471
12472 # Is the header present?
12473 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12474 $as_echo_n "checking zlib.h presence... " >&6; }
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h.  */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h.  */
12481 #include <zlib.h>
12482 _ACEOF
12483 if { (ac_try="$ac_cpp conftest.$ac_ext"
12484 case "(($ac_try" in
12485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486   *) ac_try_echo=$ac_try;;
12487 esac
12488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12489 $as_echo "$ac_try_echo") >&5
12490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12491   ac_status=$?
12492   grep -v '^ *+' conftest.er1 >conftest.err
12493   rm -f conftest.er1
12494   cat conftest.err >&5
12495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); } >/dev/null && {
12497          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12498          test ! -s conftest.err
12499        }; then
12500   ac_header_preproc=yes
12501 else
12502   $as_echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12504
12505   ac_header_preproc=no
12506 fi
12507
12508 rm -f conftest.err conftest.$ac_ext
12509 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12510 $as_echo "$ac_header_preproc" >&6; }
12511
12512 # So?  What about this header?
12513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12514   yes:no: )
12515     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12516 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12517     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12518 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12519     ac_header_preproc=yes
12520     ;;
12521   no:yes:* )
12522     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12523 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12524     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12525 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12526     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12527 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12528     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12529 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12530     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12531 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12532     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12533 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12534     ( cat <<\_ASBOX
12535 ## ---------------------------------------- ##
12536 ## Report this to pgsql-bugs@postgresql.org ##
12537 ## ---------------------------------------- ##
12538 _ASBOX
12539      ) | sed "s/^/$as_me: WARNING:     /" >&2
12540     ;;
12541 esac
12542 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12543 $as_echo_n "checking for zlib.h... " >&6; }
12544 if test "${ac_cv_header_zlib_h+set}" = set; then
12545   $as_echo_n "(cached) " >&6
12546 else
12547   ac_cv_header_zlib_h=$ac_header_preproc
12548 fi
12549 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12550 $as_echo "$ac_cv_header_zlib_h" >&6; }
12551
12552 fi
12553 if test "x$ac_cv_header_zlib_h" = x""yes; then
12554   :
12555 else
12556   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12557 If you have zlib already installed, see config.log for details on the
12558 failure.  It is possible the compiler isn't looking in the proper directory.
12559 Use --without-zlib to disable zlib support." >&5
12560 $as_echo "$as_me: error: zlib header not found
12561 If you have zlib already installed, see config.log for details on the
12562 failure.  It is possible the compiler isn't looking in the proper directory.
12563 Use --without-zlib to disable zlib support." >&2;}
12564    { (exit 1); exit 1; }; }
12565 fi
12566
12567
12568 fi
12569
12570 if test "$with_gssapi" = yes ; then
12571
12572 for ac_header in gssapi/gssapi.h
12573 do
12574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12576   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12577 $as_echo_n "checking for $ac_header... " >&6; }
12578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12579   $as_echo_n "(cached) " >&6
12580 fi
12581 ac_res=`eval 'as_val=${'$as_ac_Header'}
12582                  $as_echo "$as_val"'`
12583                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12584 $as_echo "$ac_res" >&6; }
12585 else
12586   # Is the header compilable?
12587 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12588 $as_echo_n "checking $ac_header usability... " >&6; }
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595 $ac_includes_default
12596 #include <$ac_header>
12597 _ACEOF
12598 rm -f conftest.$ac_objext
12599 if { (ac_try="$ac_compile"
12600 case "(($ac_try" in
12601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602   *) ac_try_echo=$ac_try;;
12603 esac
12604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12605 $as_echo "$ac_try_echo") >&5
12606   (eval "$ac_compile") 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } && {
12613          test -z "$ac_c_werror_flag" ||
12614          test ! -s conftest.err
12615        } && test -s conftest.$ac_objext; then
12616   ac_header_compiler=yes
12617 else
12618   $as_echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621         ac_header_compiler=no
12622 fi
12623
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626 $as_echo "$ac_header_compiler" >&6; }
12627
12628 # Is the header present?
12629 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12630 $as_echo_n "checking $ac_header presence... " >&6; }
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h.  */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h.  */
12637 #include <$ac_header>
12638 _ACEOF
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12645 $as_echo "$ac_try_echo") >&5
12646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12647   ac_status=$?
12648   grep -v '^ *+' conftest.er1 >conftest.err
12649   rm -f conftest.er1
12650   cat conftest.err >&5
12651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); } >/dev/null && {
12653          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12654          test ! -s conftest.err
12655        }; then
12656   ac_header_preproc=yes
12657 else
12658   $as_echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661   ac_header_preproc=no
12662 fi
12663
12664 rm -f conftest.err conftest.$ac_ext
12665 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12666 $as_echo "$ac_header_preproc" >&6; }
12667
12668 # So?  What about this header?
12669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12670   yes:no: )
12671     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12672 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12673     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12674 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12675     ac_header_preproc=yes
12676     ;;
12677   no:yes:* )
12678     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12679 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12680     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12681 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12682     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12683 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12685 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12688     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12689 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12690     ( cat <<\_ASBOX
12691 ## ---------------------------------------- ##
12692 ## Report this to pgsql-bugs@postgresql.org ##
12693 ## ---------------------------------------- ##
12694 _ASBOX
12695      ) | sed "s/^/$as_me: WARNING:     /" >&2
12696     ;;
12697 esac
12698 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12699 $as_echo_n "checking for $ac_header... " >&6; }
12700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12701   $as_echo_n "(cached) " >&6
12702 else
12703   eval "$as_ac_Header=\$ac_header_preproc"
12704 fi
12705 ac_res=`eval 'as_val=${'$as_ac_Header'}
12706                  $as_echo "$as_val"'`
12707                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12708 $as_echo "$ac_res" >&6; }
12709
12710 fi
12711 as_val=`eval 'as_val=${'$as_ac_Header'}
12712                  $as_echo "$as_val"'`
12713    if test "x$as_val" = x""yes; then
12714   cat >>confdefs.h <<_ACEOF
12715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12716 _ACEOF
12717
12718 else
12719
12720 for ac_header in gssapi.h
12721 do
12722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12724   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12725 $as_echo_n "checking for $ac_header... " >&6; }
12726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12727   $as_echo_n "(cached) " >&6
12728 fi
12729 ac_res=`eval 'as_val=${'$as_ac_Header'}
12730                  $as_echo "$as_val"'`
12731                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12732 $as_echo "$ac_res" >&6; }
12733 else
12734   # Is the header compilable?
12735 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12736 $as_echo_n "checking $ac_header usability... " >&6; }
12737 cat >conftest.$ac_ext <<_ACEOF
12738 /* confdefs.h.  */
12739 _ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h.  */
12743 $ac_includes_default
12744 #include <$ac_header>
12745 _ACEOF
12746 rm -f conftest.$ac_objext
12747 if { (ac_try="$ac_compile"
12748 case "(($ac_try" in
12749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750   *) ac_try_echo=$ac_try;;
12751 esac
12752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12753 $as_echo "$ac_try_echo") >&5
12754   (eval "$ac_compile") 2>conftest.er1
12755   ac_status=$?
12756   grep -v '^ *+' conftest.er1 >conftest.err
12757   rm -f conftest.er1
12758   cat conftest.err >&5
12759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); } && {
12761          test -z "$ac_c_werror_flag" ||
12762          test ! -s conftest.err
12763        } && test -s conftest.$ac_objext; then
12764   ac_header_compiler=yes
12765 else
12766   $as_echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12768
12769         ac_header_compiler=no
12770 fi
12771
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12774 $as_echo "$ac_header_compiler" >&6; }
12775
12776 # Is the header present?
12777 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12778 $as_echo_n "checking $ac_header presence... " >&6; }
12779 cat >conftest.$ac_ext <<_ACEOF
12780 /* confdefs.h.  */
12781 _ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h.  */
12785 #include <$ac_header>
12786 _ACEOF
12787 if { (ac_try="$ac_cpp conftest.$ac_ext"
12788 case "(($ac_try" in
12789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790   *) ac_try_echo=$ac_try;;
12791 esac
12792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12793 $as_echo "$ac_try_echo") >&5
12794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12795   ac_status=$?
12796   grep -v '^ *+' conftest.er1 >conftest.err
12797   rm -f conftest.er1
12798   cat conftest.err >&5
12799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); } >/dev/null && {
12801          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12802          test ! -s conftest.err
12803        }; then
12804   ac_header_preproc=yes
12805 else
12806   $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12808
12809   ac_header_preproc=no
12810 fi
12811
12812 rm -f conftest.err conftest.$ac_ext
12813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12814 $as_echo "$ac_header_preproc" >&6; }
12815
12816 # So?  What about this header?
12817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12818   yes:no: )
12819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12820 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12823     ac_header_preproc=yes
12824     ;;
12825   no:yes:* )
12826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12827 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12829 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12831 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12833 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12834     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12836     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12837 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12838     ( cat <<\_ASBOX
12839 ## ---------------------------------------- ##
12840 ## Report this to pgsql-bugs@postgresql.org ##
12841 ## ---------------------------------------- ##
12842 _ASBOX
12843      ) | sed "s/^/$as_me: WARNING:     /" >&2
12844     ;;
12845 esac
12846 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12847 $as_echo_n "checking for $ac_header... " >&6; }
12848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12849   $as_echo_n "(cached) " >&6
12850 else
12851   eval "$as_ac_Header=\$ac_header_preproc"
12852 fi
12853 ac_res=`eval 'as_val=${'$as_ac_Header'}
12854                  $as_echo "$as_val"'`
12855                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12856 $as_echo "$ac_res" >&6; }
12857
12858 fi
12859 as_val=`eval 'as_val=${'$as_ac_Header'}
12860                  $as_echo "$as_val"'`
12861    if test "x$as_val" = x""yes; then
12862   cat >>confdefs.h <<_ACEOF
12863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12864 _ACEOF
12865
12866 else
12867   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12868 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12869    { (exit 1); exit 1; }; }
12870 fi
12871
12872 done
12873
12874 fi
12875
12876 done
12877
12878 fi
12879
12880 if test "$with_krb5" = yes ; then
12881   if test "${ac_cv_header_krb5_h+set}" = set; then
12882   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12883 $as_echo_n "checking for krb5.h... " >&6; }
12884 if test "${ac_cv_header_krb5_h+set}" = set; then
12885   $as_echo_n "(cached) " >&6
12886 fi
12887 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12888 $as_echo "$ac_cv_header_krb5_h" >&6; }
12889 else
12890   # Is the header compilable?
12891 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12892 $as_echo_n "checking krb5.h usability... " >&6; }
12893 cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h.  */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h.  */
12899 $ac_includes_default
12900 #include <krb5.h>
12901 _ACEOF
12902 rm -f conftest.$ac_objext
12903 if { (ac_try="$ac_compile"
12904 case "(($ac_try" in
12905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906   *) ac_try_echo=$ac_try;;
12907 esac
12908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12909 $as_echo "$ac_try_echo") >&5
12910   (eval "$ac_compile") 2>conftest.er1
12911   ac_status=$?
12912   grep -v '^ *+' conftest.er1 >conftest.err
12913   rm -f conftest.er1
12914   cat conftest.err >&5
12915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); } && {
12917          test -z "$ac_c_werror_flag" ||
12918          test ! -s conftest.err
12919        } && test -s conftest.$ac_objext; then
12920   ac_header_compiler=yes
12921 else
12922   $as_echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12924
12925         ac_header_compiler=no
12926 fi
12927
12928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12930 $as_echo "$ac_header_compiler" >&6; }
12931
12932 # Is the header present?
12933 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12934 $as_echo_n "checking krb5.h presence... " >&6; }
12935 cat >conftest.$ac_ext <<_ACEOF
12936 /* confdefs.h.  */
12937 _ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h.  */
12941 #include <krb5.h>
12942 _ACEOF
12943 if { (ac_try="$ac_cpp conftest.$ac_ext"
12944 case "(($ac_try" in
12945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946   *) ac_try_echo=$ac_try;;
12947 esac
12948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12951   ac_status=$?
12952   grep -v '^ *+' conftest.er1 >conftest.err
12953   rm -f conftest.er1
12954   cat conftest.err >&5
12955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } >/dev/null && {
12957          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12958          test ! -s conftest.err
12959        }; then
12960   ac_header_preproc=yes
12961 else
12962   $as_echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12964
12965   ac_header_preproc=no
12966 fi
12967
12968 rm -f conftest.err conftest.$ac_ext
12969 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12970 $as_echo "$ac_header_preproc" >&6; }
12971
12972 # So?  What about this header?
12973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12974   yes:no: )
12975     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12976 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12977     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12978 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12979     ac_header_preproc=yes
12980     ;;
12981   no:yes:* )
12982     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12983 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12984     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12985 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12986     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12987 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12988     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12989 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12990     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12991 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12992     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12993 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12994     ( cat <<\_ASBOX
12995 ## ---------------------------------------- ##
12996 ## Report this to pgsql-bugs@postgresql.org ##
12997 ## ---------------------------------------- ##
12998 _ASBOX
12999      ) | sed "s/^/$as_me: WARNING:     /" >&2
13000     ;;
13001 esac
13002 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
13003 $as_echo_n "checking for krb5.h... " >&6; }
13004 if test "${ac_cv_header_krb5_h+set}" = set; then
13005   $as_echo_n "(cached) " >&6
13006 else
13007   ac_cv_header_krb5_h=$ac_header_preproc
13008 fi
13009 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
13010 $as_echo "$ac_cv_header_krb5_h" >&6; }
13011
13012 fi
13013 if test "x$ac_cv_header_krb5_h" = x""yes; then
13014   :
13015 else
13016   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
13017 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
13018    { (exit 1); exit 1; }; }
13019 fi
13020
13021
13022 fi
13023
13024 if test "$with_openssl" = yes ; then
13025   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13026   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13027 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13028 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13029   $as_echo_n "(cached) " >&6
13030 fi
13031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13032 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13033 else
13034   # Is the header compilable?
13035 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
13036 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
13037 cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h.  */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h.  */
13043 $ac_includes_default
13044 #include <openssl/ssl.h>
13045 _ACEOF
13046 rm -f conftest.$ac_objext
13047 if { (ac_try="$ac_compile"
13048 case "(($ac_try" in
13049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050   *) ac_try_echo=$ac_try;;
13051 esac
13052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13053 $as_echo "$ac_try_echo") >&5
13054   (eval "$ac_compile") 2>conftest.er1
13055   ac_status=$?
13056   grep -v '^ *+' conftest.er1 >conftest.err
13057   rm -f conftest.er1
13058   cat conftest.err >&5
13059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } && {
13061          test -z "$ac_c_werror_flag" ||
13062          test ! -s conftest.err
13063        } && test -s conftest.$ac_objext; then
13064   ac_header_compiler=yes
13065 else
13066   $as_echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13068
13069         ac_header_compiler=no
13070 fi
13071
13072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13074 $as_echo "$ac_header_compiler" >&6; }
13075
13076 # Is the header present?
13077 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
13078 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h.  */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h.  */
13085 #include <openssl/ssl.h>
13086 _ACEOF
13087 if { (ac_try="$ac_cpp conftest.$ac_ext"
13088 case "(($ac_try" in
13089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090   *) ac_try_echo=$ac_try;;
13091 esac
13092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13093 $as_echo "$ac_try_echo") >&5
13094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13095   ac_status=$?
13096   grep -v '^ *+' conftest.er1 >conftest.err
13097   rm -f conftest.er1
13098   cat conftest.err >&5
13099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } >/dev/null && {
13101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13102          test ! -s conftest.err
13103        }; then
13104   ac_header_preproc=yes
13105 else
13106   $as_echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13108
13109   ac_header_preproc=no
13110 fi
13111
13112 rm -f conftest.err conftest.$ac_ext
13113 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13114 $as_echo "$ac_header_preproc" >&6; }
13115
13116 # So?  What about this header?
13117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13118   yes:no: )
13119     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13120 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13121     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
13122 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
13123     ac_header_preproc=yes
13124     ;;
13125   no:yes:* )
13126     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
13127 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
13128     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
13129 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
13130     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13131 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13132     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
13133 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13134     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13135 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13136     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13137 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13138     ( cat <<\_ASBOX
13139 ## ---------------------------------------- ##
13140 ## Report this to pgsql-bugs@postgresql.org ##
13141 ## ---------------------------------------- ##
13142 _ASBOX
13143      ) | sed "s/^/$as_me: WARNING:     /" >&2
13144     ;;
13145 esac
13146 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13147 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13148 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13149   $as_echo_n "(cached) " >&6
13150 else
13151   ac_cv_header_openssl_ssl_h=$ac_header_preproc
13152 fi
13153 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13154 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13155
13156 fi
13157 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
13158   :
13159 else
13160   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
13161 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
13162    { (exit 1); exit 1; }; }
13163 fi
13164
13165
13166   if test "${ac_cv_header_openssl_err_h+set}" = set; then
13167   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13168 $as_echo_n "checking for openssl/err.h... " >&6; }
13169 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13170   $as_echo_n "(cached) " >&6
13171 fi
13172 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13173 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13174 else
13175   # Is the header compilable?
13176 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
13177 $as_echo_n "checking openssl/err.h usability... " >&6; }
13178 cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h.  */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h.  */
13184 $ac_includes_default
13185 #include <openssl/err.h>
13186 _ACEOF
13187 rm -f conftest.$ac_objext
13188 if { (ac_try="$ac_compile"
13189 case "(($ac_try" in
13190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191   *) ac_try_echo=$ac_try;;
13192 esac
13193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13194 $as_echo "$ac_try_echo") >&5
13195   (eval "$ac_compile") 2>conftest.er1
13196   ac_status=$?
13197   grep -v '^ *+' conftest.er1 >conftest.err
13198   rm -f conftest.er1
13199   cat conftest.err >&5
13200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } && {
13202          test -z "$ac_c_werror_flag" ||
13203          test ! -s conftest.err
13204        } && test -s conftest.$ac_objext; then
13205   ac_header_compiler=yes
13206 else
13207   $as_echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13209
13210         ac_header_compiler=no
13211 fi
13212
13213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13215 $as_echo "$ac_header_compiler" >&6; }
13216
13217 # Is the header present?
13218 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13219 $as_echo_n "checking openssl/err.h presence... " >&6; }
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h.  */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h.  */
13226 #include <openssl/err.h>
13227 _ACEOF
13228 if { (ac_try="$ac_cpp conftest.$ac_ext"
13229 case "(($ac_try" in
13230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231   *) ac_try_echo=$ac_try;;
13232 esac
13233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13234 $as_echo "$ac_try_echo") >&5
13235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13236   ac_status=$?
13237   grep -v '^ *+' conftest.er1 >conftest.err
13238   rm -f conftest.er1
13239   cat conftest.err >&5
13240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } >/dev/null && {
13242          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13243          test ! -s conftest.err
13244        }; then
13245   ac_header_preproc=yes
13246 else
13247   $as_echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13249
13250   ac_header_preproc=no
13251 fi
13252
13253 rm -f conftest.err conftest.$ac_ext
13254 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13255 $as_echo "$ac_header_preproc" >&6; }
13256
13257 # So?  What about this header?
13258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13259   yes:no: )
13260     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13261 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13262     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13263 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13264     ac_header_preproc=yes
13265     ;;
13266   no:yes:* )
13267     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13268 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13269     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
13270 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
13271     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13272 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13273     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
13274 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13275     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13276 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13277     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13278 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13279     ( cat <<\_ASBOX
13280 ## ---------------------------------------- ##
13281 ## Report this to pgsql-bugs@postgresql.org ##
13282 ## ---------------------------------------- ##
13283 _ASBOX
13284      ) | sed "s/^/$as_me: WARNING:     /" >&2
13285     ;;
13286 esac
13287 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13288 $as_echo_n "checking for openssl/err.h... " >&6; }
13289 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13290   $as_echo_n "(cached) " >&6
13291 else
13292   ac_cv_header_openssl_err_h=$ac_header_preproc
13293 fi
13294 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13295 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13296
13297 fi
13298 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13299   :
13300 else
13301   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13302 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13303    { (exit 1); exit 1; }; }
13304 fi
13305
13306
13307 fi
13308
13309 if test "$with_pam" = yes ; then
13310
13311 for ac_header in security/pam_appl.h
13312 do
13313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13315   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13316 $as_echo_n "checking for $ac_header... " >&6; }
13317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13318   $as_echo_n "(cached) " >&6
13319 fi
13320 ac_res=`eval 'as_val=${'$as_ac_Header'}
13321                  $as_echo "$as_val"'`
13322                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13323 $as_echo "$ac_res" >&6; }
13324 else
13325   # Is the header compilable?
13326 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13327 $as_echo_n "checking $ac_header usability... " >&6; }
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h.  */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h.  */
13334 $ac_includes_default
13335 #include <$ac_header>
13336 _ACEOF
13337 rm -f conftest.$ac_objext
13338 if { (ac_try="$ac_compile"
13339 case "(($ac_try" in
13340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341   *) ac_try_echo=$ac_try;;
13342 esac
13343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13344 $as_echo "$ac_try_echo") >&5
13345   (eval "$ac_compile") 2>conftest.er1
13346   ac_status=$?
13347   grep -v '^ *+' conftest.er1 >conftest.err
13348   rm -f conftest.er1
13349   cat conftest.err >&5
13350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351   (exit $ac_status); } && {
13352          test -z "$ac_c_werror_flag" ||
13353          test ! -s conftest.err
13354        } && test -s conftest.$ac_objext; then
13355   ac_header_compiler=yes
13356 else
13357   $as_echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13359
13360         ac_header_compiler=no
13361 fi
13362
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13365 $as_echo "$ac_header_compiler" >&6; }
13366
13367 # Is the header present?
13368 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13369 $as_echo_n "checking $ac_header presence... " >&6; }
13370 cat >conftest.$ac_ext <<_ACEOF
13371 /* confdefs.h.  */
13372 _ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h.  */
13376 #include <$ac_header>
13377 _ACEOF
13378 if { (ac_try="$ac_cpp conftest.$ac_ext"
13379 case "(($ac_try" in
13380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381   *) ac_try_echo=$ac_try;;
13382 esac
13383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13384 $as_echo "$ac_try_echo") >&5
13385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13386   ac_status=$?
13387   grep -v '^ *+' conftest.er1 >conftest.err
13388   rm -f conftest.er1
13389   cat conftest.err >&5
13390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391   (exit $ac_status); } >/dev/null && {
13392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13393          test ! -s conftest.err
13394        }; then
13395   ac_header_preproc=yes
13396 else
13397   $as_echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13399
13400   ac_header_preproc=no
13401 fi
13402
13403 rm -f conftest.err conftest.$ac_ext
13404 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13405 $as_echo "$ac_header_preproc" >&6; }
13406
13407 # So?  What about this header?
13408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13409   yes:no: )
13410     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13411 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13412     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13413 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13414     ac_header_preproc=yes
13415     ;;
13416   no:yes:* )
13417     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13418 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13419     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13420 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13421     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13422 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13423     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13424 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13425     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13427     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13428 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13429     ( cat <<\_ASBOX
13430 ## ---------------------------------------- ##
13431 ## Report this to pgsql-bugs@postgresql.org ##
13432 ## ---------------------------------------- ##
13433 _ASBOX
13434      ) | sed "s/^/$as_me: WARNING:     /" >&2
13435     ;;
13436 esac
13437 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13438 $as_echo_n "checking for $ac_header... " >&6; }
13439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13440   $as_echo_n "(cached) " >&6
13441 else
13442   eval "$as_ac_Header=\$ac_header_preproc"
13443 fi
13444 ac_res=`eval 'as_val=${'$as_ac_Header'}
13445                  $as_echo "$as_val"'`
13446                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13447 $as_echo "$ac_res" >&6; }
13448
13449 fi
13450 as_val=`eval 'as_val=${'$as_ac_Header'}
13451                  $as_echo "$as_val"'`
13452    if test "x$as_val" = x""yes; then
13453   cat >>confdefs.h <<_ACEOF
13454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13455 _ACEOF
13456
13457 else
13458
13459 for ac_header in pam/pam_appl.h
13460 do
13461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13463   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13464 $as_echo_n "checking for $ac_header... " >&6; }
13465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13466   $as_echo_n "(cached) " >&6
13467 fi
13468 ac_res=`eval 'as_val=${'$as_ac_Header'}
13469                  $as_echo "$as_val"'`
13470                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13471 $as_echo "$ac_res" >&6; }
13472 else
13473   # Is the header compilable?
13474 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13475 $as_echo_n "checking $ac_header usability... " >&6; }
13476 cat >conftest.$ac_ext <<_ACEOF
13477 /* confdefs.h.  */
13478 _ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h.  */
13482 $ac_includes_default
13483 #include <$ac_header>
13484 _ACEOF
13485 rm -f conftest.$ac_objext
13486 if { (ac_try="$ac_compile"
13487 case "(($ac_try" in
13488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489   *) ac_try_echo=$ac_try;;
13490 esac
13491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13492 $as_echo "$ac_try_echo") >&5
13493   (eval "$ac_compile") 2>conftest.er1
13494   ac_status=$?
13495   grep -v '^ *+' conftest.er1 >conftest.err
13496   rm -f conftest.er1
13497   cat conftest.err >&5
13498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } && {
13500          test -z "$ac_c_werror_flag" ||
13501          test ! -s conftest.err
13502        } && test -s conftest.$ac_objext; then
13503   ac_header_compiler=yes
13504 else
13505   $as_echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508         ac_header_compiler=no
13509 fi
13510
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13513 $as_echo "$ac_header_compiler" >&6; }
13514
13515 # Is the header present?
13516 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13517 $as_echo_n "checking $ac_header presence... " >&6; }
13518 cat >conftest.$ac_ext <<_ACEOF
13519 /* confdefs.h.  */
13520 _ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h.  */
13524 #include <$ac_header>
13525 _ACEOF
13526 if { (ac_try="$ac_cpp conftest.$ac_ext"
13527 case "(($ac_try" in
13528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529   *) ac_try_echo=$ac_try;;
13530 esac
13531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13532 $as_echo "$ac_try_echo") >&5
13533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13534   ac_status=$?
13535   grep -v '^ *+' conftest.er1 >conftest.err
13536   rm -f conftest.er1
13537   cat conftest.err >&5
13538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); } >/dev/null && {
13540          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13541          test ! -s conftest.err
13542        }; then
13543   ac_header_preproc=yes
13544 else
13545   $as_echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13547
13548   ac_header_preproc=no
13549 fi
13550
13551 rm -f conftest.err conftest.$ac_ext
13552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13553 $as_echo "$ac_header_preproc" >&6; }
13554
13555 # So?  What about this header?
13556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13557   yes:no: )
13558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13559 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13561 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13562     ac_header_preproc=yes
13563     ;;
13564   no:yes:* )
13565     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13566 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13567     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13568 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13569     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13570 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13571     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13572 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13573     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13574 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13575     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13576 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13577     ( cat <<\_ASBOX
13578 ## ---------------------------------------- ##
13579 ## Report this to pgsql-bugs@postgresql.org ##
13580 ## ---------------------------------------- ##
13581 _ASBOX
13582      ) | sed "s/^/$as_me: WARNING:     /" >&2
13583     ;;
13584 esac
13585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13586 $as_echo_n "checking for $ac_header... " >&6; }
13587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13588   $as_echo_n "(cached) " >&6
13589 else
13590   eval "$as_ac_Header=\$ac_header_preproc"
13591 fi
13592 ac_res=`eval 'as_val=${'$as_ac_Header'}
13593                  $as_echo "$as_val"'`
13594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13595 $as_echo "$ac_res" >&6; }
13596
13597 fi
13598 as_val=`eval 'as_val=${'$as_ac_Header'}
13599                  $as_echo "$as_val"'`
13600    if test "x$as_val" = x""yes; then
13601   cat >>confdefs.h <<_ACEOF
13602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13603 _ACEOF
13604
13605 else
13606   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13607 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13608    { (exit 1); exit 1; }; }
13609 fi
13610
13611 done
13612
13613 fi
13614
13615 done
13616
13617 fi
13618
13619 if test "$with_libxml" = yes ; then
13620   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13621   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13622 $as_echo_n "checking for libxml/parser.h... " >&6; }
13623 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13624   $as_echo_n "(cached) " >&6
13625 fi
13626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13627 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13628 else
13629   # Is the header compilable?
13630 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13631 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13632 cat >conftest.$ac_ext <<_ACEOF
13633 /* confdefs.h.  */
13634 _ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h.  */
13638 $ac_includes_default
13639 #include <libxml/parser.h>
13640 _ACEOF
13641 rm -f conftest.$ac_objext
13642 if { (ac_try="$ac_compile"
13643 case "(($ac_try" in
13644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645   *) ac_try_echo=$ac_try;;
13646 esac
13647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13648 $as_echo "$ac_try_echo") >&5
13649   (eval "$ac_compile") 2>conftest.er1
13650   ac_status=$?
13651   grep -v '^ *+' conftest.er1 >conftest.err
13652   rm -f conftest.er1
13653   cat conftest.err >&5
13654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); } && {
13656          test -z "$ac_c_werror_flag" ||
13657          test ! -s conftest.err
13658        } && test -s conftest.$ac_objext; then
13659   ac_header_compiler=yes
13660 else
13661   $as_echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13663
13664         ac_header_compiler=no
13665 fi
13666
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13669 $as_echo "$ac_header_compiler" >&6; }
13670
13671 # Is the header present?
13672 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13673 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h.  */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h.  */
13680 #include <libxml/parser.h>
13681 _ACEOF
13682 if { (ac_try="$ac_cpp conftest.$ac_ext"
13683 case "(($ac_try" in
13684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685   *) ac_try_echo=$ac_try;;
13686 esac
13687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688 $as_echo "$ac_try_echo") >&5
13689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13690   ac_status=$?
13691   grep -v '^ *+' conftest.er1 >conftest.err
13692   rm -f conftest.er1
13693   cat conftest.err >&5
13694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); } >/dev/null && {
13696          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13697          test ! -s conftest.err
13698        }; then
13699   ac_header_preproc=yes
13700 else
13701   $as_echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704   ac_header_preproc=no
13705 fi
13706
13707 rm -f conftest.err conftest.$ac_ext
13708 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13709 $as_echo "$ac_header_preproc" >&6; }
13710
13711 # So?  What about this header?
13712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13713   yes:no: )
13714     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13715 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13716     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13717 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13718     ac_header_preproc=yes
13719     ;;
13720   no:yes:* )
13721     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13722 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13723     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13724 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13725     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13726 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13727     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13728 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13729     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13730 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13731     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13732 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13733     ( cat <<\_ASBOX
13734 ## ---------------------------------------- ##
13735 ## Report this to pgsql-bugs@postgresql.org ##
13736 ## ---------------------------------------- ##
13737 _ASBOX
13738      ) | sed "s/^/$as_me: WARNING:     /" >&2
13739     ;;
13740 esac
13741 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13742 $as_echo_n "checking for libxml/parser.h... " >&6; }
13743 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13744   $as_echo_n "(cached) " >&6
13745 else
13746   ac_cv_header_libxml_parser_h=$ac_header_preproc
13747 fi
13748 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13749 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13750
13751 fi
13752 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13753   :
13754 else
13755   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13756 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13757    { (exit 1); exit 1; }; }
13758 fi
13759
13760
13761 fi
13762
13763 if test "$with_libxslt" = yes ; then
13764   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13765   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13766 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13767 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13768   $as_echo_n "(cached) " >&6
13769 fi
13770 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13771 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13772 else
13773   # Is the header compilable?
13774 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13775 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13776 cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h.  */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h.  */
13782 $ac_includes_default
13783 #include <libxslt/xslt.h>
13784 _ACEOF
13785 rm -f conftest.$ac_objext
13786 if { (ac_try="$ac_compile"
13787 case "(($ac_try" in
13788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789   *) ac_try_echo=$ac_try;;
13790 esac
13791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13792 $as_echo "$ac_try_echo") >&5
13793   (eval "$ac_compile") 2>conftest.er1
13794   ac_status=$?
13795   grep -v '^ *+' conftest.er1 >conftest.err
13796   rm -f conftest.er1
13797   cat conftest.err >&5
13798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } && {
13800          test -z "$ac_c_werror_flag" ||
13801          test ! -s conftest.err
13802        } && test -s conftest.$ac_objext; then
13803   ac_header_compiler=yes
13804 else
13805   $as_echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13807
13808         ac_header_compiler=no
13809 fi
13810
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13813 $as_echo "$ac_header_compiler" >&6; }
13814
13815 # Is the header present?
13816 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13817 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13818 cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h.  */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h.  */
13824 #include <libxslt/xslt.h>
13825 _ACEOF
13826 if { (ac_try="$ac_cpp conftest.$ac_ext"
13827 case "(($ac_try" in
13828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829   *) ac_try_echo=$ac_try;;
13830 esac
13831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13832 $as_echo "$ac_try_echo") >&5
13833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13834   ac_status=$?
13835   grep -v '^ *+' conftest.er1 >conftest.err
13836   rm -f conftest.er1
13837   cat conftest.err >&5
13838   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); } >/dev/null && {
13840          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13841          test ! -s conftest.err
13842        }; then
13843   ac_header_preproc=yes
13844 else
13845   $as_echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13847
13848   ac_header_preproc=no
13849 fi
13850
13851 rm -f conftest.err conftest.$ac_ext
13852 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13853 $as_echo "$ac_header_preproc" >&6; }
13854
13855 # So?  What about this header?
13856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13857   yes:no: )
13858     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13859 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13860     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13861 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13862     ac_header_preproc=yes
13863     ;;
13864   no:yes:* )
13865     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13866 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13867     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13868 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13869     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13870 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13871     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13872 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13873     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13874 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13875     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13876 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13877     ( cat <<\_ASBOX
13878 ## ---------------------------------------- ##
13879 ## Report this to pgsql-bugs@postgresql.org ##
13880 ## ---------------------------------------- ##
13881 _ASBOX
13882      ) | sed "s/^/$as_me: WARNING:     /" >&2
13883     ;;
13884 esac
13885 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13886 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13887 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13888   $as_echo_n "(cached) " >&6
13889 else
13890   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13891 fi
13892 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13893 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13894
13895 fi
13896 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13897   :
13898 else
13899   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13900 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13901    { (exit 1); exit 1; }; }
13902 fi
13903
13904
13905 fi
13906
13907 if test "$with_ldap" = yes ; then
13908   if test "$PORTNAME" != "win32"; then
13909
13910 for ac_header in ldap.h
13911 do
13912 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13914   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13915 $as_echo_n "checking for $ac_header... " >&6; }
13916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13917   $as_echo_n "(cached) " >&6
13918 fi
13919 ac_res=`eval 'as_val=${'$as_ac_Header'}
13920                  $as_echo "$as_val"'`
13921                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13922 $as_echo "$ac_res" >&6; }
13923 else
13924   # Is the header compilable?
13925 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13926 $as_echo_n "checking $ac_header usability... " >&6; }
13927 cat >conftest.$ac_ext <<_ACEOF
13928 /* confdefs.h.  */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h.  */
13933 $ac_includes_default
13934 #include <$ac_header>
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 if { (ac_try="$ac_compile"
13938 case "(($ac_try" in
13939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940   *) ac_try_echo=$ac_try;;
13941 esac
13942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13943 $as_echo "$ac_try_echo") >&5
13944   (eval "$ac_compile") 2>conftest.er1
13945   ac_status=$?
13946   grep -v '^ *+' conftest.er1 >conftest.err
13947   rm -f conftest.er1
13948   cat conftest.err >&5
13949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } && {
13951          test -z "$ac_c_werror_flag" ||
13952          test ! -s conftest.err
13953        } && test -s conftest.$ac_objext; then
13954   ac_header_compiler=yes
13955 else
13956   $as_echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13958
13959         ac_header_compiler=no
13960 fi
13961
13962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13964 $as_echo "$ac_header_compiler" >&6; }
13965
13966 # Is the header present?
13967 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13968 $as_echo_n "checking $ac_header presence... " >&6; }
13969 cat >conftest.$ac_ext <<_ACEOF
13970 /* confdefs.h.  */
13971 _ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h.  */
13975 #include <$ac_header>
13976 _ACEOF
13977 if { (ac_try="$ac_cpp conftest.$ac_ext"
13978 case "(($ac_try" in
13979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980   *) ac_try_echo=$ac_try;;
13981 esac
13982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13983 $as_echo "$ac_try_echo") >&5
13984   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13985   ac_status=$?
13986   grep -v '^ *+' conftest.er1 >conftest.err
13987   rm -f conftest.er1
13988   cat conftest.err >&5
13989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); } >/dev/null && {
13991          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13992          test ! -s conftest.err
13993        }; then
13994   ac_header_preproc=yes
13995 else
13996   $as_echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13998
13999   ac_header_preproc=no
14000 fi
14001
14002 rm -f conftest.err conftest.$ac_ext
14003 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14004 $as_echo "$ac_header_preproc" >&6; }
14005
14006 # So?  What about this header?
14007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14008   yes:no: )
14009     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14010 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14013     ac_header_preproc=yes
14014     ;;
14015   no:yes:* )
14016     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14017 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14018     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14019 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14020     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14021 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14022     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14023 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14024     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14025 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14027 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14028     ( cat <<\_ASBOX
14029 ## ---------------------------------------- ##
14030 ## Report this to pgsql-bugs@postgresql.org ##
14031 ## ---------------------------------------- ##
14032 _ASBOX
14033      ) | sed "s/^/$as_me: WARNING:     /" >&2
14034     ;;
14035 esac
14036 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14037 $as_echo_n "checking for $ac_header... " >&6; }
14038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14039   $as_echo_n "(cached) " >&6
14040 else
14041   eval "$as_ac_Header=\$ac_header_preproc"
14042 fi
14043 ac_res=`eval 'as_val=${'$as_ac_Header'}
14044                  $as_echo "$as_val"'`
14045                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14046 $as_echo "$ac_res" >&6; }
14047
14048 fi
14049 as_val=`eval 'as_val=${'$as_ac_Header'}
14050                  $as_echo "$as_val"'`
14051    if test "x$as_val" = x""yes; then
14052   cat >>confdefs.h <<_ACEOF
14053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14054 _ACEOF
14055
14056 else
14057   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
14058 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
14059    { (exit 1); exit 1; }; }
14060 fi
14061
14062 done
14063
14064   else
14065
14066 for ac_header in winldap.h
14067 do
14068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14069 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14070 $as_echo_n "checking for $ac_header... " >&6; }
14071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14072   $as_echo_n "(cached) " >&6
14073 else
14074   cat >conftest.$ac_ext <<_ACEOF
14075 /* confdefs.h.  */
14076 _ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h.  */
14080 $ac_includes_default
14081 #include <windows.h>
14082
14083
14084 #include <$ac_header>
14085 _ACEOF
14086 rm -f conftest.$ac_objext
14087 if { (ac_try="$ac_compile"
14088 case "(($ac_try" in
14089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090   *) ac_try_echo=$ac_try;;
14091 esac
14092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14093 $as_echo "$ac_try_echo") >&5
14094   (eval "$ac_compile") 2>conftest.er1
14095   ac_status=$?
14096   grep -v '^ *+' conftest.er1 >conftest.err
14097   rm -f conftest.er1
14098   cat conftest.err >&5
14099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } && {
14101          test -z "$ac_c_werror_flag" ||
14102          test ! -s conftest.err
14103        } && test -s conftest.$ac_objext; then
14104   eval "$as_ac_Header=yes"
14105 else
14106   $as_echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14108
14109         eval "$as_ac_Header=no"
14110 fi
14111
14112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113 fi
14114 ac_res=`eval 'as_val=${'$as_ac_Header'}
14115                  $as_echo "$as_val"'`
14116                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14117 $as_echo "$ac_res" >&6; }
14118 as_val=`eval 'as_val=${'$as_ac_Header'}
14119                  $as_echo "$as_val"'`
14120    if test "x$as_val" = x""yes; then
14121   cat >>confdefs.h <<_ACEOF
14122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14123 _ACEOF
14124
14125 else
14126   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
14127 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
14128    { (exit 1); exit 1; }; }
14129 fi
14130
14131 done
14132
14133   fi
14134 fi
14135
14136 if test "$with_bonjour" = yes ; then
14137   if test "${ac_cv_header_dns_sd_h+set}" = set; then
14138   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14139 $as_echo_n "checking for dns_sd.h... " >&6; }
14140 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14141   $as_echo_n "(cached) " >&6
14142 fi
14143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14144 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14145 else
14146   # Is the header compilable?
14147 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
14148 $as_echo_n "checking dns_sd.h usability... " >&6; }
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h.  */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h.  */
14155 $ac_includes_default
14156 #include <dns_sd.h>
14157 _ACEOF
14158 rm -f conftest.$ac_objext
14159 if { (ac_try="$ac_compile"
14160 case "(($ac_try" in
14161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162   *) ac_try_echo=$ac_try;;
14163 esac
14164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14165 $as_echo "$ac_try_echo") >&5
14166   (eval "$ac_compile") 2>conftest.er1
14167   ac_status=$?
14168   grep -v '^ *+' conftest.er1 >conftest.err
14169   rm -f conftest.er1
14170   cat conftest.err >&5
14171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); } && {
14173          test -z "$ac_c_werror_flag" ||
14174          test ! -s conftest.err
14175        } && test -s conftest.$ac_objext; then
14176   ac_header_compiler=yes
14177 else
14178   $as_echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14180
14181         ac_header_compiler=no
14182 fi
14183
14184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14186 $as_echo "$ac_header_compiler" >&6; }
14187
14188 # Is the header present?
14189 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
14190 $as_echo_n "checking dns_sd.h presence... " >&6; }
14191 cat >conftest.$ac_ext <<_ACEOF
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197 #include <dns_sd.h>
14198 _ACEOF
14199 if { (ac_try="$ac_cpp conftest.$ac_ext"
14200 case "(($ac_try" in
14201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202   *) ac_try_echo=$ac_try;;
14203 esac
14204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14205 $as_echo "$ac_try_echo") >&5
14206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14207   ac_status=$?
14208   grep -v '^ *+' conftest.er1 >conftest.err
14209   rm -f conftest.er1
14210   cat conftest.err >&5
14211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } >/dev/null && {
14213          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14214          test ! -s conftest.err
14215        }; then
14216   ac_header_preproc=yes
14217 else
14218   $as_echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14220
14221   ac_header_preproc=no
14222 fi
14223
14224 rm -f conftest.err conftest.$ac_ext
14225 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14226 $as_echo "$ac_header_preproc" >&6; }
14227
14228 # So?  What about this header?
14229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14230   yes:no: )
14231     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14232 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14233     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14234 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14235     ac_header_preproc=yes
14236     ;;
14237   no:yes:* )
14238     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14239 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14240     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
14241 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
14242     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14243 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14244     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
14245 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14246     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14247 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14248     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14249 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14250     ( cat <<\_ASBOX
14251 ## ---------------------------------------- ##
14252 ## Report this to pgsql-bugs@postgresql.org ##
14253 ## ---------------------------------------- ##
14254 _ASBOX
14255      ) | sed "s/^/$as_me: WARNING:     /" >&2
14256     ;;
14257 esac
14258 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14259 $as_echo_n "checking for dns_sd.h... " >&6; }
14260 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14261   $as_echo_n "(cached) " >&6
14262 else
14263   ac_cv_header_dns_sd_h=$ac_header_preproc
14264 fi
14265 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14266 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14267
14268 fi
14269 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14270   :
14271 else
14272   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14273 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14274    { (exit 1); exit 1; }; }
14275 fi
14276
14277
14278 fi
14279
14280 # for contrib/uuid-ossp
14281 if test "$with_ossp_uuid" = yes ; then
14282
14283 for ac_header in ossp/uuid.h
14284 do
14285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14287   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14288 $as_echo_n "checking for $ac_header... " >&6; }
14289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14290   $as_echo_n "(cached) " >&6
14291 fi
14292 ac_res=`eval 'as_val=${'$as_ac_Header'}
14293                  $as_echo "$as_val"'`
14294                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14295 $as_echo "$ac_res" >&6; }
14296 else
14297   # Is the header compilable?
14298 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14299 $as_echo_n "checking $ac_header usability... " >&6; }
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h.  */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h.  */
14306 $ac_includes_default
14307 #include <$ac_header>
14308 _ACEOF
14309 rm -f conftest.$ac_objext
14310 if { (ac_try="$ac_compile"
14311 case "(($ac_try" in
14312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313   *) ac_try_echo=$ac_try;;
14314 esac
14315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14316 $as_echo "$ac_try_echo") >&5
14317   (eval "$ac_compile") 2>conftest.er1
14318   ac_status=$?
14319   grep -v '^ *+' conftest.er1 >conftest.err
14320   rm -f conftest.er1
14321   cat conftest.err >&5
14322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); } && {
14324          test -z "$ac_c_werror_flag" ||
14325          test ! -s conftest.err
14326        } && test -s conftest.$ac_objext; then
14327   ac_header_compiler=yes
14328 else
14329   $as_echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332         ac_header_compiler=no
14333 fi
14334
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14337 $as_echo "$ac_header_compiler" >&6; }
14338
14339 # Is the header present?
14340 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14341 $as_echo_n "checking $ac_header presence... " >&6; }
14342 cat >conftest.$ac_ext <<_ACEOF
14343 /* confdefs.h.  */
14344 _ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h.  */
14348 #include <$ac_header>
14349 _ACEOF
14350 if { (ac_try="$ac_cpp conftest.$ac_ext"
14351 case "(($ac_try" in
14352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14353   *) ac_try_echo=$ac_try;;
14354 esac
14355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14356 $as_echo "$ac_try_echo") >&5
14357   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14358   ac_status=$?
14359   grep -v '^ *+' conftest.er1 >conftest.err
14360   rm -f conftest.er1
14361   cat conftest.err >&5
14362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); } >/dev/null && {
14364          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14365          test ! -s conftest.err
14366        }; then
14367   ac_header_preproc=yes
14368 else
14369   $as_echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14371
14372   ac_header_preproc=no
14373 fi
14374
14375 rm -f conftest.err conftest.$ac_ext
14376 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14377 $as_echo "$ac_header_preproc" >&6; }
14378
14379 # So?  What about this header?
14380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14381   yes:no: )
14382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14383 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14386     ac_header_preproc=yes
14387     ;;
14388   no:yes:* )
14389     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14390 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14392 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14393     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14394 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14395     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14396 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14397     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14399     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14400 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14401     ( cat <<\_ASBOX
14402 ## ---------------------------------------- ##
14403 ## Report this to pgsql-bugs@postgresql.org ##
14404 ## ---------------------------------------- ##
14405 _ASBOX
14406      ) | sed "s/^/$as_me: WARNING:     /" >&2
14407     ;;
14408 esac
14409 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14410 $as_echo_n "checking for $ac_header... " >&6; }
14411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14412   $as_echo_n "(cached) " >&6
14413 else
14414   eval "$as_ac_Header=\$ac_header_preproc"
14415 fi
14416 ac_res=`eval 'as_val=${'$as_ac_Header'}
14417                  $as_echo "$as_val"'`
14418                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14419 $as_echo "$ac_res" >&6; }
14420
14421 fi
14422 as_val=`eval 'as_val=${'$as_ac_Header'}
14423                  $as_echo "$as_val"'`
14424    if test "x$as_val" = x""yes; then
14425   cat >>confdefs.h <<_ACEOF
14426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14427 _ACEOF
14428
14429 else
14430
14431
14432 for ac_header in uuid.h
14433 do
14434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14436   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14437 $as_echo_n "checking for $ac_header... " >&6; }
14438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14439   $as_echo_n "(cached) " >&6
14440 fi
14441 ac_res=`eval 'as_val=${'$as_ac_Header'}
14442                  $as_echo "$as_val"'`
14443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14444 $as_echo "$ac_res" >&6; }
14445 else
14446   # Is the header compilable?
14447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14448 $as_echo_n "checking $ac_header usability... " >&6; }
14449 cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h.  */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h.  */
14455 $ac_includes_default
14456 #include <$ac_header>
14457 _ACEOF
14458 rm -f conftest.$ac_objext
14459 if { (ac_try="$ac_compile"
14460 case "(($ac_try" in
14461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462   *) ac_try_echo=$ac_try;;
14463 esac
14464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14465 $as_echo "$ac_try_echo") >&5
14466   (eval "$ac_compile") 2>conftest.er1
14467   ac_status=$?
14468   grep -v '^ *+' conftest.er1 >conftest.err
14469   rm -f conftest.er1
14470   cat conftest.err >&5
14471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); } && {
14473          test -z "$ac_c_werror_flag" ||
14474          test ! -s conftest.err
14475        } && test -s conftest.$ac_objext; then
14476   ac_header_compiler=yes
14477 else
14478   $as_echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14480
14481         ac_header_compiler=no
14482 fi
14483
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14486 $as_echo "$ac_header_compiler" >&6; }
14487
14488 # Is the header present?
14489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14490 $as_echo_n "checking $ac_header presence... " >&6; }
14491 cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h.  */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h.  */
14497 #include <$ac_header>
14498 _ACEOF
14499 if { (ac_try="$ac_cpp conftest.$ac_ext"
14500 case "(($ac_try" in
14501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502   *) ac_try_echo=$ac_try;;
14503 esac
14504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14505 $as_echo "$ac_try_echo") >&5
14506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14507   ac_status=$?
14508   grep -v '^ *+' conftest.er1 >conftest.err
14509   rm -f conftest.er1
14510   cat conftest.err >&5
14511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } >/dev/null && {
14513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14514          test ! -s conftest.err
14515        }; then
14516   ac_header_preproc=yes
14517 else
14518   $as_echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521   ac_header_preproc=no
14522 fi
14523
14524 rm -f conftest.err conftest.$ac_ext
14525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14526 $as_echo "$ac_header_preproc" >&6; }
14527
14528 # So?  What about this header?
14529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14530   yes:no: )
14531     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14533     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14535     ac_header_preproc=yes
14536     ;;
14537   no:yes:* )
14538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14540     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14541 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14542     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14544     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14545 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14546     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14550     ( cat <<\_ASBOX
14551 ## ---------------------------------------- ##
14552 ## Report this to pgsql-bugs@postgresql.org ##
14553 ## ---------------------------------------- ##
14554 _ASBOX
14555      ) | sed "s/^/$as_me: WARNING:     /" >&2
14556     ;;
14557 esac
14558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14559 $as_echo_n "checking for $ac_header... " >&6; }
14560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14561   $as_echo_n "(cached) " >&6
14562 else
14563   eval "$as_ac_Header=\$ac_header_preproc"
14564 fi
14565 ac_res=`eval 'as_val=${'$as_ac_Header'}
14566                  $as_echo "$as_val"'`
14567                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14568 $as_echo "$ac_res" >&6; }
14569
14570 fi
14571 as_val=`eval 'as_val=${'$as_ac_Header'}
14572                  $as_echo "$as_val"'`
14573    if test "x$as_val" = x""yes; then
14574   cat >>confdefs.h <<_ACEOF
14575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14576 _ACEOF
14577
14578 else
14579   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14580 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14581    { (exit 1); exit 1; }; }
14582 fi
14583
14584 done
14585
14586 fi
14587
14588 done
14589
14590 fi
14591
14592 if test "$PORTNAME" = "win32" ; then
14593
14594 for ac_header in crtdefs.h
14595 do
14596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14598   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14599 $as_echo_n "checking for $ac_header... " >&6; }
14600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14601   $as_echo_n "(cached) " >&6
14602 fi
14603 ac_res=`eval 'as_val=${'$as_ac_Header'}
14604                  $as_echo "$as_val"'`
14605                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14606 $as_echo "$ac_res" >&6; }
14607 else
14608   # Is the header compilable?
14609 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14610 $as_echo_n "checking $ac_header usability... " >&6; }
14611 cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617 $ac_includes_default
14618 #include <$ac_header>
14619 _ACEOF
14620 rm -f conftest.$ac_objext
14621 if { (ac_try="$ac_compile"
14622 case "(($ac_try" in
14623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624   *) ac_try_echo=$ac_try;;
14625 esac
14626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14627 $as_echo "$ac_try_echo") >&5
14628   (eval "$ac_compile") 2>conftest.er1
14629   ac_status=$?
14630   grep -v '^ *+' conftest.er1 >conftest.err
14631   rm -f conftest.er1
14632   cat conftest.err >&5
14633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); } && {
14635          test -z "$ac_c_werror_flag" ||
14636          test ! -s conftest.err
14637        } && test -s conftest.$ac_objext; then
14638   ac_header_compiler=yes
14639 else
14640   $as_echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14642
14643         ac_header_compiler=no
14644 fi
14645
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14647 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14648 $as_echo "$ac_header_compiler" >&6; }
14649
14650 # Is the header present?
14651 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14652 $as_echo_n "checking $ac_header presence... " >&6; }
14653 cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h.  */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h.  */
14659 #include <$ac_header>
14660 _ACEOF
14661 if { (ac_try="$ac_cpp conftest.$ac_ext"
14662 case "(($ac_try" in
14663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664   *) ac_try_echo=$ac_try;;
14665 esac
14666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14667 $as_echo "$ac_try_echo") >&5
14668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14669   ac_status=$?
14670   grep -v '^ *+' conftest.er1 >conftest.err
14671   rm -f conftest.er1
14672   cat conftest.err >&5
14673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); } >/dev/null && {
14675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14676          test ! -s conftest.err
14677        }; then
14678   ac_header_preproc=yes
14679 else
14680   $as_echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14682
14683   ac_header_preproc=no
14684 fi
14685
14686 rm -f conftest.err conftest.$ac_ext
14687 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14688 $as_echo "$ac_header_preproc" >&6; }
14689
14690 # So?  What about this header?
14691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14692   yes:no: )
14693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14694 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14697     ac_header_preproc=yes
14698     ;;
14699   no:yes:* )
14700     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14701 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14702     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14703 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14704     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14705 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14706     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14707 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14708     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14709 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14710     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14711 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14712     ( cat <<\_ASBOX
14713 ## ---------------------------------------- ##
14714 ## Report this to pgsql-bugs@postgresql.org ##
14715 ## ---------------------------------------- ##
14716 _ASBOX
14717      ) | sed "s/^/$as_me: WARNING:     /" >&2
14718     ;;
14719 esac
14720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14721 $as_echo_n "checking for $ac_header... " >&6; }
14722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14723   $as_echo_n "(cached) " >&6
14724 else
14725   eval "$as_ac_Header=\$ac_header_preproc"
14726 fi
14727 ac_res=`eval 'as_val=${'$as_ac_Header'}
14728                  $as_echo "$as_val"'`
14729                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14730 $as_echo "$ac_res" >&6; }
14731
14732 fi
14733 as_val=`eval 'as_val=${'$as_ac_Header'}
14734                  $as_echo "$as_val"'`
14735    if test "x$as_val" = x""yes; then
14736   cat >>confdefs.h <<_ACEOF
14737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14738 _ACEOF
14739
14740 fi
14741
14742 done
14743
14744 fi
14745
14746 ##
14747 ## Types, structures, compiler characteristics
14748 ##
14749
14750
14751  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14752 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14753 if test "${ac_cv_c_bigendian+set}" = set; then
14754   $as_echo_n "(cached) " >&6
14755 else
14756   ac_cv_c_bigendian=unknown
14757     # See if we're dealing with a universal compiler.
14758     cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h.  */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h.  */
14764 #ifndef __APPLE_CC__
14765                not a universal capable compiler
14766              #endif
14767              typedef int dummy;
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
14789         # Check for potential -arch flags.  It is not universal unless
14790         # there are some -arch flags.  Note that *ppc* also matches
14791         # ppc64.  This check is also rather less than ideal.
14792         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14793           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14794         esac
14795 else
14796   $as_echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799
14800 fi
14801
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803     if test $ac_cv_c_bigendian = unknown; then
14804       # See if sys/param.h defines the BYTE_ORDER macro.
14805       cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h.  */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h.  */
14811 #include <sys/types.h>
14812              #include <sys/param.h>
14813
14814 int
14815 main ()
14816 {
14817 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14818                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14819                      && LITTLE_ENDIAN)
14820               bogus endian macros
14821              #endif
14822
14823   ;
14824   return 0;
14825 }
14826 _ACEOF
14827 rm -f conftest.$ac_objext
14828 if { (ac_try="$ac_compile"
14829 case "(($ac_try" in
14830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831   *) ac_try_echo=$ac_try;;
14832 esac
14833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14834 $as_echo "$ac_try_echo") >&5
14835   (eval "$ac_compile") 2>conftest.er1
14836   ac_status=$?
14837   grep -v '^ *+' conftest.er1 >conftest.err
14838   rm -f conftest.er1
14839   cat conftest.err >&5
14840   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); } && {
14842          test -z "$ac_c_werror_flag" ||
14843          test ! -s conftest.err
14844        } && test -s conftest.$ac_objext; then
14845   # It does; now see whether it defined to BIG_ENDIAN or not.
14846          cat >conftest.$ac_ext <<_ACEOF
14847 /* confdefs.h.  */
14848 _ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h.  */
14852 #include <sys/types.h>
14853                 #include <sys/param.h>
14854
14855 int
14856 main ()
14857 {
14858 #if BYTE_ORDER != BIG_ENDIAN
14859                  not big endian
14860                 #endif
14861
14862   ;
14863   return 0;
14864 }
14865 _ACEOF
14866 rm -f conftest.$ac_objext
14867 if { (ac_try="$ac_compile"
14868 case "(($ac_try" in
14869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870   *) ac_try_echo=$ac_try;;
14871 esac
14872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14873 $as_echo "$ac_try_echo") >&5
14874   (eval "$ac_compile") 2>conftest.er1
14875   ac_status=$?
14876   grep -v '^ *+' conftest.er1 >conftest.err
14877   rm -f conftest.er1
14878   cat conftest.err >&5
14879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } && {
14881          test -z "$ac_c_werror_flag" ||
14882          test ! -s conftest.err
14883        } && test -s conftest.$ac_objext; then
14884   ac_cv_c_bigendian=yes
14885 else
14886   $as_echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14888
14889         ac_cv_c_bigendian=no
14890 fi
14891
14892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893 else
14894   $as_echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14896
14897
14898 fi
14899
14900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14901     fi
14902     if test $ac_cv_c_bigendian = unknown; then
14903       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14904       cat >conftest.$ac_ext <<_ACEOF
14905 /* confdefs.h.  */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h.  */
14910 #include <limits.h>
14911
14912 int
14913 main ()
14914 {
14915 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14916               bogus endian macros
14917              #endif
14918
14919   ;
14920   return 0;
14921 }
14922 _ACEOF
14923 rm -f conftest.$ac_objext
14924 if { (ac_try="$ac_compile"
14925 case "(($ac_try" in
14926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927   *) ac_try_echo=$ac_try;;
14928 esac
14929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14930 $as_echo "$ac_try_echo") >&5
14931   (eval "$ac_compile") 2>conftest.er1
14932   ac_status=$?
14933   grep -v '^ *+' conftest.er1 >conftest.err
14934   rm -f conftest.er1
14935   cat conftest.err >&5
14936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); } && {
14938          test -z "$ac_c_werror_flag" ||
14939          test ! -s conftest.err
14940        } && test -s conftest.$ac_objext; then
14941   # It does; now see whether it defined to _BIG_ENDIAN or not.
14942          cat >conftest.$ac_ext <<_ACEOF
14943 /* confdefs.h.  */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h.  */
14948 #include <limits.h>
14949
14950 int
14951 main ()
14952 {
14953 #ifndef _BIG_ENDIAN
14954                  not big endian
14955                 #endif
14956
14957   ;
14958   return 0;
14959 }
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965   *) ac_try_echo=$ac_try;;
14966 esac
14967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14968 $as_echo "$ac_try_echo") >&5
14969   (eval "$ac_compile") 2>conftest.er1
14970   ac_status=$?
14971   grep -v '^ *+' conftest.er1 >conftest.err
14972   rm -f conftest.er1
14973   cat conftest.err >&5
14974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } && {
14976          test -z "$ac_c_werror_flag" ||
14977          test ! -s conftest.err
14978        } && test -s conftest.$ac_objext; then
14979   ac_cv_c_bigendian=yes
14980 else
14981   $as_echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984         ac_cv_c_bigendian=no
14985 fi
14986
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 else
14989   $as_echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992
14993 fi
14994
14995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14996     fi
14997     if test $ac_cv_c_bigendian = unknown; then
14998       # Compile a test program.
14999       if test "$cross_compiling" = yes; then
15000   # Try to guess by grepping values from an object file.
15001          cat >conftest.$ac_ext <<_ACEOF
15002 /* confdefs.h.  */
15003 _ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h.  */
15007 short int ascii_mm[] =
15008                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15009                 short int ascii_ii[] =
15010                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15011                 int use_ascii (int i) {
15012                   return ascii_mm[i] + ascii_ii[i];
15013                 }
15014                 short int ebcdic_ii[] =
15015                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15016                 short int ebcdic_mm[] =
15017                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15018                 int use_ebcdic (int i) {
15019                   return ebcdic_mm[i] + ebcdic_ii[i];
15020                 }
15021                 extern int foo;
15022
15023 int
15024 main ()
15025 {
15026 return use_ascii (foo) == use_ebcdic (foo);
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest.$ac_objext
15032 if { (ac_try="$ac_compile"
15033 case "(($ac_try" in
15034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035   *) ac_try_echo=$ac_try;;
15036 esac
15037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15038 $as_echo "$ac_try_echo") >&5
15039   (eval "$ac_compile") 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } && {
15046          test -z "$ac_c_werror_flag" ||
15047          test ! -s conftest.err
15048        } && test -s conftest.$ac_objext; then
15049   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15050               ac_cv_c_bigendian=yes
15051             fi
15052             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15053               if test "$ac_cv_c_bigendian" = unknown; then
15054                 ac_cv_c_bigendian=no
15055               else
15056                 # finding both strings is unlikely to happen, but who knows?
15057                 ac_cv_c_bigendian=unknown
15058               fi
15059             fi
15060 else
15061   $as_echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064
15065 fi
15066
15067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068 else
15069   cat >conftest.$ac_ext <<_ACEOF
15070 /* confdefs.h.  */
15071 _ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h.  */
15075 $ac_includes_default
15076 int
15077 main ()
15078 {
15079
15080              /* Are we little or big endian?  From Harbison&Steele.  */
15081              union
15082              {
15083                long int l;
15084                char c[sizeof (long int)];
15085              } u;
15086              u.l = 1;
15087              return u.c[sizeof (long int) - 1] == 1;
15088
15089   ;
15090   return 0;
15091 }
15092 _ACEOF
15093 rm -f conftest$ac_exeext
15094 if { (ac_try="$ac_link"
15095 case "(($ac_try" in
15096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097   *) ac_try_echo=$ac_try;;
15098 esac
15099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15100 $as_echo "$ac_try_echo") >&5
15101   (eval "$ac_link") 2>&5
15102   ac_status=$?
15103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15105   { (case "(($ac_try" in
15106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107   *) ac_try_echo=$ac_try;;
15108 esac
15109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15110 $as_echo "$ac_try_echo") >&5
15111   (eval "$ac_try") 2>&5
15112   ac_status=$?
15113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; }; then
15115   ac_cv_c_bigendian=no
15116 else
15117   $as_echo "$as_me: program exited with status $ac_status" >&5
15118 $as_echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121 ( exit $ac_status )
15122 ac_cv_c_bigendian=yes
15123 fi
15124 rm -rf conftest.dSYM
15125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15126 fi
15127
15128
15129     fi
15130 fi
15131 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15132 $as_echo "$ac_cv_c_bigendian" >&6; }
15133  case $ac_cv_c_bigendian in #(
15134    yes)
15135      cat >>confdefs.h <<\_ACEOF
15136 #define WORDS_BIGENDIAN 1
15137 _ACEOF
15138 ;; #(
15139    no)
15140       ;; #(
15141    universal)
15142
15143 cat >>confdefs.h <<\_ACEOF
15144 #define AC_APPLE_UNIVERSAL_BUILD 1
15145 _ACEOF
15146
15147      ;; #(
15148    *)
15149      { { $as_echo "$as_me:$LINENO: error: unknown endianness
15150  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15151 $as_echo "$as_me: error: unknown endianness
15152  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15153    { (exit 1); exit 1; }; } ;;
15154  esac
15155
15156 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15157 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15158 if test "${ac_cv_c_const+set}" = set; then
15159   $as_echo_n "(cached) " >&6
15160 else
15161   cat >conftest.$ac_ext <<_ACEOF
15162 /* confdefs.h.  */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h.  */
15167
15168 int
15169 main ()
15170 {
15171 /* FIXME: Include the comments suggested by Paul. */
15172 #ifndef __cplusplus
15173   /* Ultrix mips cc rejects this.  */
15174   typedef int charset[2];
15175   const charset cs;
15176   /* SunOS 4.1.1 cc rejects this.  */
15177   char const *const *pcpcc;
15178   char **ppc;
15179   /* NEC SVR4.0.2 mips cc rejects this.  */
15180   struct point {int x, y;};
15181   static struct point const zero = {0,0};
15182   /* AIX XL C 1.02.0.0 rejects this.
15183      It does not let you subtract one const X* pointer from another in
15184      an arm of an if-expression whose if-part is not a constant
15185      expression */
15186   const char *g = "string";
15187   pcpcc = &g + (g ? g-g : 0);
15188   /* HPUX 7.0 cc rejects these. */
15189   ++pcpcc;
15190   ppc = (char**) pcpcc;
15191   pcpcc = (char const *const *) ppc;
15192   { /* SCO 3.2v4 cc rejects this.  */
15193     char *t;
15194     char const *s = 0 ? (char *) 0 : (char const *) 0;
15195
15196     *t++ = 0;
15197     if (s) return 0;
15198   }
15199   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15200     int x[] = {25, 17};
15201     const int *foo = &x[0];
15202     ++foo;
15203   }
15204   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15205     typedef const int *iptr;
15206     iptr p = 0;
15207     ++p;
15208   }
15209   { /* AIX XL C 1.02.0.0 rejects this saying
15210        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15211     struct s { int j; const int *ap[3]; };
15212     struct s *b; b->j = 5;
15213   }
15214   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15215     const int foo = 10;
15216     if (!foo) return 0;
15217   }
15218   return !cs[0] && !zero.x;
15219 #endif
15220
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext
15226 if { (ac_try="$ac_compile"
15227 case "(($ac_try" in
15228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229   *) ac_try_echo=$ac_try;;
15230 esac
15231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15232 $as_echo "$ac_try_echo") >&5
15233   (eval "$ac_compile") 2>conftest.er1
15234   ac_status=$?
15235   grep -v '^ *+' conftest.er1 >conftest.err
15236   rm -f conftest.er1
15237   cat conftest.err >&5
15238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239   (exit $ac_status); } && {
15240          test -z "$ac_c_werror_flag" ||
15241          test ! -s conftest.err
15242        } && test -s conftest.$ac_objext; then
15243   ac_cv_c_const=yes
15244 else
15245   $as_echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248         ac_cv_c_const=no
15249 fi
15250
15251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15252 fi
15253 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15254 $as_echo "$ac_cv_c_const" >&6; }
15255 if test $ac_cv_c_const = no; then
15256
15257 cat >>confdefs.h <<\_ACEOF
15258 #define const /**/
15259 _ACEOF
15260
15261 fi
15262
15263 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15264 $as_echo_n "checking for inline... " >&6; }
15265 if test "${ac_cv_c_inline+set}" = set; then
15266   $as_echo_n "(cached) " >&6
15267 else
15268   ac_cv_c_inline=no
15269 for ac_kw in inline __inline__ __inline; do
15270   cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h.  */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h.  */
15276 #ifndef __cplusplus
15277 typedef int foo_t;
15278 static $ac_kw foo_t static_foo () {return 0; }
15279 $ac_kw foo_t foo () {return 0; }
15280 #endif
15281
15282 _ACEOF
15283 rm -f conftest.$ac_objext
15284 if { (ac_try="$ac_compile"
15285 case "(($ac_try" in
15286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287   *) ac_try_echo=$ac_try;;
15288 esac
15289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15290 $as_echo "$ac_try_echo") >&5
15291   (eval "$ac_compile") 2>conftest.er1
15292   ac_status=$?
15293   grep -v '^ *+' conftest.er1 >conftest.err
15294   rm -f conftest.er1
15295   cat conftest.err >&5
15296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); } && {
15298          test -z "$ac_c_werror_flag" ||
15299          test ! -s conftest.err
15300        } && test -s conftest.$ac_objext; then
15301   ac_cv_c_inline=$ac_kw
15302 else
15303   $as_echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15305
15306
15307 fi
15308
15309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15310   test "$ac_cv_c_inline" != no && break
15311 done
15312
15313 fi
15314 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15315 $as_echo "$ac_cv_c_inline" >&6; }
15316
15317
15318 case $ac_cv_c_inline in
15319   inline | yes) ;;
15320   *)
15321     case $ac_cv_c_inline in
15322       no) ac_val=;;
15323       *) ac_val=$ac_cv_c_inline;;
15324     esac
15325     cat >>confdefs.h <<_ACEOF
15326 #ifndef __cplusplus
15327 #define inline $ac_val
15328 #endif
15329 _ACEOF
15330     ;;
15331 esac
15332
15333 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15334 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15335 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15336   $as_echo_n "(cached) " >&6
15337 else
15338   pgac_cv_c_inline_quietly=no
15339   if test "$ac_cv_c_inline" != no; then
15340     pgac_c_inline_save_werror=$ac_c_werror_flag
15341     ac_c_werror_flag=yes
15342     cat >conftest.$ac_ext <<_ACEOF
15343 /* confdefs.h.  */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h.  */
15348 static inline int fun () {return 0;}
15349 int
15350 main ()
15351 {
15352
15353   ;
15354   return 0;
15355 }
15356 _ACEOF
15357 rm -f conftest.$ac_objext conftest$ac_exeext
15358 if { (ac_try="$ac_link"
15359 case "(($ac_try" in
15360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361   *) ac_try_echo=$ac_try;;
15362 esac
15363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15364 $as_echo "$ac_try_echo") >&5
15365   (eval "$ac_link") 2>conftest.er1
15366   ac_status=$?
15367   grep -v '^ *+' conftest.er1 >conftest.err
15368   rm -f conftest.er1
15369   cat conftest.err >&5
15370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); } && {
15372          test -z "$ac_c_werror_flag" ||
15373          test ! -s conftest.err
15374        } && test -s conftest$ac_exeext && {
15375          test "$cross_compiling" = yes ||
15376          $as_test_x conftest$ac_exeext
15377        }; then
15378   pgac_cv_c_inline_quietly=yes
15379 else
15380   $as_echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15382
15383
15384 fi
15385
15386 rm -rf conftest.dSYM
15387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15388       conftest$ac_exeext conftest.$ac_ext
15389     ac_c_werror_flag=$pgac_c_inline_save_werror
15390   fi
15391 fi
15392 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15393 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15394 if test "$pgac_cv_c_inline_quietly" != no; then
15395
15396 cat >>confdefs.h <<_ACEOF
15397 #define PG_USE_INLINE 1
15398 _ACEOF
15399
15400 fi
15401
15402 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15403 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15404 if test "${ac_cv_c_stringize+set}" = set; then
15405   $as_echo_n "(cached) " >&6
15406 else
15407   cat >conftest.$ac_ext <<_ACEOF
15408 /* confdefs.h.  */
15409 _ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h.  */
15413 #define x(y) #y
15414
15415 char *s = x(teststring);
15416 _ACEOF
15417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15418   $EGREP "#teststring" >/dev/null 2>&1; then
15419   ac_cv_c_stringize=no
15420 else
15421   ac_cv_c_stringize=yes
15422 fi
15423 rm -f conftest*
15424
15425 fi
15426 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15427 $as_echo "$ac_cv_c_stringize" >&6; }
15428 if test $ac_cv_c_stringize = yes; then
15429
15430 cat >>confdefs.h <<\_ACEOF
15431 #define HAVE_STRINGIZE 1
15432 _ACEOF
15433
15434 fi
15435
15436
15437   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15438 $as_echo_n "checking for flexible array members... " >&6; }
15439 if test "${ac_cv_c_flexmember+set}" = set; then
15440   $as_echo_n "(cached) " >&6
15441 else
15442   cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h.  */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h.  */
15448 #include <stdlib.h>
15449             #include <stdio.h>
15450             #include <stddef.h>
15451             struct s { int n; double d[]; };
15452 int
15453 main ()
15454 {
15455 int m = getchar ();
15456             struct s *p = malloc (offsetof (struct s, d)
15457                                   + m * sizeof (double));
15458             p->d[0] = 0.0;
15459             return p->d != (double *) NULL;
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext
15465 if { (ac_try="$ac_compile"
15466 case "(($ac_try" in
15467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468   *) ac_try_echo=$ac_try;;
15469 esac
15470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15471 $as_echo "$ac_try_echo") >&5
15472   (eval "$ac_compile") 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } && {
15479          test -z "$ac_c_werror_flag" ||
15480          test ! -s conftest.err
15481        } && test -s conftest.$ac_objext; then
15482   ac_cv_c_flexmember=yes
15483 else
15484   $as_echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487         ac_cv_c_flexmember=no
15488 fi
15489
15490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491 fi
15492 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15493 $as_echo "$ac_cv_c_flexmember" >&6; }
15494   if test $ac_cv_c_flexmember = yes; then
15495
15496 cat >>confdefs.h <<\_ACEOF
15497 #define FLEXIBLE_ARRAY_MEMBER /**/
15498 _ACEOF
15499
15500   else
15501     cat >>confdefs.h <<\_ACEOF
15502 #define FLEXIBLE_ARRAY_MEMBER 1
15503 _ACEOF
15504
15505   fi
15506
15507 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15508 $as_echo_n "checking for signed types... " >&6; }
15509 if test "${pgac_cv_c_signed+set}" = set; then
15510   $as_echo_n "(cached) " >&6
15511 else
15512   cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h.  */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h.  */
15518
15519 int
15520 main ()
15521 {
15522 signed char c; signed short s; signed int i;
15523   ;
15524   return 0;
15525 }
15526 _ACEOF
15527 rm -f conftest.$ac_objext
15528 if { (ac_try="$ac_compile"
15529 case "(($ac_try" in
15530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531   *) ac_try_echo=$ac_try;;
15532 esac
15533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15534 $as_echo "$ac_try_echo") >&5
15535   (eval "$ac_compile") 2>conftest.er1
15536   ac_status=$?
15537   grep -v '^ *+' conftest.er1 >conftest.err
15538   rm -f conftest.er1
15539   cat conftest.err >&5
15540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); } && {
15542          test -z "$ac_c_werror_flag" ||
15543          test ! -s conftest.err
15544        } && test -s conftest.$ac_objext; then
15545   pgac_cv_c_signed=yes
15546 else
15547   $as_echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15549
15550         pgac_cv_c_signed=no
15551 fi
15552
15553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15554 fi
15555 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15556 $as_echo "$pgac_cv_c_signed" >&6; }
15557 if test x"$pgac_cv_c_signed" = xno ; then
15558
15559 cat >>confdefs.h <<\_ACEOF
15560 #define signed /**/
15561 _ACEOF
15562
15563 fi
15564 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15565 $as_echo_n "checking for working volatile... " >&6; }
15566 if test "${ac_cv_c_volatile+set}" = set; then
15567   $as_echo_n "(cached) " >&6
15568 else
15569   cat >conftest.$ac_ext <<_ACEOF
15570 /* confdefs.h.  */
15571 _ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h.  */
15575
15576 int
15577 main ()
15578 {
15579
15580 volatile int x;
15581 int * volatile y = (int *) 0;
15582 return !x && !y;
15583   ;
15584   return 0;
15585 }
15586 _ACEOF
15587 rm -f conftest.$ac_objext
15588 if { (ac_try="$ac_compile"
15589 case "(($ac_try" in
15590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591   *) ac_try_echo=$ac_try;;
15592 esac
15593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15594 $as_echo "$ac_try_echo") >&5
15595   (eval "$ac_compile") 2>conftest.er1
15596   ac_status=$?
15597   grep -v '^ *+' conftest.er1 >conftest.err
15598   rm -f conftest.er1
15599   cat conftest.err >&5
15600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); } && {
15602          test -z "$ac_c_werror_flag" ||
15603          test ! -s conftest.err
15604        } && test -s conftest.$ac_objext; then
15605   ac_cv_c_volatile=yes
15606 else
15607   $as_echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610         ac_cv_c_volatile=no
15611 fi
15612
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 fi
15615 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15616 $as_echo "$ac_cv_c_volatile" >&6; }
15617 if test $ac_cv_c_volatile = no; then
15618
15619 cat >>confdefs.h <<\_ACEOF
15620 #define volatile /**/
15621 _ACEOF
15622
15623 fi
15624
15625 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15626 $as_echo_n "checking for __func__... " >&6; }
15627 if test "${pgac_cv_funcname_func_support+set}" = set; then
15628   $as_echo_n "(cached) " >&6
15629 else
15630   cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h.  */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h.  */
15636 #include <stdio.h>
15637 int
15638 main ()
15639 {
15640 printf("%s\n", __func__);
15641   ;
15642   return 0;
15643 }
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649   *) ac_try_echo=$ac_try;;
15650 esac
15651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15652 $as_echo "$ac_try_echo") >&5
15653   (eval "$ac_compile") 2>conftest.er1
15654   ac_status=$?
15655   grep -v '^ *+' conftest.er1 >conftest.err
15656   rm -f conftest.er1
15657   cat conftest.err >&5
15658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); } && {
15660          test -z "$ac_c_werror_flag" ||
15661          test ! -s conftest.err
15662        } && test -s conftest.$ac_objext; then
15663   pgac_cv_funcname_func_support=yes
15664 else
15665   $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15667
15668         pgac_cv_funcname_func_support=no
15669 fi
15670
15671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672 fi
15673 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15674 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15675 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15676
15677 cat >>confdefs.h <<\_ACEOF
15678 #define HAVE_FUNCNAME__FUNC 1
15679 _ACEOF
15680
15681 else
15682 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15683 $as_echo_n "checking for __FUNCTION__... " >&6; }
15684 if test "${pgac_cv_funcname_function_support+set}" = set; then
15685   $as_echo_n "(cached) " >&6
15686 else
15687   cat >conftest.$ac_ext <<_ACEOF
15688 /* confdefs.h.  */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h.  */
15693 #include <stdio.h>
15694 int
15695 main ()
15696 {
15697 printf("%s\n", __FUNCTION__);
15698   ;
15699   return 0;
15700 }
15701 _ACEOF
15702 rm -f conftest.$ac_objext
15703 if { (ac_try="$ac_compile"
15704 case "(($ac_try" in
15705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706   *) ac_try_echo=$ac_try;;
15707 esac
15708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15709 $as_echo "$ac_try_echo") >&5
15710   (eval "$ac_compile") 2>conftest.er1
15711   ac_status=$?
15712   grep -v '^ *+' conftest.er1 >conftest.err
15713   rm -f conftest.er1
15714   cat conftest.err >&5
15715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); } && {
15717          test -z "$ac_c_werror_flag" ||
15718          test ! -s conftest.err
15719        } && test -s conftest.$ac_objext; then
15720   pgac_cv_funcname_function_support=yes
15721 else
15722   $as_echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15724
15725         pgac_cv_funcname_function_support=no
15726 fi
15727
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 fi
15730 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15731 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15732 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15733
15734 cat >>confdefs.h <<\_ACEOF
15735 #define HAVE_FUNCNAME__FUNCTION 1
15736 _ACEOF
15737
15738 fi
15739 fi
15740 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15741 $as_echo_n "checking for _Static_assert... " >&6; }
15742 if test "${pgac_cv__static_assert+set}" = set; then
15743   $as_echo_n "(cached) " >&6
15744 else
15745   cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h.  */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h.  */
15751
15752 int
15753 main ()
15754 {
15755 ({ _Static_assert(1, "foo"); })
15756   ;
15757   return 0;
15758 }
15759 _ACEOF
15760 rm -f conftest.$ac_objext conftest$ac_exeext
15761 if { (ac_try="$ac_link"
15762 case "(($ac_try" in
15763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764   *) ac_try_echo=$ac_try;;
15765 esac
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768   (eval "$ac_link") 2>conftest.er1
15769   ac_status=$?
15770   grep -v '^ *+' conftest.er1 >conftest.err
15771   rm -f conftest.er1
15772   cat conftest.err >&5
15773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } && {
15775          test -z "$ac_c_werror_flag" ||
15776          test ! -s conftest.err
15777        } && test -s conftest$ac_exeext && {
15778          test "$cross_compiling" = yes ||
15779          $as_test_x conftest$ac_exeext
15780        }; then
15781   pgac_cv__static_assert=yes
15782 else
15783   $as_echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15785
15786         pgac_cv__static_assert=no
15787 fi
15788
15789 rm -rf conftest.dSYM
15790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15791       conftest$ac_exeext conftest.$ac_ext
15792 fi
15793 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15794 $as_echo "$pgac_cv__static_assert" >&6; }
15795 if test x"$pgac_cv__static_assert" = xyes ; then
15796
15797 cat >>confdefs.h <<\_ACEOF
15798 #define HAVE__STATIC_ASSERT 1
15799 _ACEOF
15800
15801 fi
15802 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15803 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15804 if test "${pgac_cv__types_compatible+set}" = set; then
15805   $as_echo_n "(cached) " >&6
15806 else
15807   cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h.  */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h.  */
15813
15814 int
15815 main ()
15816 {
15817  int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15818   ;
15819   return 0;
15820 }
15821 _ACEOF
15822 rm -f conftest.$ac_objext
15823 if { (ac_try="$ac_compile"
15824 case "(($ac_try" in
15825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826   *) ac_try_echo=$ac_try;;
15827 esac
15828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15829 $as_echo "$ac_try_echo") >&5
15830   (eval "$ac_compile") 2>conftest.er1
15831   ac_status=$?
15832   grep -v '^ *+' conftest.er1 >conftest.err
15833   rm -f conftest.er1
15834   cat conftest.err >&5
15835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); } && {
15837          test -z "$ac_c_werror_flag" ||
15838          test ! -s conftest.err
15839        } && test -s conftest.$ac_objext; then
15840   pgac_cv__types_compatible=yes
15841 else
15842   $as_echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15844
15845         pgac_cv__types_compatible=no
15846 fi
15847
15848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849 fi
15850 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
15851 $as_echo "$pgac_cv__types_compatible" >&6; }
15852 if test x"$pgac_cv__types_compatible" = xyes ; then
15853
15854 cat >>confdefs.h <<\_ACEOF
15855 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
15856 _ACEOF
15857
15858 fi
15859 { $as_echo "$as_me:$LINENO: checking for __builtin_constant_p" >&5
15860 $as_echo_n "checking for __builtin_constant_p... " >&6; }
15861 if test "${pgac_cv__builtin_constant_p+set}" = set; then
15862   $as_echo_n "(cached) " >&6
15863 else
15864   cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870 static int x; static int y[__builtin_constant_p(x) ? x : 1];
15871 int
15872 main ()
15873 {
15874
15875   ;
15876   return 0;
15877 }
15878 _ACEOF
15879 rm -f conftest.$ac_objext
15880 if { (ac_try="$ac_compile"
15881 case "(($ac_try" in
15882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883   *) ac_try_echo=$ac_try;;
15884 esac
15885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15886 $as_echo "$ac_try_echo") >&5
15887   (eval "$ac_compile") 2>conftest.er1
15888   ac_status=$?
15889   grep -v '^ *+' conftest.er1 >conftest.err
15890   rm -f conftest.er1
15891   cat conftest.err >&5
15892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); } && {
15894          test -z "$ac_c_werror_flag" ||
15895          test ! -s conftest.err
15896        } && test -s conftest.$ac_objext; then
15897   pgac_cv__builtin_constant_p=yes
15898 else
15899   $as_echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15901
15902         pgac_cv__builtin_constant_p=no
15903 fi
15904
15905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906 fi
15907 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_constant_p" >&5
15908 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
15909 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
15910
15911 cat >>confdefs.h <<\_ACEOF
15912 #define HAVE__BUILTIN_CONSTANT_P 1
15913 _ACEOF
15914
15915 fi
15916 { $as_echo "$as_me:$LINENO: checking for __builtin_unreachable" >&5
15917 $as_echo_n "checking for __builtin_unreachable... " >&6; }
15918 if test "${pgac_cv__builtin_unreachable+set}" = set; then
15919   $as_echo_n "(cached) " >&6
15920 else
15921   cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15927
15928 int
15929 main ()
15930 {
15931 __builtin_unreachable();
15932   ;
15933   return 0;
15934 }
15935 _ACEOF
15936 rm -f conftest.$ac_objext conftest$ac_exeext
15937 if { (ac_try="$ac_link"
15938 case "(($ac_try" in
15939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940   *) ac_try_echo=$ac_try;;
15941 esac
15942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15943 $as_echo "$ac_try_echo") >&5
15944   (eval "$ac_link") 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } && {
15951          test -z "$ac_c_werror_flag" ||
15952          test ! -s conftest.err
15953        } && test -s conftest$ac_exeext && {
15954          test "$cross_compiling" = yes ||
15955          $as_test_x conftest$ac_exeext
15956        }; then
15957   pgac_cv__builtin_unreachable=yes
15958 else
15959   $as_echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962         pgac_cv__builtin_unreachable=no
15963 fi
15964
15965 rm -rf conftest.dSYM
15966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15967       conftest$ac_exeext conftest.$ac_ext
15968 fi
15969 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_unreachable" >&5
15970 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
15971 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
15972
15973 cat >>confdefs.h <<\_ACEOF
15974 #define HAVE__BUILTIN_UNREACHABLE 1
15975 _ACEOF
15976
15977 fi
15978 { $as_echo "$as_me:$LINENO: checking for __VA_ARGS__" >&5
15979 $as_echo_n "checking for __VA_ARGS__... " >&6; }
15980 if test "${pgac_cv__va_args+set}" = set; then
15981   $as_echo_n "(cached) " >&6
15982 else
15983   cat >conftest.$ac_ext <<_ACEOF
15984 /* confdefs.h.  */
15985 _ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h.  */
15989 #include <stdio.h>
15990 int
15991 main ()
15992 {
15993 #define debug(...) fprintf(stderr, __VA_ARGS__)
15994 debug("%s", "blarg");
15995
15996   ;
15997   return 0;
15998 }
15999 _ACEOF
16000 rm -f conftest.$ac_objext
16001 if { (ac_try="$ac_compile"
16002 case "(($ac_try" in
16003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004   *) ac_try_echo=$ac_try;;
16005 esac
16006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16007 $as_echo "$ac_try_echo") >&5
16008   (eval "$ac_compile") 2>conftest.er1
16009   ac_status=$?
16010   grep -v '^ *+' conftest.er1 >conftest.err
16011   rm -f conftest.er1
16012   cat conftest.err >&5
16013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); } && {
16015          test -z "$ac_c_werror_flag" ||
16016          test ! -s conftest.err
16017        } && test -s conftest.$ac_objext; then
16018   pgac_cv__va_args=yes
16019 else
16020   $as_echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023         pgac_cv__va_args=no
16024 fi
16025
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 fi
16028 { $as_echo "$as_me:$LINENO: result: $pgac_cv__va_args" >&5
16029 $as_echo "$pgac_cv__va_args" >&6; }
16030 if test x"$pgac_cv__va_args" = xyes ; then
16031
16032 cat >>confdefs.h <<\_ACEOF
16033 #define HAVE__VA_ARGS 1
16034 _ACEOF
16035
16036 fi
16037 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16038 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16039 if test "${ac_cv_struct_tm+set}" = set; then
16040   $as_echo_n "(cached) " >&6
16041 else
16042   cat >conftest.$ac_ext <<_ACEOF
16043 /* confdefs.h.  */
16044 _ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h.  */
16048 #include <sys/types.h>
16049 #include <time.h>
16050
16051 int
16052 main ()
16053 {
16054 struct tm tm;
16055                                      int *p = &tm.tm_sec;
16056                                      return !p;
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 rm -f conftest.$ac_objext
16062 if { (ac_try="$ac_compile"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16068 $as_echo "$ac_try_echo") >&5
16069   (eval "$ac_compile") 2>conftest.er1
16070   ac_status=$?
16071   grep -v '^ *+' conftest.er1 >conftest.err
16072   rm -f conftest.er1
16073   cat conftest.err >&5
16074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); } && {
16076          test -z "$ac_c_werror_flag" ||
16077          test ! -s conftest.err
16078        } && test -s conftest.$ac_objext; then
16079   ac_cv_struct_tm=time.h
16080 else
16081   $as_echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084         ac_cv_struct_tm=sys/time.h
16085 fi
16086
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 fi
16089 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16090 $as_echo "$ac_cv_struct_tm" >&6; }
16091 if test $ac_cv_struct_tm = sys/time.h; then
16092
16093 cat >>confdefs.h <<\_ACEOF
16094 #define TM_IN_SYS_TIME 1
16095 _ACEOF
16096
16097 fi
16098
16099 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16100 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
16101 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16102   $as_echo_n "(cached) " >&6
16103 else
16104   cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h.  */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h.  */
16110 #include <sys/types.h>
16111 #include <$ac_cv_struct_tm>
16112
16113
16114 int
16115 main ()
16116 {
16117 static struct tm ac_aggr;
16118 if (ac_aggr.tm_zone)
16119 return 0;
16120   ;
16121   return 0;
16122 }
16123 _ACEOF
16124 rm -f conftest.$ac_objext
16125 if { (ac_try="$ac_compile"
16126 case "(($ac_try" in
16127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128   *) ac_try_echo=$ac_try;;
16129 esac
16130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16131 $as_echo "$ac_try_echo") >&5
16132   (eval "$ac_compile") 2>conftest.er1
16133   ac_status=$?
16134   grep -v '^ *+' conftest.er1 >conftest.err
16135   rm -f conftest.er1
16136   cat conftest.err >&5
16137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); } && {
16139          test -z "$ac_c_werror_flag" ||
16140          test ! -s conftest.err
16141        } && test -s conftest.$ac_objext; then
16142   ac_cv_member_struct_tm_tm_zone=yes
16143 else
16144   $as_echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16146
16147         cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h.  */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h.  */
16153 #include <sys/types.h>
16154 #include <$ac_cv_struct_tm>
16155
16156
16157 int
16158 main ()
16159 {
16160 static struct tm ac_aggr;
16161 if (sizeof ac_aggr.tm_zone)
16162 return 0;
16163   ;
16164   return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext
16168 if { (ac_try="$ac_compile"
16169 case "(($ac_try" in
16170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171   *) ac_try_echo=$ac_try;;
16172 esac
16173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16174 $as_echo "$ac_try_echo") >&5
16175   (eval "$ac_compile") 2>conftest.er1
16176   ac_status=$?
16177   grep -v '^ *+' conftest.er1 >conftest.err
16178   rm -f conftest.er1
16179   cat conftest.err >&5
16180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); } && {
16182          test -z "$ac_c_werror_flag" ||
16183          test ! -s conftest.err
16184        } && test -s conftest.$ac_objext; then
16185   ac_cv_member_struct_tm_tm_zone=yes
16186 else
16187   $as_echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16189
16190         ac_cv_member_struct_tm_tm_zone=no
16191 fi
16192
16193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16194 fi
16195
16196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16197 fi
16198 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16199 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
16200 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
16201
16202 cat >>confdefs.h <<_ACEOF
16203 #define HAVE_STRUCT_TM_TM_ZONE 1
16204 _ACEOF
16205
16206
16207 fi
16208
16209 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16210
16211 cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_TM_ZONE 1
16213 _ACEOF
16214
16215 fi
16216 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
16217 $as_echo_n "checking for tzname... " >&6; }
16218 if test "${ac_cv_var_tzname+set}" = set; then
16219   $as_echo_n "(cached) " >&6
16220 else
16221   cat >conftest.$ac_ext <<_ACEOF
16222 /* confdefs.h.  */
16223 _ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h.  */
16227 #include <time.h>
16228 #ifndef tzname /* For SGI.  */
16229 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
16230 #endif
16231
16232 int
16233 main ()
16234 {
16235 atoi(*tzname);
16236   ;
16237   return 0;
16238 }
16239 _ACEOF
16240 rm -f conftest.$ac_objext conftest$ac_exeext
16241 if { (ac_try="$ac_link"
16242 case "(($ac_try" in
16243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244   *) ac_try_echo=$ac_try;;
16245 esac
16246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16247 $as_echo "$ac_try_echo") >&5
16248   (eval "$ac_link") 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } && {
16255          test -z "$ac_c_werror_flag" ||
16256          test ! -s conftest.err
16257        } && test -s conftest$ac_exeext && {
16258          test "$cross_compiling" = yes ||
16259          $as_test_x conftest$ac_exeext
16260        }; then
16261   ac_cv_var_tzname=yes
16262 else
16263   $as_echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16265
16266         ac_cv_var_tzname=no
16267 fi
16268
16269 rm -rf conftest.dSYM
16270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16271       conftest$ac_exeext conftest.$ac_ext
16272 fi
16273 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16274 $as_echo "$ac_cv_var_tzname" >&6; }
16275 if test $ac_cv_var_tzname = yes; then
16276
16277 cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_TZNAME 1
16279 _ACEOF
16280
16281 fi
16282
16283 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
16284 $as_echo_n "checking for union semun... " >&6; }
16285 if test "${ac_cv_type_union_semun+set}" = set; then
16286   $as_echo_n "(cached) " >&6
16287 else
16288   ac_cv_type_union_semun=no
16289 cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h.  */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h.  */
16295 #include <sys/types.h>
16296 #include <sys/ipc.h>
16297 #include <sys/sem.h>
16298
16299 int
16300 main ()
16301 {
16302 if (sizeof (union semun))
16303        return 0;
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest.$ac_objext
16309 if { (ac_try="$ac_compile"
16310 case "(($ac_try" in
16311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312   *) ac_try_echo=$ac_try;;
16313 esac
16314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16315 $as_echo "$ac_try_echo") >&5
16316   (eval "$ac_compile") 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } && {
16323          test -z "$ac_c_werror_flag" ||
16324          test ! -s conftest.err
16325        } && test -s conftest.$ac_objext; then
16326   cat >conftest.$ac_ext <<_ACEOF
16327 /* confdefs.h.  */
16328 _ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h.  */
16332 #include <sys/types.h>
16333 #include <sys/ipc.h>
16334 #include <sys/sem.h>
16335
16336 int
16337 main ()
16338 {
16339 if (sizeof ((union semun)))
16340           return 0;
16341   ;
16342   return 0;
16343 }
16344 _ACEOF
16345 rm -f conftest.$ac_objext
16346 if { (ac_try="$ac_compile"
16347 case "(($ac_try" in
16348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349   *) ac_try_echo=$ac_try;;
16350 esac
16351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16352 $as_echo "$ac_try_echo") >&5
16353   (eval "$ac_compile") 2>conftest.er1
16354   ac_status=$?
16355   grep -v '^ *+' conftest.er1 >conftest.err
16356   rm -f conftest.er1
16357   cat conftest.err >&5
16358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); } && {
16360          test -z "$ac_c_werror_flag" ||
16361          test ! -s conftest.err
16362        } && test -s conftest.$ac_objext; then
16363   :
16364 else
16365   $as_echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16367
16368         ac_cv_type_union_semun=yes
16369 fi
16370
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372 else
16373   $as_echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16375
16376
16377 fi
16378
16379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16380 fi
16381 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16382 $as_echo "$ac_cv_type_union_semun" >&6; }
16383 if test "x$ac_cv_type_union_semun" = x""yes; then
16384
16385 cat >>confdefs.h <<_ACEOF
16386 #define HAVE_UNION_SEMUN 1
16387 _ACEOF
16388
16389
16390 fi
16391
16392 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16393 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16394 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16395   $as_echo_n "(cached) " >&6
16396 else
16397   ac_cv_type_struct_sockaddr_un=no
16398 cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h.  */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h.  */
16404 #include <sys/types.h>
16405 #ifdef HAVE_SYS_UN_H
16406 #include <sys/un.h>
16407 #endif
16408
16409
16410 int
16411 main ()
16412 {
16413 if (sizeof (struct sockaddr_un))
16414        return 0;
16415   ;
16416   return 0;
16417 }
16418 _ACEOF
16419 rm -f conftest.$ac_objext
16420 if { (ac_try="$ac_compile"
16421 case "(($ac_try" in
16422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423   *) ac_try_echo=$ac_try;;
16424 esac
16425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16426 $as_echo "$ac_try_echo") >&5
16427   (eval "$ac_compile") 2>conftest.er1
16428   ac_status=$?
16429   grep -v '^ *+' conftest.er1 >conftest.err
16430   rm -f conftest.er1
16431   cat conftest.err >&5
16432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433   (exit $ac_status); } && {
16434          test -z "$ac_c_werror_flag" ||
16435          test ! -s conftest.err
16436        } && test -s conftest.$ac_objext; then
16437   cat >conftest.$ac_ext <<_ACEOF
16438 /* confdefs.h.  */
16439 _ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h.  */
16443 #include <sys/types.h>
16444 #ifdef HAVE_SYS_UN_H
16445 #include <sys/un.h>
16446 #endif
16447
16448
16449 int
16450 main ()
16451 {
16452 if (sizeof ((struct sockaddr_un)))
16453           return 0;
16454   ;
16455   return 0;
16456 }
16457 _ACEOF
16458 rm -f conftest.$ac_objext
16459 if { (ac_try="$ac_compile"
16460 case "(($ac_try" in
16461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462   *) ac_try_echo=$ac_try;;
16463 esac
16464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16465 $as_echo "$ac_try_echo") >&5
16466   (eval "$ac_compile") 2>conftest.er1
16467   ac_status=$?
16468   grep -v '^ *+' conftest.er1 >conftest.err
16469   rm -f conftest.er1
16470   cat conftest.err >&5
16471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); } && {
16473          test -z "$ac_c_werror_flag" ||
16474          test ! -s conftest.err
16475        } && test -s conftest.$ac_objext; then
16476   :
16477 else
16478   $as_echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481         ac_cv_type_struct_sockaddr_un=yes
16482 fi
16483
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16485 else
16486   $as_echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489
16490 fi
16491
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493 fi
16494 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16495 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16496 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16497
16498 cat >>confdefs.h <<\_ACEOF
16499 #define HAVE_UNIX_SOCKETS 1
16500 _ACEOF
16501
16502 fi
16503
16504 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16505 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16506 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16507   $as_echo_n "(cached) " >&6
16508 else
16509   ac_cv_type_struct_sockaddr_storage=no
16510 cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516 #include <sys/types.h>
16517 #ifdef HAVE_SYS_SOCKET_H
16518 #include <sys/socket.h>
16519 #endif
16520
16521
16522 int
16523 main ()
16524 {
16525 if (sizeof (struct sockaddr_storage))
16526        return 0;
16527   ;
16528   return 0;
16529 }
16530 _ACEOF
16531 rm -f conftest.$ac_objext
16532 if { (ac_try="$ac_compile"
16533 case "(($ac_try" in
16534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535   *) ac_try_echo=$ac_try;;
16536 esac
16537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16538 $as_echo "$ac_try_echo") >&5
16539   (eval "$ac_compile") 2>conftest.er1
16540   ac_status=$?
16541   grep -v '^ *+' conftest.er1 >conftest.err
16542   rm -f conftest.er1
16543   cat conftest.err >&5
16544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545   (exit $ac_status); } && {
16546          test -z "$ac_c_werror_flag" ||
16547          test ! -s conftest.err
16548        } && test -s conftest.$ac_objext; then
16549   cat >conftest.$ac_ext <<_ACEOF
16550 /* confdefs.h.  */
16551 _ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h.  */
16555 #include <sys/types.h>
16556 #ifdef HAVE_SYS_SOCKET_H
16557 #include <sys/socket.h>
16558 #endif
16559
16560
16561 int
16562 main ()
16563 {
16564 if (sizeof ((struct sockaddr_storage)))
16565           return 0;
16566   ;
16567   return 0;
16568 }
16569 _ACEOF
16570 rm -f conftest.$ac_objext
16571 if { (ac_try="$ac_compile"
16572 case "(($ac_try" in
16573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574   *) ac_try_echo=$ac_try;;
16575 esac
16576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16577 $as_echo "$ac_try_echo") >&5
16578   (eval "$ac_compile") 2>conftest.er1
16579   ac_status=$?
16580   grep -v '^ *+' conftest.er1 >conftest.err
16581   rm -f conftest.er1
16582   cat conftest.err >&5
16583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); } && {
16585          test -z "$ac_c_werror_flag" ||
16586          test ! -s conftest.err
16587        } && test -s conftest.$ac_objext; then
16588   :
16589 else
16590   $as_echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16592
16593         ac_cv_type_struct_sockaddr_storage=yes
16594 fi
16595
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597 else
16598   $as_echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16600
16601
16602 fi
16603
16604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16605 fi
16606 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16607 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16608 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16609
16610 cat >>confdefs.h <<_ACEOF
16611 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16612 _ACEOF
16613
16614
16615 fi
16616
16617 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16618 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16619 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16620   $as_echo_n "(cached) " >&6
16621 else
16622   cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h.  */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h.  */
16628 #include <sys/types.h>
16629 #ifdef HAVE_SYS_SOCKET_H
16630 #include <sys/socket.h>
16631 #endif
16632
16633
16634 int
16635 main ()
16636 {
16637 static struct sockaddr_storage ac_aggr;
16638 if (ac_aggr.ss_family)
16639 return 0;
16640   ;
16641   return 0;
16642 }
16643 _ACEOF
16644 rm -f conftest.$ac_objext
16645 if { (ac_try="$ac_compile"
16646 case "(($ac_try" in
16647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648   *) ac_try_echo=$ac_try;;
16649 esac
16650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16651 $as_echo "$ac_try_echo") >&5
16652   (eval "$ac_compile") 2>conftest.er1
16653   ac_status=$?
16654   grep -v '^ *+' conftest.er1 >conftest.err
16655   rm -f conftest.er1
16656   cat conftest.err >&5
16657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); } && {
16659          test -z "$ac_c_werror_flag" ||
16660          test ! -s conftest.err
16661        } && test -s conftest.$ac_objext; then
16662   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16663 else
16664   $as_echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667         cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h.  */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h.  */
16673 #include <sys/types.h>
16674 #ifdef HAVE_SYS_SOCKET_H
16675 #include <sys/socket.h>
16676 #endif
16677
16678
16679 int
16680 main ()
16681 {
16682 static struct sockaddr_storage ac_aggr;
16683 if (sizeof ac_aggr.ss_family)
16684 return 0;
16685   ;
16686   return 0;
16687 }
16688 _ACEOF
16689 rm -f conftest.$ac_objext
16690 if { (ac_try="$ac_compile"
16691 case "(($ac_try" in
16692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693   *) ac_try_echo=$ac_try;;
16694 esac
16695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16696 $as_echo "$ac_try_echo") >&5
16697   (eval "$ac_compile") 2>conftest.er1
16698   ac_status=$?
16699   grep -v '^ *+' conftest.er1 >conftest.err
16700   rm -f conftest.er1
16701   cat conftest.err >&5
16702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); } && {
16704          test -z "$ac_c_werror_flag" ||
16705          test ! -s conftest.err
16706        } && test -s conftest.$ac_objext; then
16707   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16708 else
16709   $as_echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16711
16712         ac_cv_member_struct_sockaddr_storage_ss_family=no
16713 fi
16714
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 fi
16717
16718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16719 fi
16720 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16721 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16722 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16723
16724 cat >>confdefs.h <<_ACEOF
16725 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16726 _ACEOF
16727
16728
16729 fi
16730 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16731 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16732 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16733   $as_echo_n "(cached) " >&6
16734 else
16735   cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741 #include <sys/types.h>
16742 #ifdef HAVE_SYS_SOCKET_H
16743 #include <sys/socket.h>
16744 #endif
16745
16746
16747 int
16748 main ()
16749 {
16750 static struct sockaddr_storage ac_aggr;
16751 if (ac_aggr.__ss_family)
16752 return 0;
16753   ;
16754   return 0;
16755 }
16756 _ACEOF
16757 rm -f conftest.$ac_objext
16758 if { (ac_try="$ac_compile"
16759 case "(($ac_try" in
16760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761   *) ac_try_echo=$ac_try;;
16762 esac
16763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16764 $as_echo "$ac_try_echo") >&5
16765   (eval "$ac_compile") 2>conftest.er1
16766   ac_status=$?
16767   grep -v '^ *+' conftest.er1 >conftest.err
16768   rm -f conftest.er1
16769   cat conftest.err >&5
16770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } && {
16772          test -z "$ac_c_werror_flag" ||
16773          test ! -s conftest.err
16774        } && test -s conftest.$ac_objext; then
16775   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16776 else
16777   $as_echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16779
16780         cat >conftest.$ac_ext <<_ACEOF
16781 /* confdefs.h.  */
16782 _ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h.  */
16786 #include <sys/types.h>
16787 #ifdef HAVE_SYS_SOCKET_H
16788 #include <sys/socket.h>
16789 #endif
16790
16791
16792 int
16793 main ()
16794 {
16795 static struct sockaddr_storage ac_aggr;
16796 if (sizeof ac_aggr.__ss_family)
16797 return 0;
16798   ;
16799   return 0;
16800 }
16801 _ACEOF
16802 rm -f conftest.$ac_objext
16803 if { (ac_try="$ac_compile"
16804 case "(($ac_try" in
16805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806   *) ac_try_echo=$ac_try;;
16807 esac
16808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16809 $as_echo "$ac_try_echo") >&5
16810   (eval "$ac_compile") 2>conftest.er1
16811   ac_status=$?
16812   grep -v '^ *+' conftest.er1 >conftest.err
16813   rm -f conftest.er1
16814   cat conftest.err >&5
16815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); } && {
16817          test -z "$ac_c_werror_flag" ||
16818          test ! -s conftest.err
16819        } && test -s conftest.$ac_objext; then
16820   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16821 else
16822   $as_echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825         ac_cv_member_struct_sockaddr_storage___ss_family=no
16826 fi
16827
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16829 fi
16830
16831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16832 fi
16833 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16834 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16835 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16836
16837 cat >>confdefs.h <<_ACEOF
16838 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16839 _ACEOF
16840
16841
16842 fi
16843 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16844 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16845 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16846   $as_echo_n "(cached) " >&6
16847 else
16848   cat >conftest.$ac_ext <<_ACEOF
16849 /* confdefs.h.  */
16850 _ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h.  */
16854 #include <sys/types.h>
16855 #ifdef HAVE_SYS_SOCKET_H
16856 #include <sys/socket.h>
16857 #endif
16858
16859
16860 int
16861 main ()
16862 {
16863 static struct sockaddr_storage ac_aggr;
16864 if (ac_aggr.ss_len)
16865 return 0;
16866   ;
16867   return 0;
16868 }
16869 _ACEOF
16870 rm -f conftest.$ac_objext
16871 if { (ac_try="$ac_compile"
16872 case "(($ac_try" in
16873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874   *) ac_try_echo=$ac_try;;
16875 esac
16876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16877 $as_echo "$ac_try_echo") >&5
16878   (eval "$ac_compile") 2>conftest.er1
16879   ac_status=$?
16880   grep -v '^ *+' conftest.er1 >conftest.err
16881   rm -f conftest.er1
16882   cat conftest.err >&5
16883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); } && {
16885          test -z "$ac_c_werror_flag" ||
16886          test ! -s conftest.err
16887        } && test -s conftest.$ac_objext; then
16888   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16889 else
16890   $as_echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893         cat >conftest.$ac_ext <<_ACEOF
16894 /* confdefs.h.  */
16895 _ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h.  */
16899 #include <sys/types.h>
16900 #ifdef HAVE_SYS_SOCKET_H
16901 #include <sys/socket.h>
16902 #endif
16903
16904
16905 int
16906 main ()
16907 {
16908 static struct sockaddr_storage ac_aggr;
16909 if (sizeof ac_aggr.ss_len)
16910 return 0;
16911   ;
16912   return 0;
16913 }
16914 _ACEOF
16915 rm -f conftest.$ac_objext
16916 if { (ac_try="$ac_compile"
16917 case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16922 $as_echo "$ac_try_echo") >&5
16923   (eval "$ac_compile") 2>conftest.er1
16924   ac_status=$?
16925   grep -v '^ *+' conftest.er1 >conftest.err
16926   rm -f conftest.er1
16927   cat conftest.err >&5
16928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); } && {
16930          test -z "$ac_c_werror_flag" ||
16931          test ! -s conftest.err
16932        } && test -s conftest.$ac_objext; then
16933   ac_cv_member_struct_sockaddr_storage_ss_len=yes
16934 else
16935   $as_echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16937
16938         ac_cv_member_struct_sockaddr_storage_ss_len=no
16939 fi
16940
16941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16942 fi
16943
16944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16945 fi
16946 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16947 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16948 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16949
16950 cat >>confdefs.h <<_ACEOF
16951 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16952 _ACEOF
16953
16954
16955 fi
16956 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16957 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16958 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16959   $as_echo_n "(cached) " >&6
16960 else
16961   cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967 #include <sys/types.h>
16968 #ifdef HAVE_SYS_SOCKET_H
16969 #include <sys/socket.h>
16970 #endif
16971
16972
16973 int
16974 main ()
16975 {
16976 static struct sockaddr_storage ac_aggr;
16977 if (ac_aggr.__ss_len)
16978 return 0;
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest.$ac_objext
16984 if { (ac_try="$ac_compile"
16985 case "(($ac_try" in
16986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987   *) ac_try_echo=$ac_try;;
16988 esac
16989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16990 $as_echo "$ac_try_echo") >&5
16991   (eval "$ac_compile") 2>conftest.er1
16992   ac_status=$?
16993   grep -v '^ *+' conftest.er1 >conftest.err
16994   rm -f conftest.er1
16995   cat conftest.err >&5
16996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } && {
16998          test -z "$ac_c_werror_flag" ||
16999          test ! -s conftest.err
17000        } && test -s conftest.$ac_objext; then
17001   ac_cv_member_struct_sockaddr_storage___ss_len=yes
17002 else
17003   $as_echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17005
17006         cat >conftest.$ac_ext <<_ACEOF
17007 /* confdefs.h.  */
17008 _ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h.  */
17012 #include <sys/types.h>
17013 #ifdef HAVE_SYS_SOCKET_H
17014 #include <sys/socket.h>
17015 #endif
17016
17017
17018 int
17019 main ()
17020 {
17021 static struct sockaddr_storage ac_aggr;
17022 if (sizeof ac_aggr.__ss_len)
17023 return 0;
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17035 $as_echo "$ac_try_echo") >&5
17036   (eval "$ac_compile") 2>conftest.er1
17037   ac_status=$?
17038   grep -v '^ *+' conftest.er1 >conftest.err
17039   rm -f conftest.er1
17040   cat conftest.err >&5
17041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); } && {
17043          test -z "$ac_c_werror_flag" ||
17044          test ! -s conftest.err
17045        } && test -s conftest.$ac_objext; then
17046   ac_cv_member_struct_sockaddr_storage___ss_len=yes
17047 else
17048   $as_echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17050
17051         ac_cv_member_struct_sockaddr_storage___ss_len=no
17052 fi
17053
17054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17055 fi
17056
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17058 fi
17059 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
17060 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
17061 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
17062
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
17065 _ACEOF
17066
17067
17068 fi
17069 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
17070 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
17071 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
17072   $as_echo_n "(cached) " >&6
17073 else
17074   cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h.  */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h.  */
17080 #include <sys/types.h>
17081 #ifdef HAVE_SYS_SOCKET_H
17082 #include <sys/socket.h>
17083 #endif
17084
17085
17086 int
17087 main ()
17088 {
17089 static struct sockaddr ac_aggr;
17090 if (ac_aggr.sa_len)
17091 return 0;
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext
17097 if { (ac_try="$ac_compile"
17098 case "(($ac_try" in
17099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100   *) ac_try_echo=$ac_try;;
17101 esac
17102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17103 $as_echo "$ac_try_echo") >&5
17104   (eval "$ac_compile") 2>conftest.er1
17105   ac_status=$?
17106   grep -v '^ *+' conftest.er1 >conftest.err
17107   rm -f conftest.er1
17108   cat conftest.err >&5
17109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } && {
17111          test -z "$ac_c_werror_flag" ||
17112          test ! -s conftest.err
17113        } && test -s conftest.$ac_objext; then
17114   ac_cv_member_struct_sockaddr_sa_len=yes
17115 else
17116   $as_echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119         cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125 #include <sys/types.h>
17126 #ifdef HAVE_SYS_SOCKET_H
17127 #include <sys/socket.h>
17128 #endif
17129
17130
17131 int
17132 main ()
17133 {
17134 static struct sockaddr ac_aggr;
17135 if (sizeof ac_aggr.sa_len)
17136 return 0;
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 rm -f conftest.$ac_objext
17142 if { (ac_try="$ac_compile"
17143 case "(($ac_try" in
17144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145   *) ac_try_echo=$ac_try;;
17146 esac
17147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17148 $as_echo "$ac_try_echo") >&5
17149   (eval "$ac_compile") 2>conftest.er1
17150   ac_status=$?
17151   grep -v '^ *+' conftest.er1 >conftest.err
17152   rm -f conftest.er1
17153   cat conftest.err >&5
17154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); } && {
17156          test -z "$ac_c_werror_flag" ||
17157          test ! -s conftest.err
17158        } && test -s conftest.$ac_objext; then
17159   ac_cv_member_struct_sockaddr_sa_len=yes
17160 else
17161   $as_echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164         ac_cv_member_struct_sockaddr_sa_len=no
17165 fi
17166
17167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168 fi
17169
17170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17171 fi
17172 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
17173 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
17174 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
17175
17176 cat >>confdefs.h <<_ACEOF
17177 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17178 _ACEOF
17179
17180
17181 fi
17182
17183 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
17184 $as_echo_n "checking for struct addrinfo... " >&6; }
17185 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
17186   $as_echo_n "(cached) " >&6
17187 else
17188   ac_cv_type_struct_addrinfo=no
17189 cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h.  */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h.  */
17195 #include <sys/types.h>
17196 #include <sys/socket.h>
17197 #include <netdb.h>
17198
17199
17200 int
17201 main ()
17202 {
17203 if (sizeof (struct addrinfo))
17204        return 0;
17205   ;
17206   return 0;
17207 }
17208 _ACEOF
17209 rm -f conftest.$ac_objext
17210 if { (ac_try="$ac_compile"
17211 case "(($ac_try" in
17212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213   *) ac_try_echo=$ac_try;;
17214 esac
17215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17216 $as_echo "$ac_try_echo") >&5
17217   (eval "$ac_compile") 2>conftest.er1
17218   ac_status=$?
17219   grep -v '^ *+' conftest.er1 >conftest.err
17220   rm -f conftest.er1
17221   cat conftest.err >&5
17222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); } && {
17224          test -z "$ac_c_werror_flag" ||
17225          test ! -s conftest.err
17226        } && test -s conftest.$ac_objext; then
17227   cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h.  */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h.  */
17233 #include <sys/types.h>
17234 #include <sys/socket.h>
17235 #include <netdb.h>
17236
17237
17238 int
17239 main ()
17240 {
17241 if (sizeof ((struct addrinfo)))
17242           return 0;
17243   ;
17244   return 0;
17245 }
17246 _ACEOF
17247 rm -f conftest.$ac_objext
17248 if { (ac_try="$ac_compile"
17249 case "(($ac_try" in
17250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251   *) ac_try_echo=$ac_try;;
17252 esac
17253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17254 $as_echo "$ac_try_echo") >&5
17255   (eval "$ac_compile") 2>conftest.er1
17256   ac_status=$?
17257   grep -v '^ *+' conftest.er1 >conftest.err
17258   rm -f conftest.er1
17259   cat conftest.err >&5
17260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); } && {
17262          test -z "$ac_c_werror_flag" ||
17263          test ! -s conftest.err
17264        } && test -s conftest.$ac_objext; then
17265   :
17266 else
17267   $as_echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17269
17270         ac_cv_type_struct_addrinfo=yes
17271 fi
17272
17273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 else
17275   $as_echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278
17279 fi
17280
17281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17282 fi
17283 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
17284 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
17285 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
17286
17287 cat >>confdefs.h <<_ACEOF
17288 #define HAVE_STRUCT_ADDRINFO 1
17289 _ACEOF
17290
17291
17292 fi
17293
17294
17295   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
17296 $as_echo_n "checking for intptr_t... " >&6; }
17297 if test "${ac_cv_type_intptr_t+set}" = set; then
17298   $as_echo_n "(cached) " >&6
17299 else
17300   ac_cv_type_intptr_t=no
17301 cat >conftest.$ac_ext <<_ACEOF
17302 /* confdefs.h.  */
17303 _ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h.  */
17307 $ac_includes_default
17308 int
17309 main ()
17310 {
17311 if (sizeof (intptr_t))
17312        return 0;
17313   ;
17314   return 0;
17315 }
17316 _ACEOF
17317 rm -f conftest.$ac_objext
17318 if { (ac_try="$ac_compile"
17319 case "(($ac_try" in
17320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321   *) ac_try_echo=$ac_try;;
17322 esac
17323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17324 $as_echo "$ac_try_echo") >&5
17325   (eval "$ac_compile") 2>conftest.er1
17326   ac_status=$?
17327   grep -v '^ *+' conftest.er1 >conftest.err
17328   rm -f conftest.er1
17329   cat conftest.err >&5
17330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); } && {
17332          test -z "$ac_c_werror_flag" ||
17333          test ! -s conftest.err
17334        } && test -s conftest.$ac_objext; then
17335   cat >conftest.$ac_ext <<_ACEOF
17336 /* confdefs.h.  */
17337 _ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h.  */
17341 $ac_includes_default
17342 int
17343 main ()
17344 {
17345 if (sizeof ((intptr_t)))
17346           return 0;
17347   ;
17348   return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext
17352 if { (ac_try="$ac_compile"
17353 case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17358 $as_echo "$ac_try_echo") >&5
17359   (eval "$ac_compile") 2>conftest.er1
17360   ac_status=$?
17361   grep -v '^ *+' conftest.er1 >conftest.err
17362   rm -f conftest.er1
17363   cat conftest.err >&5
17364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365   (exit $ac_status); } && {
17366          test -z "$ac_c_werror_flag" ||
17367          test ! -s conftest.err
17368        } && test -s conftest.$ac_objext; then
17369   :
17370 else
17371   $as_echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17373
17374         ac_cv_type_intptr_t=yes
17375 fi
17376
17377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17378 else
17379   $as_echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17381
17382
17383 fi
17384
17385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386 fi
17387 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17388 $as_echo "$ac_cv_type_intptr_t" >&6; }
17389 if test "x$ac_cv_type_intptr_t" = x""yes; then
17390
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_INTPTR_T 1
17393 _ACEOF
17394
17395 else
17396   for ac_type in 'int' 'long int' 'long long int'; do
17397        cat >conftest.$ac_ext <<_ACEOF
17398 /* confdefs.h.  */
17399 _ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h.  */
17403 $ac_includes_default
17404 int
17405 main ()
17406 {
17407 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17408 test_array [0] = 0
17409
17410   ;
17411   return 0;
17412 }
17413 _ACEOF
17414 rm -f conftest.$ac_objext
17415 if { (ac_try="$ac_compile"
17416 case "(($ac_try" in
17417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418   *) ac_try_echo=$ac_try;;
17419 esac
17420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17421 $as_echo "$ac_try_echo") >&5
17422   (eval "$ac_compile") 2>conftest.er1
17423   ac_status=$?
17424   grep -v '^ *+' conftest.er1 >conftest.err
17425   rm -f conftest.er1
17426   cat conftest.err >&5
17427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); } && {
17429          test -z "$ac_c_werror_flag" ||
17430          test ! -s conftest.err
17431        } && test -s conftest.$ac_objext; then
17432
17433 cat >>confdefs.h <<_ACEOF
17434 #define intptr_t $ac_type
17435 _ACEOF
17436
17437           ac_type=
17438 else
17439   $as_echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442
17443 fi
17444
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446        test -z "$ac_type" && break
17447      done
17448 fi
17449
17450
17451
17452   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17453 $as_echo_n "checking for uintptr_t... " >&6; }
17454 if test "${ac_cv_type_uintptr_t+set}" = set; then
17455   $as_echo_n "(cached) " >&6
17456 else
17457   ac_cv_type_uintptr_t=no
17458 cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h.  */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h.  */
17464 $ac_includes_default
17465 int
17466 main ()
17467 {
17468 if (sizeof (uintptr_t))
17469        return 0;
17470   ;
17471   return 0;
17472 }
17473 _ACEOF
17474 rm -f conftest.$ac_objext
17475 if { (ac_try="$ac_compile"
17476 case "(($ac_try" in
17477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478   *) ac_try_echo=$ac_try;;
17479 esac
17480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17481 $as_echo "$ac_try_echo") >&5
17482   (eval "$ac_compile") 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } && {
17489          test -z "$ac_c_werror_flag" ||
17490          test ! -s conftest.err
17491        } && test -s conftest.$ac_objext; then
17492   cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h.  */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h.  */
17498 $ac_includes_default
17499 int
17500 main ()
17501 {
17502 if (sizeof ((uintptr_t)))
17503           return 0;
17504   ;
17505   return 0;
17506 }
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (ac_try="$ac_compile"
17510 case "(($ac_try" in
17511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512   *) ac_try_echo=$ac_try;;
17513 esac
17514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17515 $as_echo "$ac_try_echo") >&5
17516   (eval "$ac_compile") 2>conftest.er1
17517   ac_status=$?
17518   grep -v '^ *+' conftest.er1 >conftest.err
17519   rm -f conftest.er1
17520   cat conftest.err >&5
17521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522   (exit $ac_status); } && {
17523          test -z "$ac_c_werror_flag" ||
17524          test ! -s conftest.err
17525        } && test -s conftest.$ac_objext; then
17526   :
17527 else
17528   $as_echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17530
17531         ac_cv_type_uintptr_t=yes
17532 fi
17533
17534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17535 else
17536   $as_echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17538
17539
17540 fi
17541
17542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543 fi
17544 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17545 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17546 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17547
17548 cat >>confdefs.h <<\_ACEOF
17549 #define HAVE_UINTPTR_T 1
17550 _ACEOF
17551
17552 else
17553   for ac_type in 'unsigned int' 'unsigned long int' \
17554         'unsigned long long int'; do
17555        cat >conftest.$ac_ext <<_ACEOF
17556 /* confdefs.h.  */
17557 _ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h.  */
17561 $ac_includes_default
17562 int
17563 main ()
17564 {
17565 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17566 test_array [0] = 0
17567
17568   ;
17569   return 0;
17570 }
17571 _ACEOF
17572 rm -f conftest.$ac_objext
17573 if { (ac_try="$ac_compile"
17574 case "(($ac_try" in
17575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576   *) ac_try_echo=$ac_try;;
17577 esac
17578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17579 $as_echo "$ac_try_echo") >&5
17580   (eval "$ac_compile") 2>conftest.er1
17581   ac_status=$?
17582   grep -v '^ *+' conftest.er1 >conftest.err
17583   rm -f conftest.er1
17584   cat conftest.err >&5
17585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); } && {
17587          test -z "$ac_c_werror_flag" ||
17588          test ! -s conftest.err
17589        } && test -s conftest.$ac_objext; then
17590
17591 cat >>confdefs.h <<_ACEOF
17592 #define uintptr_t $ac_type
17593 _ACEOF
17594
17595           ac_type=
17596 else
17597   $as_echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600
17601 fi
17602
17603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17604        test -z "$ac_type" && break
17605      done
17606 fi
17607
17608
17609
17610   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17611 $as_echo_n "checking for long long int... " >&6; }
17612 if test "${ac_cv_type_long_long_int+set}" = set; then
17613   $as_echo_n "(cached) " >&6
17614 else
17615   cat >conftest.$ac_ext <<_ACEOF
17616
17617   /* confdefs.h.  */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h.  */
17622 /* For now, do not test the preprocessor; as of 2007 there are too many
17623          implementations with broken preprocessors.  Perhaps this can
17624          be revisited in 2012.  In the meantime, code should not expect
17625          #if to work with literals wider than 32 bits.  */
17626       /* Test literals.  */
17627       long long int ll = 9223372036854775807ll;
17628       long long int nll = -9223372036854775807LL;
17629       unsigned long long int ull = 18446744073709551615ULL;
17630       /* Test constant expressions.   */
17631       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17632                      ? 1 : -1)];
17633       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17634                      ? 1 : -1)];
17635       int i = 63;
17636 int
17637 main ()
17638 {
17639 /* Test availability of runtime routines for shift and division.  */
17640       long long int llmax = 9223372036854775807ll;
17641       unsigned long long int ullmax = 18446744073709551615ull;
17642       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17643               | (llmax / ll) | (llmax % ll)
17644               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17645               | (ullmax / ull) | (ullmax % ull));
17646   ;
17647   return 0;
17648 }
17649
17650 _ACEOF
17651 rm -f conftest.$ac_objext conftest$ac_exeext
17652 if { (ac_try="$ac_link"
17653 case "(($ac_try" in
17654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655   *) ac_try_echo=$ac_try;;
17656 esac
17657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17658 $as_echo "$ac_try_echo") >&5
17659   (eval "$ac_link") 2>conftest.er1
17660   ac_status=$?
17661   grep -v '^ *+' conftest.er1 >conftest.err
17662   rm -f conftest.er1
17663   cat conftest.err >&5
17664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } && {
17666          test -z "$ac_c_werror_flag" ||
17667          test ! -s conftest.err
17668        } && test -s conftest$ac_exeext && {
17669          test "$cross_compiling" = yes ||
17670          $as_test_x conftest$ac_exeext
17671        }; then
17672                         if test "$cross_compiling" = yes; then
17673   ac_cv_type_long_long_int=yes
17674 else
17675   cat >conftest.$ac_ext <<_ACEOF
17676 /* confdefs.h.  */
17677 _ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h.  */
17681 #include <limits.h>
17682                #ifndef LLONG_MAX
17683                # define HALF \
17684                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17685                # define LLONG_MAX (HALF - 1 + HALF)
17686                #endif
17687 int
17688 main ()
17689 {
17690 long long int n = 1;
17691                int i;
17692                for (i = 0; ; i++)
17693                  {
17694                    long long int m = n << i;
17695                    if (m >> i != n)
17696                      return 1;
17697                    if (LLONG_MAX / 2 < m)
17698                      break;
17699                  }
17700                return 0;
17701   ;
17702   return 0;
17703 }
17704 _ACEOF
17705 rm -f conftest$ac_exeext
17706 if { (ac_try="$ac_link"
17707 case "(($ac_try" in
17708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709   *) ac_try_echo=$ac_try;;
17710 esac
17711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17712 $as_echo "$ac_try_echo") >&5
17713   (eval "$ac_link") 2>&5
17714   ac_status=$?
17715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17717   { (case "(($ac_try" in
17718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719   *) ac_try_echo=$ac_try;;
17720 esac
17721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17722 $as_echo "$ac_try_echo") >&5
17723   (eval "$ac_try") 2>&5
17724   ac_status=$?
17725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; }; then
17727   ac_cv_type_long_long_int=yes
17728 else
17729   $as_echo "$as_me: program exited with status $ac_status" >&5
17730 $as_echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 ( exit $ac_status )
17734 ac_cv_type_long_long_int=no
17735 fi
17736 rm -rf conftest.dSYM
17737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17738 fi
17739
17740
17741 else
17742   $as_echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17744
17745         ac_cv_type_long_long_int=no
17746 fi
17747
17748 rm -rf conftest.dSYM
17749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17750       conftest$ac_exeext conftest.$ac_ext
17751 fi
17752 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17753 $as_echo "$ac_cv_type_long_long_int" >&6; }
17754   if test $ac_cv_type_long_long_int = yes; then
17755
17756 cat >>confdefs.h <<\_ACEOF
17757 #define HAVE_LONG_LONG_INT 1
17758 _ACEOF
17759
17760   fi
17761
17762
17763 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17764 $as_echo_n "checking for locale_t... " >&6; }
17765 if test "${pgac_cv_type_locale_t+set}" = set; then
17766   $as_echo_n "(cached) " >&6
17767 else
17768   cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h.  */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h.  */
17774 #include <locale.h>
17775 locale_t x;
17776 int
17777 main ()
17778 {
17779
17780   ;
17781   return 0;
17782 }
17783 _ACEOF
17784 rm -f conftest.$ac_objext
17785 if { (ac_try="$ac_compile"
17786 case "(($ac_try" in
17787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788   *) ac_try_echo=$ac_try;;
17789 esac
17790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17791 $as_echo "$ac_try_echo") >&5
17792   (eval "$ac_compile") 2>conftest.er1
17793   ac_status=$?
17794   grep -v '^ *+' conftest.er1 >conftest.err
17795   rm -f conftest.er1
17796   cat conftest.err >&5
17797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798   (exit $ac_status); } && {
17799          test -z "$ac_c_werror_flag" ||
17800          test ! -s conftest.err
17801        } && test -s conftest.$ac_objext; then
17802   pgac_cv_type_locale_t=yes
17803 else
17804   $as_echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17806
17807         cat >conftest.$ac_ext <<_ACEOF
17808 /* confdefs.h.  */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h.  */
17813 #include <xlocale.h>
17814 locale_t x;
17815 int
17816 main ()
17817 {
17818
17819   ;
17820   return 0;
17821 }
17822 _ACEOF
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17830 $as_echo "$ac_try_echo") >&5
17831   (eval "$ac_compile") 2>conftest.er1
17832   ac_status=$?
17833   grep -v '^ *+' conftest.er1 >conftest.err
17834   rm -f conftest.er1
17835   cat conftest.err >&5
17836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); } && {
17838          test -z "$ac_c_werror_flag" ||
17839          test ! -s conftest.err
17840        } && test -s conftest.$ac_objext; then
17841   pgac_cv_type_locale_t='yes (in xlocale.h)'
17842 else
17843   $as_echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846         pgac_cv_type_locale_t=no
17847 fi
17848
17849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850 fi
17851
17852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17853 fi
17854 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17855 $as_echo "$pgac_cv_type_locale_t" >&6; }
17856 if test "$pgac_cv_type_locale_t" != no; then
17857
17858 cat >>confdefs.h <<\_ACEOF
17859 #define HAVE_LOCALE_T 1
17860 _ACEOF
17861
17862 fi
17863 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17864
17865 cat >>confdefs.h <<\_ACEOF
17866 #define LOCALE_T_IN_XLOCALE 1
17867 _ACEOF
17868
17869 fi
17870
17871 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17872 $as_echo_n "checking for struct cmsgcred... " >&6; }
17873 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17874   $as_echo_n "(cached) " >&6
17875 else
17876   ac_cv_type_struct_cmsgcred=no
17877 cat >conftest.$ac_ext <<_ACEOF
17878 /* confdefs.h.  */
17879 _ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h.  */
17883 #include <sys/socket.h>
17884 #include <sys/param.h>
17885 #ifdef HAVE_SYS_UCRED_H
17886 #include <sys/ucred.h>
17887 #endif
17888
17889 int
17890 main ()
17891 {
17892 if (sizeof (struct cmsgcred))
17893        return 0;
17894   ;
17895   return 0;
17896 }
17897 _ACEOF
17898 rm -f conftest.$ac_objext
17899 if { (ac_try="$ac_compile"
17900 case "(($ac_try" in
17901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902   *) ac_try_echo=$ac_try;;
17903 esac
17904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17905 $as_echo "$ac_try_echo") >&5
17906   (eval "$ac_compile") 2>conftest.er1
17907   ac_status=$?
17908   grep -v '^ *+' conftest.er1 >conftest.err
17909   rm -f conftest.er1
17910   cat conftest.err >&5
17911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); } && {
17913          test -z "$ac_c_werror_flag" ||
17914          test ! -s conftest.err
17915        } && test -s conftest.$ac_objext; then
17916   cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h.  */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h.  */
17922 #include <sys/socket.h>
17923 #include <sys/param.h>
17924 #ifdef HAVE_SYS_UCRED_H
17925 #include <sys/ucred.h>
17926 #endif
17927
17928 int
17929 main ()
17930 {
17931 if (sizeof ((struct cmsgcred)))
17932           return 0;
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 rm -f conftest.$ac_objext
17938 if { (ac_try="$ac_compile"
17939 case "(($ac_try" in
17940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941   *) ac_try_echo=$ac_try;;
17942 esac
17943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17944 $as_echo "$ac_try_echo") >&5
17945   (eval "$ac_compile") 2>conftest.er1
17946   ac_status=$?
17947   grep -v '^ *+' conftest.er1 >conftest.err
17948   rm -f conftest.er1
17949   cat conftest.err >&5
17950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); } && {
17952          test -z "$ac_c_werror_flag" ||
17953          test ! -s conftest.err
17954        } && test -s conftest.$ac_objext; then
17955   :
17956 else
17957   $as_echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17959
17960         ac_cv_type_struct_cmsgcred=yes
17961 fi
17962
17963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17964 else
17965   $as_echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17967
17968
17969 fi
17970
17971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17972 fi
17973 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17974 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17975 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17976
17977 cat >>confdefs.h <<_ACEOF
17978 #define HAVE_STRUCT_CMSGCRED 1
17979 _ACEOF
17980
17981
17982 fi
17983
17984
17985 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17986 $as_echo_n "checking for struct option... " >&6; }
17987 if test "${ac_cv_type_struct_option+set}" = set; then
17988   $as_echo_n "(cached) " >&6
17989 else
17990   ac_cv_type_struct_option=no
17991 cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h.  */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h.  */
17997 #ifdef HAVE_GETOPT_H
17998 #include <getopt.h>
17999 #endif
18000
18001 int
18002 main ()
18003 {
18004 if (sizeof (struct option))
18005        return 0;
18006   ;
18007   return 0;
18008 }
18009 _ACEOF
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014   *) ac_try_echo=$ac_try;;
18015 esac
18016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18017 $as_echo "$ac_try_echo") >&5
18018   (eval "$ac_compile") 2>conftest.er1
18019   ac_status=$?
18020   grep -v '^ *+' conftest.er1 >conftest.err
18021   rm -f conftest.er1
18022   cat conftest.err >&5
18023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); } && {
18025          test -z "$ac_c_werror_flag" ||
18026          test ! -s conftest.err
18027        } && test -s conftest.$ac_objext; then
18028   cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h.  */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h.  */
18034 #ifdef HAVE_GETOPT_H
18035 #include <getopt.h>
18036 #endif
18037
18038 int
18039 main ()
18040 {
18041 if (sizeof ((struct option)))
18042           return 0;
18043   ;
18044   return 0;
18045 }
18046 _ACEOF
18047 rm -f conftest.$ac_objext
18048 if { (ac_try="$ac_compile"
18049 case "(($ac_try" in
18050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18051   *) ac_try_echo=$ac_try;;
18052 esac
18053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18054 $as_echo "$ac_try_echo") >&5
18055   (eval "$ac_compile") 2>conftest.er1
18056   ac_status=$?
18057   grep -v '^ *+' conftest.er1 >conftest.err
18058   rm -f conftest.er1
18059   cat conftest.err >&5
18060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); } && {
18062          test -z "$ac_c_werror_flag" ||
18063          test ! -s conftest.err
18064        } && test -s conftest.$ac_objext; then
18065   :
18066 else
18067   $as_echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18069
18070         ac_cv_type_struct_option=yes
18071 fi
18072
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074 else
18075   $as_echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18077
18078
18079 fi
18080
18081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18082 fi
18083 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
18084 $as_echo "$ac_cv_type_struct_option" >&6; }
18085 if test "x$ac_cv_type_struct_option" = x""yes; then
18086
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_STRUCT_OPTION 1
18089 _ACEOF
18090
18091
18092 fi
18093
18094
18095 if test "$with_zlib" = yes; then
18096   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
18097   # did not).  While we could work around the lack of z_streamp, it
18098   # seems unwise to encourage people to use such old zlib versions...
18099   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
18100 $as_echo_n "checking for z_streamp... " >&6; }
18101 if test "${ac_cv_type_z_streamp+set}" = set; then
18102   $as_echo_n "(cached) " >&6
18103 else
18104   ac_cv_type_z_streamp=no
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h.  */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h.  */
18111 #include <zlib.h>
18112
18113 int
18114 main ()
18115 {
18116 if (sizeof (z_streamp))
18117        return 0;
18118   ;
18119   return 0;
18120 }
18121 _ACEOF
18122 rm -f conftest.$ac_objext
18123 if { (ac_try="$ac_compile"
18124 case "(($ac_try" in
18125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126   *) ac_try_echo=$ac_try;;
18127 esac
18128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18129 $as_echo "$ac_try_echo") >&5
18130   (eval "$ac_compile") 2>conftest.er1
18131   ac_status=$?
18132   grep -v '^ *+' conftest.er1 >conftest.err
18133   rm -f conftest.er1
18134   cat conftest.err >&5
18135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); } && {
18137          test -z "$ac_c_werror_flag" ||
18138          test ! -s conftest.err
18139        } && test -s conftest.$ac_objext; then
18140   cat >conftest.$ac_ext <<_ACEOF
18141 /* confdefs.h.  */
18142 _ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h.  */
18146 #include <zlib.h>
18147
18148 int
18149 main ()
18150 {
18151 if (sizeof ((z_streamp)))
18152           return 0;
18153   ;
18154   return 0;
18155 }
18156 _ACEOF
18157 rm -f conftest.$ac_objext
18158 if { (ac_try="$ac_compile"
18159 case "(($ac_try" in
18160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161   *) ac_try_echo=$ac_try;;
18162 esac
18163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18164 $as_echo "$ac_try_echo") >&5
18165   (eval "$ac_compile") 2>conftest.er1
18166   ac_status=$?
18167   grep -v '^ *+' conftest.er1 >conftest.err
18168   rm -f conftest.er1
18169   cat conftest.err >&5
18170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); } && {
18172          test -z "$ac_c_werror_flag" ||
18173          test ! -s conftest.err
18174        } && test -s conftest.$ac_objext; then
18175   :
18176 else
18177   $as_echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18179
18180         ac_cv_type_z_streamp=yes
18181 fi
18182
18183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18184 else
18185   $as_echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18187
18188
18189 fi
18190
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18192 fi
18193 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
18194 $as_echo "$ac_cv_type_z_streamp" >&6; }
18195 if test "x$ac_cv_type_z_streamp" = x""yes; then
18196   :
18197 else
18198   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
18199 Use --without-zlib to disable zlib support." >&5
18200 $as_echo "$as_me: error: zlib version is too old
18201 Use --without-zlib to disable zlib support." >&2;}
18202    { (exit 1); exit 1; }; }
18203 fi
18204
18205 fi
18206
18207 if test "$with_krb5" = yes; then
18208 # Check for differences between MIT and Heimdal (KTH) releases
18209   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
18210 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
18211 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
18212   $as_echo_n "(cached) " >&6
18213 else
18214   cat >conftest.$ac_ext <<_ACEOF
18215 /* confdefs.h.  */
18216 _ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h.  */
18220 #include <krb5.h>
18221
18222 int
18223 main ()
18224 {
18225 static krb5_ticket ac_aggr;
18226 if (ac_aggr.enc_part2)
18227 return 0;
18228   ;
18229   return 0;
18230 }
18231 _ACEOF
18232 rm -f conftest.$ac_objext
18233 if { (ac_try="$ac_compile"
18234 case "(($ac_try" in
18235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236   *) ac_try_echo=$ac_try;;
18237 esac
18238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18239 $as_echo "$ac_try_echo") >&5
18240   (eval "$ac_compile") 2>conftest.er1
18241   ac_status=$?
18242   grep -v '^ *+' conftest.er1 >conftest.err
18243   rm -f conftest.er1
18244   cat conftest.err >&5
18245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); } && {
18247          test -z "$ac_c_werror_flag" ||
18248          test ! -s conftest.err
18249        } && test -s conftest.$ac_objext; then
18250   ac_cv_member_krb5_ticket_enc_part2=yes
18251 else
18252   $as_echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18254
18255         cat >conftest.$ac_ext <<_ACEOF
18256 /* confdefs.h.  */
18257 _ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h.  */
18261 #include <krb5.h>
18262
18263 int
18264 main ()
18265 {
18266 static krb5_ticket ac_aggr;
18267 if (sizeof ac_aggr.enc_part2)
18268 return 0;
18269   ;
18270   return 0;
18271 }
18272 _ACEOF
18273 rm -f conftest.$ac_objext
18274 if { (ac_try="$ac_compile"
18275 case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18280 $as_echo "$ac_try_echo") >&5
18281   (eval "$ac_compile") 2>conftest.er1
18282   ac_status=$?
18283   grep -v '^ *+' conftest.er1 >conftest.err
18284   rm -f conftest.er1
18285   cat conftest.err >&5
18286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); } && {
18288          test -z "$ac_c_werror_flag" ||
18289          test ! -s conftest.err
18290        } && test -s conftest.$ac_objext; then
18291   ac_cv_member_krb5_ticket_enc_part2=yes
18292 else
18293   $as_echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18295
18296         ac_cv_member_krb5_ticket_enc_part2=no
18297 fi
18298
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18300 fi
18301
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18303 fi
18304 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
18305 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
18306 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
18307
18308 cat >>confdefs.h <<_ACEOF
18309 #define HAVE_KRB5_TICKET_ENC_PART2 1
18310 _ACEOF
18311
18312
18313 else
18314   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
18315 $as_echo_n "checking for krb5_ticket.client... " >&6; }
18316 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
18317   $as_echo_n "(cached) " >&6
18318 else
18319   cat >conftest.$ac_ext <<_ACEOF
18320 /* confdefs.h.  */
18321 _ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h.  */
18325 #include <krb5.h>
18326
18327 int
18328 main ()
18329 {
18330 static krb5_ticket ac_aggr;
18331 if (ac_aggr.client)
18332 return 0;
18333   ;
18334   return 0;
18335 }
18336 _ACEOF
18337 rm -f conftest.$ac_objext
18338 if { (ac_try="$ac_compile"
18339 case "(($ac_try" in
18340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341   *) ac_try_echo=$ac_try;;
18342 esac
18343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18344 $as_echo "$ac_try_echo") >&5
18345   (eval "$ac_compile") 2>conftest.er1
18346   ac_status=$?
18347   grep -v '^ *+' conftest.er1 >conftest.err
18348   rm -f conftest.er1
18349   cat conftest.err >&5
18350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); } && {
18352          test -z "$ac_c_werror_flag" ||
18353          test ! -s conftest.err
18354        } && test -s conftest.$ac_objext; then
18355   ac_cv_member_krb5_ticket_client=yes
18356 else
18357   $as_echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18359
18360         cat >conftest.$ac_ext <<_ACEOF
18361 /* confdefs.h.  */
18362 _ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h.  */
18366 #include <krb5.h>
18367
18368 int
18369 main ()
18370 {
18371 static krb5_ticket ac_aggr;
18372 if (sizeof ac_aggr.client)
18373 return 0;
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext
18379 if { (ac_try="$ac_compile"
18380 case "(($ac_try" in
18381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382   *) ac_try_echo=$ac_try;;
18383 esac
18384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18385 $as_echo "$ac_try_echo") >&5
18386   (eval "$ac_compile") 2>conftest.er1
18387   ac_status=$?
18388   grep -v '^ *+' conftest.er1 >conftest.err
18389   rm -f conftest.er1
18390   cat conftest.err >&5
18391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); } && {
18393          test -z "$ac_c_werror_flag" ||
18394          test ! -s conftest.err
18395        } && test -s conftest.$ac_objext; then
18396   ac_cv_member_krb5_ticket_client=yes
18397 else
18398   $as_echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18400
18401         ac_cv_member_krb5_ticket_client=no
18402 fi
18403
18404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18405 fi
18406
18407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18408 fi
18409 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18410 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18411 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18412
18413 cat >>confdefs.h <<_ACEOF
18414 #define HAVE_KRB5_TICKET_CLIENT 1
18415 _ACEOF
18416
18417
18418 else
18419   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18420 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18421    { (exit 1); exit 1; }; }
18422 fi
18423
18424 fi
18425
18426   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18427 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18428 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18429   $as_echo_n "(cached) " >&6
18430 else
18431   cat >conftest.$ac_ext <<_ACEOF
18432 /* confdefs.h.  */
18433 _ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h.  */
18437 #include <krb5.h>
18438
18439 int
18440 main ()
18441 {
18442 static krb5_error ac_aggr;
18443 if (ac_aggr.text.data)
18444 return 0;
18445   ;
18446   return 0;
18447 }
18448 _ACEOF
18449 rm -f conftest.$ac_objext
18450 if { (ac_try="$ac_compile"
18451 case "(($ac_try" in
18452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453   *) ac_try_echo=$ac_try;;
18454 esac
18455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18456 $as_echo "$ac_try_echo") >&5
18457   (eval "$ac_compile") 2>conftest.er1
18458   ac_status=$?
18459   grep -v '^ *+' conftest.er1 >conftest.err
18460   rm -f conftest.er1
18461   cat conftest.err >&5
18462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); } && {
18464          test -z "$ac_c_werror_flag" ||
18465          test ! -s conftest.err
18466        } && test -s conftest.$ac_objext; then
18467   ac_cv_member_krb5_error_text_data=yes
18468 else
18469   $as_echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18471
18472         cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h.  */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h.  */
18478 #include <krb5.h>
18479
18480 int
18481 main ()
18482 {
18483 static krb5_error ac_aggr;
18484 if (sizeof ac_aggr.text.data)
18485 return 0;
18486   ;
18487   return 0;
18488 }
18489 _ACEOF
18490 rm -f conftest.$ac_objext
18491 if { (ac_try="$ac_compile"
18492 case "(($ac_try" in
18493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494   *) ac_try_echo=$ac_try;;
18495 esac
18496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18497 $as_echo "$ac_try_echo") >&5
18498   (eval "$ac_compile") 2>conftest.er1
18499   ac_status=$?
18500   grep -v '^ *+' conftest.er1 >conftest.err
18501   rm -f conftest.er1
18502   cat conftest.err >&5
18503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); } && {
18505          test -z "$ac_c_werror_flag" ||
18506          test ! -s conftest.err
18507        } && test -s conftest.$ac_objext; then
18508   ac_cv_member_krb5_error_text_data=yes
18509 else
18510   $as_echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18512
18513         ac_cv_member_krb5_error_text_data=no
18514 fi
18515
18516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18517 fi
18518
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18520 fi
18521 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18522 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18523 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18524
18525 cat >>confdefs.h <<_ACEOF
18526 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18527 _ACEOF
18528
18529
18530 else
18531   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18532 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18533 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18534   $as_echo_n "(cached) " >&6
18535 else
18536   cat >conftest.$ac_ext <<_ACEOF
18537 /* confdefs.h.  */
18538 _ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h.  */
18542 #include <krb5.h>
18543
18544 int
18545 main ()
18546 {
18547 static krb5_error ac_aggr;
18548 if (ac_aggr.e_data)
18549 return 0;
18550   ;
18551   return 0;
18552 }
18553 _ACEOF
18554 rm -f conftest.$ac_objext
18555 if { (ac_try="$ac_compile"
18556 case "(($ac_try" in
18557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558   *) ac_try_echo=$ac_try;;
18559 esac
18560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18561 $as_echo "$ac_try_echo") >&5
18562   (eval "$ac_compile") 2>conftest.er1
18563   ac_status=$?
18564   grep -v '^ *+' conftest.er1 >conftest.err
18565   rm -f conftest.er1
18566   cat conftest.err >&5
18567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); } && {
18569          test -z "$ac_c_werror_flag" ||
18570          test ! -s conftest.err
18571        } && test -s conftest.$ac_objext; then
18572   ac_cv_member_krb5_error_e_data=yes
18573 else
18574   $as_echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18576
18577         cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h.  */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h.  */
18583 #include <krb5.h>
18584
18585 int
18586 main ()
18587 {
18588 static krb5_error ac_aggr;
18589 if (sizeof ac_aggr.e_data)
18590 return 0;
18591   ;
18592   return 0;
18593 }
18594 _ACEOF
18595 rm -f conftest.$ac_objext
18596 if { (ac_try="$ac_compile"
18597 case "(($ac_try" in
18598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599   *) ac_try_echo=$ac_try;;
18600 esac
18601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18602 $as_echo "$ac_try_echo") >&5
18603   (eval "$ac_compile") 2>conftest.er1
18604   ac_status=$?
18605   grep -v '^ *+' conftest.er1 >conftest.err
18606   rm -f conftest.er1
18607   cat conftest.err >&5
18608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } && {
18610          test -z "$ac_c_werror_flag" ||
18611          test ! -s conftest.err
18612        } && test -s conftest.$ac_objext; then
18613   ac_cv_member_krb5_error_e_data=yes
18614 else
18615   $as_echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18617
18618         ac_cv_member_krb5_error_e_data=no
18619 fi
18620
18621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18622 fi
18623
18624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18625 fi
18626 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18627 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18628 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18629
18630 cat >>confdefs.h <<_ACEOF
18631 #define HAVE_KRB5_ERROR_E_DATA 1
18632 _ACEOF
18633
18634
18635 else
18636   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18637 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18638    { (exit 1); exit 1; }; }
18639 fi
18640
18641 fi
18642
18643
18644 # Win32 requires headers to be loaded for __stdcall, so can't use
18645 # AC_CHECK_FUNCS here.
18646   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18647 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18648   cat >conftest.$ac_ext <<_ACEOF
18649 /* confdefs.h.  */
18650 _ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h.  */
18654 #include <krb5.h>
18655 int
18656 main ()
18657 {
18658 krb5_free_unparsed_name(NULL,NULL);
18659   ;
18660   return 0;
18661 }
18662 _ACEOF
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667   *) ac_try_echo=$ac_try;;
18668 esac
18669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18670 $as_echo "$ac_try_echo") >&5
18671   (eval "$ac_link") 2>conftest.er1
18672   ac_status=$?
18673   grep -v '^ *+' conftest.er1 >conftest.err
18674   rm -f conftest.er1
18675   cat conftest.err >&5
18676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); } && {
18678          test -z "$ac_c_werror_flag" ||
18679          test ! -s conftest.err
18680        } && test -s conftest$ac_exeext && {
18681          test "$cross_compiling" = yes ||
18682          $as_test_x conftest$ac_exeext
18683        }; then
18684
18685 cat >>confdefs.h <<\_ACEOF
18686 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18687 _ACEOF
18688
18689 { $as_echo "$as_me:$LINENO: result: yes" >&5
18690 $as_echo "yes" >&6; }
18691 else
18692   $as_echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18694
18695         { $as_echo "$as_me:$LINENO: result: no" >&5
18696 $as_echo "no" >&6; }
18697 fi
18698
18699 rm -rf conftest.dSYM
18700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18701       conftest$ac_exeext conftest.$ac_ext
18702 fi
18703
18704 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18705 case $host_cpu in
18706   ppc*|powerpc*)
18707     { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18708 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18709     cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h.  */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h.  */
18715
18716 int
18717 main ()
18718 {
18719 int a = 0; int *p = &a; int r;
18720          __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18721   ;
18722   return 0;
18723 }
18724 _ACEOF
18725 rm -f conftest.$ac_objext
18726 if { (ac_try="$ac_compile"
18727 case "(($ac_try" in
18728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729   *) ac_try_echo=$ac_try;;
18730 esac
18731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18732 $as_echo "$ac_try_echo") >&5
18733   (eval "$ac_compile") 2>conftest.er1
18734   ac_status=$?
18735   grep -v '^ *+' conftest.er1 >conftest.err
18736   rm -f conftest.er1
18737   cat conftest.err >&5
18738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739   (exit $ac_status); } && {
18740          test -z "$ac_c_werror_flag" ||
18741          test ! -s conftest.err
18742        } && test -s conftest.$ac_objext; then
18743   pgac_cv_have_ppc_mutex_hint=yes
18744 else
18745   $as_echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18747
18748         pgac_cv_have_ppc_mutex_hint=no
18749 fi
18750
18751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18752     { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18753 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18754     if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18755
18756 cat >>confdefs.h <<\_ACEOF
18757 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18758 _ACEOF
18759
18760     fi
18761   ;;
18762 esac
18763
18764 # Check largefile support.  You might think this is a system service not a
18765 # compiler characteristic, but you'd be wrong.  We must check this before
18766 # probing existence of related functions such as fseeko, since the largefile
18767 # defines can affect what is generated for that.
18768 if test "$PORTNAME" != "win32"; then
18769    # Check whether --enable-largefile was given.
18770 if test "${enable_largefile+set}" = set; then
18771   enableval=$enable_largefile;
18772 fi
18773
18774 if test "$enable_largefile" != no; then
18775
18776   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18777 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18778 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18779   $as_echo_n "(cached) " >&6
18780 else
18781   ac_cv_sys_largefile_CC=no
18782      if test "$GCC" != yes; then
18783        ac_save_CC=$CC
18784        while :; do
18785          # IRIX 6.2 and later do not support large files by default,
18786          # so use the C compiler's -n32 option if that helps.
18787          cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h.  */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h.  */
18793 #include <sys/types.h>
18794  /* Check that off_t can represent 2**63 - 1 correctly.
18795     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18796     since some C++ compilers masquerading as C compilers
18797     incorrectly reject 9223372036854775807.  */
18798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18799   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18800                        && LARGE_OFF_T % 2147483647 == 1)
18801                       ? 1 : -1];
18802 int
18803 main ()
18804 {
18805
18806   ;
18807   return 0;
18808 }
18809 _ACEOF
18810          rm -f conftest.$ac_objext
18811 if { (ac_try="$ac_compile"
18812 case "(($ac_try" in
18813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814   *) ac_try_echo=$ac_try;;
18815 esac
18816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18817 $as_echo "$ac_try_echo") >&5
18818   (eval "$ac_compile") 2>conftest.er1
18819   ac_status=$?
18820   grep -v '^ *+' conftest.er1 >conftest.err
18821   rm -f conftest.er1
18822   cat conftest.err >&5
18823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); } && {
18825          test -z "$ac_c_werror_flag" ||
18826          test ! -s conftest.err
18827        } && test -s conftest.$ac_objext; then
18828   break
18829 else
18830   $as_echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833
18834 fi
18835
18836 rm -f core conftest.err conftest.$ac_objext
18837          CC="$CC -n32"
18838          rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846   (eval "$ac_compile") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } && {
18853          test -z "$ac_c_werror_flag" ||
18854          test ! -s conftest.err
18855        } && test -s conftest.$ac_objext; then
18856   ac_cv_sys_largefile_CC=' -n32'; break
18857 else
18858   $as_echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18860
18861
18862 fi
18863
18864 rm -f core conftest.err conftest.$ac_objext
18865          break
18866        done
18867        CC=$ac_save_CC
18868        rm -f conftest.$ac_ext
18869     fi
18870 fi
18871 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18872 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18873   if test "$ac_cv_sys_largefile_CC" != no; then
18874     CC=$CC$ac_cv_sys_largefile_CC
18875   fi
18876
18877   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18878 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18880   $as_echo_n "(cached) " >&6
18881 else
18882   while :; do
18883   cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h.  */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h.  */
18889 #include <sys/types.h>
18890  /* Check that off_t can represent 2**63 - 1 correctly.
18891     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18892     since some C++ compilers masquerading as C compilers
18893     incorrectly reject 9223372036854775807.  */
18894 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18895   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18896                        && LARGE_OFF_T % 2147483647 == 1)
18897                       ? 1 : -1];
18898 int
18899 main ()
18900 {
18901
18902   ;
18903   return 0;
18904 }
18905 _ACEOF
18906 rm -f conftest.$ac_objext
18907 if { (ac_try="$ac_compile"
18908 case "(($ac_try" in
18909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910   *) ac_try_echo=$ac_try;;
18911 esac
18912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18913 $as_echo "$ac_try_echo") >&5
18914   (eval "$ac_compile") 2>conftest.er1
18915   ac_status=$?
18916   grep -v '^ *+' conftest.er1 >conftest.err
18917   rm -f conftest.er1
18918   cat conftest.err >&5
18919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920   (exit $ac_status); } && {
18921          test -z "$ac_c_werror_flag" ||
18922          test ! -s conftest.err
18923        } && test -s conftest.$ac_objext; then
18924   ac_cv_sys_file_offset_bits=no; break
18925 else
18926   $as_echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18928
18929
18930 fi
18931
18932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933   cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h.  */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h.  */
18939 #define _FILE_OFFSET_BITS 64
18940 #include <sys/types.h>
18941  /* Check that off_t can represent 2**63 - 1 correctly.
18942     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18943     since some C++ compilers masquerading as C compilers
18944     incorrectly reject 9223372036854775807.  */
18945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18946   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18947                        && LARGE_OFF_T % 2147483647 == 1)
18948                       ? 1 : -1];
18949 int
18950 main ()
18951 {
18952
18953   ;
18954   return 0;
18955 }
18956 _ACEOF
18957 rm -f conftest.$ac_objext
18958 if { (ac_try="$ac_compile"
18959 case "(($ac_try" in
18960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961   *) ac_try_echo=$ac_try;;
18962 esac
18963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18964 $as_echo "$ac_try_echo") >&5
18965   (eval "$ac_compile") 2>conftest.er1
18966   ac_status=$?
18967   grep -v '^ *+' conftest.er1 >conftest.err
18968   rm -f conftest.er1
18969   cat conftest.err >&5
18970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); } && {
18972          test -z "$ac_c_werror_flag" ||
18973          test ! -s conftest.err
18974        } && test -s conftest.$ac_objext; then
18975   ac_cv_sys_file_offset_bits=64; break
18976 else
18977   $as_echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18979
18980
18981 fi
18982
18983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18984   ac_cv_sys_file_offset_bits=unknown
18985   break
18986 done
18987 fi
18988 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18989 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18990 case $ac_cv_sys_file_offset_bits in #(
18991   no | unknown) ;;
18992   *)
18993 cat >>confdefs.h <<_ACEOF
18994 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18995 _ACEOF
18996 ;;
18997 esac
18998 rm -rf conftest*
18999   if test $ac_cv_sys_file_offset_bits = unknown; then
19000     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19001 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19002 if test "${ac_cv_sys_large_files+set}" = set; then
19003   $as_echo_n "(cached) " >&6
19004 else
19005   while :; do
19006   cat >conftest.$ac_ext <<_ACEOF
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012 #include <sys/types.h>
19013  /* Check that off_t can represent 2**63 - 1 correctly.
19014     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19015     since some C++ compilers masquerading as C compilers
19016     incorrectly reject 9223372036854775807.  */
19017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19018   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19019                        && LARGE_OFF_T % 2147483647 == 1)
19020                       ? 1 : -1];
19021 int
19022 main ()
19023 {
19024
19025   ;
19026   return 0;
19027 }
19028 _ACEOF
19029 rm -f conftest.$ac_objext
19030 if { (ac_try="$ac_compile"
19031 case "(($ac_try" in
19032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033   *) ac_try_echo=$ac_try;;
19034 esac
19035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19036 $as_echo "$ac_try_echo") >&5
19037   (eval "$ac_compile") 2>conftest.er1
19038   ac_status=$?
19039   grep -v '^ *+' conftest.er1 >conftest.err
19040   rm -f conftest.er1
19041   cat conftest.err >&5
19042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043   (exit $ac_status); } && {
19044          test -z "$ac_c_werror_flag" ||
19045          test ! -s conftest.err
19046        } && test -s conftest.$ac_objext; then
19047   ac_cv_sys_large_files=no; break
19048 else
19049   $as_echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19051
19052
19053 fi
19054
19055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19056   cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h.  */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h.  */
19062 #define _LARGE_FILES 1
19063 #include <sys/types.h>
19064  /* Check that off_t can represent 2**63 - 1 correctly.
19065     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19066     since some C++ compilers masquerading as C compilers
19067     incorrectly reject 9223372036854775807.  */
19068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19069   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19070                        && LARGE_OFF_T % 2147483647 == 1)
19071                       ? 1 : -1];
19072 int
19073 main ()
19074 {
19075
19076   ;
19077   return 0;
19078 }
19079 _ACEOF
19080 rm -f conftest.$ac_objext
19081 if { (ac_try="$ac_compile"
19082 case "(($ac_try" in
19083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084   *) ac_try_echo=$ac_try;;
19085 esac
19086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19087 $as_echo "$ac_try_echo") >&5
19088   (eval "$ac_compile") 2>conftest.er1
19089   ac_status=$?
19090   grep -v '^ *+' conftest.er1 >conftest.err
19091   rm -f conftest.er1
19092   cat conftest.err >&5
19093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); } && {
19095          test -z "$ac_c_werror_flag" ||
19096          test ! -s conftest.err
19097        } && test -s conftest.$ac_objext; then
19098   ac_cv_sys_large_files=1; break
19099 else
19100   $as_echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19102
19103
19104 fi
19105
19106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107   ac_cv_sys_large_files=unknown
19108   break
19109 done
19110 fi
19111 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19112 $as_echo "$ac_cv_sys_large_files" >&6; }
19113 case $ac_cv_sys_large_files in #(
19114   no | unknown) ;;
19115   *)
19116 cat >>confdefs.h <<_ACEOF
19117 #define _LARGE_FILES $ac_cv_sys_large_files
19118 _ACEOF
19119 ;;
19120 esac
19121 rm -rf conftest*
19122   fi
19123 fi
19124
19125 fi
19126
19127 # Check for largefile support (must be after AC_SYS_LARGEFILE)
19128 # The cast to long int works around a bug in the HP C Compiler
19129 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19130 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19131 # This bug is HP SR number 8606223364.
19132 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
19133 $as_echo_n "checking size of off_t... " >&6; }
19134 if test "${ac_cv_sizeof_off_t+set}" = set; then
19135   $as_echo_n "(cached) " >&6
19136 else
19137   if test "$cross_compiling" = yes; then
19138   # Depending upon the size, compute the lo and hi bounds.
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h.  */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h.  */
19145 $ac_includes_default
19146 int
19147 main ()
19148 {
19149 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
19150 test_array [0] = 0
19151
19152   ;
19153   return 0;
19154 }
19155 _ACEOF
19156 rm -f conftest.$ac_objext
19157 if { (ac_try="$ac_compile"
19158 case "(($ac_try" in
19159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160   *) ac_try_echo=$ac_try;;
19161 esac
19162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19163 $as_echo "$ac_try_echo") >&5
19164   (eval "$ac_compile") 2>conftest.er1
19165   ac_status=$?
19166   grep -v '^ *+' conftest.er1 >conftest.err
19167   rm -f conftest.er1
19168   cat conftest.err >&5
19169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); } && {
19171          test -z "$ac_c_werror_flag" ||
19172          test ! -s conftest.err
19173        } && test -s conftest.$ac_objext; then
19174   ac_lo=0 ac_mid=0
19175   while :; do
19176     cat >conftest.$ac_ext <<_ACEOF
19177 /* confdefs.h.  */
19178 _ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h.  */
19182 $ac_includes_default
19183 int
19184 main ()
19185 {
19186 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19187 test_array [0] = 0
19188
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19200 $as_echo "$ac_try_echo") >&5
19201   (eval "$ac_compile") 2>conftest.er1
19202   ac_status=$?
19203   grep -v '^ *+' conftest.er1 >conftest.err
19204   rm -f conftest.er1
19205   cat conftest.err >&5
19206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); } && {
19208          test -z "$ac_c_werror_flag" ||
19209          test ! -s conftest.err
19210        } && test -s conftest.$ac_objext; then
19211   ac_hi=$ac_mid; break
19212 else
19213   $as_echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216         ac_lo=`expr $ac_mid + 1`
19217                         if test $ac_lo -le $ac_mid; then
19218                           ac_lo= ac_hi=
19219                           break
19220                         fi
19221                         ac_mid=`expr 2 '*' $ac_mid + 1`
19222 fi
19223
19224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225   done
19226 else
19227   $as_echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19229
19230         cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h.  */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h.  */
19236 $ac_includes_default
19237 int
19238 main ()
19239 {
19240 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
19241 test_array [0] = 0
19242
19243   ;
19244   return 0;
19245 }
19246 _ACEOF
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251   *) ac_try_echo=$ac_try;;
19252 esac
19253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19254 $as_echo "$ac_try_echo") >&5
19255   (eval "$ac_compile") 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } && {
19262          test -z "$ac_c_werror_flag" ||
19263          test ! -s conftest.err
19264        } && test -s conftest.$ac_objext; then
19265   ac_hi=-1 ac_mid=-1
19266   while :; do
19267     cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h.  */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h.  */
19273 $ac_includes_default
19274 int
19275 main ()
19276 {
19277 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
19278 test_array [0] = 0
19279
19280   ;
19281   return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext
19285 if { (ac_try="$ac_compile"
19286 case "(($ac_try" in
19287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288   *) ac_try_echo=$ac_try;;
19289 esac
19290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19291 $as_echo "$ac_try_echo") >&5
19292   (eval "$ac_compile") 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } && {
19299          test -z "$ac_c_werror_flag" ||
19300          test ! -s conftest.err
19301        } && test -s conftest.$ac_objext; then
19302   ac_lo=$ac_mid; break
19303 else
19304   $as_echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19306
19307         ac_hi=`expr '(' $ac_mid ')' - 1`
19308                         if test $ac_mid -le $ac_hi; then
19309                           ac_lo= ac_hi=
19310                           break
19311                         fi
19312                         ac_mid=`expr 2 '*' $ac_mid`
19313 fi
19314
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316   done
19317 else
19318   $as_echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19320
19321         ac_lo= ac_hi=
19322 fi
19323
19324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19325 fi
19326
19327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19328 # Binary search between lo and hi bounds.
19329 while test "x$ac_lo" != "x$ac_hi"; do
19330   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19331   cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337 $ac_includes_default
19338 int
19339 main ()
19340 {
19341 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19342 test_array [0] = 0
19343
19344   ;
19345   return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext
19349 if { (ac_try="$ac_compile"
19350 case "(($ac_try" in
19351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352   *) ac_try_echo=$ac_try;;
19353 esac
19354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19355 $as_echo "$ac_try_echo") >&5
19356   (eval "$ac_compile") 2>conftest.er1
19357   ac_status=$?
19358   grep -v '^ *+' conftest.er1 >conftest.err
19359   rm -f conftest.er1
19360   cat conftest.err >&5
19361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); } && {
19363          test -z "$ac_c_werror_flag" ||
19364          test ! -s conftest.err
19365        } && test -s conftest.$ac_objext; then
19366   ac_hi=$ac_mid
19367 else
19368   $as_echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19370
19371         ac_lo=`expr '(' $ac_mid ')' + 1`
19372 fi
19373
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375 done
19376 case $ac_lo in
19377 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19378 '') if test "$ac_cv_type_off_t" = yes; then
19379      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19381 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19382 See \`config.log' for more details." >&5
19383 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19384 See \`config.log' for more details." >&2;}
19385    { (exit 77); exit 77; }; }; }
19386    else
19387      ac_cv_sizeof_off_t=0
19388    fi ;;
19389 esac
19390 else
19391   cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h.  */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h.  */
19397 $ac_includes_default
19398 static long int longval () { return (long int) (sizeof (off_t)); }
19399 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19400 #include <stdio.h>
19401 #include <stdlib.h>
19402 int
19403 main ()
19404 {
19405
19406   FILE *f = fopen ("conftest.val", "w");
19407   if (! f)
19408     return 1;
19409   if (((long int) (sizeof (off_t))) < 0)
19410     {
19411       long int i = longval ();
19412       if (i != ((long int) (sizeof (off_t))))
19413         return 1;
19414       fprintf (f, "%ld", i);
19415     }
19416   else
19417     {
19418       unsigned long int i = ulongval ();
19419       if (i != ((long int) (sizeof (off_t))))
19420         return 1;
19421       fprintf (f, "%lu", i);
19422     }
19423   /* Do not output a trailing newline, as this causes \r\n confusion
19424      on some platforms.  */
19425   return ferror (f) || fclose (f) != 0;
19426
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435   *) ac_try_echo=$ac_try;;
19436 esac
19437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19438 $as_echo "$ac_try_echo") >&5
19439   (eval "$ac_link") 2>&5
19440   ac_status=$?
19441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19443   { (case "(($ac_try" in
19444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445   *) ac_try_echo=$ac_try;;
19446 esac
19447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19448 $as_echo "$ac_try_echo") >&5
19449   (eval "$ac_try") 2>&5
19450   ac_status=$?
19451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452   (exit $ac_status); }; }; then
19453   ac_cv_sizeof_off_t=`cat conftest.val`
19454 else
19455   $as_echo "$as_me: program exited with status $ac_status" >&5
19456 $as_echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 ( exit $ac_status )
19460 if test "$ac_cv_type_off_t" = yes; then
19461      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19463 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19464 See \`config.log' for more details." >&5
19465 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19466 See \`config.log' for more details." >&2;}
19467    { (exit 77); exit 77; }; }; }
19468    else
19469      ac_cv_sizeof_off_t=0
19470    fi
19471 fi
19472 rm -rf conftest.dSYM
19473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19474 fi
19475 rm -f conftest.val
19476 fi
19477 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19478 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19479
19480
19481
19482 cat >>confdefs.h <<_ACEOF
19483 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19484 _ACEOF
19485
19486
19487
19488 # If we don't have largefile support, can't handle segsize >= 2GB.
19489 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19490    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19491 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19492    { (exit 1); exit 1; }; }
19493 fi
19494
19495
19496 ##
19497 ## Functions, global variables
19498 ##
19499
19500 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19501 $as_echo_n "checking for int timezone... " >&6; }
19502 if test "${pgac_cv_var_int_timezone+set}" = set; then
19503   $as_echo_n "(cached) " >&6
19504 else
19505   cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h.  */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h.  */
19511 #include <time.h>
19512 int res;
19513 int
19514 main ()
19515 {
19516 #ifndef __CYGWIN__
19517 res = timezone / 60;
19518 #else
19519 res = _timezone / 60;
19520 #endif
19521   ;
19522   return 0;
19523 }
19524 _ACEOF
19525 rm -f conftest.$ac_objext conftest$ac_exeext
19526 if { (ac_try="$ac_link"
19527 case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19532 $as_echo "$ac_try_echo") >&5
19533   (eval "$ac_link") 2>conftest.er1
19534   ac_status=$?
19535   grep -v '^ *+' conftest.er1 >conftest.err
19536   rm -f conftest.er1
19537   cat conftest.err >&5
19538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); } && {
19540          test -z "$ac_c_werror_flag" ||
19541          test ! -s conftest.err
19542        } && test -s conftest$ac_exeext && {
19543          test "$cross_compiling" = yes ||
19544          $as_test_x conftest$ac_exeext
19545        }; then
19546   pgac_cv_var_int_timezone=yes
19547 else
19548   $as_echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551         pgac_cv_var_int_timezone=no
19552 fi
19553
19554 rm -rf conftest.dSYM
19555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19556       conftest$ac_exeext conftest.$ac_ext
19557 fi
19558 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19559 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19560 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19561
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE_INT_TIMEZONE 1
19564 _ACEOF
19565
19566 fi
19567 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19568 $as_echo_n "checking types of arguments for accept()... " >&6; }
19569  if test "${ac_cv_func_accept_return+set}" = set; then
19570   $as_echo_n "(cached) " >&6
19571 else
19572    if test "${ac_cv_func_accept_arg1+set}" = set; then
19573   $as_echo_n "(cached) " >&6
19574 else
19575     if test "${ac_cv_func_accept_arg2+set}" = set; then
19576   $as_echo_n "(cached) " >&6
19577 else
19578      if test "${ac_cv_func_accept_arg3+set}" = set; then
19579   $as_echo_n "(cached) " >&6
19580 else
19581       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19582       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19583        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19584         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19585          cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h.  */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h.  */
19591 #ifdef HAVE_SYS_TYPES_H
19592 #include <sys/types.h>
19593 #endif
19594 #ifdef HAVE_SYS_SOCKET_H
19595 #include <sys/socket.h>
19596 #endif
19597 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19598 int
19599 main ()
19600 {
19601
19602   ;
19603   return 0;
19604 }
19605 _ACEOF
19606 rm -f conftest.$ac_objext
19607 if { (ac_try="$ac_compile"
19608 case "(($ac_try" in
19609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610   *) ac_try_echo=$ac_try;;
19611 esac
19612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19613 $as_echo "$ac_try_echo") >&5
19614   (eval "$ac_compile") 2>conftest.er1
19615   ac_status=$?
19616   grep -v '^ *+' conftest.er1 >conftest.err
19617   rm -f conftest.er1
19618   cat conftest.err >&5
19619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } && {
19621          test -z "$ac_c_werror_flag" ||
19622          test ! -s conftest.err
19623        } && test -s conftest.$ac_objext; then
19624   ac_not_found=no; break 4
19625 else
19626   $as_echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19628
19629         ac_not_found=yes
19630 fi
19631
19632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19633        done
19634       done
19635      done
19636     done
19637     if test "$ac_not_found" = yes; then
19638       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19639 $as_echo "$as_me: error: could not determine argument types" >&2;}
19640    { (exit 1); exit 1; }; }
19641     fi
19642     if test "$ac_cv_func_accept_arg3" = "void"; then
19643       ac_cv_func_accept_arg3=int
19644     fi
19645
19646 fi
19647
19648 fi
19649
19650 fi
19651
19652 fi
19653  { $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
19654 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19655
19656 cat >>confdefs.h <<_ACEOF
19657 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19658 _ACEOF
19659
19660
19661 cat >>confdefs.h <<_ACEOF
19662 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19663 _ACEOF
19664
19665
19666 cat >>confdefs.h <<_ACEOF
19667 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19668 _ACEOF
19669
19670
19671 cat >>confdefs.h <<_ACEOF
19672 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19673 _ACEOF
19674
19675
19676 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19677 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19678 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19679   $as_echo_n "(cached) " >&6
19680 else
19681   cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687 #include <sys/time.h>
19688 int
19689 main ()
19690 {
19691 struct timeval *tp;
19692 struct timezone *tzp;
19693 gettimeofday(tp,tzp);
19694   ;
19695   return 0;
19696 }
19697 _ACEOF
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702   *) ac_try_echo=$ac_try;;
19703 esac
19704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19705 $as_echo "$ac_try_echo") >&5
19706   (eval "$ac_compile") 2>conftest.er1
19707   ac_status=$?
19708   grep -v '^ *+' conftest.er1 >conftest.err
19709   rm -f conftest.er1
19710   cat conftest.err >&5
19711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); } && {
19713          test -z "$ac_c_werror_flag" ||
19714          test ! -s conftest.err
19715        } && test -s conftest.$ac_objext; then
19716   pgac_cv_func_gettimeofday_1arg=no
19717 else
19718   $as_echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19720
19721         pgac_cv_func_gettimeofday_1arg=yes
19722 fi
19723
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19725 fi
19726 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19727 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19728 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19729
19730 cat >>confdefs.h <<\_ACEOF
19731 #define GETTIMEOFDAY_1ARG 1
19732 _ACEOF
19733
19734 fi
19735
19736
19737
19738 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19739 # symbols that that library has no business exposing to the world.  Pending
19740 # acquisition of a clue by those developers, ignore libedit (including its
19741 # possible alias of libreadline) while checking for everything else.
19742 LIBS_including_readline="$LIBS"
19743 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll posix_fallocate pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19768 do
19769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19771 $as_echo_n "checking for $ac_func... " >&6; }
19772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19773   $as_echo_n "(cached) " >&6
19774 else
19775   cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h.  */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h.  */
19781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19783 #define $ac_func innocuous_$ac_func
19784
19785 /* System header to define __stub macros and hopefully few prototypes,
19786     which can conflict with char $ac_func (); below.
19787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19788     <limits.h> exists even on freestanding compilers.  */
19789
19790 #ifdef __STDC__
19791 # include <limits.h>
19792 #else
19793 # include <assert.h>
19794 #endif
19795
19796 #undef $ac_func
19797
19798 /* Override any GCC internal prototype to avoid an error.
19799    Use char because int might match the return type of a GCC
19800    builtin and then its argument prototype would still apply.  */
19801 #ifdef __cplusplus
19802 extern "C"
19803 #endif
19804 char $ac_func ();
19805 /* The GNU C library defines this for functions which it implements
19806     to always fail with ENOSYS.  Some functions are actually named
19807     something starting with __ and the normal name is an alias.  */
19808 #if defined __stub_$ac_func || defined __stub___$ac_func
19809 choke me
19810 #endif
19811
19812 int
19813 main ()
19814 {
19815 return $ac_func ();
19816   ;
19817   return 0;
19818 }
19819 _ACEOF
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (ac_try="$ac_link"
19822 case "(($ac_try" in
19823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824   *) ac_try_echo=$ac_try;;
19825 esac
19826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19827 $as_echo "$ac_try_echo") >&5
19828   (eval "$ac_link") 2>conftest.er1
19829   ac_status=$?
19830   grep -v '^ *+' conftest.er1 >conftest.err
19831   rm -f conftest.er1
19832   cat conftest.err >&5
19833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); } && {
19835          test -z "$ac_c_werror_flag" ||
19836          test ! -s conftest.err
19837        } && test -s conftest$ac_exeext && {
19838          test "$cross_compiling" = yes ||
19839          $as_test_x conftest$ac_exeext
19840        }; then
19841   eval "$as_ac_var=yes"
19842 else
19843   $as_echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19845
19846         eval "$as_ac_var=no"
19847 fi
19848
19849 rm -rf conftest.dSYM
19850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19851       conftest$ac_exeext conftest.$ac_ext
19852 fi
19853 ac_res=`eval 'as_val=${'$as_ac_var'}
19854                  $as_echo "$as_val"'`
19855                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19856 $as_echo "$ac_res" >&6; }
19857 as_val=`eval 'as_val=${'$as_ac_var'}
19858                  $as_echo "$as_val"'`
19859    if test "x$as_val" = x""yes; then
19860   cat >>confdefs.h <<_ACEOF
19861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19862 _ACEOF
19863
19864 fi
19865 done
19866
19867
19868
19869 for ac_func in fseeko
19870 do
19871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19872 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19873 $as_echo_n "checking for $ac_func... " >&6; }
19874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19875   $as_echo_n "(cached) " >&6
19876 else
19877   cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19885 #define $ac_func innocuous_$ac_func
19886
19887 /* System header to define __stub macros and hopefully few prototypes,
19888     which can conflict with char $ac_func (); below.
19889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19890     <limits.h> exists even on freestanding compilers.  */
19891
19892 #ifdef __STDC__
19893 # include <limits.h>
19894 #else
19895 # include <assert.h>
19896 #endif
19897
19898 #undef $ac_func
19899
19900 /* Override any GCC internal prototype to avoid an error.
19901    Use char because int might match the return type of a GCC
19902    builtin and then its argument prototype would still apply.  */
19903 #ifdef __cplusplus
19904 extern "C"
19905 #endif
19906 char $ac_func ();
19907 /* The GNU C library defines this for functions which it implements
19908     to always fail with ENOSYS.  Some functions are actually named
19909     something starting with __ and the normal name is an alias.  */
19910 #if defined __stub_$ac_func || defined __stub___$ac_func
19911 choke me
19912 #endif
19913
19914 int
19915 main ()
19916 {
19917 return $ac_func ();
19918   ;
19919   return 0;
19920 }
19921 _ACEOF
19922 rm -f conftest.$ac_objext conftest$ac_exeext
19923 if { (ac_try="$ac_link"
19924 case "(($ac_try" in
19925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926   *) ac_try_echo=$ac_try;;
19927 esac
19928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19929 $as_echo "$ac_try_echo") >&5
19930   (eval "$ac_link") 2>conftest.er1
19931   ac_status=$?
19932   grep -v '^ *+' conftest.er1 >conftest.err
19933   rm -f conftest.er1
19934   cat conftest.err >&5
19935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936   (exit $ac_status); } && {
19937          test -z "$ac_c_werror_flag" ||
19938          test ! -s conftest.err
19939        } && test -s conftest$ac_exeext && {
19940          test "$cross_compiling" = yes ||
19941          $as_test_x conftest$ac_exeext
19942        }; then
19943   eval "$as_ac_var=yes"
19944 else
19945   $as_echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948         eval "$as_ac_var=no"
19949 fi
19950
19951 rm -rf conftest.dSYM
19952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19953       conftest$ac_exeext conftest.$ac_ext
19954 fi
19955 ac_res=`eval 'as_val=${'$as_ac_var'}
19956                  $as_echo "$as_val"'`
19957                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19958 $as_echo "$ac_res" >&6; }
19959 as_val=`eval 'as_val=${'$as_ac_var'}
19960                  $as_echo "$as_val"'`
19961    if test "x$as_val" = x""yes; then
19962   cat >>confdefs.h <<_ACEOF
19963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19964 _ACEOF
19965
19966 else
19967   case " $LIBOBJS " in
19968   *" $ac_func.$ac_objext "* ) ;;
19969   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19970  ;;
19971 esac
19972
19973 fi
19974 done
19975
19976
19977 case $host_os in
19978         # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19979         # Mingw uses macros to access Win32 API calls
19980         netbsd*|mingw*)
19981
19982 cat >>confdefs.h <<\_ACEOF
19983 #define HAVE_FSEEKO 1
19984 _ACEOF
19985
19986                 ac_cv_func_fseeko=yes;;
19987         *)
19988                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19989 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19990 if test "${ac_cv_sys_largefile_source+set}" = set; then
19991   $as_echo_n "(cached) " >&6
19992 else
19993   while :; do
19994   cat >conftest.$ac_ext <<_ACEOF
19995 /* confdefs.h.  */
19996 _ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h.  */
20000 #include <sys/types.h> /* for off_t */
20001      #include <stdio.h>
20002 int
20003 main ()
20004 {
20005 int (*fp) (FILE *, off_t, int) = fseeko;
20006      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20007   ;
20008   return 0;
20009 }
20010 _ACEOF
20011 rm -f conftest.$ac_objext conftest$ac_exeext
20012 if { (ac_try="$ac_link"
20013 case "(($ac_try" in
20014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015   *) ac_try_echo=$ac_try;;
20016 esac
20017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20018 $as_echo "$ac_try_echo") >&5
20019   (eval "$ac_link") 2>conftest.er1
20020   ac_status=$?
20021   grep -v '^ *+' conftest.er1 >conftest.err
20022   rm -f conftest.er1
20023   cat conftest.err >&5
20024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); } && {
20026          test -z "$ac_c_werror_flag" ||
20027          test ! -s conftest.err
20028        } && test -s conftest$ac_exeext && {
20029          test "$cross_compiling" = yes ||
20030          $as_test_x conftest$ac_exeext
20031        }; then
20032   ac_cv_sys_largefile_source=no; break
20033 else
20034   $as_echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20036
20037
20038 fi
20039
20040 rm -rf conftest.dSYM
20041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20042       conftest$ac_exeext conftest.$ac_ext
20043   cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h.  */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h.  */
20049 #define _LARGEFILE_SOURCE 1
20050 #include <sys/types.h> /* for off_t */
20051      #include <stdio.h>
20052 int
20053 main ()
20054 {
20055 int (*fp) (FILE *, off_t, int) = fseeko;
20056      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20057   ;
20058   return 0;
20059 }
20060 _ACEOF
20061 rm -f conftest.$ac_objext conftest$ac_exeext
20062 if { (ac_try="$ac_link"
20063 case "(($ac_try" in
20064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065   *) ac_try_echo=$ac_try;;
20066 esac
20067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20068 $as_echo "$ac_try_echo") >&5
20069   (eval "$ac_link") 2>conftest.er1
20070   ac_status=$?
20071   grep -v '^ *+' conftest.er1 >conftest.err
20072   rm -f conftest.er1
20073   cat conftest.err >&5
20074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); } && {
20076          test -z "$ac_c_werror_flag" ||
20077          test ! -s conftest.err
20078        } && test -s conftest$ac_exeext && {
20079          test "$cross_compiling" = yes ||
20080          $as_test_x conftest$ac_exeext
20081        }; then
20082   ac_cv_sys_largefile_source=1; break
20083 else
20084   $as_echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20086
20087
20088 fi
20089
20090 rm -rf conftest.dSYM
20091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20092       conftest$ac_exeext conftest.$ac_ext
20093   ac_cv_sys_largefile_source=unknown
20094   break
20095 done
20096 fi
20097 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20098 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20099 case $ac_cv_sys_largefile_source in #(
20100   no | unknown) ;;
20101   *)
20102 cat >>confdefs.h <<_ACEOF
20103 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20104 _ACEOF
20105 ;;
20106 esac
20107 rm -rf conftest*
20108
20109 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20110 # in glibc 2.1.3, but that breaks too many other things.
20111 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20112 if test $ac_cv_sys_largefile_source != unknown; then
20113
20114 cat >>confdefs.h <<\_ACEOF
20115 #define HAVE_FSEEKO 1
20116 _ACEOF
20117
20118 fi
20119 ;;
20120 esac
20121
20122 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
20123 # by calling it, 2009-04-02
20124 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
20125 if test "$PORTNAME" != "solaris"; then
20126
20127 for ac_func in posix_fadvise
20128 do
20129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20131 $as_echo_n "checking for $ac_func... " >&6; }
20132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20133   $as_echo_n "(cached) " >&6
20134 else
20135   cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20143 #define $ac_func innocuous_$ac_func
20144
20145 /* System header to define __stub macros and hopefully few prototypes,
20146     which can conflict with char $ac_func (); below.
20147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20148     <limits.h> exists even on freestanding compilers.  */
20149
20150 #ifdef __STDC__
20151 # include <limits.h>
20152 #else
20153 # include <assert.h>
20154 #endif
20155
20156 #undef $ac_func
20157
20158 /* Override any GCC internal prototype to avoid an error.
20159    Use char because int might match the return type of a GCC
20160    builtin and then its argument prototype would still apply.  */
20161 #ifdef __cplusplus
20162 extern "C"
20163 #endif
20164 char $ac_func ();
20165 /* The GNU C library defines this for functions which it implements
20166     to always fail with ENOSYS.  Some functions are actually named
20167     something starting with __ and the normal name is an alias.  */
20168 #if defined __stub_$ac_func || defined __stub___$ac_func
20169 choke me
20170 #endif
20171
20172 int
20173 main ()
20174 {
20175 return $ac_func ();
20176   ;
20177   return 0;
20178 }
20179 _ACEOF
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (ac_try="$ac_link"
20182 case "(($ac_try" in
20183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184   *) ac_try_echo=$ac_try;;
20185 esac
20186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20187 $as_echo "$ac_try_echo") >&5
20188   (eval "$ac_link") 2>conftest.er1
20189   ac_status=$?
20190   grep -v '^ *+' conftest.er1 >conftest.err
20191   rm -f conftest.er1
20192   cat conftest.err >&5
20193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194   (exit $ac_status); } && {
20195          test -z "$ac_c_werror_flag" ||
20196          test ! -s conftest.err
20197        } && test -s conftest$ac_exeext && {
20198          test "$cross_compiling" = yes ||
20199          $as_test_x conftest$ac_exeext
20200        }; then
20201   eval "$as_ac_var=yes"
20202 else
20203   $as_echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20205
20206         eval "$as_ac_var=no"
20207 fi
20208
20209 rm -rf conftest.dSYM
20210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20211       conftest$ac_exeext conftest.$ac_ext
20212 fi
20213 ac_res=`eval 'as_val=${'$as_ac_var'}
20214                  $as_echo "$as_val"'`
20215                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20216 $as_echo "$ac_res" >&6; }
20217 as_val=`eval 'as_val=${'$as_ac_var'}
20218                  $as_echo "$as_val"'`
20219    if test "x$as_val" = x""yes; then
20220   cat >>confdefs.h <<_ACEOF
20221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20222 _ACEOF
20223
20224 fi
20225 done
20226
20227 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
20228 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
20229 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
20230   $as_echo_n "(cached) " >&6
20231 else
20232   cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 #include <fcntl.h>
20239
20240 int
20241 main ()
20242 {
20243 #ifndef posix_fadvise
20244   (void) posix_fadvise;
20245 #endif
20246
20247   ;
20248   return 0;
20249 }
20250 _ACEOF
20251 rm -f conftest.$ac_objext
20252 if { (ac_try="$ac_compile"
20253 case "(($ac_try" in
20254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255   *) ac_try_echo=$ac_try;;
20256 esac
20257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20258 $as_echo "$ac_try_echo") >&5
20259   (eval "$ac_compile") 2>conftest.er1
20260   ac_status=$?
20261   grep -v '^ *+' conftest.er1 >conftest.err
20262   rm -f conftest.er1
20263   cat conftest.err >&5
20264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265   (exit $ac_status); } && {
20266          test -z "$ac_c_werror_flag" ||
20267          test ! -s conftest.err
20268        } && test -s conftest.$ac_objext; then
20269   ac_cv_have_decl_posix_fadvise=yes
20270 else
20271   $as_echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274         ac_cv_have_decl_posix_fadvise=no
20275 fi
20276
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278 fi
20279 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
20280 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
20281 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
20282
20283 cat >>confdefs.h <<_ACEOF
20284 #define HAVE_DECL_POSIX_FADVISE 1
20285 _ACEOF
20286
20287
20288 else
20289   cat >>confdefs.h <<_ACEOF
20290 #define HAVE_DECL_POSIX_FADVISE 0
20291 _ACEOF
20292
20293
20294 fi
20295
20296
20297 fi
20298
20299 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
20300 $as_echo_n "checking whether fdatasync is declared... " >&6; }
20301 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
20302   $as_echo_n "(cached) " >&6
20303 else
20304   cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h.  */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h.  */
20310 #include <unistd.h>
20311
20312 int
20313 main ()
20314 {
20315 #ifndef fdatasync
20316   (void) fdatasync;
20317 #endif
20318
20319   ;
20320   return 0;
20321 }
20322 _ACEOF
20323 rm -f conftest.$ac_objext
20324 if { (ac_try="$ac_compile"
20325 case "(($ac_try" in
20326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327   *) ac_try_echo=$ac_try;;
20328 esac
20329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20330 $as_echo "$ac_try_echo") >&5
20331   (eval "$ac_compile") 2>conftest.er1
20332   ac_status=$?
20333   grep -v '^ *+' conftest.er1 >conftest.err
20334   rm -f conftest.er1
20335   cat conftest.err >&5
20336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337   (exit $ac_status); } && {
20338          test -z "$ac_c_werror_flag" ||
20339          test ! -s conftest.err
20340        } && test -s conftest.$ac_objext; then
20341   ac_cv_have_decl_fdatasync=yes
20342 else
20343   $as_echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20345
20346         ac_cv_have_decl_fdatasync=no
20347 fi
20348
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 fi
20351 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
20352 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
20353 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
20354
20355 cat >>confdefs.h <<_ACEOF
20356 #define HAVE_DECL_FDATASYNC 1
20357 _ACEOF
20358
20359
20360 else
20361   cat >>confdefs.h <<_ACEOF
20362 #define HAVE_DECL_FDATASYNC 0
20363 _ACEOF
20364
20365
20366 fi
20367
20368
20369 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
20370 $as_echo_n "checking whether strlcat is declared... " >&6; }
20371 if test "${ac_cv_have_decl_strlcat+set}" = set; then
20372   $as_echo_n "(cached) " >&6
20373 else
20374   cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380 $ac_includes_default
20381 int
20382 main ()
20383 {
20384 #ifndef strlcat
20385   (void) strlcat;
20386 #endif
20387
20388   ;
20389   return 0;
20390 }
20391 _ACEOF
20392 rm -f conftest.$ac_objext
20393 if { (ac_try="$ac_compile"
20394 case "(($ac_try" in
20395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396   *) ac_try_echo=$ac_try;;
20397 esac
20398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20399 $as_echo "$ac_try_echo") >&5
20400   (eval "$ac_compile") 2>conftest.er1
20401   ac_status=$?
20402   grep -v '^ *+' conftest.er1 >conftest.err
20403   rm -f conftest.er1
20404   cat conftest.err >&5
20405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); } && {
20407          test -z "$ac_c_werror_flag" ||
20408          test ! -s conftest.err
20409        } && test -s conftest.$ac_objext; then
20410   ac_cv_have_decl_strlcat=yes
20411 else
20412   $as_echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415         ac_cv_have_decl_strlcat=no
20416 fi
20417
20418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20419 fi
20420 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20421 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20422 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20423
20424 cat >>confdefs.h <<_ACEOF
20425 #define HAVE_DECL_STRLCAT 1
20426 _ACEOF
20427
20428
20429 else
20430   cat >>confdefs.h <<_ACEOF
20431 #define HAVE_DECL_STRLCAT 0
20432 _ACEOF
20433
20434
20435 fi
20436 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20437 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20438 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20439   $as_echo_n "(cached) " >&6
20440 else
20441   cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h.  */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h.  */
20447 $ac_includes_default
20448 int
20449 main ()
20450 {
20451 #ifndef strlcpy
20452   (void) strlcpy;
20453 #endif
20454
20455   ;
20456   return 0;
20457 }
20458 _ACEOF
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463   *) ac_try_echo=$ac_try;;
20464 esac
20465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20466 $as_echo "$ac_try_echo") >&5
20467   (eval "$ac_compile") 2>conftest.er1
20468   ac_status=$?
20469   grep -v '^ *+' conftest.er1 >conftest.err
20470   rm -f conftest.er1
20471   cat conftest.err >&5
20472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); } && {
20474          test -z "$ac_c_werror_flag" ||
20475          test ! -s conftest.err
20476        } && test -s conftest.$ac_objext; then
20477   ac_cv_have_decl_strlcpy=yes
20478 else
20479   $as_echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482         ac_cv_have_decl_strlcpy=no
20483 fi
20484
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486 fi
20487 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20488 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20489 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20490
20491 cat >>confdefs.h <<_ACEOF
20492 #define HAVE_DECL_STRLCPY 1
20493 _ACEOF
20494
20495
20496 else
20497   cat >>confdefs.h <<_ACEOF
20498 #define HAVE_DECL_STRLCPY 0
20499 _ACEOF
20500
20501
20502 fi
20503
20504
20505 # This is probably only present on Darwin, but may as well check always
20506 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20507 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20508 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20509   $as_echo_n "(cached) " >&6
20510 else
20511   cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h.  */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h.  */
20517 #include <fcntl.h>
20518
20519 int
20520 main ()
20521 {
20522 #ifndef F_FULLFSYNC
20523   (void) F_FULLFSYNC;
20524 #endif
20525
20526   ;
20527   return 0;
20528 }
20529 _ACEOF
20530 rm -f conftest.$ac_objext
20531 if { (ac_try="$ac_compile"
20532 case "(($ac_try" in
20533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534   *) ac_try_echo=$ac_try;;
20535 esac
20536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20537 $as_echo "$ac_try_echo") >&5
20538   (eval "$ac_compile") 2>conftest.er1
20539   ac_status=$?
20540   grep -v '^ *+' conftest.er1 >conftest.err
20541   rm -f conftest.er1
20542   cat conftest.err >&5
20543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); } && {
20545          test -z "$ac_c_werror_flag" ||
20546          test ! -s conftest.err
20547        } && test -s conftest.$ac_objext; then
20548   ac_cv_have_decl_F_FULLFSYNC=yes
20549 else
20550   $as_echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20552
20553         ac_cv_have_decl_F_FULLFSYNC=no
20554 fi
20555
20556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20557 fi
20558 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20559 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20560 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20561
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_DECL_F_FULLFSYNC 1
20564 _ACEOF
20565
20566
20567 else
20568   cat >>confdefs.h <<_ACEOF
20569 #define HAVE_DECL_F_FULLFSYNC 0
20570 _ACEOF
20571
20572
20573 fi
20574
20575
20576
20577 HAVE_IPV6=no
20578 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20579 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20580 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20581   $as_echo_n "(cached) " >&6
20582 else
20583   ac_cv_type_struct_sockaddr_in6=no
20584 cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h.  */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h.  */
20590 $ac_includes_default
20591 #include <netinet/in.h>
20592
20593 int
20594 main ()
20595 {
20596 if (sizeof (struct sockaddr_in6))
20597        return 0;
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20609 $as_echo "$ac_try_echo") >&5
20610   (eval "$ac_compile") 2>conftest.er1
20611   ac_status=$?
20612   grep -v '^ *+' conftest.er1 >conftest.err
20613   rm -f conftest.er1
20614   cat conftest.err >&5
20615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } && {
20617          test -z "$ac_c_werror_flag" ||
20618          test ! -s conftest.err
20619        } && test -s conftest.$ac_objext; then
20620   cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h.  */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h.  */
20626 $ac_includes_default
20627 #include <netinet/in.h>
20628
20629 int
20630 main ()
20631 {
20632 if (sizeof ((struct sockaddr_in6)))
20633           return 0;
20634   ;
20635   return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642   *) ac_try_echo=$ac_try;;
20643 esac
20644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20645 $as_echo "$ac_try_echo") >&5
20646   (eval "$ac_compile") 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } && {
20653          test -z "$ac_c_werror_flag" ||
20654          test ! -s conftest.err
20655        } && test -s conftest.$ac_objext; then
20656   :
20657 else
20658   $as_echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20660
20661         ac_cv_type_struct_sockaddr_in6=yes
20662 fi
20663
20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665 else
20666   $as_echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20668
20669
20670 fi
20671
20672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20673 fi
20674 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20675 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20676 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20677
20678 cat >>confdefs.h <<\_ACEOF
20679 #define HAVE_IPV6 1
20680 _ACEOF
20681
20682          HAVE_IPV6=yes
20683 fi
20684
20685
20686
20687 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20688 $as_echo_n "checking for PS_STRINGS... " >&6; }
20689 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20690   $as_echo_n "(cached) " >&6
20691 else
20692   cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h.  */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h.  */
20698 #include <machine/vmparam.h>
20699 #include <sys/exec.h>
20700
20701 int
20702 main ()
20703 {
20704 PS_STRINGS->ps_nargvstr = 1;
20705 PS_STRINGS->ps_argvstr = "foo";
20706   ;
20707   return 0;
20708 }
20709 _ACEOF
20710 rm -f conftest.$ac_objext conftest$ac_exeext
20711 if { (ac_try="$ac_link"
20712 case "(($ac_try" in
20713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714   *) ac_try_echo=$ac_try;;
20715 esac
20716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20717 $as_echo "$ac_try_echo") >&5
20718   (eval "$ac_link") 2>conftest.er1
20719   ac_status=$?
20720   grep -v '^ *+' conftest.er1 >conftest.err
20721   rm -f conftest.er1
20722   cat conftest.err >&5
20723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724   (exit $ac_status); } && {
20725          test -z "$ac_c_werror_flag" ||
20726          test ! -s conftest.err
20727        } && test -s conftest$ac_exeext && {
20728          test "$cross_compiling" = yes ||
20729          $as_test_x conftest$ac_exeext
20730        }; then
20731   pgac_cv_var_PS_STRINGS=yes
20732 else
20733   $as_echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20735
20736         pgac_cv_var_PS_STRINGS=no
20737 fi
20738
20739 rm -rf conftest.dSYM
20740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20741       conftest$ac_exeext conftest.$ac_ext
20742 fi
20743 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20744 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20745 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20746
20747 cat >>confdefs.h <<\_ACEOF
20748 #define HAVE_PS_STRINGS 1
20749 _ACEOF
20750
20751 fi
20752
20753
20754 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20755 # is missing.  Yes, there are machines that have only one.  We may
20756 # also decide to use snprintf.c if snprintf() is present but does not
20757 # have all the features we need --- see below.
20758
20759 if test "$PORTNAME" = "win32"; then
20760   # Win32 gets snprintf.c built unconditionally.
20761   #
20762   # To properly translate all NLS languages strings, we must support the
20763   # *printf() %$ format, which allows *printf() arguments to be selected
20764   # by position in the translated string.
20765   #
20766   # libintl versions < 0.13 use the native *printf() functions, and Win32
20767   # *printf() doesn't understand %$, so we must use our /port versions,
20768   # which do understand %$. libintl versions >= 0.13 include their own
20769   # *printf versions on Win32.  The libintl 0.13 release note text is:
20770   #
20771   #   C format strings with positions, as they arise when a translator
20772   #   needs to reorder a sentence, are now supported on all platforms.
20773   #   On those few platforms (NetBSD and Woe32) for which the native
20774   #   printf()/fprintf()/... functions don't support such format
20775   #   strings, replacements are provided through <libintl.h>.
20776   #
20777   # We could use libintl >= 0.13's *printf() if we were sure that we had
20778   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20779   # to guarantee that, it is best to just use our own, so we are sure to
20780   # get %$ support. In include/port.h we disable the *printf() macros
20781   # that might have been defined by libintl.
20782   #
20783   # We do this unconditionally whether NLS is used or not so we are sure
20784   # that all Win32 libraries and binaries behave the same.
20785   pgac_need_repl_snprintf=yes
20786 else
20787   pgac_need_repl_snprintf=no
20788
20789 for ac_func in snprintf
20790 do
20791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20792 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20793 $as_echo_n "checking for $ac_func... " >&6; }
20794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20795   $as_echo_n "(cached) " >&6
20796 else
20797   cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h.  */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h.  */
20803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20805 #define $ac_func innocuous_$ac_func
20806
20807 /* System header to define __stub macros and hopefully few prototypes,
20808     which can conflict with char $ac_func (); below.
20809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20810     <limits.h> exists even on freestanding compilers.  */
20811
20812 #ifdef __STDC__
20813 # include <limits.h>
20814 #else
20815 # include <assert.h>
20816 #endif
20817
20818 #undef $ac_func
20819
20820 /* Override any GCC internal prototype to avoid an error.
20821    Use char because int might match the return type of a GCC
20822    builtin and then its argument prototype would still apply.  */
20823 #ifdef __cplusplus
20824 extern "C"
20825 #endif
20826 char $ac_func ();
20827 /* The GNU C library defines this for functions which it implements
20828     to always fail with ENOSYS.  Some functions are actually named
20829     something starting with __ and the normal name is an alias.  */
20830 #if defined __stub_$ac_func || defined __stub___$ac_func
20831 choke me
20832 #endif
20833
20834 int
20835 main ()
20836 {
20837 return $ac_func ();
20838   ;
20839   return 0;
20840 }
20841 _ACEOF
20842 rm -f conftest.$ac_objext conftest$ac_exeext
20843 if { (ac_try="$ac_link"
20844 case "(($ac_try" in
20845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846   *) ac_try_echo=$ac_try;;
20847 esac
20848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20849 $as_echo "$ac_try_echo") >&5
20850   (eval "$ac_link") 2>conftest.er1
20851   ac_status=$?
20852   grep -v '^ *+' conftest.er1 >conftest.err
20853   rm -f conftest.er1
20854   cat conftest.err >&5
20855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); } && {
20857          test -z "$ac_c_werror_flag" ||
20858          test ! -s conftest.err
20859        } && test -s conftest$ac_exeext && {
20860          test "$cross_compiling" = yes ||
20861          $as_test_x conftest$ac_exeext
20862        }; then
20863   eval "$as_ac_var=yes"
20864 else
20865   $as_echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20867
20868         eval "$as_ac_var=no"
20869 fi
20870
20871 rm -rf conftest.dSYM
20872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20873       conftest$ac_exeext conftest.$ac_ext
20874 fi
20875 ac_res=`eval 'as_val=${'$as_ac_var'}
20876                  $as_echo "$as_val"'`
20877                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20878 $as_echo "$ac_res" >&6; }
20879 as_val=`eval 'as_val=${'$as_ac_var'}
20880                  $as_echo "$as_val"'`
20881    if test "x$as_val" = x""yes; then
20882   cat >>confdefs.h <<_ACEOF
20883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20884 _ACEOF
20885
20886 else
20887   pgac_need_repl_snprintf=yes
20888 fi
20889 done
20890
20891
20892 for ac_func in vsnprintf
20893 do
20894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20895 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20896 $as_echo_n "checking for $ac_func... " >&6; }
20897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20898   $as_echo_n "(cached) " >&6
20899 else
20900   cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h.  */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h.  */
20906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20908 #define $ac_func innocuous_$ac_func
20909
20910 /* System header to define __stub macros and hopefully few prototypes,
20911     which can conflict with char $ac_func (); below.
20912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20913     <limits.h> exists even on freestanding compilers.  */
20914
20915 #ifdef __STDC__
20916 # include <limits.h>
20917 #else
20918 # include <assert.h>
20919 #endif
20920
20921 #undef $ac_func
20922
20923 /* Override any GCC internal prototype to avoid an error.
20924    Use char because int might match the return type of a GCC
20925    builtin and then its argument prototype would still apply.  */
20926 #ifdef __cplusplus
20927 extern "C"
20928 #endif
20929 char $ac_func ();
20930 /* The GNU C library defines this for functions which it implements
20931     to always fail with ENOSYS.  Some functions are actually named
20932     something starting with __ and the normal name is an alias.  */
20933 #if defined __stub_$ac_func || defined __stub___$ac_func
20934 choke me
20935 #endif
20936
20937 int
20938 main ()
20939 {
20940 return $ac_func ();
20941   ;
20942   return 0;
20943 }
20944 _ACEOF
20945 rm -f conftest.$ac_objext conftest$ac_exeext
20946 if { (ac_try="$ac_link"
20947 case "(($ac_try" in
20948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949   *) ac_try_echo=$ac_try;;
20950 esac
20951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20952 $as_echo "$ac_try_echo") >&5
20953   (eval "$ac_link") 2>conftest.er1
20954   ac_status=$?
20955   grep -v '^ *+' conftest.er1 >conftest.err
20956   rm -f conftest.er1
20957   cat conftest.err >&5
20958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959   (exit $ac_status); } && {
20960          test -z "$ac_c_werror_flag" ||
20961          test ! -s conftest.err
20962        } && test -s conftest$ac_exeext && {
20963          test "$cross_compiling" = yes ||
20964          $as_test_x conftest$ac_exeext
20965        }; then
20966   eval "$as_ac_var=yes"
20967 else
20968   $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971         eval "$as_ac_var=no"
20972 fi
20973
20974 rm -rf conftest.dSYM
20975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20976       conftest$ac_exeext conftest.$ac_ext
20977 fi
20978 ac_res=`eval 'as_val=${'$as_ac_var'}
20979                  $as_echo "$as_val"'`
20980                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20981 $as_echo "$ac_res" >&6; }
20982 as_val=`eval 'as_val=${'$as_ac_var'}
20983                  $as_echo "$as_val"'`
20984    if test "x$as_val" = x""yes; then
20985   cat >>confdefs.h <<_ACEOF
20986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20987 _ACEOF
20988
20989 else
20990   pgac_need_repl_snprintf=yes
20991 fi
20992 done
20993
20994 fi
20995
20996
20997 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20998 # include/c.h will provide declarations.  Note this is a separate test
20999 # from whether the functions exist in the C library --- there are
21000 # systems that have the functions but don't bother to declare them :-(
21001
21002 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
21003 $as_echo_n "checking whether snprintf is declared... " >&6; }
21004 if test "${ac_cv_have_decl_snprintf+set}" = set; then
21005   $as_echo_n "(cached) " >&6
21006 else
21007   cat >conftest.$ac_ext <<_ACEOF
21008 /* confdefs.h.  */
21009 _ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h.  */
21013 $ac_includes_default
21014 int
21015 main ()
21016 {
21017 #ifndef snprintf
21018   (void) snprintf;
21019 #endif
21020
21021   ;
21022   return 0;
21023 }
21024 _ACEOF
21025 rm -f conftest.$ac_objext
21026 if { (ac_try="$ac_compile"
21027 case "(($ac_try" in
21028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029   *) ac_try_echo=$ac_try;;
21030 esac
21031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21032 $as_echo "$ac_try_echo") >&5
21033   (eval "$ac_compile") 2>conftest.er1
21034   ac_status=$?
21035   grep -v '^ *+' conftest.er1 >conftest.err
21036   rm -f conftest.er1
21037   cat conftest.err >&5
21038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); } && {
21040          test -z "$ac_c_werror_flag" ||
21041          test ! -s conftest.err
21042        } && test -s conftest.$ac_objext; then
21043   ac_cv_have_decl_snprintf=yes
21044 else
21045   $as_echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048         ac_cv_have_decl_snprintf=no
21049 fi
21050
21051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21052 fi
21053 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
21054 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
21055 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
21056
21057 cat >>confdefs.h <<_ACEOF
21058 #define HAVE_DECL_SNPRINTF 1
21059 _ACEOF
21060
21061
21062 else
21063   cat >>confdefs.h <<_ACEOF
21064 #define HAVE_DECL_SNPRINTF 0
21065 _ACEOF
21066
21067
21068 fi
21069 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
21070 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
21071 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
21072   $as_echo_n "(cached) " >&6
21073 else
21074   cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080 $ac_includes_default
21081 int
21082 main ()
21083 {
21084 #ifndef vsnprintf
21085   (void) vsnprintf;
21086 #endif
21087
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096   *) ac_try_echo=$ac_try;;
21097 esac
21098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21099 $as_echo "$ac_try_echo") >&5
21100   (eval "$ac_compile") 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } && {
21107          test -z "$ac_c_werror_flag" ||
21108          test ! -s conftest.err
21109        } && test -s conftest.$ac_objext; then
21110   ac_cv_have_decl_vsnprintf=yes
21111 else
21112   $as_echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115         ac_cv_have_decl_vsnprintf=no
21116 fi
21117
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21119 fi
21120 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
21121 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
21122 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
21123
21124 cat >>confdefs.h <<_ACEOF
21125 #define HAVE_DECL_VSNPRINTF 1
21126 _ACEOF
21127
21128
21129 else
21130   cat >>confdefs.h <<_ACEOF
21131 #define HAVE_DECL_VSNPRINTF 0
21132 _ACEOF
21133
21134
21135 fi
21136
21137
21138
21139
21140 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
21141 $as_echo_n "checking for isinf... " >&6; }
21142 if test "${ac_cv_func_isinf+set}" = set; then
21143   $as_echo_n "(cached) " >&6
21144 else
21145   cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h.  */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h.  */
21151
21152 #include <math.h>
21153 double glob_double;
21154
21155 int
21156 main ()
21157 {
21158 return isinf(glob_double) ? 0 : 1;
21159   ;
21160   return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest.$ac_objext conftest$ac_exeext
21164 if { (ac_try="$ac_link"
21165 case "(($ac_try" in
21166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167   *) ac_try_echo=$ac_try;;
21168 esac
21169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21170 $as_echo "$ac_try_echo") >&5
21171   (eval "$ac_link") 2>conftest.er1
21172   ac_status=$?
21173   grep -v '^ *+' conftest.er1 >conftest.err
21174   rm -f conftest.er1
21175   cat conftest.err >&5
21176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); } && {
21178          test -z "$ac_c_werror_flag" ||
21179          test ! -s conftest.err
21180        } && test -s conftest$ac_exeext && {
21181          test "$cross_compiling" = yes ||
21182          $as_test_x conftest$ac_exeext
21183        }; then
21184   ac_cv_func_isinf=yes
21185 else
21186   $as_echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189         ac_cv_func_isinf=no
21190 fi
21191
21192 rm -rf conftest.dSYM
21193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194       conftest$ac_exeext conftest.$ac_ext
21195 fi
21196 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
21197 $as_echo "$ac_cv_func_isinf" >&6; }
21198
21199 if test $ac_cv_func_isinf = yes ; then
21200
21201 cat >>confdefs.h <<\_ACEOF
21202 #define HAVE_ISINF 1
21203 _ACEOF
21204
21205 else
21206   case " $LIBOBJS " in
21207   *" isinf.$ac_objext "* ) ;;
21208   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
21209  ;;
21210 esac
21211
21212   # Look for a way to implement a substitute for isinf()
21213
21214
21215
21216
21217 for ac_func in fpclass fp_class fp_class_d class
21218 do
21219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21220 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21221 $as_echo_n "checking for $ac_func... " >&6; }
21222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21223   $as_echo_n "(cached) " >&6
21224 else
21225   cat >conftest.$ac_ext <<_ACEOF
21226 /* confdefs.h.  */
21227 _ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h.  */
21231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21233 #define $ac_func innocuous_$ac_func
21234
21235 /* System header to define __stub macros and hopefully few prototypes,
21236     which can conflict with char $ac_func (); below.
21237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21238     <limits.h> exists even on freestanding compilers.  */
21239
21240 #ifdef __STDC__
21241 # include <limits.h>
21242 #else
21243 # include <assert.h>
21244 #endif
21245
21246 #undef $ac_func
21247
21248 /* Override any GCC internal prototype to avoid an error.
21249    Use char because int might match the return type of a GCC
21250    builtin and then its argument prototype would still apply.  */
21251 #ifdef __cplusplus
21252 extern "C"
21253 #endif
21254 char $ac_func ();
21255 /* The GNU C library defines this for functions which it implements
21256     to always fail with ENOSYS.  Some functions are actually named
21257     something starting with __ and the normal name is an alias.  */
21258 #if defined __stub_$ac_func || defined __stub___$ac_func
21259 choke me
21260 #endif
21261
21262 int
21263 main ()
21264 {
21265 return $ac_func ();
21266   ;
21267   return 0;
21268 }
21269 _ACEOF
21270 rm -f conftest.$ac_objext conftest$ac_exeext
21271 if { (ac_try="$ac_link"
21272 case "(($ac_try" in
21273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274   *) ac_try_echo=$ac_try;;
21275 esac
21276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21277 $as_echo "$ac_try_echo") >&5
21278   (eval "$ac_link") 2>conftest.er1
21279   ac_status=$?
21280   grep -v '^ *+' conftest.er1 >conftest.err
21281   rm -f conftest.er1
21282   cat conftest.err >&5
21283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); } && {
21285          test -z "$ac_c_werror_flag" ||
21286          test ! -s conftest.err
21287        } && test -s conftest$ac_exeext && {
21288          test "$cross_compiling" = yes ||
21289          $as_test_x conftest$ac_exeext
21290        }; then
21291   eval "$as_ac_var=yes"
21292 else
21293   $as_echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21295
21296         eval "$as_ac_var=no"
21297 fi
21298
21299 rm -rf conftest.dSYM
21300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21301       conftest$ac_exeext conftest.$ac_ext
21302 fi
21303 ac_res=`eval 'as_val=${'$as_ac_var'}
21304                  $as_echo "$as_val"'`
21305                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21306 $as_echo "$ac_res" >&6; }
21307 as_val=`eval 'as_val=${'$as_ac_var'}
21308                  $as_echo "$as_val"'`
21309    if test "x$as_val" = x""yes; then
21310   cat >>confdefs.h <<_ACEOF
21311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21312 _ACEOF
21313  break
21314 fi
21315 done
21316
21317 fi
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
21331 do
21332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21333 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21334 $as_echo_n "checking for $ac_func... " >&6; }
21335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21336   $as_echo_n "(cached) " >&6
21337 else
21338   cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h.  */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h.  */
21344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21346 #define $ac_func innocuous_$ac_func
21347
21348 /* System header to define __stub macros and hopefully few prototypes,
21349     which can conflict with char $ac_func (); below.
21350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21351     <limits.h> exists even on freestanding compilers.  */
21352
21353 #ifdef __STDC__
21354 # include <limits.h>
21355 #else
21356 # include <assert.h>
21357 #endif
21358
21359 #undef $ac_func
21360
21361 /* Override any GCC internal prototype to avoid an error.
21362    Use char because int might match the return type of a GCC
21363    builtin and then its argument prototype would still apply.  */
21364 #ifdef __cplusplus
21365 extern "C"
21366 #endif
21367 char $ac_func ();
21368 /* The GNU C library defines this for functions which it implements
21369     to always fail with ENOSYS.  Some functions are actually named
21370     something starting with __ and the normal name is an alias.  */
21371 #if defined __stub_$ac_func || defined __stub___$ac_func
21372 choke me
21373 #endif
21374
21375 int
21376 main ()
21377 {
21378 return $ac_func ();
21379   ;
21380   return 0;
21381 }
21382 _ACEOF
21383 rm -f conftest.$ac_objext conftest$ac_exeext
21384 if { (ac_try="$ac_link"
21385 case "(($ac_try" in
21386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387   *) ac_try_echo=$ac_try;;
21388 esac
21389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21390 $as_echo "$ac_try_echo") >&5
21391   (eval "$ac_link") 2>conftest.er1
21392   ac_status=$?
21393   grep -v '^ *+' conftest.er1 >conftest.err
21394   rm -f conftest.er1
21395   cat conftest.err >&5
21396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); } && {
21398          test -z "$ac_c_werror_flag" ||
21399          test ! -s conftest.err
21400        } && test -s conftest$ac_exeext && {
21401          test "$cross_compiling" = yes ||
21402          $as_test_x conftest$ac_exeext
21403        }; then
21404   eval "$as_ac_var=yes"
21405 else
21406   $as_echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21408
21409         eval "$as_ac_var=no"
21410 fi
21411
21412 rm -rf conftest.dSYM
21413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21414       conftest$ac_exeext conftest.$ac_ext
21415 fi
21416 ac_res=`eval 'as_val=${'$as_ac_var'}
21417                  $as_echo "$as_val"'`
21418                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21419 $as_echo "$ac_res" >&6; }
21420 as_val=`eval 'as_val=${'$as_ac_var'}
21421                  $as_echo "$as_val"'`
21422    if test "x$as_val" = x""yes; then
21423   cat >>confdefs.h <<_ACEOF
21424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21425 _ACEOF
21426
21427 else
21428   case " $LIBOBJS " in
21429   *" $ac_func.$ac_objext "* ) ;;
21430   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21431  ;;
21432 esac
21433
21434 fi
21435 done
21436
21437
21438
21439 case $host_os in
21440
21441         # Windows uses a specialised env handler
21442         # and doesn't need a replacement getpeereid because it doesn't use
21443         # Unix sockets.
21444         mingw*)
21445
21446 cat >>confdefs.h <<\_ACEOF
21447 #define HAVE_UNSETENV 1
21448 _ACEOF
21449
21450
21451 cat >>confdefs.h <<\_ACEOF
21452 #define HAVE_GETPEEREID 1
21453 _ACEOF
21454
21455                 ac_cv_func_unsetenv=yes
21456                 ac_cv_func_getpeereid=yes;;
21457         *)
21458
21459
21460 for ac_func in unsetenv getpeereid
21461 do
21462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21463 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21464 $as_echo_n "checking for $ac_func... " >&6; }
21465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21466   $as_echo_n "(cached) " >&6
21467 else
21468   cat >conftest.$ac_ext <<_ACEOF
21469 /* confdefs.h.  */
21470 _ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h.  */
21474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21476 #define $ac_func innocuous_$ac_func
21477
21478 /* System header to define __stub macros and hopefully few prototypes,
21479     which can conflict with char $ac_func (); below.
21480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21481     <limits.h> exists even on freestanding compilers.  */
21482
21483 #ifdef __STDC__
21484 # include <limits.h>
21485 #else
21486 # include <assert.h>
21487 #endif
21488
21489 #undef $ac_func
21490
21491 /* Override any GCC internal prototype to avoid an error.
21492    Use char because int might match the return type of a GCC
21493    builtin and then its argument prototype would still apply.  */
21494 #ifdef __cplusplus
21495 extern "C"
21496 #endif
21497 char $ac_func ();
21498 /* The GNU C library defines this for functions which it implements
21499     to always fail with ENOSYS.  Some functions are actually named
21500     something starting with __ and the normal name is an alias.  */
21501 #if defined __stub_$ac_func || defined __stub___$ac_func
21502 choke me
21503 #endif
21504
21505 int
21506 main ()
21507 {
21508 return $ac_func ();
21509   ;
21510   return 0;
21511 }
21512 _ACEOF
21513 rm -f conftest.$ac_objext conftest$ac_exeext
21514 if { (ac_try="$ac_link"
21515 case "(($ac_try" in
21516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517   *) ac_try_echo=$ac_try;;
21518 esac
21519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21520 $as_echo "$ac_try_echo") >&5
21521   (eval "$ac_link") 2>conftest.er1
21522   ac_status=$?
21523   grep -v '^ *+' conftest.er1 >conftest.err
21524   rm -f conftest.er1
21525   cat conftest.err >&5
21526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); } && {
21528          test -z "$ac_c_werror_flag" ||
21529          test ! -s conftest.err
21530        } && test -s conftest$ac_exeext && {
21531          test "$cross_compiling" = yes ||
21532          $as_test_x conftest$ac_exeext
21533        }; then
21534   eval "$as_ac_var=yes"
21535 else
21536   $as_echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21538
21539         eval "$as_ac_var=no"
21540 fi
21541
21542 rm -rf conftest.dSYM
21543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21544       conftest$ac_exeext conftest.$ac_ext
21545 fi
21546 ac_res=`eval 'as_val=${'$as_ac_var'}
21547                  $as_echo "$as_val"'`
21548                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21549 $as_echo "$ac_res" >&6; }
21550 as_val=`eval 'as_val=${'$as_ac_var'}
21551                  $as_echo "$as_val"'`
21552    if test "x$as_val" = x""yes; then
21553   cat >>confdefs.h <<_ACEOF
21554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21555 _ACEOF
21556
21557 else
21558   case " $LIBOBJS " in
21559   *" $ac_func.$ac_objext "* ) ;;
21560   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21561  ;;
21562 esac
21563
21564 fi
21565 done
21566
21567
21568                 ;;
21569 esac
21570
21571 # System's version of getaddrinfo(), if any, may be used only if we found
21572 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21573 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21574 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
21575 # because we want to use our own getaddrinfo.c on Windows anyway.)
21576 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21577
21578 for ac_func in getaddrinfo
21579 do
21580 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21581 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21582 $as_echo_n "checking for $ac_func... " >&6; }
21583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21584   $as_echo_n "(cached) " >&6
21585 else
21586   cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h.  */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h.  */
21592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21594 #define $ac_func innocuous_$ac_func
21595
21596 /* System header to define __stub macros and hopefully few prototypes,
21597     which can conflict with char $ac_func (); below.
21598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21599     <limits.h> exists even on freestanding compilers.  */
21600
21601 #ifdef __STDC__
21602 # include <limits.h>
21603 #else
21604 # include <assert.h>
21605 #endif
21606
21607 #undef $ac_func
21608
21609 /* Override any GCC internal prototype to avoid an error.
21610    Use char because int might match the return type of a GCC
21611    builtin and then its argument prototype would still apply.  */
21612 #ifdef __cplusplus
21613 extern "C"
21614 #endif
21615 char $ac_func ();
21616 /* The GNU C library defines this for functions which it implements
21617     to always fail with ENOSYS.  Some functions are actually named
21618     something starting with __ and the normal name is an alias.  */
21619 #if defined __stub_$ac_func || defined __stub___$ac_func
21620 choke me
21621 #endif
21622
21623 int
21624 main ()
21625 {
21626 return $ac_func ();
21627   ;
21628   return 0;
21629 }
21630 _ACEOF
21631 rm -f conftest.$ac_objext conftest$ac_exeext
21632 if { (ac_try="$ac_link"
21633 case "(($ac_try" in
21634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635   *) ac_try_echo=$ac_try;;
21636 esac
21637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21638 $as_echo "$ac_try_echo") >&5
21639   (eval "$ac_link") 2>conftest.er1
21640   ac_status=$?
21641   grep -v '^ *+' conftest.er1 >conftest.err
21642   rm -f conftest.er1
21643   cat conftest.err >&5
21644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); } && {
21646          test -z "$ac_c_werror_flag" ||
21647          test ! -s conftest.err
21648        } && test -s conftest$ac_exeext && {
21649          test "$cross_compiling" = yes ||
21650          $as_test_x conftest$ac_exeext
21651        }; then
21652   eval "$as_ac_var=yes"
21653 else
21654   $as_echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21656
21657         eval "$as_ac_var=no"
21658 fi
21659
21660 rm -rf conftest.dSYM
21661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21662       conftest$ac_exeext conftest.$ac_ext
21663 fi
21664 ac_res=`eval 'as_val=${'$as_ac_var'}
21665                  $as_echo "$as_val"'`
21666                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21667 $as_echo "$ac_res" >&6; }
21668 as_val=`eval 'as_val=${'$as_ac_var'}
21669                  $as_echo "$as_val"'`
21670    if test "x$as_val" = x""yes; then
21671   cat >>confdefs.h <<_ACEOF
21672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21673 _ACEOF
21674
21675 else
21676   case " $LIBOBJS " in
21677   *" $ac_func.$ac_objext "* ) ;;
21678   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21679  ;;
21680 esac
21681
21682 fi
21683 done
21684
21685
21686 else
21687   case " $LIBOBJS " in
21688   *" getaddrinfo.$ac_objext "* ) ;;
21689   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21690  ;;
21691 esac
21692
21693 fi
21694
21695 # Similarly, use system's getopt_long() only if system provides struct option.
21696 if test x"$ac_cv_type_struct_option" = xyes ; then
21697
21698 for ac_func in getopt_long
21699 do
21700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21701 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21702 $as_echo_n "checking for $ac_func... " >&6; }
21703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21704   $as_echo_n "(cached) " >&6
21705 else
21706   cat >conftest.$ac_ext <<_ACEOF
21707 /* confdefs.h.  */
21708 _ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h.  */
21712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21714 #define $ac_func innocuous_$ac_func
21715
21716 /* System header to define __stub macros and hopefully few prototypes,
21717     which can conflict with char $ac_func (); below.
21718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21719     <limits.h> exists even on freestanding compilers.  */
21720
21721 #ifdef __STDC__
21722 # include <limits.h>
21723 #else
21724 # include <assert.h>
21725 #endif
21726
21727 #undef $ac_func
21728
21729 /* Override any GCC internal prototype to avoid an error.
21730    Use char because int might match the return type of a GCC
21731    builtin and then its argument prototype would still apply.  */
21732 #ifdef __cplusplus
21733 extern "C"
21734 #endif
21735 char $ac_func ();
21736 /* The GNU C library defines this for functions which it implements
21737     to always fail with ENOSYS.  Some functions are actually named
21738     something starting with __ and the normal name is an alias.  */
21739 #if defined __stub_$ac_func || defined __stub___$ac_func
21740 choke me
21741 #endif
21742
21743 int
21744 main ()
21745 {
21746 return $ac_func ();
21747   ;
21748   return 0;
21749 }
21750 _ACEOF
21751 rm -f conftest.$ac_objext conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21758 $as_echo "$ac_try_echo") >&5
21759   (eval "$ac_link") 2>conftest.er1
21760   ac_status=$?
21761   grep -v '^ *+' conftest.er1 >conftest.err
21762   rm -f conftest.er1
21763   cat conftest.err >&5
21764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765   (exit $ac_status); } && {
21766          test -z "$ac_c_werror_flag" ||
21767          test ! -s conftest.err
21768        } && test -s conftest$ac_exeext && {
21769          test "$cross_compiling" = yes ||
21770          $as_test_x conftest$ac_exeext
21771        }; then
21772   eval "$as_ac_var=yes"
21773 else
21774   $as_echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777         eval "$as_ac_var=no"
21778 fi
21779
21780 rm -rf conftest.dSYM
21781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21782       conftest$ac_exeext conftest.$ac_ext
21783 fi
21784 ac_res=`eval 'as_val=${'$as_ac_var'}
21785                  $as_echo "$as_val"'`
21786                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21787 $as_echo "$ac_res" >&6; }
21788 as_val=`eval 'as_val=${'$as_ac_var'}
21789                  $as_echo "$as_val"'`
21790    if test "x$as_val" = x""yes; then
21791   cat >>confdefs.h <<_ACEOF
21792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21793 _ACEOF
21794
21795 else
21796   case " $LIBOBJS " in
21797   *" $ac_func.$ac_objext "* ) ;;
21798   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21799  ;;
21800 esac
21801
21802 fi
21803 done
21804
21805
21806 else
21807   case " $LIBOBJS " in
21808   *" getopt_long.$ac_objext "* ) ;;
21809   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21810  ;;
21811 esac
21812
21813 fi
21814
21815 # Solaris' getopt() doesn't do what we want for long options, so always use
21816 # our version on that platform.
21817 if test "$PORTNAME" = "solaris"; then
21818   case " $LIBOBJS " in
21819   *" getopt.$ac_objext "* ) ;;
21820   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21821  ;;
21822 esac
21823
21824 fi
21825
21826 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21827 # so always use our version on Windows.
21828 if test "$PORTNAME" = "win32"; then
21829   case " $LIBOBJS " in
21830   *" getopt.$ac_objext "* ) ;;
21831   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21832  ;;
21833 esac
21834
21835   case " $LIBOBJS " in
21836   *" getopt_long.$ac_objext "* ) ;;
21837   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21838  ;;
21839 esac
21840
21841 fi
21842
21843 # Win32 support
21844 if test "$PORTNAME" = "win32"; then
21845
21846 for ac_func in gettimeofday
21847 do
21848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21849 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21850 $as_echo_n "checking for $ac_func... " >&6; }
21851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21852   $as_echo_n "(cached) " >&6
21853 else
21854   cat >conftest.$ac_ext <<_ACEOF
21855 /* confdefs.h.  */
21856 _ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h.  */
21860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21862 #define $ac_func innocuous_$ac_func
21863
21864 /* System header to define __stub macros and hopefully few prototypes,
21865     which can conflict with char $ac_func (); below.
21866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21867     <limits.h> exists even on freestanding compilers.  */
21868
21869 #ifdef __STDC__
21870 # include <limits.h>
21871 #else
21872 # include <assert.h>
21873 #endif
21874
21875 #undef $ac_func
21876
21877 /* Override any GCC internal prototype to avoid an error.
21878    Use char because int might match the return type of a GCC
21879    builtin and then its argument prototype would still apply.  */
21880 #ifdef __cplusplus
21881 extern "C"
21882 #endif
21883 char $ac_func ();
21884 /* The GNU C library defines this for functions which it implements
21885     to always fail with ENOSYS.  Some functions are actually named
21886     something starting with __ and the normal name is an alias.  */
21887 #if defined __stub_$ac_func || defined __stub___$ac_func
21888 choke me
21889 #endif
21890
21891 int
21892 main ()
21893 {
21894 return $ac_func ();
21895   ;
21896   return 0;
21897 }
21898 _ACEOF
21899 rm -f conftest.$ac_objext conftest$ac_exeext
21900 if { (ac_try="$ac_link"
21901 case "(($ac_try" in
21902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903   *) ac_try_echo=$ac_try;;
21904 esac
21905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21906 $as_echo "$ac_try_echo") >&5
21907   (eval "$ac_link") 2>conftest.er1
21908   ac_status=$?
21909   grep -v '^ *+' conftest.er1 >conftest.err
21910   rm -f conftest.er1
21911   cat conftest.err >&5
21912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); } && {
21914          test -z "$ac_c_werror_flag" ||
21915          test ! -s conftest.err
21916        } && test -s conftest$ac_exeext && {
21917          test "$cross_compiling" = yes ||
21918          $as_test_x conftest$ac_exeext
21919        }; then
21920   eval "$as_ac_var=yes"
21921 else
21922   $as_echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21924
21925         eval "$as_ac_var=no"
21926 fi
21927
21928 rm -rf conftest.dSYM
21929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21930       conftest$ac_exeext conftest.$ac_ext
21931 fi
21932 ac_res=`eval 'as_val=${'$as_ac_var'}
21933                  $as_echo "$as_val"'`
21934                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21935 $as_echo "$ac_res" >&6; }
21936 as_val=`eval 'as_val=${'$as_ac_var'}
21937                  $as_echo "$as_val"'`
21938    if test "x$as_val" = x""yes; then
21939   cat >>confdefs.h <<_ACEOF
21940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21941 _ACEOF
21942
21943 else
21944   case " $LIBOBJS " in
21945   *" $ac_func.$ac_objext "* ) ;;
21946   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21947  ;;
21948 esac
21949
21950 fi
21951 done
21952
21953
21954   case " $LIBOBJS " in
21955   *" kill.$ac_objext "* ) ;;
21956   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21957  ;;
21958 esac
21959
21960   case " $LIBOBJS " in
21961   *" open.$ac_objext "* ) ;;
21962   *) LIBOBJS="$LIBOBJS open.$ac_objext"
21963  ;;
21964 esac
21965
21966   case " $LIBOBJS " in
21967   *" win32env.$ac_objext "* ) ;;
21968   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21969  ;;
21970 esac
21971
21972   case " $LIBOBJS " in
21973   *" win32error.$ac_objext "* ) ;;
21974   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21975  ;;
21976 esac
21977
21978   case " $LIBOBJS " in
21979   *" win32setlocale.$ac_objext "* ) ;;
21980   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21981  ;;
21982 esac
21983
21984
21985 cat >>confdefs.h <<\_ACEOF
21986 #define HAVE_SYMLINK 1
21987 _ACEOF
21988
21989   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21990 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21991 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21992   $as_echo_n "(cached) " >&6
21993 else
21994   ac_cv_type_MINIDUMP_TYPE=no
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001
22002 #define WIN32_LEAN_AND_MEAN
22003 #include <windows.h>
22004 #include <string.h>
22005 #include <dbghelp.h>
22006
22007 int
22008 main ()
22009 {
22010 if (sizeof (MINIDUMP_TYPE))
22011        return 0;
22012   ;
22013   return 0;
22014 }
22015 _ACEOF
22016 rm -f conftest.$ac_objext
22017 if { (ac_try="$ac_compile"
22018 case "(($ac_try" in
22019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22020   *) ac_try_echo=$ac_try;;
22021 esac
22022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22023 $as_echo "$ac_try_echo") >&5
22024   (eval "$ac_compile") 2>conftest.er1
22025   ac_status=$?
22026   grep -v '^ *+' conftest.er1 >conftest.err
22027   rm -f conftest.er1
22028   cat conftest.err >&5
22029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); } && {
22031          test -z "$ac_c_werror_flag" ||
22032          test ! -s conftest.err
22033        } && test -s conftest.$ac_objext; then
22034   cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h.  */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h.  */
22040
22041 #define WIN32_LEAN_AND_MEAN
22042 #include <windows.h>
22043 #include <string.h>
22044 #include <dbghelp.h>
22045
22046 int
22047 main ()
22048 {
22049 if (sizeof ((MINIDUMP_TYPE)))
22050           return 0;
22051   ;
22052   return 0;
22053 }
22054 _ACEOF
22055 rm -f conftest.$ac_objext
22056 if { (ac_try="$ac_compile"
22057 case "(($ac_try" in
22058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059   *) ac_try_echo=$ac_try;;
22060 esac
22061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22062 $as_echo "$ac_try_echo") >&5
22063   (eval "$ac_compile") 2>conftest.er1
22064   ac_status=$?
22065   grep -v '^ *+' conftest.er1 >conftest.err
22066   rm -f conftest.er1
22067   cat conftest.err >&5
22068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); } && {
22070          test -z "$ac_c_werror_flag" ||
22071          test ! -s conftest.err
22072        } && test -s conftest.$ac_objext; then
22073   :
22074 else
22075   $as_echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078         ac_cv_type_MINIDUMP_TYPE=yes
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 else
22083   $as_echo "$as_me: failed program was:" >&5
22084 sed 's/^/| /' conftest.$ac_ext >&5
22085
22086
22087 fi
22088
22089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22090 fi
22091 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
22092 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
22093 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
22094
22095 cat >>confdefs.h <<_ACEOF
22096 #define HAVE_MINIDUMP_TYPE 1
22097 _ACEOF
22098
22099 pgac_minidump_type=yes
22100 else
22101   pgac_minidump_type=no
22102 fi
22103
22104 fi
22105 if test x"$pgac_minidump_type" = x"yes" ; then
22106   have_win32_dbghelp=yes
22107
22108 else
22109   have_win32_dbghelp=no
22110
22111 fi
22112
22113 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
22114 $as_echo_n "checking for sigsetjmp... " >&6; }
22115 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
22116   $as_echo_n "(cached) " >&6
22117 else
22118   cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h.  */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h.  */
22124 #include <setjmp.h>
22125 int
22126 main ()
22127 {
22128 sigjmp_buf x; sigsetjmp(x, 1);
22129   ;
22130   return 0;
22131 }
22132 _ACEOF
22133 rm -f conftest.$ac_objext conftest$ac_exeext
22134 if { (ac_try="$ac_link"
22135 case "(($ac_try" in
22136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137   *) ac_try_echo=$ac_try;;
22138 esac
22139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22140 $as_echo "$ac_try_echo") >&5
22141   (eval "$ac_link") 2>conftest.er1
22142   ac_status=$?
22143   grep -v '^ *+' conftest.er1 >conftest.err
22144   rm -f conftest.er1
22145   cat conftest.err >&5
22146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147   (exit $ac_status); } && {
22148          test -z "$ac_c_werror_flag" ||
22149          test ! -s conftest.err
22150        } && test -s conftest$ac_exeext && {
22151          test "$cross_compiling" = yes ||
22152          $as_test_x conftest$ac_exeext
22153        }; then
22154   pgac_cv_func_sigsetjmp=yes
22155 else
22156   $as_echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22158
22159         pgac_cv_func_sigsetjmp=no
22160 fi
22161
22162 rm -rf conftest.dSYM
22163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22164       conftest$ac_exeext conftest.$ac_ext
22165 fi
22166 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
22167 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
22168 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
22169
22170 cat >>confdefs.h <<\_ACEOF
22171 #define HAVE_SIGSETJMP 1
22172 _ACEOF
22173
22174 fi
22175
22176 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22177 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
22178 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22179   $as_echo_n "(cached) " >&6
22180 else
22181   cat >conftest.$ac_ext <<_ACEOF
22182 /* confdefs.h.  */
22183 _ACEOF
22184 cat confdefs.h >>conftest.$ac_ext
22185 cat >>conftest.$ac_ext <<_ACEOF
22186 /* end confdefs.h.  */
22187 #include <signal.h>
22188 /* NetBSD declares sys_siglist in unistd.h.  */
22189 #ifdef HAVE_UNISTD_H
22190 # include <unistd.h>
22191 #endif
22192
22193
22194 int
22195 main ()
22196 {
22197 #ifndef sys_siglist
22198   (void) sys_siglist;
22199 #endif
22200
22201   ;
22202   return 0;
22203 }
22204 _ACEOF
22205 rm -f conftest.$ac_objext
22206 if { (ac_try="$ac_compile"
22207 case "(($ac_try" in
22208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209   *) ac_try_echo=$ac_try;;
22210 esac
22211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22212 $as_echo "$ac_try_echo") >&5
22213   (eval "$ac_compile") 2>conftest.er1
22214   ac_status=$?
22215   grep -v '^ *+' conftest.er1 >conftest.err
22216   rm -f conftest.er1
22217   cat conftest.err >&5
22218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); } && {
22220          test -z "$ac_c_werror_flag" ||
22221          test ! -s conftest.err
22222        } && test -s conftest.$ac_objext; then
22223   ac_cv_have_decl_sys_siglist=yes
22224 else
22225   $as_echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22227
22228         ac_cv_have_decl_sys_siglist=no
22229 fi
22230
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232 fi
22233 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22234 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22235 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22236
22237 cat >>confdefs.h <<_ACEOF
22238 #define HAVE_DECL_SYS_SIGLIST 1
22239 _ACEOF
22240
22241
22242 else
22243   cat >>confdefs.h <<_ACEOF
22244 #define HAVE_DECL_SYS_SIGLIST 0
22245 _ACEOF
22246
22247
22248 fi
22249
22250
22251
22252
22253 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22254 $as_echo_n "checking for syslog... " >&6; }
22255 if test "${ac_cv_func_syslog+set}" = set; then
22256   $as_echo_n "(cached) " >&6
22257 else
22258   cat >conftest.$ac_ext <<_ACEOF
22259 /* confdefs.h.  */
22260 _ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h.  */
22264 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22266 #define syslog innocuous_syslog
22267
22268 /* System header to define __stub macros and hopefully few prototypes,
22269     which can conflict with char syslog (); below.
22270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22271     <limits.h> exists even on freestanding compilers.  */
22272
22273 #ifdef __STDC__
22274 # include <limits.h>
22275 #else
22276 # include <assert.h>
22277 #endif
22278
22279 #undef syslog
22280
22281 /* Override any GCC internal prototype to avoid an error.
22282    Use char because int might match the return type of a GCC
22283    builtin and then its argument prototype would still apply.  */
22284 #ifdef __cplusplus
22285 extern "C"
22286 #endif
22287 char syslog ();
22288 /* The GNU C library defines this for functions which it implements
22289     to always fail with ENOSYS.  Some functions are actually named
22290     something starting with __ and the normal name is an alias.  */
22291 #if defined __stub_syslog || defined __stub___syslog
22292 choke me
22293 #endif
22294
22295 int
22296 main ()
22297 {
22298 return syslog ();
22299   ;
22300   return 0;
22301 }
22302 _ACEOF
22303 rm -f conftest.$ac_objext conftest$ac_exeext
22304 if { (ac_try="$ac_link"
22305 case "(($ac_try" in
22306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307   *) ac_try_echo=$ac_try;;
22308 esac
22309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22310 $as_echo "$ac_try_echo") >&5
22311   (eval "$ac_link") 2>conftest.er1
22312   ac_status=$?
22313   grep -v '^ *+' conftest.er1 >conftest.err
22314   rm -f conftest.er1
22315   cat conftest.err >&5
22316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); } && {
22318          test -z "$ac_c_werror_flag" ||
22319          test ! -s conftest.err
22320        } && test -s conftest$ac_exeext && {
22321          test "$cross_compiling" = yes ||
22322          $as_test_x conftest$ac_exeext
22323        }; then
22324   ac_cv_func_syslog=yes
22325 else
22326   $as_echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329         ac_cv_func_syslog=no
22330 fi
22331
22332 rm -rf conftest.dSYM
22333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22334       conftest$ac_exeext conftest.$ac_ext
22335 fi
22336 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22337 $as_echo "$ac_cv_func_syslog" >&6; }
22338 if test "x$ac_cv_func_syslog" = x""yes; then
22339   if test "${ac_cv_header_syslog_h+set}" = set; then
22340   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22341 $as_echo_n "checking for syslog.h... " >&6; }
22342 if test "${ac_cv_header_syslog_h+set}" = set; then
22343   $as_echo_n "(cached) " >&6
22344 fi
22345 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22346 $as_echo "$ac_cv_header_syslog_h" >&6; }
22347 else
22348   # Is the header compilable?
22349 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22350 $as_echo_n "checking syslog.h usability... " >&6; }
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357 $ac_includes_default
22358 #include <syslog.h>
22359 _ACEOF
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364   *) ac_try_echo=$ac_try;;
22365 esac
22366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22367 $as_echo "$ac_try_echo") >&5
22368   (eval "$ac_compile") 2>conftest.er1
22369   ac_status=$?
22370   grep -v '^ *+' conftest.er1 >conftest.err
22371   rm -f conftest.er1
22372   cat conftest.err >&5
22373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); } && {
22375          test -z "$ac_c_werror_flag" ||
22376          test ! -s conftest.err
22377        } && test -s conftest.$ac_objext; then
22378   ac_header_compiler=yes
22379 else
22380   $as_echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22382
22383         ac_header_compiler=no
22384 fi
22385
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22387 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22388 $as_echo "$ac_header_compiler" >&6; }
22389
22390 # Is the header present?
22391 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22392 $as_echo_n "checking syslog.h presence... " >&6; }
22393 cat >conftest.$ac_ext <<_ACEOF
22394 /* confdefs.h.  */
22395 _ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h.  */
22399 #include <syslog.h>
22400 _ACEOF
22401 if { (ac_try="$ac_cpp conftest.$ac_ext"
22402 case "(($ac_try" in
22403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404   *) ac_try_echo=$ac_try;;
22405 esac
22406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22407 $as_echo "$ac_try_echo") >&5
22408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22409   ac_status=$?
22410   grep -v '^ *+' conftest.er1 >conftest.err
22411   rm -f conftest.er1
22412   cat conftest.err >&5
22413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); } >/dev/null && {
22415          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22416          test ! -s conftest.err
22417        }; then
22418   ac_header_preproc=yes
22419 else
22420   $as_echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22422
22423   ac_header_preproc=no
22424 fi
22425
22426 rm -f conftest.err conftest.$ac_ext
22427 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22428 $as_echo "$ac_header_preproc" >&6; }
22429
22430 # So?  What about this header?
22431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22432   yes:no: )
22433     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22434 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22435     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22436 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22437     ac_header_preproc=yes
22438     ;;
22439   no:yes:* )
22440     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22441 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22442     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
22443 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
22444     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22445 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22446     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
22447 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22448     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22449 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22450     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22451 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22452     ( cat <<\_ASBOX
22453 ## ---------------------------------------- ##
22454 ## Report this to pgsql-bugs@postgresql.org ##
22455 ## ---------------------------------------- ##
22456 _ASBOX
22457      ) | sed "s/^/$as_me: WARNING:     /" >&2
22458     ;;
22459 esac
22460 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22461 $as_echo_n "checking for syslog.h... " >&6; }
22462 if test "${ac_cv_header_syslog_h+set}" = set; then
22463   $as_echo_n "(cached) " >&6
22464 else
22465   ac_cv_header_syslog_h=$ac_header_preproc
22466 fi
22467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22468 $as_echo "$ac_cv_header_syslog_h" >&6; }
22469
22470 fi
22471 if test "x$ac_cv_header_syslog_h" = x""yes; then
22472
22473 cat >>confdefs.h <<\_ACEOF
22474 #define HAVE_SYSLOG 1
22475 _ACEOF
22476
22477 fi
22478
22479
22480 fi
22481
22482
22483 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22484 $as_echo_n "checking for opterr... " >&6; }
22485 if test "${pgac_cv_var_int_opterr+set}" = set; then
22486   $as_echo_n "(cached) " >&6
22487 else
22488   cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494 #include <unistd.h>
22495 int
22496 main ()
22497 {
22498 extern int opterr; opterr = 1;
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext conftest$ac_exeext
22504 if { (ac_try="$ac_link"
22505 case "(($ac_try" in
22506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507   *) ac_try_echo=$ac_try;;
22508 esac
22509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22510 $as_echo "$ac_try_echo") >&5
22511   (eval "$ac_link") 2>conftest.er1
22512   ac_status=$?
22513   grep -v '^ *+' conftest.er1 >conftest.err
22514   rm -f conftest.er1
22515   cat conftest.err >&5
22516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); } && {
22518          test -z "$ac_c_werror_flag" ||
22519          test ! -s conftest.err
22520        } && test -s conftest$ac_exeext && {
22521          test "$cross_compiling" = yes ||
22522          $as_test_x conftest$ac_exeext
22523        }; then
22524   pgac_cv_var_int_opterr=yes
22525 else
22526   $as_echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529         pgac_cv_var_int_opterr=no
22530 fi
22531
22532 rm -rf conftest.dSYM
22533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22534       conftest$ac_exeext conftest.$ac_ext
22535 fi
22536 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22537 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22538 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22539
22540 cat >>confdefs.h <<\_ACEOF
22541 #define HAVE_INT_OPTERR 1
22542 _ACEOF
22543
22544 fi
22545
22546 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22547 $as_echo_n "checking for optreset... " >&6; }
22548 if test "${pgac_cv_var_int_optreset+set}" = set; then
22549   $as_echo_n "(cached) " >&6
22550 else
22551   cat >conftest.$ac_ext <<_ACEOF
22552 /* confdefs.h.  */
22553 _ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h.  */
22557 #include <unistd.h>
22558 int
22559 main ()
22560 {
22561 extern int optreset; optreset = 1;
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 rm -f conftest.$ac_objext conftest$ac_exeext
22567 if { (ac_try="$ac_link"
22568 case "(($ac_try" in
22569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570   *) ac_try_echo=$ac_try;;
22571 esac
22572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22573 $as_echo "$ac_try_echo") >&5
22574   (eval "$ac_link") 2>conftest.er1
22575   ac_status=$?
22576   grep -v '^ *+' conftest.er1 >conftest.err
22577   rm -f conftest.er1
22578   cat conftest.err >&5
22579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); } && {
22581          test -z "$ac_c_werror_flag" ||
22582          test ! -s conftest.err
22583        } && test -s conftest$ac_exeext && {
22584          test "$cross_compiling" = yes ||
22585          $as_test_x conftest$ac_exeext
22586        }; then
22587   pgac_cv_var_int_optreset=yes
22588 else
22589   $as_echo "$as_me: failed program was:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22591
22592         pgac_cv_var_int_optreset=no
22593 fi
22594
22595 rm -rf conftest.dSYM
22596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22597       conftest$ac_exeext conftest.$ac_ext
22598 fi
22599 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22600 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22601 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22602
22603 cat >>confdefs.h <<\_ACEOF
22604 #define HAVE_INT_OPTRESET 1
22605 _ACEOF
22606
22607 fi
22608
22609
22610
22611 for ac_func in strtoll strtoq
22612 do
22613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22614 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22615 $as_echo_n "checking for $ac_func... " >&6; }
22616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22617   $as_echo_n "(cached) " >&6
22618 else
22619   cat >conftest.$ac_ext <<_ACEOF
22620 /* confdefs.h.  */
22621 _ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h.  */
22625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22627 #define $ac_func innocuous_$ac_func
22628
22629 /* System header to define __stub macros and hopefully few prototypes,
22630     which can conflict with char $ac_func (); below.
22631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22632     <limits.h> exists even on freestanding compilers.  */
22633
22634 #ifdef __STDC__
22635 # include <limits.h>
22636 #else
22637 # include <assert.h>
22638 #endif
22639
22640 #undef $ac_func
22641
22642 /* Override any GCC internal prototype to avoid an error.
22643    Use char because int might match the return type of a GCC
22644    builtin and then its argument prototype would still apply.  */
22645 #ifdef __cplusplus
22646 extern "C"
22647 #endif
22648 char $ac_func ();
22649 /* The GNU C library defines this for functions which it implements
22650     to always fail with ENOSYS.  Some functions are actually named
22651     something starting with __ and the normal name is an alias.  */
22652 #if defined __stub_$ac_func || defined __stub___$ac_func
22653 choke me
22654 #endif
22655
22656 int
22657 main ()
22658 {
22659 return $ac_func ();
22660   ;
22661   return 0;
22662 }
22663 _ACEOF
22664 rm -f conftest.$ac_objext conftest$ac_exeext
22665 if { (ac_try="$ac_link"
22666 case "(($ac_try" in
22667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668   *) ac_try_echo=$ac_try;;
22669 esac
22670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22671 $as_echo "$ac_try_echo") >&5
22672   (eval "$ac_link") 2>conftest.er1
22673   ac_status=$?
22674   grep -v '^ *+' conftest.er1 >conftest.err
22675   rm -f conftest.er1
22676   cat conftest.err >&5
22677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); } && {
22679          test -z "$ac_c_werror_flag" ||
22680          test ! -s conftest.err
22681        } && test -s conftest$ac_exeext && {
22682          test "$cross_compiling" = yes ||
22683          $as_test_x conftest$ac_exeext
22684        }; then
22685   eval "$as_ac_var=yes"
22686 else
22687   $as_echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690         eval "$as_ac_var=no"
22691 fi
22692
22693 rm -rf conftest.dSYM
22694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22695       conftest$ac_exeext conftest.$ac_ext
22696 fi
22697 ac_res=`eval 'as_val=${'$as_ac_var'}
22698                  $as_echo "$as_val"'`
22699                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22700 $as_echo "$ac_res" >&6; }
22701 as_val=`eval 'as_val=${'$as_ac_var'}
22702                  $as_echo "$as_val"'`
22703    if test "x$as_val" = x""yes; then
22704   cat >>confdefs.h <<_ACEOF
22705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22706 _ACEOF
22707  break
22708 fi
22709 done
22710
22711
22712
22713 for ac_func in strtoull strtouq
22714 do
22715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22716 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22717 $as_echo_n "checking for $ac_func... " >&6; }
22718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22719   $as_echo_n "(cached) " >&6
22720 else
22721   cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h.  */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h.  */
22727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22729 #define $ac_func innocuous_$ac_func
22730
22731 /* System header to define __stub macros and hopefully few prototypes,
22732     which can conflict with char $ac_func (); below.
22733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22734     <limits.h> exists even on freestanding compilers.  */
22735
22736 #ifdef __STDC__
22737 # include <limits.h>
22738 #else
22739 # include <assert.h>
22740 #endif
22741
22742 #undef $ac_func
22743
22744 /* Override any GCC internal prototype to avoid an error.
22745    Use char because int might match the return type of a GCC
22746    builtin and then its argument prototype would still apply.  */
22747 #ifdef __cplusplus
22748 extern "C"
22749 #endif
22750 char $ac_func ();
22751 /* The GNU C library defines this for functions which it implements
22752     to always fail with ENOSYS.  Some functions are actually named
22753     something starting with __ and the normal name is an alias.  */
22754 #if defined __stub_$ac_func || defined __stub___$ac_func
22755 choke me
22756 #endif
22757
22758 int
22759 main ()
22760 {
22761 return $ac_func ();
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 rm -f conftest.$ac_objext conftest$ac_exeext
22767 if { (ac_try="$ac_link"
22768 case "(($ac_try" in
22769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770   *) ac_try_echo=$ac_try;;
22771 esac
22772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22773 $as_echo "$ac_try_echo") >&5
22774   (eval "$ac_link") 2>conftest.er1
22775   ac_status=$?
22776   grep -v '^ *+' conftest.er1 >conftest.err
22777   rm -f conftest.er1
22778   cat conftest.err >&5
22779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780   (exit $ac_status); } && {
22781          test -z "$ac_c_werror_flag" ||
22782          test ! -s conftest.err
22783        } && test -s conftest$ac_exeext && {
22784          test "$cross_compiling" = yes ||
22785          $as_test_x conftest$ac_exeext
22786        }; then
22787   eval "$as_ac_var=yes"
22788 else
22789   $as_echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792         eval "$as_ac_var=no"
22793 fi
22794
22795 rm -rf conftest.dSYM
22796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22797       conftest$ac_exeext conftest.$ac_ext
22798 fi
22799 ac_res=`eval 'as_val=${'$as_ac_var'}
22800                  $as_echo "$as_val"'`
22801                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22802 $as_echo "$ac_res" >&6; }
22803 as_val=`eval 'as_val=${'$as_ac_var'}
22804                  $as_echo "$as_val"'`
22805    if test "x$as_val" = x""yes; then
22806   cat >>confdefs.h <<_ACEOF
22807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22808 _ACEOF
22809  break
22810 fi
22811 done
22812
22813
22814 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22815 $as_echo_n "checking for builtin locking functions... " >&6; }
22816 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22817   $as_echo_n "(cached) " >&6
22818 else
22819   cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h.  */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h.  */
22825
22826 int
22827 main ()
22828 {
22829 int lock = 0;
22830    __sync_lock_test_and_set(&lock, 1);
22831    __sync_lock_release(&lock);
22832   ;
22833   return 0;
22834 }
22835 _ACEOF
22836 rm -f conftest.$ac_objext conftest$ac_exeext
22837 if { (ac_try="$ac_link"
22838 case "(($ac_try" in
22839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840   *) ac_try_echo=$ac_try;;
22841 esac
22842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22843 $as_echo "$ac_try_echo") >&5
22844   (eval "$ac_link") 2>conftest.er1
22845   ac_status=$?
22846   grep -v '^ *+' conftest.er1 >conftest.err
22847   rm -f conftest.er1
22848   cat conftest.err >&5
22849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); } && {
22851          test -z "$ac_c_werror_flag" ||
22852          test ! -s conftest.err
22853        } && test -s conftest$ac_exeext && {
22854          test "$cross_compiling" = yes ||
22855          $as_test_x conftest$ac_exeext
22856        }; then
22857   pgac_cv_gcc_int_atomics="yes"
22858 else
22859   $as_echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22861
22862         pgac_cv_gcc_int_atomics="no"
22863 fi
22864
22865 rm -rf conftest.dSYM
22866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22867       conftest$ac_exeext conftest.$ac_ext
22868 fi
22869 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22870 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22871 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22872
22873 cat >>confdefs.h <<\_ACEOF
22874 #define HAVE_GCC_INT_ATOMICS 1
22875 _ACEOF
22876
22877 fi
22878
22879 # Lastly, restore full LIBS list and check for readline/libedit symbols
22880 LIBS="$LIBS_including_readline"
22881
22882 if test "$with_readline" = yes; then
22883   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
22884 $as_echo_n "checking for rl_completion_append_character... " >&6; }
22885 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
22886   $as_echo_n "(cached) " >&6
22887 else
22888   cat >conftest.$ac_ext <<_ACEOF
22889 /* confdefs.h.  */
22890 _ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h.  */
22894 #include <stdio.h>
22895 #ifdef HAVE_READLINE_READLINE_H
22896 # include <readline/readline.h>
22897 #elif defined(HAVE_READLINE_H)
22898 # include <readline.h>
22899 #endif
22900
22901 int
22902 main ()
22903 {
22904 rl_completion_append_character = 'x';
22905   ;
22906   return 0;
22907 }
22908 _ACEOF
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913   *) ac_try_echo=$ac_try;;
22914 esac
22915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22916 $as_echo "$ac_try_echo") >&5
22917   (eval "$ac_link") 2>conftest.er1
22918   ac_status=$?
22919   grep -v '^ *+' conftest.er1 >conftest.err
22920   rm -f conftest.er1
22921   cat conftest.err >&5
22922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); } && {
22924          test -z "$ac_c_werror_flag" ||
22925          test ! -s conftest.err
22926        } && test -s conftest$ac_exeext && {
22927          test "$cross_compiling" = yes ||
22928          $as_test_x conftest$ac_exeext
22929        }; then
22930   pgac_cv_var_rl_completion_append_character=yes
22931 else
22932   $as_echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935         pgac_cv_var_rl_completion_append_character=no
22936 fi
22937
22938 rm -rf conftest.dSYM
22939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22940       conftest$ac_exeext conftest.$ac_ext
22941 fi
22942 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
22943 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
22944 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
22945
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22948 _ACEOF
22949
22950 fi
22951
22952
22953 for ac_func in rl_completion_matches rl_filename_completion_function
22954 do
22955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22956 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22957 $as_echo_n "checking for $ac_func... " >&6; }
22958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22959   $as_echo_n "(cached) " >&6
22960 else
22961   cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h.  */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h.  */
22967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22969 #define $ac_func innocuous_$ac_func
22970
22971 /* System header to define __stub macros and hopefully few prototypes,
22972     which can conflict with char $ac_func (); below.
22973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22974     <limits.h> exists even on freestanding compilers.  */
22975
22976 #ifdef __STDC__
22977 # include <limits.h>
22978 #else
22979 # include <assert.h>
22980 #endif
22981
22982 #undef $ac_func
22983
22984 /* Override any GCC internal prototype to avoid an error.
22985    Use char because int might match the return type of a GCC
22986    builtin and then its argument prototype would still apply.  */
22987 #ifdef __cplusplus
22988 extern "C"
22989 #endif
22990 char $ac_func ();
22991 /* The GNU C library defines this for functions which it implements
22992     to always fail with ENOSYS.  Some functions are actually named
22993     something starting with __ and the normal name is an alias.  */
22994 #if defined __stub_$ac_func || defined __stub___$ac_func
22995 choke me
22996 #endif
22997
22998 int
22999 main ()
23000 {
23001 return $ac_func ();
23002   ;
23003   return 0;
23004 }
23005 _ACEOF
23006 rm -f conftest.$ac_objext conftest$ac_exeext
23007 if { (ac_try="$ac_link"
23008 case "(($ac_try" in
23009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010   *) ac_try_echo=$ac_try;;
23011 esac
23012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23013 $as_echo "$ac_try_echo") >&5
23014   (eval "$ac_link") 2>conftest.er1
23015   ac_status=$?
23016   grep -v '^ *+' conftest.er1 >conftest.err
23017   rm -f conftest.er1
23018   cat conftest.err >&5
23019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); } && {
23021          test -z "$ac_c_werror_flag" ||
23022          test ! -s conftest.err
23023        } && test -s conftest$ac_exeext && {
23024          test "$cross_compiling" = yes ||
23025          $as_test_x conftest$ac_exeext
23026        }; then
23027   eval "$as_ac_var=yes"
23028 else
23029   $as_echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23031
23032         eval "$as_ac_var=no"
23033 fi
23034
23035 rm -rf conftest.dSYM
23036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23037       conftest$ac_exeext conftest.$ac_ext
23038 fi
23039 ac_res=`eval 'as_val=${'$as_ac_var'}
23040                  $as_echo "$as_val"'`
23041                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23042 $as_echo "$ac_res" >&6; }
23043 as_val=`eval 'as_val=${'$as_ac_var'}
23044                  $as_echo "$as_val"'`
23045    if test "x$as_val" = x""yes; then
23046   cat >>confdefs.h <<_ACEOF
23047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23048 _ACEOF
23049
23050 fi
23051 done
23052
23053
23054
23055 for ac_func in append_history history_truncate_file
23056 do
23057 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23058 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23059 $as_echo_n "checking for $ac_func... " >&6; }
23060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23061   $as_echo_n "(cached) " >&6
23062 else
23063   cat >conftest.$ac_ext <<_ACEOF
23064 /* confdefs.h.  */
23065 _ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h.  */
23069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23071 #define $ac_func innocuous_$ac_func
23072
23073 /* System header to define __stub macros and hopefully few prototypes,
23074     which can conflict with char $ac_func (); below.
23075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23076     <limits.h> exists even on freestanding compilers.  */
23077
23078 #ifdef __STDC__
23079 # include <limits.h>
23080 #else
23081 # include <assert.h>
23082 #endif
23083
23084 #undef $ac_func
23085
23086 /* Override any GCC internal prototype to avoid an error.
23087    Use char because int might match the return type of a GCC
23088    builtin and then its argument prototype would still apply.  */
23089 #ifdef __cplusplus
23090 extern "C"
23091 #endif
23092 char $ac_func ();
23093 /* The GNU C library defines this for functions which it implements
23094     to always fail with ENOSYS.  Some functions are actually named
23095     something starting with __ and the normal name is an alias.  */
23096 #if defined __stub_$ac_func || defined __stub___$ac_func
23097 choke me
23098 #endif
23099
23100 int
23101 main ()
23102 {
23103 return $ac_func ();
23104   ;
23105   return 0;
23106 }
23107 _ACEOF
23108 rm -f conftest.$ac_objext conftest$ac_exeext
23109 if { (ac_try="$ac_link"
23110 case "(($ac_try" in
23111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23112   *) ac_try_echo=$ac_try;;
23113 esac
23114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23115 $as_echo "$ac_try_echo") >&5
23116   (eval "$ac_link") 2>conftest.er1
23117   ac_status=$?
23118   grep -v '^ *+' conftest.er1 >conftest.err
23119   rm -f conftest.er1
23120   cat conftest.err >&5
23121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122   (exit $ac_status); } && {
23123          test -z "$ac_c_werror_flag" ||
23124          test ! -s conftest.err
23125        } && test -s conftest$ac_exeext && {
23126          test "$cross_compiling" = yes ||
23127          $as_test_x conftest$ac_exeext
23128        }; then
23129   eval "$as_ac_var=yes"
23130 else
23131   $as_echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23133
23134         eval "$as_ac_var=no"
23135 fi
23136
23137 rm -rf conftest.dSYM
23138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23139       conftest$ac_exeext conftest.$ac_ext
23140 fi
23141 ac_res=`eval 'as_val=${'$as_ac_var'}
23142                  $as_echo "$as_val"'`
23143                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23144 $as_echo "$ac_res" >&6; }
23145 as_val=`eval 'as_val=${'$as_ac_var'}
23146                  $as_echo "$as_val"'`
23147    if test "x$as_val" = x""yes; then
23148   cat >>confdefs.h <<_ACEOF
23149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23150 _ACEOF
23151
23152 fi
23153 done
23154
23155 fi
23156
23157
23158 #
23159 # Pthreads
23160 #
23161 # For each platform, we need to know about any special compile and link
23162 # libraries, and whether the normal C function names are thread-safe.
23163 # See the comment at the top of src/port/thread.c for more information.
23164 # WIN32 doesn't need the pthread tests;  it always uses threads
23165 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
23166
23167
23168
23169 ac_ext=c
23170 ac_cpp='$CPP $CPPFLAGS'
23171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23174
23175 acx_pthread_ok=no
23176
23177 # We used to check for pthread.h first, but this fails if pthread.h
23178 # requires special compiler flags (e.g. on True64 or Sequent).
23179 # It gets checked for in the link test anyway.
23180
23181 # First of all, check if the user has set any of the PTHREAD_LIBS,
23182 # etcetera environment variables, and if threads linking works using
23183 # them:
23184 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23185         save_CFLAGS="$CFLAGS"
23186         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23187         save_LIBS="$LIBS"
23188         LIBS="$PTHREAD_LIBS $LIBS"
23189         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23190 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23191         cat >conftest.$ac_ext <<_ACEOF
23192 /* confdefs.h.  */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h.  */
23197
23198 /* Override any GCC internal prototype to avoid an error.
23199    Use char because int might match the return type of a GCC
23200    builtin and then its argument prototype would still apply.  */
23201 #ifdef __cplusplus
23202 extern "C"
23203 #endif
23204 char pthread_join ();
23205 int
23206 main ()
23207 {
23208 return pthread_join ();
23209   ;
23210   return 0;
23211 }
23212 _ACEOF
23213 rm -f conftest.$ac_objext conftest$ac_exeext
23214 if { (ac_try="$ac_link"
23215 case "(($ac_try" in
23216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217   *) ac_try_echo=$ac_try;;
23218 esac
23219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23220 $as_echo "$ac_try_echo") >&5
23221   (eval "$ac_link") 2>conftest.er1
23222   ac_status=$?
23223   grep -v '^ *+' conftest.er1 >conftest.err
23224   rm -f conftest.er1
23225   cat conftest.err >&5
23226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); } && {
23228          test -z "$ac_c_werror_flag" ||
23229          test ! -s conftest.err
23230        } && test -s conftest$ac_exeext && {
23231          test "$cross_compiling" = yes ||
23232          $as_test_x conftest$ac_exeext
23233        }; then
23234   acx_pthread_ok=yes
23235 else
23236   $as_echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239
23240 fi
23241
23242 rm -rf conftest.dSYM
23243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23244       conftest$ac_exeext conftest.$ac_ext
23245         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23246 $as_echo "$acx_pthread_ok" >&6; }
23247         if test x"$acx_pthread_ok" = xno; then
23248                 PTHREAD_LIBS=""
23249                 PTHREAD_CFLAGS=""
23250         fi
23251         LIBS="$save_LIBS"
23252         CFLAGS="$save_CFLAGS"
23253 fi
23254
23255 # We must check for the threads library under a number of different
23256 # names; the ordering is very important because some systems
23257 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23258 # libraries is broken (non-POSIX).
23259
23260 # Create a list of thread flags to try.  Items starting with a "-" are
23261 # C compiler flags, and other items are library names, except for "none"
23262 # which indicates that we try without any flags at all, and "pthread-config"
23263 # which is a program returning the flags for the Pth emulation library.
23264
23265 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
23266
23267 # The ordering *is* (sometimes) important.  Some notes on the
23268 # individual items follow:
23269
23270 # pthreads: AIX (must check this before -lpthread)
23271 # none: in case threads are in libc; should be tried before -Kthread and
23272 #       other compiler flags to prevent continual compiler warnings
23273 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23274 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23275 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23276 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23277 # -pthreads: Solaris/gcc
23278 # -mthreads: Mingw32/gcc, Lynx/gcc
23279 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23280 #      doesn't hurt to check since this sometimes defines pthreads too;
23281 #      also defines -D_REENTRANT)
23282 # pthread: Linux, etcetera
23283 # --thread-safe: KAI C++
23284 # pthread-config: use pthread-config program (for GNU Pth library)
23285
23286 case "${host_cpu}-${host_os}" in
23287         *solaris*)
23288
23289         # On Solaris (at least, for some versions), libc contains stubbed
23290         # (non-functional) versions of the pthreads routines, so link-based
23291         # tests will erroneously succeed.  (We need to link with -pthread or
23292         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
23293         # a function called by this macro, so we could check for that, but
23294         # who knows whether they'll stub that too in a future libc.)  So,
23295         # we'll just look for -pthreads and -lpthread first:
23296
23297         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
23298         ;;
23299 esac
23300
23301 if test x"$acx_pthread_ok" = xno; then
23302 for flag in $acx_pthread_flags; do
23303
23304         tryPTHREAD_CFLAGS=""
23305         tryPTHREAD_LIBS=""
23306         case $flag in
23307                 none)
23308                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23309 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
23310                 ;;
23311
23312                 -*)
23313                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23314 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
23315                 tryPTHREAD_CFLAGS="$flag"
23316                 ;;
23317
23318                 pthread-config)
23319                 # skip this if we already have flags defined, for PostgreSQL
23320                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
23321                 # Extract the first word of "pthread-config", so it can be a program name with args.
23322 set dummy pthread-config; ac_word=$2
23323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23324 $as_echo_n "checking for $ac_word... " >&6; }
23325 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23326   $as_echo_n "(cached) " >&6
23327 else
23328   if test -n "$acx_pthread_config"; then
23329   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23330 else
23331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23332 for as_dir in $PATH
23333 do
23334   IFS=$as_save_IFS
23335   test -z "$as_dir" && as_dir=.
23336   for ac_exec_ext in '' $ac_executable_extensions; do
23337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23338     ac_cv_prog_acx_pthread_config="yes"
23339     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23340     break 2
23341   fi
23342 done
23343 done
23344 IFS=$as_save_IFS
23345
23346   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23347 fi
23348 fi
23349 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23350 if test -n "$acx_pthread_config"; then
23351   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23352 $as_echo "$acx_pthread_config" >&6; }
23353 else
23354   { $as_echo "$as_me:$LINENO: result: no" >&5
23355 $as_echo "no" >&6; }
23356 fi
23357
23358
23359                 if test x"$acx_pthread_config" = xno; then continue; fi
23360                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
23361                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23362                 ;;
23363
23364                 *)
23365                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23366 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23367                 tryPTHREAD_LIBS="-l$flag"
23368                 ;;
23369         esac
23370
23371         save_LIBS="$LIBS"
23372         save_CFLAGS="$CFLAGS"
23373         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
23374         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23375
23376         # Check for various functions.  We must include pthread.h,
23377         # since some functions may be macros.  (On the Sequent, we
23378         # need a special flag -Kthread to make this header compile.)
23379         # We check for pthread_join because it is in -lpthread on IRIX
23380         # while pthread_create is in libc.  We check for pthread_attr_init
23381         # due to DEC craziness with -lpthreads.  We check for
23382         # pthread_cleanup_push because it is one of the few pthread
23383         # functions on Solaris that doesn't have a non-functional libc stub.
23384         # We try pthread_create on general principles.
23385         cat >conftest.$ac_ext <<_ACEOF
23386 /* confdefs.h.  */
23387 _ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h.  */
23391 #include <pthread.h>
23392 int
23393 main ()
23394 {
23395 pthread_t th; pthread_join(th, 0);
23396                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23397                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23398   ;
23399   return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (ac_try="$ac_link"
23404 case "(($ac_try" in
23405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406   *) ac_try_echo=$ac_try;;
23407 esac
23408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23409 $as_echo "$ac_try_echo") >&5
23410   (eval "$ac_link") 2>conftest.er1
23411   ac_status=$?
23412   grep -v '^ *+' conftest.er1 >conftest.err
23413   rm -f conftest.er1
23414   cat conftest.err >&5
23415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); } && {
23417          test -z "$ac_c_werror_flag" ||
23418          test ! -s conftest.err
23419        } && test -s conftest$ac_exeext && {
23420          test "$cross_compiling" = yes ||
23421          $as_test_x conftest$ac_exeext
23422        }; then
23423   acx_pthread_ok=yes
23424 else
23425   $as_echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23427
23428         acx_pthread_ok=no
23429 fi
23430
23431 rm -rf conftest.dSYM
23432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23433       conftest$ac_exeext conftest.$ac_ext
23434
23435         if test "x$acx_pthread_ok" = xyes; then
23436             # Don't use options that are ignored by the compiler.
23437             # We find them by checking stderror.
23438             cat >conftest.$ac_ext <<_ACEOF
23439 int
23440 main (int argc, char **argv)
23441 {
23442   (void) argc;
23443   (void) argv;
23444   return 0;
23445 }
23446 _ACEOF
23447             rm -f conftest.$ac_objext conftest$ac_exeext
23448             # Check both linking and compiling, because they might tolerate different options.
23449             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23450                 # we continue with more flags because Linux needs -lpthread
23451                 # for libpq builds on PostgreSQL.  The test above only
23452                 # tests for building binaries, not shared libraries.
23453                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23454                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23455             else   acx_pthread_ok=no
23456             fi
23457         fi
23458
23459         LIBS="$save_LIBS"
23460         CFLAGS="$save_CFLAGS"
23461
23462         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23463 $as_echo "$acx_pthread_ok" >&6; }
23464 done
23465 fi
23466
23467 # Various other checks:
23468 if test "x$acx_pthread_ok" = xyes; then
23469         save_LIBS="$LIBS"
23470         LIBS="$PTHREAD_LIBS $LIBS"
23471         save_CFLAGS="$CFLAGS"
23472         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23473
23474         # Detect AIX lossage: threads are created detached by default
23475         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23476         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23477 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23478         cat >conftest.$ac_ext <<_ACEOF
23479 /* confdefs.h.  */
23480 _ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h.  */
23484 #include <pthread.h>
23485 int
23486 main ()
23487 {
23488 int attr=PTHREAD_CREATE_JOINABLE;
23489   ;
23490   return 0;
23491 }
23492 _ACEOF
23493 rm -f conftest.$ac_objext conftest$ac_exeext
23494 if { (ac_try="$ac_link"
23495 case "(($ac_try" in
23496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497   *) ac_try_echo=$ac_try;;
23498 esac
23499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23500 $as_echo "$ac_try_echo") >&5
23501   (eval "$ac_link") 2>conftest.er1
23502   ac_status=$?
23503   grep -v '^ *+' conftest.er1 >conftest.err
23504   rm -f conftest.er1
23505   cat conftest.err >&5
23506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); } && {
23508          test -z "$ac_c_werror_flag" ||
23509          test ! -s conftest.err
23510        } && test -s conftest$ac_exeext && {
23511          test "$cross_compiling" = yes ||
23512          $as_test_x conftest$ac_exeext
23513        }; then
23514   ok=PTHREAD_CREATE_JOINABLE
23515 else
23516   $as_echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23518
23519         ok=unknown
23520 fi
23521
23522 rm -rf conftest.dSYM
23523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23524       conftest$ac_exeext conftest.$ac_ext
23525         if test x"$ok" = xunknown; then
23526                 cat >conftest.$ac_ext <<_ACEOF
23527 /* confdefs.h.  */
23528 _ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h.  */
23532 #include <pthread.h>
23533 int
23534 main ()
23535 {
23536 int attr=PTHREAD_CREATE_UNDETACHED;
23537   ;
23538   return 0;
23539 }
23540 _ACEOF
23541 rm -f conftest.$ac_objext conftest$ac_exeext
23542 if { (ac_try="$ac_link"
23543 case "(($ac_try" in
23544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545   *) ac_try_echo=$ac_try;;
23546 esac
23547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23548 $as_echo "$ac_try_echo") >&5
23549   (eval "$ac_link") 2>conftest.er1
23550   ac_status=$?
23551   grep -v '^ *+' conftest.er1 >conftest.err
23552   rm -f conftest.er1
23553   cat conftest.err >&5
23554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555   (exit $ac_status); } && {
23556          test -z "$ac_c_werror_flag" ||
23557          test ! -s conftest.err
23558        } && test -s conftest$ac_exeext && {
23559          test "$cross_compiling" = yes ||
23560          $as_test_x conftest$ac_exeext
23561        }; then
23562   ok=PTHREAD_CREATE_UNDETACHED
23563 else
23564   $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23566
23567         ok=unknown
23568 fi
23569
23570 rm -rf conftest.dSYM
23571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23572       conftest$ac_exeext conftest.$ac_ext
23573         fi
23574         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23575
23576 cat >>confdefs.h <<\_ACEOF
23577 #define PTHREAD_CREATE_JOINABLE $ok
23578 _ACEOF
23579
23580         fi
23581         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23582 $as_echo "${ok}" >&6; }
23583         if test x"$ok" = xunknown; then
23584                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23585 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23586         fi
23587
23588         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23589 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23590         flag=no
23591 # We always add these in PostgreSQL
23592 #       case "${host_cpu}-${host_os}" in
23593 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23594 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23595 #       esac
23596         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23597 $as_echo "${flag}" >&6; }
23598         if test "x$flag" != xno; then
23599                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23600         fi
23601
23602         LIBS="$save_LIBS"
23603         CFLAGS="$save_CFLAGS"
23604
23605 # Supporting cc_r would require a special CC in all places that
23606 # use libpq, and that is ugly, so we don't do it.  Users can still
23607 # define their compiler as cc_r to do thread builds of everything.
23608         # More AIX lossage: must compile with cc_r
23609         # Extract the first word of "cc_r", so it can be a program name with args.
23610 set dummy cc_r; ac_word=$2
23611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23612 $as_echo_n "checking for $ac_word... " >&6; }
23613 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23614   $as_echo_n "(cached) " >&6
23615 else
23616   if test -n "$PTHREAD_CC"; then
23617   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23618 else
23619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23620 for as_dir in $PATH
23621 do
23622   IFS=$as_save_IFS
23623   test -z "$as_dir" && as_dir=.
23624   for ac_exec_ext in '' $ac_executable_extensions; do
23625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23626     ac_cv_prog_PTHREAD_CC="cc_r"
23627     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23628     break 2
23629   fi
23630 done
23631 done
23632 IFS=$as_save_IFS
23633
23634   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23635 fi
23636 fi
23637 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23638 if test -n "$PTHREAD_CC"; then
23639   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23640 $as_echo "$PTHREAD_CC" >&6; }
23641 else
23642   { $as_echo "$as_me:$LINENO: result: no" >&5
23643 $as_echo "no" >&6; }
23644 fi
23645
23646
23647 else
23648         PTHREAD_CC="$CC"
23649 fi
23650
23651
23652
23653
23654
23655 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23656 if test x"$acx_pthread_ok" = xyes; then
23657
23658 cat >>confdefs.h <<\_ACEOF
23659 #define HAVE_PTHREAD 1
23660 _ACEOF
23661
23662         :
23663 else
23664         acx_pthread_ok=no
23665
23666 fi
23667 ac_ext=c
23668 ac_cpp='$CPP $CPPFLAGS'
23669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23672
23673         # set thread flags
23674
23675 # Some platforms use these, so just define them.  They can't hurt if they
23676 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23677 # enables 5-arg getpwuid_r, among other things.
23678 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23679
23680
23681 # At this point, we don't want to muck with the compiler name for threading.
23682 # Let's see who fails, perhaps AIX.  2004-04-23
23683 if test "$PTHREAD_CC" != "$CC"; then
23684 { { $as_echo "$as_me:$LINENO: error:
23685 PostgreSQL does not support platforms that require a special compiler
23686 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23687 $as_echo "$as_me: error:
23688 PostgreSQL does not support platforms that require a special compiler
23689 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23690    { (exit 1); exit 1; }; }
23691 fi
23692
23693 # Check for *_r functions
23694 _CFLAGS="$CFLAGS"
23695 _LIBS="$LIBS"
23696 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23697 LIBS="$LIBS $PTHREAD_LIBS"
23698
23699 if test "$PORTNAME" != "win32"; then
23700 if test "${ac_cv_header_pthread_h+set}" = set; then
23701   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23702 $as_echo_n "checking for pthread.h... " >&6; }
23703 if test "${ac_cv_header_pthread_h+set}" = set; then
23704   $as_echo_n "(cached) " >&6
23705 fi
23706 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23707 $as_echo "$ac_cv_header_pthread_h" >&6; }
23708 else
23709   # Is the header compilable?
23710 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23711 $as_echo_n "checking pthread.h usability... " >&6; }
23712 cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718 $ac_includes_default
23719 #include <pthread.h>
23720 _ACEOF
23721 rm -f conftest.$ac_objext
23722 if { (ac_try="$ac_compile"
23723 case "(($ac_try" in
23724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725   *) ac_try_echo=$ac_try;;
23726 esac
23727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23728 $as_echo "$ac_try_echo") >&5
23729   (eval "$ac_compile") 2>conftest.er1
23730   ac_status=$?
23731   grep -v '^ *+' conftest.er1 >conftest.err
23732   rm -f conftest.er1
23733   cat conftest.err >&5
23734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } && {
23736          test -z "$ac_c_werror_flag" ||
23737          test ! -s conftest.err
23738        } && test -s conftest.$ac_objext; then
23739   ac_header_compiler=yes
23740 else
23741   $as_echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23743
23744         ac_header_compiler=no
23745 fi
23746
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23749 $as_echo "$ac_header_compiler" >&6; }
23750
23751 # Is the header present?
23752 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23753 $as_echo_n "checking pthread.h presence... " >&6; }
23754 cat >conftest.$ac_ext <<_ACEOF
23755 /* confdefs.h.  */
23756 _ACEOF
23757 cat confdefs.h >>conftest.$ac_ext
23758 cat >>conftest.$ac_ext <<_ACEOF
23759 /* end confdefs.h.  */
23760 #include <pthread.h>
23761 _ACEOF
23762 if { (ac_try="$ac_cpp conftest.$ac_ext"
23763 case "(($ac_try" in
23764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23765   *) ac_try_echo=$ac_try;;
23766 esac
23767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23768 $as_echo "$ac_try_echo") >&5
23769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23770   ac_status=$?
23771   grep -v '^ *+' conftest.er1 >conftest.err
23772   rm -f conftest.er1
23773   cat conftest.err >&5
23774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); } >/dev/null && {
23776          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23777          test ! -s conftest.err
23778        }; then
23779   ac_header_preproc=yes
23780 else
23781   $as_echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23783
23784   ac_header_preproc=no
23785 fi
23786
23787 rm -f conftest.err conftest.$ac_ext
23788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23789 $as_echo "$ac_header_preproc" >&6; }
23790
23791 # So?  What about this header?
23792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23793   yes:no: )
23794     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23795 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23796     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23797 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23798     ac_header_preproc=yes
23799     ;;
23800   no:yes:* )
23801     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23802 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23803     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23804 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23805     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23806 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23807     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23808 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23809     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23810 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23811     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23812 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23813     ( cat <<\_ASBOX
23814 ## ---------------------------------------- ##
23815 ## Report this to pgsql-bugs@postgresql.org ##
23816 ## ---------------------------------------- ##
23817 _ASBOX
23818      ) | sed "s/^/$as_me: WARNING:     /" >&2
23819     ;;
23820 esac
23821 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23822 $as_echo_n "checking for pthread.h... " >&6; }
23823 if test "${ac_cv_header_pthread_h+set}" = set; then
23824   $as_echo_n "(cached) " >&6
23825 else
23826   ac_cv_header_pthread_h=$ac_header_preproc
23827 fi
23828 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23829 $as_echo "$ac_cv_header_pthread_h" >&6; }
23830
23831 fi
23832 if test "x$ac_cv_header_pthread_h" = x""yes; then
23833   :
23834 else
23835   { { $as_echo "$as_me:$LINENO: error:
23836 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
23837 $as_echo "$as_me: error:
23838 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
23839    { (exit 1); exit 1; }; }
23840 fi
23841
23842
23843 fi
23844
23845
23846
23847
23848 for ac_func in strerror_r getpwuid_r gethostbyname_r
23849 do
23850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23851 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23852 $as_echo_n "checking for $ac_func... " >&6; }
23853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23854   $as_echo_n "(cached) " >&6
23855 else
23856   cat >conftest.$ac_ext <<_ACEOF
23857 /* confdefs.h.  */
23858 _ACEOF
23859 cat confdefs.h >>conftest.$ac_ext
23860 cat >>conftest.$ac_ext <<_ACEOF
23861 /* end confdefs.h.  */
23862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23864 #define $ac_func innocuous_$ac_func
23865
23866 /* System header to define __stub macros and hopefully few prototypes,
23867     which can conflict with char $ac_func (); below.
23868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23869     <limits.h> exists even on freestanding compilers.  */
23870
23871 #ifdef __STDC__
23872 # include <limits.h>
23873 #else
23874 # include <assert.h>
23875 #endif
23876
23877 #undef $ac_func
23878
23879 /* Override any GCC internal prototype to avoid an error.
23880    Use char because int might match the return type of a GCC
23881    builtin and then its argument prototype would still apply.  */
23882 #ifdef __cplusplus
23883 extern "C"
23884 #endif
23885 char $ac_func ();
23886 /* The GNU C library defines this for functions which it implements
23887     to always fail with ENOSYS.  Some functions are actually named
23888     something starting with __ and the normal name is an alias.  */
23889 #if defined __stub_$ac_func || defined __stub___$ac_func
23890 choke me
23891 #endif
23892
23893 int
23894 main ()
23895 {
23896 return $ac_func ();
23897   ;
23898   return 0;
23899 }
23900 _ACEOF
23901 rm -f conftest.$ac_objext conftest$ac_exeext
23902 if { (ac_try="$ac_link"
23903 case "(($ac_try" in
23904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905   *) ac_try_echo=$ac_try;;
23906 esac
23907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23908 $as_echo "$ac_try_echo") >&5
23909   (eval "$ac_link") 2>conftest.er1
23910   ac_status=$?
23911   grep -v '^ *+' conftest.er1 >conftest.err
23912   rm -f conftest.er1
23913   cat conftest.err >&5
23914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915   (exit $ac_status); } && {
23916          test -z "$ac_c_werror_flag" ||
23917          test ! -s conftest.err
23918        } && test -s conftest$ac_exeext && {
23919          test "$cross_compiling" = yes ||
23920          $as_test_x conftest$ac_exeext
23921        }; then
23922   eval "$as_ac_var=yes"
23923 else
23924   $as_echo "$as_me: failed program was:" >&5
23925 sed 's/^/| /' conftest.$ac_ext >&5
23926
23927         eval "$as_ac_var=no"
23928 fi
23929
23930 rm -rf conftest.dSYM
23931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23932       conftest$ac_exeext conftest.$ac_ext
23933 fi
23934 ac_res=`eval 'as_val=${'$as_ac_var'}
23935                  $as_echo "$as_val"'`
23936                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23937 $as_echo "$ac_res" >&6; }
23938 as_val=`eval 'as_val=${'$as_ac_var'}
23939                  $as_echo "$as_val"'`
23940    if test "x$as_val" = x""yes; then
23941   cat >>confdefs.h <<_ACEOF
23942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23943 _ACEOF
23944
23945 fi
23946 done
23947
23948
23949 # Do test here with the proper thread flags
23950 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23951 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23952 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23953   $as_echo_n "(cached) " >&6
23954 else
23955   cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h.  */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h.  */
23961 #include <sys/types.h>
23962 #include <pwd.h>
23963 int
23964 main ()
23965 {
23966 uid_t uid;
23967 struct passwd *space;
23968 char *buf;
23969 size_t bufsize;
23970 struct passwd **result;
23971 getpwuid_r(uid, space, buf, bufsize, result);
23972   ;
23973   return 0;
23974 }
23975 _ACEOF
23976 rm -f conftest.$ac_objext
23977 if { (ac_try="$ac_compile"
23978 case "(($ac_try" in
23979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980   *) ac_try_echo=$ac_try;;
23981 esac
23982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23983 $as_echo "$ac_try_echo") >&5
23984   (eval "$ac_compile") 2>conftest.er1
23985   ac_status=$?
23986   grep -v '^ *+' conftest.er1 >conftest.err
23987   rm -f conftest.er1
23988   cat conftest.err >&5
23989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); } && {
23991          test -z "$ac_c_werror_flag" ||
23992          test ! -s conftest.err
23993        } && test -s conftest.$ac_objext; then
23994   pgac_cv_func_getpwuid_r_5arg=yes
23995 else
23996   $as_echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.$ac_ext >&5
23998
23999         pgac_cv_func_getpwuid_r_5arg=no
24000 fi
24001
24002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24003 fi
24004 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
24005 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
24006 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
24007
24008 cat >>confdefs.h <<\_ACEOF
24009 #define GETPWUID_R_5ARG 1
24010 _ACEOF
24011
24012 fi
24013
24014 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
24015 $as_echo_n "checking whether strerror_r returns int... " >&6; }
24016 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
24017   $as_echo_n "(cached) " >&6
24018 else
24019   cat >conftest.$ac_ext <<_ACEOF
24020 /* confdefs.h.  */
24021 _ACEOF
24022 cat confdefs.h >>conftest.$ac_ext
24023 cat >>conftest.$ac_ext <<_ACEOF
24024 /* end confdefs.h.  */
24025 #include <string.h>
24026 int
24027 main ()
24028 {
24029 #ifndef _AIX
24030 int strerror_r(int, char *, size_t);
24031 #else
24032 /* Older AIX has 'int' for the third argument so we don't test the args. */
24033 int strerror_r();
24034 #endif
24035   ;
24036   return 0;
24037 }
24038 _ACEOF
24039 rm -f conftest.$ac_objext
24040 if { (ac_try="$ac_compile"
24041 case "(($ac_try" in
24042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043   *) ac_try_echo=$ac_try;;
24044 esac
24045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24046 $as_echo "$ac_try_echo") >&5
24047   (eval "$ac_compile") 2>conftest.er1
24048   ac_status=$?
24049   grep -v '^ *+' conftest.er1 >conftest.err
24050   rm -f conftest.er1
24051   cat conftest.err >&5
24052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); } && {
24054          test -z "$ac_c_werror_flag" ||
24055          test ! -s conftest.err
24056        } && test -s conftest.$ac_objext; then
24057   pgac_cv_func_strerror_r_int=yes
24058 else
24059   $as_echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24061
24062         pgac_cv_func_strerror_r_int=no
24063 fi
24064
24065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24066 fi
24067 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
24068 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
24069 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
24070
24071 cat >>confdefs.h <<\_ACEOF
24072 #define STRERROR_R_INT 1
24073 _ACEOF
24074
24075 fi
24076
24077
24078 CFLAGS="$_CFLAGS"
24079 LIBS="$_LIBS"
24080
24081 else
24082 # do not use values from template file
24083 PTHREAD_CFLAGS=
24084 PTHREAD_LIBS=
24085 fi
24086
24087
24088
24089
24090
24091 # We can test for libldap_r only after we know PTHREAD_LIBS
24092 if test "$with_ldap" = yes ; then
24093   _LIBS="$LIBS"
24094   if test "$PORTNAME" != "win32"; then
24095
24096 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
24097 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
24098 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
24099   $as_echo_n "(cached) " >&6
24100 else
24101   ac_check_lib_save_LIBS=$LIBS
24102 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
24103 cat >conftest.$ac_ext <<_ACEOF
24104 /* confdefs.h.  */
24105 _ACEOF
24106 cat confdefs.h >>conftest.$ac_ext
24107 cat >>conftest.$ac_ext <<_ACEOF
24108 /* end confdefs.h.  */
24109
24110 /* Override any GCC internal prototype to avoid an error.
24111    Use char because int might match the return type of a GCC
24112    builtin and then its argument prototype would still apply.  */
24113 #ifdef __cplusplus
24114 extern "C"
24115 #endif
24116 char ldap_bind ();
24117 int
24118 main ()
24119 {
24120 return ldap_bind ();
24121   ;
24122   return 0;
24123 }
24124 _ACEOF
24125 rm -f conftest.$ac_objext conftest$ac_exeext
24126 if { (ac_try="$ac_link"
24127 case "(($ac_try" in
24128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129   *) ac_try_echo=$ac_try;;
24130 esac
24131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24132 $as_echo "$ac_try_echo") >&5
24133   (eval "$ac_link") 2>conftest.er1
24134   ac_status=$?
24135   grep -v '^ *+' conftest.er1 >conftest.err
24136   rm -f conftest.er1
24137   cat conftest.err >&5
24138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139   (exit $ac_status); } && {
24140          test -z "$ac_c_werror_flag" ||
24141          test ! -s conftest.err
24142        } && test -s conftest$ac_exeext && {
24143          test "$cross_compiling" = yes ||
24144          $as_test_x conftest$ac_exeext
24145        }; then
24146   ac_cv_lib_ldap_ldap_bind=yes
24147 else
24148   $as_echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24150
24151         ac_cv_lib_ldap_ldap_bind=no
24152 fi
24153
24154 rm -rf conftest.dSYM
24155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24156       conftest$ac_exeext conftest.$ac_ext
24157 LIBS=$ac_check_lib_save_LIBS
24158 fi
24159 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
24160 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
24161 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
24162   cat >>confdefs.h <<_ACEOF
24163 #define HAVE_LIBLDAP 1
24164 _ACEOF
24165
24166   LIBS="-lldap $LIBS"
24167
24168 else
24169   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
24170 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
24171    { (exit 1); exit 1; }; }
24172 fi
24173
24174     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
24175     if test "$enable_thread_safety" = yes; then
24176       # on some platforms ldap_r fails to link without PTHREAD_LIBS
24177
24178 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
24179 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
24180 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
24181   $as_echo_n "(cached) " >&6
24182 else
24183   ac_check_lib_save_LIBS=$LIBS
24184 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
24185 cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h.  */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h.  */
24191
24192 /* Override any GCC internal prototype to avoid an error.
24193    Use char because int might match the return type of a GCC
24194    builtin and then its argument prototype would still apply.  */
24195 #ifdef __cplusplus
24196 extern "C"
24197 #endif
24198 char ldap_simple_bind ();
24199 int
24200 main ()
24201 {
24202 return ldap_simple_bind ();
24203   ;
24204   return 0;
24205 }
24206 _ACEOF
24207 rm -f conftest.$ac_objext conftest$ac_exeext
24208 if { (ac_try="$ac_link"
24209 case "(($ac_try" in
24210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24211   *) ac_try_echo=$ac_try;;
24212 esac
24213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24214 $as_echo "$ac_try_echo") >&5
24215   (eval "$ac_link") 2>conftest.er1
24216   ac_status=$?
24217   grep -v '^ *+' conftest.er1 >conftest.err
24218   rm -f conftest.er1
24219   cat conftest.err >&5
24220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221   (exit $ac_status); } && {
24222          test -z "$ac_c_werror_flag" ||
24223          test ! -s conftest.err
24224        } && test -s conftest$ac_exeext && {
24225          test "$cross_compiling" = yes ||
24226          $as_test_x conftest$ac_exeext
24227        }; then
24228   ac_cv_lib_ldap_r_ldap_simple_bind=yes
24229 else
24230   $as_echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24232
24233         ac_cv_lib_ldap_r_ldap_simple_bind=no
24234 fi
24235
24236 rm -rf conftest.dSYM
24237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24238       conftest$ac_exeext conftest.$ac_ext
24239 LIBS=$ac_check_lib_save_LIBS
24240 fi
24241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
24242 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
24243 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
24244   cat >>confdefs.h <<_ACEOF
24245 #define HAVE_LIBLDAP_R 1
24246 _ACEOF
24247
24248   LIBS="-lldap_r $LIBS"
24249
24250 else
24251   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
24252 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
24253    { (exit 1); exit 1; }; }
24254 fi
24255
24256       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
24257     else
24258       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
24259     fi
24260   else
24261
24262 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
24263 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
24264 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
24265   $as_echo_n "(cached) " >&6
24266 else
24267   ac_check_lib_save_LIBS=$LIBS
24268 LIBS="-lwldap32  $LIBS"
24269 cat >conftest.$ac_ext <<_ACEOF
24270 /* confdefs.h.  */
24271 _ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h.  */
24275
24276 /* Override any GCC internal prototype to avoid an error.
24277    Use char because int might match the return type of a GCC
24278    builtin and then its argument prototype would still apply.  */
24279 #ifdef __cplusplus
24280 extern "C"
24281 #endif
24282 char ldap_bind ();
24283 int
24284 main ()
24285 {
24286 return ldap_bind ();
24287   ;
24288   return 0;
24289 }
24290 _ACEOF
24291 rm -f conftest.$ac_objext conftest$ac_exeext
24292 if { (ac_try="$ac_link"
24293 case "(($ac_try" in
24294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295   *) ac_try_echo=$ac_try;;
24296 esac
24297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24298 $as_echo "$ac_try_echo") >&5
24299   (eval "$ac_link") 2>conftest.er1
24300   ac_status=$?
24301   grep -v '^ *+' conftest.er1 >conftest.err
24302   rm -f conftest.er1
24303   cat conftest.err >&5
24304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305   (exit $ac_status); } && {
24306          test -z "$ac_c_werror_flag" ||
24307          test ! -s conftest.err
24308        } && test -s conftest$ac_exeext && {
24309          test "$cross_compiling" = yes ||
24310          $as_test_x conftest$ac_exeext
24311        }; then
24312   ac_cv_lib_wldap32_ldap_bind=yes
24313 else
24314   $as_echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24316
24317         ac_cv_lib_wldap32_ldap_bind=no
24318 fi
24319
24320 rm -rf conftest.dSYM
24321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24322       conftest$ac_exeext conftest.$ac_ext
24323 LIBS=$ac_check_lib_save_LIBS
24324 fi
24325 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
24326 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
24327 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
24328   cat >>confdefs.h <<_ACEOF
24329 #define HAVE_LIBWLDAP32 1
24330 _ACEOF
24331
24332   LIBS="-lwldap32 $LIBS"
24333
24334 else
24335   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
24336 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
24337    { (exit 1); exit 1; }; }
24338 fi
24339
24340     LDAP_LIBS_FE="-lwldap32"
24341     LDAP_LIBS_BE="-lwldap32"
24342   fi
24343   LIBS="$_LIBS"
24344 fi
24345
24346
24347
24348
24349 # This test makes sure that run tests work at all.  Sometimes a shared
24350 # library is found by the linker, but the runtime linker can't find it.
24351 # This check should come after all modifications of compiler or linker
24352 # variables, and before any other run tests.
24353 { $as_echo "$as_me:$LINENO: checking test program" >&5
24354 $as_echo_n "checking test program... " >&6; }
24355 if test "$cross_compiling" = yes; then
24356   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
24357 $as_echo "cross-compiling" >&6; }
24358 else
24359   cat >conftest.$ac_ext <<_ACEOF
24360 /* confdefs.h.  */
24361 _ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h.  */
24365 int main() { return 0; }
24366 _ACEOF
24367 rm -f conftest$ac_exeext
24368 if { (ac_try="$ac_link"
24369 case "(($ac_try" in
24370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371   *) ac_try_echo=$ac_try;;
24372 esac
24373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24374 $as_echo "$ac_try_echo") >&5
24375   (eval "$ac_link") 2>&5
24376   ac_status=$?
24377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24379   { (case "(($ac_try" in
24380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381   *) ac_try_echo=$ac_try;;
24382 esac
24383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24384 $as_echo "$ac_try_echo") >&5
24385   (eval "$ac_try") 2>&5
24386   ac_status=$?
24387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388   (exit $ac_status); }; }; then
24389   { $as_echo "$as_me:$LINENO: result: ok" >&5
24390 $as_echo "ok" >&6; }
24391 else
24392   $as_echo "$as_me: program exited with status $ac_status" >&5
24393 $as_echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24395
24396 ( exit $ac_status )
24397 { $as_echo "$as_me:$LINENO: result: failed" >&5
24398 $as_echo "failed" >&6; }
24399 { { $as_echo "$as_me:$LINENO: error:
24400 Could not execute a simple test program.  This may be a problem
24401 related to locating shared libraries.  Check the file 'config.log'
24402 for the exact reason." >&5
24403 $as_echo "$as_me: error:
24404 Could not execute a simple test program.  This may be a problem
24405 related to locating shared libraries.  Check the file 'config.log'
24406 for the exact reason." >&2;}
24407    { (exit 1); exit 1; }; }
24408 fi
24409 rm -rf conftest.dSYM
24410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24411 fi
24412
24413
24414
24415 # --------------------
24416 # Run tests below here
24417 # --------------------
24418
24419 # Force use of our snprintf if system's doesn't do arg control
24420 # See comment above at snprintf test for details.
24421 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24422   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24423 $as_echo_n "checking whether printf supports argument control... " >&6; }
24424 if test "${pgac_cv_printf_arg_control+set}" = set; then
24425   $as_echo_n "(cached) " >&6
24426 else
24427   if test "$cross_compiling" = yes; then
24428   pgac_cv_printf_arg_control=cross
24429 else
24430   cat >conftest.$ac_ext <<_ACEOF
24431 /* confdefs.h.  */
24432 _ACEOF
24433 cat confdefs.h >>conftest.$ac_ext
24434 cat >>conftest.$ac_ext <<_ACEOF
24435 /* end confdefs.h.  */
24436 #include <stdio.h>
24437 #include <string.h>
24438
24439 int main()
24440 {
24441   char buf[100];
24442
24443   /* can it swap arguments? */
24444   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24445   if (strcmp(buf, "4 3") != 0)
24446     return 1;
24447   return 0;
24448 }
24449 _ACEOF
24450 rm -f conftest$ac_exeext
24451 if { (ac_try="$ac_link"
24452 case "(($ac_try" in
24453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454   *) ac_try_echo=$ac_try;;
24455 esac
24456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24457 $as_echo "$ac_try_echo") >&5
24458   (eval "$ac_link") 2>&5
24459   ac_status=$?
24460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24462   { (case "(($ac_try" in
24463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24464   *) ac_try_echo=$ac_try;;
24465 esac
24466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24467 $as_echo "$ac_try_echo") >&5
24468   (eval "$ac_try") 2>&5
24469   ac_status=$?
24470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471   (exit $ac_status); }; }; then
24472   pgac_cv_printf_arg_control=yes
24473 else
24474   $as_echo "$as_me: program exited with status $ac_status" >&5
24475 $as_echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24477
24478 ( exit $ac_status )
24479 pgac_cv_printf_arg_control=no
24480 fi
24481 rm -rf conftest.dSYM
24482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24483 fi
24484
24485
24486
24487 fi
24488 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24489 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24490
24491   if test $pgac_cv_printf_arg_control != yes ; then
24492     pgac_need_repl_snprintf=yes
24493   fi
24494 fi
24495
24496
24497
24498
24499 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24500 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24501 if test "${pgac_cv_type_long_int_64+set}" = set; then
24502   $as_echo_n "(cached) " >&6
24503 else
24504   if test "$cross_compiling" = yes; then
24505   # If cross-compiling, check the size reported by the compiler and
24506 # trust that the arithmetic works.
24507 cat >conftest.$ac_ext <<_ACEOF
24508 /* confdefs.h.  */
24509 _ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h.  */
24513
24514 int
24515 main ()
24516 {
24517 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24518 test_array [0] = 0
24519
24520   ;
24521   return 0;
24522 }
24523 _ACEOF
24524 rm -f conftest.$ac_objext
24525 if { (ac_try="$ac_compile"
24526 case "(($ac_try" in
24527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528   *) ac_try_echo=$ac_try;;
24529 esac
24530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24531 $as_echo "$ac_try_echo") >&5
24532   (eval "$ac_compile") 2>conftest.er1
24533   ac_status=$?
24534   grep -v '^ *+' conftest.er1 >conftest.err
24535   rm -f conftest.er1
24536   cat conftest.err >&5
24537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); } && {
24539          test -z "$ac_c_werror_flag" ||
24540          test ! -s conftest.err
24541        } && test -s conftest.$ac_objext; then
24542   pgac_cv_type_long_int_64=yes
24543 else
24544   $as_echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24546
24547         pgac_cv_type_long_int_64=no
24548 fi
24549
24550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24551 else
24552   cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h.  */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h.  */
24558 typedef long int ac_int64;
24559
24560 /*
24561  * These are globals to discourage the compiler from folding all the
24562  * arithmetic tests down to compile-time constants.
24563  */
24564 ac_int64 a = 20000001;
24565 ac_int64 b = 40000005;
24566
24567 int does_int64_work()
24568 {
24569   ac_int64 c,d;
24570
24571   if (sizeof(ac_int64) != 8)
24572     return 0;                   /* definitely not the right size */
24573
24574   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24575   c = a * b;
24576   d = (c + b) / b;
24577   if (d != a+1)
24578     return 0;
24579   return 1;
24580 }
24581 main() {
24582   exit(! does_int64_work());
24583 }
24584 _ACEOF
24585 rm -f conftest$ac_exeext
24586 if { (ac_try="$ac_link"
24587 case "(($ac_try" in
24588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589   *) ac_try_echo=$ac_try;;
24590 esac
24591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24592 $as_echo "$ac_try_echo") >&5
24593   (eval "$ac_link") 2>&5
24594   ac_status=$?
24595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24604   ac_status=$?
24605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); }; }; then
24607   pgac_cv_type_long_int_64=yes
24608 else
24609   $as_echo "$as_me: program exited with status $ac_status" >&5
24610 $as_echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24612
24613 ( exit $ac_status )
24614 pgac_cv_type_long_int_64=no
24615 fi
24616 rm -rf conftest.dSYM
24617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24618 fi
24619
24620
24621 fi
24622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24623 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24624
24625 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24626 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24627
24628 cat >>confdefs.h <<\_ACEOF
24629 #define HAVE_LONG_INT_64 1
24630 _ACEOF
24631
24632 fi
24633
24634
24635 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24636   pg_int64_type="long int"
24637 else
24638   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24639 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24640 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24641   $as_echo_n "(cached) " >&6
24642 else
24643   if test "$cross_compiling" = yes; then
24644   # If cross-compiling, check the size reported by the compiler and
24645 # trust that the arithmetic works.
24646 cat >conftest.$ac_ext <<_ACEOF
24647 /* confdefs.h.  */
24648 _ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h.  */
24652
24653 int
24654 main ()
24655 {
24656 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24657 test_array [0] = 0
24658
24659   ;
24660   return 0;
24661 }
24662 _ACEOF
24663 rm -f conftest.$ac_objext
24664 if { (ac_try="$ac_compile"
24665 case "(($ac_try" in
24666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667   *) ac_try_echo=$ac_try;;
24668 esac
24669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24670 $as_echo "$ac_try_echo") >&5
24671   (eval "$ac_compile") 2>conftest.er1
24672   ac_status=$?
24673   grep -v '^ *+' conftest.er1 >conftest.err
24674   rm -f conftest.er1
24675   cat conftest.err >&5
24676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677   (exit $ac_status); } && {
24678          test -z "$ac_c_werror_flag" ||
24679          test ! -s conftest.err
24680        } && test -s conftest.$ac_objext; then
24681   pgac_cv_type_long_long_int_64=yes
24682 else
24683   $as_echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24685
24686         pgac_cv_type_long_long_int_64=no
24687 fi
24688
24689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24690 else
24691   cat >conftest.$ac_ext <<_ACEOF
24692 /* confdefs.h.  */
24693 _ACEOF
24694 cat confdefs.h >>conftest.$ac_ext
24695 cat >>conftest.$ac_ext <<_ACEOF
24696 /* end confdefs.h.  */
24697 typedef long long int ac_int64;
24698
24699 /*
24700  * These are globals to discourage the compiler from folding all the
24701  * arithmetic tests down to compile-time constants.
24702  */
24703 ac_int64 a = 20000001;
24704 ac_int64 b = 40000005;
24705
24706 int does_int64_work()
24707 {
24708   ac_int64 c,d;
24709
24710   if (sizeof(ac_int64) != 8)
24711     return 0;                   /* definitely not the right size */
24712
24713   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24714   c = a * b;
24715   d = (c + b) / b;
24716   if (d != a+1)
24717     return 0;
24718   return 1;
24719 }
24720 main() {
24721   exit(! does_int64_work());
24722 }
24723 _ACEOF
24724 rm -f conftest$ac_exeext
24725 if { (ac_try="$ac_link"
24726 case "(($ac_try" in
24727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728   *) ac_try_echo=$ac_try;;
24729 esac
24730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24731 $as_echo "$ac_try_echo") >&5
24732   (eval "$ac_link") 2>&5
24733   ac_status=$?
24734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24736   { (case "(($ac_try" in
24737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738   *) ac_try_echo=$ac_try;;
24739 esac
24740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24741 $as_echo "$ac_try_echo") >&5
24742   (eval "$ac_try") 2>&5
24743   ac_status=$?
24744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); }; }; then
24746   pgac_cv_type_long_long_int_64=yes
24747 else
24748   $as_echo "$as_me: program exited with status $ac_status" >&5
24749 $as_echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24751
24752 ( exit $ac_status )
24753 pgac_cv_type_long_long_int_64=no
24754 fi
24755 rm -rf conftest.dSYM
24756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24757 fi
24758
24759
24760 fi
24761 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24762 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24763
24764 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24765 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24766
24767 cat >>confdefs.h <<\_ACEOF
24768 #define HAVE_LONG_LONG_INT_64 1
24769 _ACEOF
24770
24771 fi
24772
24773   if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24774     pg_int64_type="long long int"
24775   else
24776     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24777 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24778    { (exit 1); exit 1; }; }
24779   fi
24780 fi
24781
24782
24783 cat >>confdefs.h <<_ACEOF
24784 #define PG_INT64_TYPE $pg_int64_type
24785 _ACEOF
24786
24787
24788
24789 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
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
24797 #define INT64CONST(x)  x##LL
24798 long long int foo = INT64CONST(0x1234567890123456);
24799
24800 int
24801 main ()
24802 {
24803
24804   ;
24805   return 0;
24806 }
24807 _ACEOF
24808 rm -f conftest.$ac_objext
24809 if { (ac_try="$ac_compile"
24810 case "(($ac_try" in
24811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812   *) ac_try_echo=$ac_try;;
24813 esac
24814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24815 $as_echo "$ac_try_echo") >&5
24816   (eval "$ac_compile") 2>conftest.er1
24817   ac_status=$?
24818   grep -v '^ *+' conftest.er1 >conftest.err
24819   rm -f conftest.er1
24820   cat conftest.err >&5
24821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822   (exit $ac_status); } && {
24823          test -z "$ac_c_werror_flag" ||
24824          test ! -s conftest.err
24825        } && test -s conftest.$ac_objext; then
24826
24827 cat >>confdefs.h <<\_ACEOF
24828 #define HAVE_LL_CONSTANTS 1
24829 _ACEOF
24830
24831 else
24832   $as_echo "$as_me: failed program was:" >&5
24833 sed 's/^/| /' conftest.$ac_ext >&5
24834
24835
24836 fi
24837
24838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24839 fi
24840
24841
24842 # If we found "long int" is 64 bits, assume snprintf handles it.  If
24843 # we found we need to use "long long int", better check.  We cope with
24844 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
24845 # work, fall back to our own snprintf emulation (which we know uses %lld).
24846
24847 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24848   if test $pgac_need_repl_snprintf = no; then
24849     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24850 $as_echo_n "checking snprintf format for long long int... " >&6; }
24851 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24852   $as_echo_n "(cached) " >&6
24853 else
24854   for pgac_format in '%lld' '%qd' '%I64d'; do
24855 if test "$cross_compiling" = yes; then
24856   pgac_cv_snprintf_long_long_int_format=cross; break
24857 else
24858   cat >conftest.$ac_ext <<_ACEOF
24859 /* confdefs.h.  */
24860 _ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h.  */
24864 #include <stdio.h>
24865 typedef long long int ac_int64;
24866 #define INT64_FORMAT "$pgac_format"
24867
24868 ac_int64 a = 20000001;
24869 ac_int64 b = 40000005;
24870
24871 int does_int64_snprintf_work()
24872 {
24873   ac_int64 c;
24874   char buf[100];
24875
24876   if (sizeof(ac_int64) != 8)
24877     return 0;                   /* doesn't look like the right size */
24878
24879   c = a * b;
24880   snprintf(buf, 100, INT64_FORMAT, c);
24881   if (strcmp(buf, "800000140000005") != 0)
24882     return 0;                   /* either multiply or snprintf is busted */
24883   return 1;
24884 }
24885 main() {
24886   exit(! does_int64_snprintf_work());
24887 }
24888 _ACEOF
24889 rm -f conftest$ac_exeext
24890 if { (ac_try="$ac_link"
24891 case "(($ac_try" in
24892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24893   *) ac_try_echo=$ac_try;;
24894 esac
24895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24896 $as_echo "$ac_try_echo") >&5
24897   (eval "$ac_link") 2>&5
24898   ac_status=$?
24899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24901   { (case "(($ac_try" in
24902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903   *) ac_try_echo=$ac_try;;
24904 esac
24905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24906 $as_echo "$ac_try_echo") >&5
24907   (eval "$ac_try") 2>&5
24908   ac_status=$?
24909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910   (exit $ac_status); }; }; then
24911   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24912 else
24913   $as_echo "$as_me: program exited with status $ac_status" >&5
24914 $as_echo "$as_me: failed program was:" >&5
24915 sed 's/^/| /' conftest.$ac_ext >&5
24916
24917 fi
24918 rm -rf conftest.dSYM
24919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24920 fi
24921
24922
24923 done
24924 fi
24925
24926 LONG_LONG_INT_FORMAT=''
24927
24928 case $pgac_cv_snprintf_long_long_int_format in
24929   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24930 $as_echo "cannot test (not on host machine)" >&6; };;
24931   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24932 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24933          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24934   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
24935 $as_echo "none" >&6; };;
24936 esac
24937     if test "$LONG_LONG_INT_FORMAT" = ""; then
24938       # Force usage of our own snprintf, since system snprintf is broken
24939       pgac_need_repl_snprintf=yes
24940       LONG_LONG_INT_FORMAT='%lld'
24941     fi
24942   else
24943     # Here if we previously decided we needed to use our own snprintf
24944     LONG_LONG_INT_FORMAT='%lld'
24945   fi
24946   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24947   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24948   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24949 else
24950   # Here if we are not using 'long long int' at all
24951   INT64_FORMAT='"%ld"'
24952   UINT64_FORMAT='"%lu"'
24953 fi
24954
24955
24956 cat >>confdefs.h <<_ACEOF
24957 #define INT64_FORMAT $INT64_FORMAT
24958 _ACEOF
24959
24960
24961
24962 cat >>confdefs.h <<_ACEOF
24963 #define UINT64_FORMAT $UINT64_FORMAT
24964 _ACEOF
24965
24966
24967 # Now we have checked all the reasons to replace snprintf
24968 if test $pgac_need_repl_snprintf = yes; then
24969
24970 cat >>confdefs.h <<\_ACEOF
24971 #define USE_REPL_SNPRINTF 1
24972 _ACEOF
24973
24974   case " $LIBOBJS " in
24975   *" snprintf.$ac_objext "* ) ;;
24976   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24977  ;;
24978 esac
24979
24980 fi
24981
24982 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24983 # The cast to long int works around a bug in the HP C Compiler
24984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24986 # This bug is HP SR number 8606223364.
24987 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24988 $as_echo_n "checking size of void *... " >&6; }
24989 if test "${ac_cv_sizeof_void_p+set}" = set; then
24990   $as_echo_n "(cached) " >&6
24991 else
24992   if test "$cross_compiling" = yes; then
24993   # Depending upon the size, compute the lo and hi bounds.
24994 cat >conftest.$ac_ext <<_ACEOF
24995 /* confdefs.h.  */
24996 _ACEOF
24997 cat confdefs.h >>conftest.$ac_ext
24998 cat >>conftest.$ac_ext <<_ACEOF
24999 /* end confdefs.h.  */
25000 $ac_includes_default
25001 int
25002 main ()
25003 {
25004 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
25005 test_array [0] = 0
25006
25007   ;
25008   return 0;
25009 }
25010 _ACEOF
25011 rm -f conftest.$ac_objext
25012 if { (ac_try="$ac_compile"
25013 case "(($ac_try" in
25014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015   *) ac_try_echo=$ac_try;;
25016 esac
25017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25018 $as_echo "$ac_try_echo") >&5
25019   (eval "$ac_compile") 2>conftest.er1
25020   ac_status=$?
25021   grep -v '^ *+' conftest.er1 >conftest.err
25022   rm -f conftest.er1
25023   cat conftest.err >&5
25024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025   (exit $ac_status); } && {
25026          test -z "$ac_c_werror_flag" ||
25027          test ! -s conftest.err
25028        } && test -s conftest.$ac_objext; then
25029   ac_lo=0 ac_mid=0
25030   while :; do
25031     cat >conftest.$ac_ext <<_ACEOF
25032 /* confdefs.h.  */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h.  */
25037 $ac_includes_default
25038 int
25039 main ()
25040 {
25041 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25042 test_array [0] = 0
25043
25044   ;
25045   return 0;
25046 }
25047 _ACEOF
25048 rm -f conftest.$ac_objext
25049 if { (ac_try="$ac_compile"
25050 case "(($ac_try" in
25051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25052   *) ac_try_echo=$ac_try;;
25053 esac
25054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25055 $as_echo "$ac_try_echo") >&5
25056   (eval "$ac_compile") 2>conftest.er1
25057   ac_status=$?
25058   grep -v '^ *+' conftest.er1 >conftest.err
25059   rm -f conftest.er1
25060   cat conftest.err >&5
25061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062   (exit $ac_status); } && {
25063          test -z "$ac_c_werror_flag" ||
25064          test ! -s conftest.err
25065        } && test -s conftest.$ac_objext; then
25066   ac_hi=$ac_mid; break
25067 else
25068   $as_echo "$as_me: failed program was:" >&5
25069 sed 's/^/| /' conftest.$ac_ext >&5
25070
25071         ac_lo=`expr $ac_mid + 1`
25072                         if test $ac_lo -le $ac_mid; then
25073                           ac_lo= ac_hi=
25074                           break
25075                         fi
25076                         ac_mid=`expr 2 '*' $ac_mid + 1`
25077 fi
25078
25079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25080   done
25081 else
25082   $as_echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085         cat >conftest.$ac_ext <<_ACEOF
25086 /* confdefs.h.  */
25087 _ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h.  */
25091 $ac_includes_default
25092 int
25093 main ()
25094 {
25095 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
25096 test_array [0] = 0
25097
25098   ;
25099   return 0;
25100 }
25101 _ACEOF
25102 rm -f conftest.$ac_objext
25103 if { (ac_try="$ac_compile"
25104 case "(($ac_try" in
25105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106   *) ac_try_echo=$ac_try;;
25107 esac
25108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25109 $as_echo "$ac_try_echo") >&5
25110   (eval "$ac_compile") 2>conftest.er1
25111   ac_status=$?
25112   grep -v '^ *+' conftest.er1 >conftest.err
25113   rm -f conftest.er1
25114   cat conftest.err >&5
25115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116   (exit $ac_status); } && {
25117          test -z "$ac_c_werror_flag" ||
25118          test ! -s conftest.err
25119        } && test -s conftest.$ac_objext; then
25120   ac_hi=-1 ac_mid=-1
25121   while :; do
25122     cat >conftest.$ac_ext <<_ACEOF
25123 /* confdefs.h.  */
25124 _ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h.  */
25128 $ac_includes_default
25129 int
25130 main ()
25131 {
25132 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
25133 test_array [0] = 0
25134
25135   ;
25136   return 0;
25137 }
25138 _ACEOF
25139 rm -f conftest.$ac_objext
25140 if { (ac_try="$ac_compile"
25141 case "(($ac_try" in
25142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25143   *) ac_try_echo=$ac_try;;
25144 esac
25145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25146 $as_echo "$ac_try_echo") >&5
25147   (eval "$ac_compile") 2>conftest.er1
25148   ac_status=$?
25149   grep -v '^ *+' conftest.er1 >conftest.err
25150   rm -f conftest.er1
25151   cat conftest.err >&5
25152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); } && {
25154          test -z "$ac_c_werror_flag" ||
25155          test ! -s conftest.err
25156        } && test -s conftest.$ac_objext; then
25157   ac_lo=$ac_mid; break
25158 else
25159   $as_echo "$as_me: failed program was:" >&5
25160 sed 's/^/| /' conftest.$ac_ext >&5
25161
25162         ac_hi=`expr '(' $ac_mid ')' - 1`
25163                         if test $ac_mid -le $ac_hi; then
25164                           ac_lo= ac_hi=
25165                           break
25166                         fi
25167                         ac_mid=`expr 2 '*' $ac_mid`
25168 fi
25169
25170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25171   done
25172 else
25173   $as_echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25175
25176         ac_lo= ac_hi=
25177 fi
25178
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 fi
25181
25182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25183 # Binary search between lo and hi bounds.
25184 while test "x$ac_lo" != "x$ac_hi"; do
25185   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25186   cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h.  */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h.  */
25192 $ac_includes_default
25193 int
25194 main ()
25195 {
25196 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25197 test_array [0] = 0
25198
25199   ;
25200   return 0;
25201 }
25202 _ACEOF
25203 rm -f conftest.$ac_objext
25204 if { (ac_try="$ac_compile"
25205 case "(($ac_try" in
25206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207   *) ac_try_echo=$ac_try;;
25208 esac
25209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25210 $as_echo "$ac_try_echo") >&5
25211   (eval "$ac_compile") 2>conftest.er1
25212   ac_status=$?
25213   grep -v '^ *+' conftest.er1 >conftest.err
25214   rm -f conftest.er1
25215   cat conftest.err >&5
25216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217   (exit $ac_status); } && {
25218          test -z "$ac_c_werror_flag" ||
25219          test ! -s conftest.err
25220        } && test -s conftest.$ac_objext; then
25221   ac_hi=$ac_mid
25222 else
25223   $as_echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25225
25226         ac_lo=`expr '(' $ac_mid ')' + 1`
25227 fi
25228
25229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25230 done
25231 case $ac_lo in
25232 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25233 '') if test "$ac_cv_type_void_p" = yes; then
25234      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25236 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25237 See \`config.log' for more details." >&5
25238 $as_echo "$as_me: error: cannot compute sizeof (void *)
25239 See \`config.log' for more details." >&2;}
25240    { (exit 77); exit 77; }; }; }
25241    else
25242      ac_cv_sizeof_void_p=0
25243    fi ;;
25244 esac
25245 else
25246   cat >conftest.$ac_ext <<_ACEOF
25247 /* confdefs.h.  */
25248 _ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h.  */
25252 $ac_includes_default
25253 static long int longval () { return (long int) (sizeof (void *)); }
25254 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
25255 #include <stdio.h>
25256 #include <stdlib.h>
25257 int
25258 main ()
25259 {
25260
25261   FILE *f = fopen ("conftest.val", "w");
25262   if (! f)
25263     return 1;
25264   if (((long int) (sizeof (void *))) < 0)
25265     {
25266       long int i = longval ();
25267       if (i != ((long int) (sizeof (void *))))
25268         return 1;
25269       fprintf (f, "%ld", i);
25270     }
25271   else
25272     {
25273       unsigned long int i = ulongval ();
25274       if (i != ((long int) (sizeof (void *))))
25275         return 1;
25276       fprintf (f, "%lu", i);
25277     }
25278   /* Do not output a trailing newline, as this causes \r\n confusion
25279      on some platforms.  */
25280   return ferror (f) || fclose (f) != 0;
25281
25282   ;
25283   return 0;
25284 }
25285 _ACEOF
25286 rm -f conftest$ac_exeext
25287 if { (ac_try="$ac_link"
25288 case "(($ac_try" in
25289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25290   *) ac_try_echo=$ac_try;;
25291 esac
25292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25293 $as_echo "$ac_try_echo") >&5
25294   (eval "$ac_link") 2>&5
25295   ac_status=$?
25296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25298   { (case "(($ac_try" in
25299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25300   *) ac_try_echo=$ac_try;;
25301 esac
25302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25303 $as_echo "$ac_try_echo") >&5
25304   (eval "$ac_try") 2>&5
25305   ac_status=$?
25306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307   (exit $ac_status); }; }; then
25308   ac_cv_sizeof_void_p=`cat conftest.val`
25309 else
25310   $as_echo "$as_me: program exited with status $ac_status" >&5
25311 $as_echo "$as_me: failed program was:" >&5
25312 sed 's/^/| /' conftest.$ac_ext >&5
25313
25314 ( exit $ac_status )
25315 if test "$ac_cv_type_void_p" = yes; then
25316      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25318 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25319 See \`config.log' for more details." >&5
25320 $as_echo "$as_me: error: cannot compute sizeof (void *)
25321 See \`config.log' for more details." >&2;}
25322    { (exit 77); exit 77; }; }; }
25323    else
25324      ac_cv_sizeof_void_p=0
25325    fi
25326 fi
25327 rm -rf conftest.dSYM
25328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25329 fi
25330 rm -f conftest.val
25331 fi
25332 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25333 $as_echo "$ac_cv_sizeof_void_p" >&6; }
25334
25335
25336
25337 cat >>confdefs.h <<_ACEOF
25338 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25339 _ACEOF
25340
25341
25342 # The cast to long int works around a bug in the HP C Compiler
25343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25345 # This bug is HP SR number 8606223364.
25346 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
25347 $as_echo_n "checking size of size_t... " >&6; }
25348 if test "${ac_cv_sizeof_size_t+set}" = set; then
25349   $as_echo_n "(cached) " >&6
25350 else
25351   if test "$cross_compiling" = yes; then
25352   # Depending upon the size, compute the lo and hi bounds.
25353 cat >conftest.$ac_ext <<_ACEOF
25354 /* confdefs.h.  */
25355 _ACEOF
25356 cat confdefs.h >>conftest.$ac_ext
25357 cat >>conftest.$ac_ext <<_ACEOF
25358 /* end confdefs.h.  */
25359 $ac_includes_default
25360 int
25361 main ()
25362 {
25363 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
25364 test_array [0] = 0
25365
25366   ;
25367   return 0;
25368 }
25369 _ACEOF
25370 rm -f conftest.$ac_objext
25371 if { (ac_try="$ac_compile"
25372 case "(($ac_try" in
25373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25374   *) ac_try_echo=$ac_try;;
25375 esac
25376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25377 $as_echo "$ac_try_echo") >&5
25378   (eval "$ac_compile") 2>conftest.er1
25379   ac_status=$?
25380   grep -v '^ *+' conftest.er1 >conftest.err
25381   rm -f conftest.er1
25382   cat conftest.err >&5
25383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384   (exit $ac_status); } && {
25385          test -z "$ac_c_werror_flag" ||
25386          test ! -s conftest.err
25387        } && test -s conftest.$ac_objext; then
25388   ac_lo=0 ac_mid=0
25389   while :; do
25390     cat >conftest.$ac_ext <<_ACEOF
25391 /* confdefs.h.  */
25392 _ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h.  */
25396 $ac_includes_default
25397 int
25398 main ()
25399 {
25400 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25401 test_array [0] = 0
25402
25403   ;
25404   return 0;
25405 }
25406 _ACEOF
25407 rm -f conftest.$ac_objext
25408 if { (ac_try="$ac_compile"
25409 case "(($ac_try" in
25410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25411   *) ac_try_echo=$ac_try;;
25412 esac
25413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25414 $as_echo "$ac_try_echo") >&5
25415   (eval "$ac_compile") 2>conftest.er1
25416   ac_status=$?
25417   grep -v '^ *+' conftest.er1 >conftest.err
25418   rm -f conftest.er1
25419   cat conftest.err >&5
25420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421   (exit $ac_status); } && {
25422          test -z "$ac_c_werror_flag" ||
25423          test ! -s conftest.err
25424        } && test -s conftest.$ac_objext; then
25425   ac_hi=$ac_mid; break
25426 else
25427   $as_echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25429
25430         ac_lo=`expr $ac_mid + 1`
25431                         if test $ac_lo -le $ac_mid; then
25432                           ac_lo= ac_hi=
25433                           break
25434                         fi
25435                         ac_mid=`expr 2 '*' $ac_mid + 1`
25436 fi
25437
25438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25439   done
25440 else
25441   $as_echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.$ac_ext >&5
25443
25444         cat >conftest.$ac_ext <<_ACEOF
25445 /* confdefs.h.  */
25446 _ACEOF
25447 cat confdefs.h >>conftest.$ac_ext
25448 cat >>conftest.$ac_ext <<_ACEOF
25449 /* end confdefs.h.  */
25450 $ac_includes_default
25451 int
25452 main ()
25453 {
25454 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25455 test_array [0] = 0
25456
25457   ;
25458   return 0;
25459 }
25460 _ACEOF
25461 rm -f conftest.$ac_objext
25462 if { (ac_try="$ac_compile"
25463 case "(($ac_try" in
25464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25465   *) ac_try_echo=$ac_try;;
25466 esac
25467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25468 $as_echo "$ac_try_echo") >&5
25469   (eval "$ac_compile") 2>conftest.er1
25470   ac_status=$?
25471   grep -v '^ *+' conftest.er1 >conftest.err
25472   rm -f conftest.er1
25473   cat conftest.err >&5
25474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475   (exit $ac_status); } && {
25476          test -z "$ac_c_werror_flag" ||
25477          test ! -s conftest.err
25478        } && test -s conftest.$ac_objext; then
25479   ac_hi=-1 ac_mid=-1
25480   while :; do
25481     cat >conftest.$ac_ext <<_ACEOF
25482 /* confdefs.h.  */
25483 _ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h.  */
25487 $ac_includes_default
25488 int
25489 main ()
25490 {
25491 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25492 test_array [0] = 0
25493
25494   ;
25495   return 0;
25496 }
25497 _ACEOF
25498 rm -f conftest.$ac_objext
25499 if { (ac_try="$ac_compile"
25500 case "(($ac_try" in
25501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502   *) ac_try_echo=$ac_try;;
25503 esac
25504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25505 $as_echo "$ac_try_echo") >&5
25506   (eval "$ac_compile") 2>conftest.er1
25507   ac_status=$?
25508   grep -v '^ *+' conftest.er1 >conftest.err
25509   rm -f conftest.er1
25510   cat conftest.err >&5
25511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512   (exit $ac_status); } && {
25513          test -z "$ac_c_werror_flag" ||
25514          test ! -s conftest.err
25515        } && test -s conftest.$ac_objext; then
25516   ac_lo=$ac_mid; break
25517 else
25518   $as_echo "$as_me: failed program was:" >&5
25519 sed 's/^/| /' conftest.$ac_ext >&5
25520
25521         ac_hi=`expr '(' $ac_mid ')' - 1`
25522                         if test $ac_mid -le $ac_hi; then
25523                           ac_lo= ac_hi=
25524                           break
25525                         fi
25526                         ac_mid=`expr 2 '*' $ac_mid`
25527 fi
25528
25529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25530   done
25531 else
25532   $as_echo "$as_me: failed program was:" >&5
25533 sed 's/^/| /' conftest.$ac_ext >&5
25534
25535         ac_lo= ac_hi=
25536 fi
25537
25538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25539 fi
25540
25541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25542 # Binary search between lo and hi bounds.
25543 while test "x$ac_lo" != "x$ac_hi"; do
25544   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25545   cat >conftest.$ac_ext <<_ACEOF
25546 /* confdefs.h.  */
25547 _ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h.  */
25551 $ac_includes_default
25552 int
25553 main ()
25554 {
25555 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25556 test_array [0] = 0
25557
25558   ;
25559   return 0;
25560 }
25561 _ACEOF
25562 rm -f conftest.$ac_objext
25563 if { (ac_try="$ac_compile"
25564 case "(($ac_try" in
25565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566   *) ac_try_echo=$ac_try;;
25567 esac
25568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25569 $as_echo "$ac_try_echo") >&5
25570   (eval "$ac_compile") 2>conftest.er1
25571   ac_status=$?
25572   grep -v '^ *+' conftest.er1 >conftest.err
25573   rm -f conftest.er1
25574   cat conftest.err >&5
25575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576   (exit $ac_status); } && {
25577          test -z "$ac_c_werror_flag" ||
25578          test ! -s conftest.err
25579        } && test -s conftest.$ac_objext; then
25580   ac_hi=$ac_mid
25581 else
25582   $as_echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25584
25585         ac_lo=`expr '(' $ac_mid ')' + 1`
25586 fi
25587
25588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25589 done
25590 case $ac_lo in
25591 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25592 '') if test "$ac_cv_type_size_t" = yes; then
25593      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25595 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25596 See \`config.log' for more details." >&5
25597 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25598 See \`config.log' for more details." >&2;}
25599    { (exit 77); exit 77; }; }; }
25600    else
25601      ac_cv_sizeof_size_t=0
25602    fi ;;
25603 esac
25604 else
25605   cat >conftest.$ac_ext <<_ACEOF
25606 /* confdefs.h.  */
25607 _ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h.  */
25611 $ac_includes_default
25612 static long int longval () { return (long int) (sizeof (size_t)); }
25613 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25614 #include <stdio.h>
25615 #include <stdlib.h>
25616 int
25617 main ()
25618 {
25619
25620   FILE *f = fopen ("conftest.val", "w");
25621   if (! f)
25622     return 1;
25623   if (((long int) (sizeof (size_t))) < 0)
25624     {
25625       long int i = longval ();
25626       if (i != ((long int) (sizeof (size_t))))
25627         return 1;
25628       fprintf (f, "%ld", i);
25629     }
25630   else
25631     {
25632       unsigned long int i = ulongval ();
25633       if (i != ((long int) (sizeof (size_t))))
25634         return 1;
25635       fprintf (f, "%lu", i);
25636     }
25637   /* Do not output a trailing newline, as this causes \r\n confusion
25638      on some platforms.  */
25639   return ferror (f) || fclose (f) != 0;
25640
25641   ;
25642   return 0;
25643 }
25644 _ACEOF
25645 rm -f conftest$ac_exeext
25646 if { (ac_try="$ac_link"
25647 case "(($ac_try" in
25648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25649   *) ac_try_echo=$ac_try;;
25650 esac
25651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25652 $as_echo "$ac_try_echo") >&5
25653   (eval "$ac_link") 2>&5
25654   ac_status=$?
25655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25657   { (case "(($ac_try" in
25658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659   *) ac_try_echo=$ac_try;;
25660 esac
25661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25662 $as_echo "$ac_try_echo") >&5
25663   (eval "$ac_try") 2>&5
25664   ac_status=$?
25665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); }; }; then
25667   ac_cv_sizeof_size_t=`cat conftest.val`
25668 else
25669   $as_echo "$as_me: program exited with status $ac_status" >&5
25670 $as_echo "$as_me: failed program was:" >&5
25671 sed 's/^/| /' conftest.$ac_ext >&5
25672
25673 ( exit $ac_status )
25674 if test "$ac_cv_type_size_t" = yes; then
25675      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25677 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25678 See \`config.log' for more details." >&5
25679 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25680 See \`config.log' for more details." >&2;}
25681    { (exit 77); exit 77; }; }; }
25682    else
25683      ac_cv_sizeof_size_t=0
25684    fi
25685 fi
25686 rm -rf conftest.dSYM
25687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25688 fi
25689 rm -f conftest.val
25690 fi
25691 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25692 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25693
25694
25695
25696 cat >>confdefs.h <<_ACEOF
25697 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25698 _ACEOF
25699
25700
25701 # The cast to long int works around a bug in the HP C Compiler
25702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25704 # This bug is HP SR number 8606223364.
25705 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25706 $as_echo_n "checking size of long... " >&6; }
25707 if test "${ac_cv_sizeof_long+set}" = set; then
25708   $as_echo_n "(cached) " >&6
25709 else
25710   if test "$cross_compiling" = yes; then
25711   # Depending upon the size, compute the lo and hi bounds.
25712 cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h.  */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h.  */
25718 $ac_includes_default
25719 int
25720 main ()
25721 {
25722 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25723 test_array [0] = 0
25724
25725   ;
25726   return 0;
25727 }
25728 _ACEOF
25729 rm -f conftest.$ac_objext
25730 if { (ac_try="$ac_compile"
25731 case "(($ac_try" in
25732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733   *) ac_try_echo=$ac_try;;
25734 esac
25735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25736 $as_echo "$ac_try_echo") >&5
25737   (eval "$ac_compile") 2>conftest.er1
25738   ac_status=$?
25739   grep -v '^ *+' conftest.er1 >conftest.err
25740   rm -f conftest.er1
25741   cat conftest.err >&5
25742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); } && {
25744          test -z "$ac_c_werror_flag" ||
25745          test ! -s conftest.err
25746        } && test -s conftest.$ac_objext; then
25747   ac_lo=0 ac_mid=0
25748   while :; do
25749     cat >conftest.$ac_ext <<_ACEOF
25750 /* confdefs.h.  */
25751 _ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h.  */
25755 $ac_includes_default
25756 int
25757 main ()
25758 {
25759 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25760 test_array [0] = 0
25761
25762   ;
25763   return 0;
25764 }
25765 _ACEOF
25766 rm -f conftest.$ac_objext
25767 if { (ac_try="$ac_compile"
25768 case "(($ac_try" in
25769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770   *) ac_try_echo=$ac_try;;
25771 esac
25772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25773 $as_echo "$ac_try_echo") >&5
25774   (eval "$ac_compile") 2>conftest.er1
25775   ac_status=$?
25776   grep -v '^ *+' conftest.er1 >conftest.err
25777   rm -f conftest.er1
25778   cat conftest.err >&5
25779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780   (exit $ac_status); } && {
25781          test -z "$ac_c_werror_flag" ||
25782          test ! -s conftest.err
25783        } && test -s conftest.$ac_objext; then
25784   ac_hi=$ac_mid; break
25785 else
25786   $as_echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789         ac_lo=`expr $ac_mid + 1`
25790                         if test $ac_lo -le $ac_mid; then
25791                           ac_lo= ac_hi=
25792                           break
25793                         fi
25794                         ac_mid=`expr 2 '*' $ac_mid + 1`
25795 fi
25796
25797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25798   done
25799 else
25800   $as_echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25802
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 int
25811 main ()
25812 {
25813 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25814 test_array [0] = 0
25815
25816   ;
25817   return 0;
25818 }
25819 _ACEOF
25820 rm -f conftest.$ac_objext
25821 if { (ac_try="$ac_compile"
25822 case "(($ac_try" in
25823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824   *) ac_try_echo=$ac_try;;
25825 esac
25826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25827 $as_echo "$ac_try_echo") >&5
25828   (eval "$ac_compile") 2>conftest.er1
25829   ac_status=$?
25830   grep -v '^ *+' conftest.er1 >conftest.err
25831   rm -f conftest.er1
25832   cat conftest.err >&5
25833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); } && {
25835          test -z "$ac_c_werror_flag" ||
25836          test ! -s conftest.err
25837        } && test -s conftest.$ac_objext; then
25838   ac_hi=-1 ac_mid=-1
25839   while :; do
25840     cat >conftest.$ac_ext <<_ACEOF
25841 /* confdefs.h.  */
25842 _ACEOF
25843 cat confdefs.h >>conftest.$ac_ext
25844 cat >>conftest.$ac_ext <<_ACEOF
25845 /* end confdefs.h.  */
25846 $ac_includes_default
25847 int
25848 main ()
25849 {
25850 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25851 test_array [0] = 0
25852
25853   ;
25854   return 0;
25855 }
25856 _ACEOF
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25866   ac_status=$?
25867   grep -v '^ *+' conftest.er1 >conftest.err
25868   rm -f conftest.er1
25869   cat conftest.err >&5
25870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871   (exit $ac_status); } && {
25872          test -z "$ac_c_werror_flag" ||
25873          test ! -s conftest.err
25874        } && test -s conftest.$ac_objext; then
25875   ac_lo=$ac_mid; break
25876 else
25877   $as_echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25879
25880         ac_hi=`expr '(' $ac_mid ')' - 1`
25881                         if test $ac_mid -le $ac_hi; then
25882                           ac_lo= ac_hi=
25883                           break
25884                         fi
25885                         ac_mid=`expr 2 '*' $ac_mid`
25886 fi
25887
25888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25889   done
25890 else
25891   $as_echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25893
25894         ac_lo= ac_hi=
25895 fi
25896
25897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25898 fi
25899
25900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25901 # Binary search between lo and hi bounds.
25902 while test "x$ac_lo" != "x$ac_hi"; do
25903   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25904   cat >conftest.$ac_ext <<_ACEOF
25905 /* confdefs.h.  */
25906 _ACEOF
25907 cat confdefs.h >>conftest.$ac_ext
25908 cat >>conftest.$ac_ext <<_ACEOF
25909 /* end confdefs.h.  */
25910 $ac_includes_default
25911 int
25912 main ()
25913 {
25914 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25915 test_array [0] = 0
25916
25917   ;
25918   return 0;
25919 }
25920 _ACEOF
25921 rm -f conftest.$ac_objext
25922 if { (ac_try="$ac_compile"
25923 case "(($ac_try" in
25924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25925   *) ac_try_echo=$ac_try;;
25926 esac
25927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25928 $as_echo "$ac_try_echo") >&5
25929   (eval "$ac_compile") 2>conftest.er1
25930   ac_status=$?
25931   grep -v '^ *+' conftest.er1 >conftest.err
25932   rm -f conftest.er1
25933   cat conftest.err >&5
25934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935   (exit $ac_status); } && {
25936          test -z "$ac_c_werror_flag" ||
25937          test ! -s conftest.err
25938        } && test -s conftest.$ac_objext; then
25939   ac_hi=$ac_mid
25940 else
25941   $as_echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25943
25944         ac_lo=`expr '(' $ac_mid ')' + 1`
25945 fi
25946
25947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25948 done
25949 case $ac_lo in
25950 ?*) ac_cv_sizeof_long=$ac_lo;;
25951 '') if test "$ac_cv_type_long" = yes; then
25952      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25954 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25955 See \`config.log' for more details." >&5
25956 $as_echo "$as_me: error: cannot compute sizeof (long)
25957 See \`config.log' for more details." >&2;}
25958    { (exit 77); exit 77; }; }; }
25959    else
25960      ac_cv_sizeof_long=0
25961    fi ;;
25962 esac
25963 else
25964   cat >conftest.$ac_ext <<_ACEOF
25965 /* confdefs.h.  */
25966 _ACEOF
25967 cat confdefs.h >>conftest.$ac_ext
25968 cat >>conftest.$ac_ext <<_ACEOF
25969 /* end confdefs.h.  */
25970 $ac_includes_default
25971 static long int longval () { return (long int) (sizeof (long)); }
25972 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25973 #include <stdio.h>
25974 #include <stdlib.h>
25975 int
25976 main ()
25977 {
25978
25979   FILE *f = fopen ("conftest.val", "w");
25980   if (! f)
25981     return 1;
25982   if (((long int) (sizeof (long))) < 0)
25983     {
25984       long int i = longval ();
25985       if (i != ((long int) (sizeof (long))))
25986         return 1;
25987       fprintf (f, "%ld", i);
25988     }
25989   else
25990     {
25991       unsigned long int i = ulongval ();
25992       if (i != ((long int) (sizeof (long))))
25993         return 1;
25994       fprintf (f, "%lu", i);
25995     }
25996   /* Do not output a trailing newline, as this causes \r\n confusion
25997      on some platforms.  */
25998   return ferror (f) || fclose (f) != 0;
25999
26000   ;
26001   return 0;
26002 }
26003 _ACEOF
26004 rm -f conftest$ac_exeext
26005 if { (ac_try="$ac_link"
26006 case "(($ac_try" in
26007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26008   *) ac_try_echo=$ac_try;;
26009 esac
26010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26011 $as_echo "$ac_try_echo") >&5
26012   (eval "$ac_link") 2>&5
26013   ac_status=$?
26014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26016   { (case "(($ac_try" in
26017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26018   *) ac_try_echo=$ac_try;;
26019 esac
26020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26021 $as_echo "$ac_try_echo") >&5
26022   (eval "$ac_try") 2>&5
26023   ac_status=$?
26024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025   (exit $ac_status); }; }; then
26026   ac_cv_sizeof_long=`cat conftest.val`
26027 else
26028   $as_echo "$as_me: program exited with status $ac_status" >&5
26029 $as_echo "$as_me: failed program was:" >&5
26030 sed 's/^/| /' conftest.$ac_ext >&5
26031
26032 ( exit $ac_status )
26033 if test "$ac_cv_type_long" = yes; then
26034      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26036 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26037 See \`config.log' for more details." >&5
26038 $as_echo "$as_me: error: cannot compute sizeof (long)
26039 See \`config.log' for more details." >&2;}
26040    { (exit 77); exit 77; }; }; }
26041    else
26042      ac_cv_sizeof_long=0
26043    fi
26044 fi
26045 rm -rf conftest.dSYM
26046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26047 fi
26048 rm -f conftest.val
26049 fi
26050 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26051 $as_echo "$ac_cv_sizeof_long" >&6; }
26052
26053
26054
26055 cat >>confdefs.h <<_ACEOF
26056 #define SIZEOF_LONG $ac_cv_sizeof_long
26057 _ACEOF
26058
26059
26060
26061 # Decide whether float4 is passed by value: user-selectable, enabled by default
26062 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
26063 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
26064
26065
26066 # Check whether --enable-float4-byval was given.
26067 if test "${enable_float4_byval+set}" = set; then
26068   enableval=$enable_float4_byval;
26069   case $enableval in
26070     yes)
26071
26072 cat >>confdefs.h <<\_ACEOF
26073 #define USE_FLOAT4_BYVAL 1
26074 _ACEOF
26075
26076                float4passbyval=true
26077       ;;
26078     no)
26079       float4passbyval=false
26080       ;;
26081     *)
26082       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
26083 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
26084    { (exit 1); exit 1; }; }
26085       ;;
26086   esac
26087
26088 else
26089   enable_float4_byval=yes
26090
26091 cat >>confdefs.h <<\_ACEOF
26092 #define USE_FLOAT4_BYVAL 1
26093 _ACEOF
26094
26095                float4passbyval=true
26096 fi
26097
26098
26099 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
26100 $as_echo "$enable_float4_byval" >&6; }
26101
26102 cat >>confdefs.h <<_ACEOF
26103 #define FLOAT4PASSBYVAL $float4passbyval
26104 _ACEOF
26105
26106
26107 # Decide whether float8 is passed by value.
26108 # Note: this setting also controls int8 and related types such as timestamp.
26109 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
26110 # If not, trying to select it is an error.
26111 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
26112 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
26113 if test $ac_cv_sizeof_void_p -ge 8 ; then
26114
26115
26116 # Check whether --enable-float8-byval was given.
26117 if test "${enable_float8_byval+set}" = set; then
26118   enableval=$enable_float8_byval;
26119   case $enableval in
26120     yes)
26121       :
26122       ;;
26123     no)
26124       :
26125       ;;
26126     *)
26127       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26128 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26129    { (exit 1); exit 1; }; }
26130       ;;
26131   esac
26132
26133 else
26134   enable_float8_byval=yes
26135
26136 fi
26137
26138
26139 else
26140
26141
26142 # Check whether --enable-float8-byval was given.
26143 if test "${enable_float8_byval+set}" = set; then
26144   enableval=$enable_float8_byval;
26145   case $enableval in
26146     yes)
26147       :
26148       ;;
26149     no)
26150       :
26151       ;;
26152     *)
26153       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26154 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26155    { (exit 1); exit 1; }; }
26156       ;;
26157   esac
26158
26159 else
26160   enable_float8_byval=no
26161
26162 fi
26163
26164
26165   if test "$enable_float8_byval" = yes ; then
26166     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
26167 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
26168    { (exit 1); exit 1; }; }
26169   fi
26170 fi
26171 if test "$enable_float8_byval" = yes ; then
26172
26173 cat >>confdefs.h <<\_ACEOF
26174 #define USE_FLOAT8_BYVAL 1
26175 _ACEOF
26176
26177   float8passbyval=true
26178 else
26179   float8passbyval=false
26180 fi
26181 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
26182 $as_echo "$enable_float8_byval" >&6; }
26183
26184 cat >>confdefs.h <<_ACEOF
26185 #define FLOAT8PASSBYVAL $float8passbyval
26186 _ACEOF
26187
26188
26189 # Determine memory alignment requirements for the basic C data types.
26190
26191 # The cast to long int works around a bug in the HP C Compiler,
26192 # see AC_CHECK_SIZEOF for more information.
26193 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
26194 $as_echo_n "checking alignment of short... " >&6; }
26195 if test "${ac_cv_alignof_short+set}" = set; then
26196   $as_echo_n "(cached) " >&6
26197 else
26198   if test "$cross_compiling" = yes; then
26199   # Depending upon the size, compute the lo and hi bounds.
26200 cat >conftest.$ac_ext <<_ACEOF
26201 /* confdefs.h.  */
26202 _ACEOF
26203 cat confdefs.h >>conftest.$ac_ext
26204 cat >>conftest.$ac_ext <<_ACEOF
26205 /* end confdefs.h.  */
26206 $ac_includes_default
26207 #ifndef offsetof
26208 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26209 #endif
26210 typedef struct { char x; short y; } ac__type_alignof_;
26211 int
26212 main ()
26213 {
26214 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26215 test_array [0] = 0
26216
26217   ;
26218   return 0;
26219 }
26220 _ACEOF
26221 rm -f conftest.$ac_objext
26222 if { (ac_try="$ac_compile"
26223 case "(($ac_try" in
26224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225   *) ac_try_echo=$ac_try;;
26226 esac
26227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26228 $as_echo "$ac_try_echo") >&5
26229   (eval "$ac_compile") 2>conftest.er1
26230   ac_status=$?
26231   grep -v '^ *+' conftest.er1 >conftest.err
26232   rm -f conftest.er1
26233   cat conftest.err >&5
26234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235   (exit $ac_status); } && {
26236          test -z "$ac_c_werror_flag" ||
26237          test ! -s conftest.err
26238        } && test -s conftest.$ac_objext; then
26239   ac_lo=0 ac_mid=0
26240   while :; do
26241     cat >conftest.$ac_ext <<_ACEOF
26242 /* confdefs.h.  */
26243 _ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h.  */
26247 $ac_includes_default
26248 #ifndef offsetof
26249 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26250 #endif
26251 typedef struct { char x; short y; } ac__type_alignof_;
26252 int
26253 main ()
26254 {
26255 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26256 test_array [0] = 0
26257
26258   ;
26259   return 0;
26260 }
26261 _ACEOF
26262 rm -f conftest.$ac_objext
26263 if { (ac_try="$ac_compile"
26264 case "(($ac_try" in
26265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266   *) ac_try_echo=$ac_try;;
26267 esac
26268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26269 $as_echo "$ac_try_echo") >&5
26270   (eval "$ac_compile") 2>conftest.er1
26271   ac_status=$?
26272   grep -v '^ *+' conftest.er1 >conftest.err
26273   rm -f conftest.er1
26274   cat conftest.err >&5
26275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276   (exit $ac_status); } && {
26277          test -z "$ac_c_werror_flag" ||
26278          test ! -s conftest.err
26279        } && test -s conftest.$ac_objext; then
26280   ac_hi=$ac_mid; break
26281 else
26282   $as_echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26284
26285         ac_lo=`expr $ac_mid + 1`
26286                         if test $ac_lo -le $ac_mid; then
26287                           ac_lo= ac_hi=
26288                           break
26289                         fi
26290                         ac_mid=`expr 2 '*' $ac_mid + 1`
26291 fi
26292
26293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26294   done
26295 else
26296   $as_echo "$as_me: failed program was:" >&5
26297 sed 's/^/| /' conftest.$ac_ext >&5
26298
26299         cat >conftest.$ac_ext <<_ACEOF
26300 /* confdefs.h.  */
26301 _ACEOF
26302 cat confdefs.h >>conftest.$ac_ext
26303 cat >>conftest.$ac_ext <<_ACEOF
26304 /* end confdefs.h.  */
26305 $ac_includes_default
26306 #ifndef offsetof
26307 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26308 #endif
26309 typedef struct { char x; short y; } ac__type_alignof_;
26310 int
26311 main ()
26312 {
26313 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26314 test_array [0] = 0
26315
26316   ;
26317   return 0;
26318 }
26319 _ACEOF
26320 rm -f conftest.$ac_objext
26321 if { (ac_try="$ac_compile"
26322 case "(($ac_try" in
26323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26324   *) ac_try_echo=$ac_try;;
26325 esac
26326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26327 $as_echo "$ac_try_echo") >&5
26328   (eval "$ac_compile") 2>conftest.er1
26329   ac_status=$?
26330   grep -v '^ *+' conftest.er1 >conftest.err
26331   rm -f conftest.er1
26332   cat conftest.err >&5
26333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); } && {
26335          test -z "$ac_c_werror_flag" ||
26336          test ! -s conftest.err
26337        } && test -s conftest.$ac_objext; then
26338   ac_hi=-1 ac_mid=-1
26339   while :; do
26340     cat >conftest.$ac_ext <<_ACEOF
26341 /* confdefs.h.  */
26342 _ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h.  */
26346 $ac_includes_default
26347 #ifndef offsetof
26348 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26349 #endif
26350 typedef struct { char x; short y; } ac__type_alignof_;
26351 int
26352 main ()
26353 {
26354 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26355 test_array [0] = 0
26356
26357   ;
26358   return 0;
26359 }
26360 _ACEOF
26361 rm -f conftest.$ac_objext
26362 if { (ac_try="$ac_compile"
26363 case "(($ac_try" in
26364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26365   *) ac_try_echo=$ac_try;;
26366 esac
26367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26368 $as_echo "$ac_try_echo") >&5
26369   (eval "$ac_compile") 2>conftest.er1
26370   ac_status=$?
26371   grep -v '^ *+' conftest.er1 >conftest.err
26372   rm -f conftest.er1
26373   cat conftest.err >&5
26374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375   (exit $ac_status); } && {
26376          test -z "$ac_c_werror_flag" ||
26377          test ! -s conftest.err
26378        } && test -s conftest.$ac_objext; then
26379   ac_lo=$ac_mid; break
26380 else
26381   $as_echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26383
26384         ac_hi=`expr '(' $ac_mid ')' - 1`
26385                         if test $ac_mid -le $ac_hi; then
26386                           ac_lo= ac_hi=
26387                           break
26388                         fi
26389                         ac_mid=`expr 2 '*' $ac_mid`
26390 fi
26391
26392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26393   done
26394 else
26395   $as_echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26397
26398         ac_lo= ac_hi=
26399 fi
26400
26401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26402 fi
26403
26404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26405 # Binary search between lo and hi bounds.
26406 while test "x$ac_lo" != "x$ac_hi"; do
26407   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26408   cat >conftest.$ac_ext <<_ACEOF
26409 /* confdefs.h.  */
26410 _ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h.  */
26414 $ac_includes_default
26415 #ifndef offsetof
26416 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26417 #endif
26418 typedef struct { char x; short y; } ac__type_alignof_;
26419 int
26420 main ()
26421 {
26422 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26423 test_array [0] = 0
26424
26425   ;
26426   return 0;
26427 }
26428 _ACEOF
26429 rm -f conftest.$ac_objext
26430 if { (ac_try="$ac_compile"
26431 case "(($ac_try" in
26432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26433   *) ac_try_echo=$ac_try;;
26434 esac
26435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26436 $as_echo "$ac_try_echo") >&5
26437   (eval "$ac_compile") 2>conftest.er1
26438   ac_status=$?
26439   grep -v '^ *+' conftest.er1 >conftest.err
26440   rm -f conftest.er1
26441   cat conftest.err >&5
26442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443   (exit $ac_status); } && {
26444          test -z "$ac_c_werror_flag" ||
26445          test ! -s conftest.err
26446        } && test -s conftest.$ac_objext; then
26447   ac_hi=$ac_mid
26448 else
26449   $as_echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26451
26452         ac_lo=`expr '(' $ac_mid ')' + 1`
26453 fi
26454
26455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26456 done
26457 case $ac_lo in
26458 ?*) ac_cv_alignof_short=$ac_lo;;
26459 '') if test "$ac_cv_type_short" = yes; then
26460      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26462 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26463 See \`config.log' for more details." >&5
26464 $as_echo "$as_me: error: cannot compute alignment of short
26465 See \`config.log' for more details." >&2;}
26466    { (exit 77); exit 77; }; }; }
26467    else
26468      ac_cv_alignof_short=0
26469    fi ;;
26470 esac
26471 else
26472   cat >conftest.$ac_ext <<_ACEOF
26473 /* confdefs.h.  */
26474 _ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h.  */
26478 $ac_includes_default
26479 #ifndef offsetof
26480 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26481 #endif
26482 typedef struct { char x; short y; } ac__type_alignof_;
26483 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26484 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26485 #include <stdio.h>
26486 #include <stdlib.h>
26487 int
26488 main ()
26489 {
26490
26491   FILE *f = fopen ("conftest.val", "w");
26492   if (! f)
26493     return 1;
26494   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26495     {
26496       long int i = longval ();
26497       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26498         return 1;
26499       fprintf (f, "%ld", i);
26500     }
26501   else
26502     {
26503       unsigned long int i = ulongval ();
26504       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26505         return 1;
26506       fprintf (f, "%lu", i);
26507     }
26508   /* Do not output a trailing newline, as this causes \r\n confusion
26509      on some platforms.  */
26510   return ferror (f) || fclose (f) != 0;
26511
26512   ;
26513   return 0;
26514 }
26515 _ACEOF
26516 rm -f conftest$ac_exeext
26517 if { (ac_try="$ac_link"
26518 case "(($ac_try" in
26519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26520   *) ac_try_echo=$ac_try;;
26521 esac
26522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26523 $as_echo "$ac_try_echo") >&5
26524   (eval "$ac_link") 2>&5
26525   ac_status=$?
26526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26528   { (case "(($ac_try" in
26529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26530   *) ac_try_echo=$ac_try;;
26531 esac
26532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26533 $as_echo "$ac_try_echo") >&5
26534   (eval "$ac_try") 2>&5
26535   ac_status=$?
26536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537   (exit $ac_status); }; }; then
26538   ac_cv_alignof_short=`cat conftest.val`
26539 else
26540   $as_echo "$as_me: program exited with status $ac_status" >&5
26541 $as_echo "$as_me: failed program was:" >&5
26542 sed 's/^/| /' conftest.$ac_ext >&5
26543
26544 ( exit $ac_status )
26545 if test "$ac_cv_type_short" = yes; then
26546      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26548 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26549 See \`config.log' for more details." >&5
26550 $as_echo "$as_me: error: cannot compute alignment of short
26551 See \`config.log' for more details." >&2;}
26552    { (exit 77); exit 77; }; }; }
26553    else
26554      ac_cv_alignof_short=0
26555    fi
26556 fi
26557 rm -rf conftest.dSYM
26558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26559 fi
26560 rm -f conftest.val
26561 fi
26562 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26563 $as_echo "$ac_cv_alignof_short" >&6; }
26564
26565
26566
26567 cat >>confdefs.h <<_ACEOF
26568 #define ALIGNOF_SHORT $ac_cv_alignof_short
26569 _ACEOF
26570
26571
26572 # The cast to long int works around a bug in the HP C Compiler,
26573 # see AC_CHECK_SIZEOF for more information.
26574 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26575 $as_echo_n "checking alignment of int... " >&6; }
26576 if test "${ac_cv_alignof_int+set}" = set; then
26577   $as_echo_n "(cached) " >&6
26578 else
26579   if test "$cross_compiling" = yes; then
26580   # Depending upon the size, compute the lo and hi bounds.
26581 cat >conftest.$ac_ext <<_ACEOF
26582 /* confdefs.h.  */
26583 _ACEOF
26584 cat confdefs.h >>conftest.$ac_ext
26585 cat >>conftest.$ac_ext <<_ACEOF
26586 /* end confdefs.h.  */
26587 $ac_includes_default
26588 #ifndef offsetof
26589 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26590 #endif
26591 typedef struct { char x; int y; } ac__type_alignof_;
26592 int
26593 main ()
26594 {
26595 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26596 test_array [0] = 0
26597
26598   ;
26599   return 0;
26600 }
26601 _ACEOF
26602 rm -f conftest.$ac_objext
26603 if { (ac_try="$ac_compile"
26604 case "(($ac_try" in
26605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26606   *) ac_try_echo=$ac_try;;
26607 esac
26608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26609 $as_echo "$ac_try_echo") >&5
26610   (eval "$ac_compile") 2>conftest.er1
26611   ac_status=$?
26612   grep -v '^ *+' conftest.er1 >conftest.err
26613   rm -f conftest.er1
26614   cat conftest.err >&5
26615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616   (exit $ac_status); } && {
26617          test -z "$ac_c_werror_flag" ||
26618          test ! -s conftest.err
26619        } && test -s conftest.$ac_objext; then
26620   ac_lo=0 ac_mid=0
26621   while :; do
26622     cat >conftest.$ac_ext <<_ACEOF
26623 /* confdefs.h.  */
26624 _ACEOF
26625 cat confdefs.h >>conftest.$ac_ext
26626 cat >>conftest.$ac_ext <<_ACEOF
26627 /* end confdefs.h.  */
26628 $ac_includes_default
26629 #ifndef offsetof
26630 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26631 #endif
26632 typedef struct { char x; int y; } ac__type_alignof_;
26633 int
26634 main ()
26635 {
26636 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26637 test_array [0] = 0
26638
26639   ;
26640   return 0;
26641 }
26642 _ACEOF
26643 rm -f conftest.$ac_objext
26644 if { (ac_try="$ac_compile"
26645 case "(($ac_try" in
26646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26647   *) ac_try_echo=$ac_try;;
26648 esac
26649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26650 $as_echo "$ac_try_echo") >&5
26651   (eval "$ac_compile") 2>conftest.er1
26652   ac_status=$?
26653   grep -v '^ *+' conftest.er1 >conftest.err
26654   rm -f conftest.er1
26655   cat conftest.err >&5
26656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657   (exit $ac_status); } && {
26658          test -z "$ac_c_werror_flag" ||
26659          test ! -s conftest.err
26660        } && test -s conftest.$ac_objext; then
26661   ac_hi=$ac_mid; break
26662 else
26663   $as_echo "$as_me: failed program was:" >&5
26664 sed 's/^/| /' conftest.$ac_ext >&5
26665
26666         ac_lo=`expr $ac_mid + 1`
26667                         if test $ac_lo -le $ac_mid; then
26668                           ac_lo= ac_hi=
26669                           break
26670                         fi
26671                         ac_mid=`expr 2 '*' $ac_mid + 1`
26672 fi
26673
26674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26675   done
26676 else
26677   $as_echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26679
26680         cat >conftest.$ac_ext <<_ACEOF
26681 /* confdefs.h.  */
26682 _ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h.  */
26686 $ac_includes_default
26687 #ifndef offsetof
26688 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26689 #endif
26690 typedef struct { char x; int y; } ac__type_alignof_;
26691 int
26692 main ()
26693 {
26694 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26695 test_array [0] = 0
26696
26697   ;
26698   return 0;
26699 }
26700 _ACEOF
26701 rm -f conftest.$ac_objext
26702 if { (ac_try="$ac_compile"
26703 case "(($ac_try" in
26704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705   *) ac_try_echo=$ac_try;;
26706 esac
26707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26708 $as_echo "$ac_try_echo") >&5
26709   (eval "$ac_compile") 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } && {
26716          test -z "$ac_c_werror_flag" ||
26717          test ! -s conftest.err
26718        } && test -s conftest.$ac_objext; then
26719   ac_hi=-1 ac_mid=-1
26720   while :; do
26721     cat >conftest.$ac_ext <<_ACEOF
26722 /* confdefs.h.  */
26723 _ACEOF
26724 cat confdefs.h >>conftest.$ac_ext
26725 cat >>conftest.$ac_ext <<_ACEOF
26726 /* end confdefs.h.  */
26727 $ac_includes_default
26728 #ifndef offsetof
26729 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26730 #endif
26731 typedef struct { char x; int y; } ac__type_alignof_;
26732 int
26733 main ()
26734 {
26735 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26736 test_array [0] = 0
26737
26738   ;
26739   return 0;
26740 }
26741 _ACEOF
26742 rm -f conftest.$ac_objext
26743 if { (ac_try="$ac_compile"
26744 case "(($ac_try" in
26745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746   *) ac_try_echo=$ac_try;;
26747 esac
26748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26749 $as_echo "$ac_try_echo") >&5
26750   (eval "$ac_compile") 2>conftest.er1
26751   ac_status=$?
26752   grep -v '^ *+' conftest.er1 >conftest.err
26753   rm -f conftest.er1
26754   cat conftest.err >&5
26755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); } && {
26757          test -z "$ac_c_werror_flag" ||
26758          test ! -s conftest.err
26759        } && test -s conftest.$ac_objext; then
26760   ac_lo=$ac_mid; break
26761 else
26762   $as_echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26764
26765         ac_hi=`expr '(' $ac_mid ')' - 1`
26766                         if test $ac_mid -le $ac_hi; then
26767                           ac_lo= ac_hi=
26768                           break
26769                         fi
26770                         ac_mid=`expr 2 '*' $ac_mid`
26771 fi
26772
26773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26774   done
26775 else
26776   $as_echo "$as_me: failed program was:" >&5
26777 sed 's/^/| /' conftest.$ac_ext >&5
26778
26779         ac_lo= ac_hi=
26780 fi
26781
26782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26783 fi
26784
26785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26786 # Binary search between lo and hi bounds.
26787 while test "x$ac_lo" != "x$ac_hi"; do
26788   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26789   cat >conftest.$ac_ext <<_ACEOF
26790 /* confdefs.h.  */
26791 _ACEOF
26792 cat confdefs.h >>conftest.$ac_ext
26793 cat >>conftest.$ac_ext <<_ACEOF
26794 /* end confdefs.h.  */
26795 $ac_includes_default
26796 #ifndef offsetof
26797 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26798 #endif
26799 typedef struct { char x; int y; } ac__type_alignof_;
26800 int
26801 main ()
26802 {
26803 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26804 test_array [0] = 0
26805
26806   ;
26807   return 0;
26808 }
26809 _ACEOF
26810 rm -f conftest.$ac_objext
26811 if { (ac_try="$ac_compile"
26812 case "(($ac_try" in
26813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814   *) ac_try_echo=$ac_try;;
26815 esac
26816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26817 $as_echo "$ac_try_echo") >&5
26818   (eval "$ac_compile") 2>conftest.er1
26819   ac_status=$?
26820   grep -v '^ *+' conftest.er1 >conftest.err
26821   rm -f conftest.er1
26822   cat conftest.err >&5
26823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824   (exit $ac_status); } && {
26825          test -z "$ac_c_werror_flag" ||
26826          test ! -s conftest.err
26827        } && test -s conftest.$ac_objext; then
26828   ac_hi=$ac_mid
26829 else
26830   $as_echo "$as_me: failed program was:" >&5
26831 sed 's/^/| /' conftest.$ac_ext >&5
26832
26833         ac_lo=`expr '(' $ac_mid ')' + 1`
26834 fi
26835
26836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26837 done
26838 case $ac_lo in
26839 ?*) ac_cv_alignof_int=$ac_lo;;
26840 '') if test "$ac_cv_type_int" = yes; then
26841      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26843 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26844 See \`config.log' for more details." >&5
26845 $as_echo "$as_me: error: cannot compute alignment of int
26846 See \`config.log' for more details." >&2;}
26847    { (exit 77); exit 77; }; }; }
26848    else
26849      ac_cv_alignof_int=0
26850    fi ;;
26851 esac
26852 else
26853   cat >conftest.$ac_ext <<_ACEOF
26854 /* confdefs.h.  */
26855 _ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h.  */
26859 $ac_includes_default
26860 #ifndef offsetof
26861 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26862 #endif
26863 typedef struct { char x; int y; } ac__type_alignof_;
26864 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26865 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26866 #include <stdio.h>
26867 #include <stdlib.h>
26868 int
26869 main ()
26870 {
26871
26872   FILE *f = fopen ("conftest.val", "w");
26873   if (! f)
26874     return 1;
26875   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26876     {
26877       long int i = longval ();
26878       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26879         return 1;
26880       fprintf (f, "%ld", i);
26881     }
26882   else
26883     {
26884       unsigned long int i = ulongval ();
26885       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26886         return 1;
26887       fprintf (f, "%lu", i);
26888     }
26889   /* Do not output a trailing newline, as this causes \r\n confusion
26890      on some platforms.  */
26891   return ferror (f) || fclose (f) != 0;
26892
26893   ;
26894   return 0;
26895 }
26896 _ACEOF
26897 rm -f conftest$ac_exeext
26898 if { (ac_try="$ac_link"
26899 case "(($ac_try" in
26900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26901   *) ac_try_echo=$ac_try;;
26902 esac
26903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26904 $as_echo "$ac_try_echo") >&5
26905   (eval "$ac_link") 2>&5
26906   ac_status=$?
26907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26909   { (case "(($ac_try" in
26910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26911   *) ac_try_echo=$ac_try;;
26912 esac
26913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26914 $as_echo "$ac_try_echo") >&5
26915   (eval "$ac_try") 2>&5
26916   ac_status=$?
26917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); }; }; then
26919   ac_cv_alignof_int=`cat conftest.val`
26920 else
26921   $as_echo "$as_me: program exited with status $ac_status" >&5
26922 $as_echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26924
26925 ( exit $ac_status )
26926 if test "$ac_cv_type_int" = yes; then
26927      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26929 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26930 See \`config.log' for more details." >&5
26931 $as_echo "$as_me: error: cannot compute alignment of int
26932 See \`config.log' for more details." >&2;}
26933    { (exit 77); exit 77; }; }; }
26934    else
26935      ac_cv_alignof_int=0
26936    fi
26937 fi
26938 rm -rf conftest.dSYM
26939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26940 fi
26941 rm -f conftest.val
26942 fi
26943 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26944 $as_echo "$ac_cv_alignof_int" >&6; }
26945
26946
26947
26948 cat >>confdefs.h <<_ACEOF
26949 #define ALIGNOF_INT $ac_cv_alignof_int
26950 _ACEOF
26951
26952
26953 # The cast to long int works around a bug in the HP C Compiler,
26954 # see AC_CHECK_SIZEOF for more information.
26955 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26956 $as_echo_n "checking alignment of long... " >&6; }
26957 if test "${ac_cv_alignof_long+set}" = set; then
26958   $as_echo_n "(cached) " >&6
26959 else
26960   if test "$cross_compiling" = yes; then
26961   # Depending upon the size, compute the lo and hi bounds.
26962 cat >conftest.$ac_ext <<_ACEOF
26963 /* confdefs.h.  */
26964 _ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h.  */
26968 $ac_includes_default
26969 #ifndef offsetof
26970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26971 #endif
26972 typedef struct { char x; long y; } ac__type_alignof_;
26973 int
26974 main ()
26975 {
26976 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26977 test_array [0] = 0
26978
26979   ;
26980   return 0;
26981 }
26982 _ACEOF
26983 rm -f conftest.$ac_objext
26984 if { (ac_try="$ac_compile"
26985 case "(($ac_try" in
26986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987   *) ac_try_echo=$ac_try;;
26988 esac
26989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26990 $as_echo "$ac_try_echo") >&5
26991   (eval "$ac_compile") 2>conftest.er1
26992   ac_status=$?
26993   grep -v '^ *+' conftest.er1 >conftest.err
26994   rm -f conftest.er1
26995   cat conftest.err >&5
26996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); } && {
26998          test -z "$ac_c_werror_flag" ||
26999          test ! -s conftest.err
27000        } && test -s conftest.$ac_objext; then
27001   ac_lo=0 ac_mid=0
27002   while :; do
27003     cat >conftest.$ac_ext <<_ACEOF
27004 /* confdefs.h.  */
27005 _ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h.  */
27009 $ac_includes_default
27010 #ifndef offsetof
27011 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27012 #endif
27013 typedef struct { char x; long y; } ac__type_alignof_;
27014 int
27015 main ()
27016 {
27017 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27018 test_array [0] = 0
27019
27020   ;
27021   return 0;
27022 }
27023 _ACEOF
27024 rm -f conftest.$ac_objext
27025 if { (ac_try="$ac_compile"
27026 case "(($ac_try" in
27027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028   *) ac_try_echo=$ac_try;;
27029 esac
27030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27031 $as_echo "$ac_try_echo") >&5
27032   (eval "$ac_compile") 2>conftest.er1
27033   ac_status=$?
27034   grep -v '^ *+' conftest.er1 >conftest.err
27035   rm -f conftest.er1
27036   cat conftest.err >&5
27037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); } && {
27039          test -z "$ac_c_werror_flag" ||
27040          test ! -s conftest.err
27041        } && test -s conftest.$ac_objext; then
27042   ac_hi=$ac_mid; break
27043 else
27044   $as_echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27046
27047         ac_lo=`expr $ac_mid + 1`
27048                         if test $ac_lo -le $ac_mid; then
27049                           ac_lo= ac_hi=
27050                           break
27051                         fi
27052                         ac_mid=`expr 2 '*' $ac_mid + 1`
27053 fi
27054
27055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27056   done
27057 else
27058   $as_echo "$as_me: failed program was:" >&5
27059 sed 's/^/| /' conftest.$ac_ext >&5
27060
27061         cat >conftest.$ac_ext <<_ACEOF
27062 /* confdefs.h.  */
27063 _ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h.  */
27067 $ac_includes_default
27068 #ifndef offsetof
27069 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27070 #endif
27071 typedef struct { char x; long y; } ac__type_alignof_;
27072 int
27073 main ()
27074 {
27075 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27076 test_array [0] = 0
27077
27078   ;
27079   return 0;
27080 }
27081 _ACEOF
27082 rm -f conftest.$ac_objext
27083 if { (ac_try="$ac_compile"
27084 case "(($ac_try" in
27085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086   *) ac_try_echo=$ac_try;;
27087 esac
27088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27089 $as_echo "$ac_try_echo") >&5
27090   (eval "$ac_compile") 2>conftest.er1
27091   ac_status=$?
27092   grep -v '^ *+' conftest.er1 >conftest.err
27093   rm -f conftest.er1
27094   cat conftest.err >&5
27095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); } && {
27097          test -z "$ac_c_werror_flag" ||
27098          test ! -s conftest.err
27099        } && test -s conftest.$ac_objext; then
27100   ac_hi=-1 ac_mid=-1
27101   while :; do
27102     cat >conftest.$ac_ext <<_ACEOF
27103 /* confdefs.h.  */
27104 _ACEOF
27105 cat confdefs.h >>conftest.$ac_ext
27106 cat >>conftest.$ac_ext <<_ACEOF
27107 /* end confdefs.h.  */
27108 $ac_includes_default
27109 #ifndef offsetof
27110 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27111 #endif
27112 typedef struct { char x; long y; } ac__type_alignof_;
27113 int
27114 main ()
27115 {
27116 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27117 test_array [0] = 0
27118
27119   ;
27120   return 0;
27121 }
27122 _ACEOF
27123 rm -f conftest.$ac_objext
27124 if { (ac_try="$ac_compile"
27125 case "(($ac_try" in
27126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127   *) ac_try_echo=$ac_try;;
27128 esac
27129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27130 $as_echo "$ac_try_echo") >&5
27131   (eval "$ac_compile") 2>conftest.er1
27132   ac_status=$?
27133   grep -v '^ *+' conftest.er1 >conftest.err
27134   rm -f conftest.er1
27135   cat conftest.err >&5
27136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137   (exit $ac_status); } && {
27138          test -z "$ac_c_werror_flag" ||
27139          test ! -s conftest.err
27140        } && test -s conftest.$ac_objext; then
27141   ac_lo=$ac_mid; break
27142 else
27143   $as_echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27145
27146         ac_hi=`expr '(' $ac_mid ')' - 1`
27147                         if test $ac_mid -le $ac_hi; then
27148                           ac_lo= ac_hi=
27149                           break
27150                         fi
27151                         ac_mid=`expr 2 '*' $ac_mid`
27152 fi
27153
27154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27155   done
27156 else
27157   $as_echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27159
27160         ac_lo= ac_hi=
27161 fi
27162
27163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27164 fi
27165
27166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27167 # Binary search between lo and hi bounds.
27168 while test "x$ac_lo" != "x$ac_hi"; do
27169   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27170   cat >conftest.$ac_ext <<_ACEOF
27171 /* confdefs.h.  */
27172 _ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h.  */
27176 $ac_includes_default
27177 #ifndef offsetof
27178 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27179 #endif
27180 typedef struct { char x; long y; } ac__type_alignof_;
27181 int
27182 main ()
27183 {
27184 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27185 test_array [0] = 0
27186
27187   ;
27188   return 0;
27189 }
27190 _ACEOF
27191 rm -f conftest.$ac_objext
27192 if { (ac_try="$ac_compile"
27193 case "(($ac_try" in
27194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195   *) ac_try_echo=$ac_try;;
27196 esac
27197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27198 $as_echo "$ac_try_echo") >&5
27199   (eval "$ac_compile") 2>conftest.er1
27200   ac_status=$?
27201   grep -v '^ *+' conftest.er1 >conftest.err
27202   rm -f conftest.er1
27203   cat conftest.err >&5
27204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205   (exit $ac_status); } && {
27206          test -z "$ac_c_werror_flag" ||
27207          test ! -s conftest.err
27208        } && test -s conftest.$ac_objext; then
27209   ac_hi=$ac_mid
27210 else
27211   $as_echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27213
27214         ac_lo=`expr '(' $ac_mid ')' + 1`
27215 fi
27216
27217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27218 done
27219 case $ac_lo in
27220 ?*) ac_cv_alignof_long=$ac_lo;;
27221 '') if test "$ac_cv_type_long" = yes; then
27222      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27224 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27225 See \`config.log' for more details." >&5
27226 $as_echo "$as_me: error: cannot compute alignment of long
27227 See \`config.log' for more details." >&2;}
27228    { (exit 77); exit 77; }; }; }
27229    else
27230      ac_cv_alignof_long=0
27231    fi ;;
27232 esac
27233 else
27234   cat >conftest.$ac_ext <<_ACEOF
27235 /* confdefs.h.  */
27236 _ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h.  */
27240 $ac_includes_default
27241 #ifndef offsetof
27242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27243 #endif
27244 typedef struct { char x; long y; } ac__type_alignof_;
27245 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27246 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27247 #include <stdio.h>
27248 #include <stdlib.h>
27249 int
27250 main ()
27251 {
27252
27253   FILE *f = fopen ("conftest.val", "w");
27254   if (! f)
27255     return 1;
27256   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27257     {
27258       long int i = longval ();
27259       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27260         return 1;
27261       fprintf (f, "%ld", i);
27262     }
27263   else
27264     {
27265       unsigned long int i = ulongval ();
27266       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27267         return 1;
27268       fprintf (f, "%lu", i);
27269     }
27270   /* Do not output a trailing newline, as this causes \r\n confusion
27271      on some platforms.  */
27272   return ferror (f) || fclose (f) != 0;
27273
27274   ;
27275   return 0;
27276 }
27277 _ACEOF
27278 rm -f conftest$ac_exeext
27279 if { (ac_try="$ac_link"
27280 case "(($ac_try" in
27281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282   *) ac_try_echo=$ac_try;;
27283 esac
27284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27285 $as_echo "$ac_try_echo") >&5
27286   (eval "$ac_link") 2>&5
27287   ac_status=$?
27288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27290   { (case "(($ac_try" in
27291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292   *) ac_try_echo=$ac_try;;
27293 esac
27294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27295 $as_echo "$ac_try_echo") >&5
27296   (eval "$ac_try") 2>&5
27297   ac_status=$?
27298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299   (exit $ac_status); }; }; then
27300   ac_cv_alignof_long=`cat conftest.val`
27301 else
27302   $as_echo "$as_me: program exited with status $ac_status" >&5
27303 $as_echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27305
27306 ( exit $ac_status )
27307 if test "$ac_cv_type_long" = yes; then
27308      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27310 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27311 See \`config.log' for more details." >&5
27312 $as_echo "$as_me: error: cannot compute alignment of long
27313 See \`config.log' for more details." >&2;}
27314    { (exit 77); exit 77; }; }; }
27315    else
27316      ac_cv_alignof_long=0
27317    fi
27318 fi
27319 rm -rf conftest.dSYM
27320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27321 fi
27322 rm -f conftest.val
27323 fi
27324 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
27325 $as_echo "$ac_cv_alignof_long" >&6; }
27326
27327
27328
27329 cat >>confdefs.h <<_ACEOF
27330 #define ALIGNOF_LONG $ac_cv_alignof_long
27331 _ACEOF
27332
27333
27334 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
27335   # The cast to long int works around a bug in the HP C Compiler,
27336 # see AC_CHECK_SIZEOF for more information.
27337 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
27338 $as_echo_n "checking alignment of long long int... " >&6; }
27339 if test "${ac_cv_alignof_long_long_int+set}" = set; then
27340   $as_echo_n "(cached) " >&6
27341 else
27342   if test "$cross_compiling" = yes; then
27343   # Depending upon the size, compute the lo and hi bounds.
27344 cat >conftest.$ac_ext <<_ACEOF
27345 /* confdefs.h.  */
27346 _ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h.  */
27350 $ac_includes_default
27351 #ifndef offsetof
27352 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27353 #endif
27354 typedef struct { char x; long long int y; } ac__type_alignof_;
27355 int
27356 main ()
27357 {
27358 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27359 test_array [0] = 0
27360
27361   ;
27362   return 0;
27363 }
27364 _ACEOF
27365 rm -f conftest.$ac_objext
27366 if { (ac_try="$ac_compile"
27367 case "(($ac_try" in
27368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369   *) ac_try_echo=$ac_try;;
27370 esac
27371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27372 $as_echo "$ac_try_echo") >&5
27373   (eval "$ac_compile") 2>conftest.er1
27374   ac_status=$?
27375   grep -v '^ *+' conftest.er1 >conftest.err
27376   rm -f conftest.er1
27377   cat conftest.err >&5
27378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379   (exit $ac_status); } && {
27380          test -z "$ac_c_werror_flag" ||
27381          test ! -s conftest.err
27382        } && test -s conftest.$ac_objext; then
27383   ac_lo=0 ac_mid=0
27384   while :; do
27385     cat >conftest.$ac_ext <<_ACEOF
27386 /* confdefs.h.  */
27387 _ACEOF
27388 cat confdefs.h >>conftest.$ac_ext
27389 cat >>conftest.$ac_ext <<_ACEOF
27390 /* end confdefs.h.  */
27391 $ac_includes_default
27392 #ifndef offsetof
27393 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27394 #endif
27395 typedef struct { char x; long long int y; } ac__type_alignof_;
27396 int
27397 main ()
27398 {
27399 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27400 test_array [0] = 0
27401
27402   ;
27403   return 0;
27404 }
27405 _ACEOF
27406 rm -f conftest.$ac_objext
27407 if { (ac_try="$ac_compile"
27408 case "(($ac_try" in
27409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410   *) ac_try_echo=$ac_try;;
27411 esac
27412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27413 $as_echo "$ac_try_echo") >&5
27414   (eval "$ac_compile") 2>conftest.er1
27415   ac_status=$?
27416   grep -v '^ *+' conftest.er1 >conftest.err
27417   rm -f conftest.er1
27418   cat conftest.err >&5
27419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420   (exit $ac_status); } && {
27421          test -z "$ac_c_werror_flag" ||
27422          test ! -s conftest.err
27423        } && test -s conftest.$ac_objext; then
27424   ac_hi=$ac_mid; break
27425 else
27426   $as_echo "$as_me: failed program was:" >&5
27427 sed 's/^/| /' conftest.$ac_ext >&5
27428
27429         ac_lo=`expr $ac_mid + 1`
27430                         if test $ac_lo -le $ac_mid; then
27431                           ac_lo= ac_hi=
27432                           break
27433                         fi
27434                         ac_mid=`expr 2 '*' $ac_mid + 1`
27435 fi
27436
27437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27438   done
27439 else
27440   $as_echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27442
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 $ac_includes_default
27450 #ifndef offsetof
27451 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27452 #endif
27453 typedef struct { char x; long long int y; } ac__type_alignof_;
27454 int
27455 main ()
27456 {
27457 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27458 test_array [0] = 0
27459
27460   ;
27461   return 0;
27462 }
27463 _ACEOF
27464 rm -f conftest.$ac_objext
27465 if { (ac_try="$ac_compile"
27466 case "(($ac_try" in
27467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468   *) ac_try_echo=$ac_try;;
27469 esac
27470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27471 $as_echo "$ac_try_echo") >&5
27472   (eval "$ac_compile") 2>conftest.er1
27473   ac_status=$?
27474   grep -v '^ *+' conftest.er1 >conftest.err
27475   rm -f conftest.er1
27476   cat conftest.err >&5
27477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478   (exit $ac_status); } && {
27479          test -z "$ac_c_werror_flag" ||
27480          test ! -s conftest.err
27481        } && test -s conftest.$ac_objext; then
27482   ac_hi=-1 ac_mid=-1
27483   while :; do
27484     cat >conftest.$ac_ext <<_ACEOF
27485 /* confdefs.h.  */
27486 _ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h.  */
27490 $ac_includes_default
27491 #ifndef offsetof
27492 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27493 #endif
27494 typedef struct { char x; long long int y; } ac__type_alignof_;
27495 int
27496 main ()
27497 {
27498 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27499 test_array [0] = 0
27500
27501   ;
27502   return 0;
27503 }
27504 _ACEOF
27505 rm -f conftest.$ac_objext
27506 if { (ac_try="$ac_compile"
27507 case "(($ac_try" in
27508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509   *) ac_try_echo=$ac_try;;
27510 esac
27511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27512 $as_echo "$ac_try_echo") >&5
27513   (eval "$ac_compile") 2>conftest.er1
27514   ac_status=$?
27515   grep -v '^ *+' conftest.er1 >conftest.err
27516   rm -f conftest.er1
27517   cat conftest.err >&5
27518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519   (exit $ac_status); } && {
27520          test -z "$ac_c_werror_flag" ||
27521          test ! -s conftest.err
27522        } && test -s conftest.$ac_objext; then
27523   ac_lo=$ac_mid; break
27524 else
27525   $as_echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27527
27528         ac_hi=`expr '(' $ac_mid ')' - 1`
27529                         if test $ac_mid -le $ac_hi; then
27530                           ac_lo= ac_hi=
27531                           break
27532                         fi
27533                         ac_mid=`expr 2 '*' $ac_mid`
27534 fi
27535
27536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27537   done
27538 else
27539   $as_echo "$as_me: failed program was:" >&5
27540 sed 's/^/| /' conftest.$ac_ext >&5
27541
27542         ac_lo= ac_hi=
27543 fi
27544
27545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27546 fi
27547
27548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27549 # Binary search between lo and hi bounds.
27550 while test "x$ac_lo" != "x$ac_hi"; do
27551   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27552   cat >conftest.$ac_ext <<_ACEOF
27553 /* confdefs.h.  */
27554 _ACEOF
27555 cat confdefs.h >>conftest.$ac_ext
27556 cat >>conftest.$ac_ext <<_ACEOF
27557 /* end confdefs.h.  */
27558 $ac_includes_default
27559 #ifndef offsetof
27560 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27561 #endif
27562 typedef struct { char x; long long int y; } ac__type_alignof_;
27563 int
27564 main ()
27565 {
27566 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27567 test_array [0] = 0
27568
27569   ;
27570   return 0;
27571 }
27572 _ACEOF
27573 rm -f conftest.$ac_objext
27574 if { (ac_try="$ac_compile"
27575 case "(($ac_try" in
27576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577   *) ac_try_echo=$ac_try;;
27578 esac
27579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27580 $as_echo "$ac_try_echo") >&5
27581   (eval "$ac_compile") 2>conftest.er1
27582   ac_status=$?
27583   grep -v '^ *+' conftest.er1 >conftest.err
27584   rm -f conftest.er1
27585   cat conftest.err >&5
27586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587   (exit $ac_status); } && {
27588          test -z "$ac_c_werror_flag" ||
27589          test ! -s conftest.err
27590        } && test -s conftest.$ac_objext; then
27591   ac_hi=$ac_mid
27592 else
27593   $as_echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27595
27596         ac_lo=`expr '(' $ac_mid ')' + 1`
27597 fi
27598
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27600 done
27601 case $ac_lo in
27602 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27603 '') if test "$ac_cv_type_long_long_int" = yes; then
27604      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27606 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27607 See \`config.log' for more details." >&5
27608 $as_echo "$as_me: error: cannot compute alignment of long long int
27609 See \`config.log' for more details." >&2;}
27610    { (exit 77); exit 77; }; }; }
27611    else
27612      ac_cv_alignof_long_long_int=0
27613    fi ;;
27614 esac
27615 else
27616   cat >conftest.$ac_ext <<_ACEOF
27617 /* confdefs.h.  */
27618 _ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h.  */
27622 $ac_includes_default
27623 #ifndef offsetof
27624 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27625 #endif
27626 typedef struct { char x; long long int y; } ac__type_alignof_;
27627 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27628 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27629 #include <stdio.h>
27630 #include <stdlib.h>
27631 int
27632 main ()
27633 {
27634
27635   FILE *f = fopen ("conftest.val", "w");
27636   if (! f)
27637     return 1;
27638   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27639     {
27640       long int i = longval ();
27641       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27642         return 1;
27643       fprintf (f, "%ld", i);
27644     }
27645   else
27646     {
27647       unsigned long int i = ulongval ();
27648       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27649         return 1;
27650       fprintf (f, "%lu", i);
27651     }
27652   /* Do not output a trailing newline, as this causes \r\n confusion
27653      on some platforms.  */
27654   return ferror (f) || fclose (f) != 0;
27655
27656   ;
27657   return 0;
27658 }
27659 _ACEOF
27660 rm -f conftest$ac_exeext
27661 if { (ac_try="$ac_link"
27662 case "(($ac_try" in
27663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664   *) ac_try_echo=$ac_try;;
27665 esac
27666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27667 $as_echo "$ac_try_echo") >&5
27668   (eval "$ac_link") 2>&5
27669   ac_status=$?
27670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27672   { (case "(($ac_try" in
27673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674   *) ac_try_echo=$ac_try;;
27675 esac
27676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27677 $as_echo "$ac_try_echo") >&5
27678   (eval "$ac_try") 2>&5
27679   ac_status=$?
27680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681   (exit $ac_status); }; }; then
27682   ac_cv_alignof_long_long_int=`cat conftest.val`
27683 else
27684   $as_echo "$as_me: program exited with status $ac_status" >&5
27685 $as_echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27687
27688 ( exit $ac_status )
27689 if test "$ac_cv_type_long_long_int" = yes; then
27690      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27692 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27693 See \`config.log' for more details." >&5
27694 $as_echo "$as_me: error: cannot compute alignment of long long int
27695 See \`config.log' for more details." >&2;}
27696    { (exit 77); exit 77; }; }; }
27697    else
27698      ac_cv_alignof_long_long_int=0
27699    fi
27700 fi
27701 rm -rf conftest.dSYM
27702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27703 fi
27704 rm -f conftest.val
27705 fi
27706 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27707 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27708
27709
27710
27711 cat >>confdefs.h <<_ACEOF
27712 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27713 _ACEOF
27714
27715
27716 fi
27717 # The cast to long int works around a bug in the HP C Compiler,
27718 # see AC_CHECK_SIZEOF for more information.
27719 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27720 $as_echo_n "checking alignment of double... " >&6; }
27721 if test "${ac_cv_alignof_double+set}" = set; then
27722   $as_echo_n "(cached) " >&6
27723 else
27724   if test "$cross_compiling" = yes; then
27725   # Depending upon the size, compute the lo and hi bounds.
27726 cat >conftest.$ac_ext <<_ACEOF
27727 /* confdefs.h.  */
27728 _ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h.  */
27732 $ac_includes_default
27733 #ifndef offsetof
27734 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27735 #endif
27736 typedef struct { char x; double y; } ac__type_alignof_;
27737 int
27738 main ()
27739 {
27740 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27741 test_array [0] = 0
27742
27743   ;
27744   return 0;
27745 }
27746 _ACEOF
27747 rm -f conftest.$ac_objext
27748 if { (ac_try="$ac_compile"
27749 case "(($ac_try" in
27750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751   *) ac_try_echo=$ac_try;;
27752 esac
27753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27754 $as_echo "$ac_try_echo") >&5
27755   (eval "$ac_compile") 2>conftest.er1
27756   ac_status=$?
27757   grep -v '^ *+' conftest.er1 >conftest.err
27758   rm -f conftest.er1
27759   cat conftest.err >&5
27760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761   (exit $ac_status); } && {
27762          test -z "$ac_c_werror_flag" ||
27763          test ! -s conftest.err
27764        } && test -s conftest.$ac_objext; then
27765   ac_lo=0 ac_mid=0
27766   while :; do
27767     cat >conftest.$ac_ext <<_ACEOF
27768 /* confdefs.h.  */
27769 _ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h.  */
27773 $ac_includes_default
27774 #ifndef offsetof
27775 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27776 #endif
27777 typedef struct { char x; double y; } ac__type_alignof_;
27778 int
27779 main ()
27780 {
27781 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27782 test_array [0] = 0
27783
27784   ;
27785   return 0;
27786 }
27787 _ACEOF
27788 rm -f conftest.$ac_objext
27789 if { (ac_try="$ac_compile"
27790 case "(($ac_try" in
27791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792   *) ac_try_echo=$ac_try;;
27793 esac
27794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27795 $as_echo "$ac_try_echo") >&5
27796   (eval "$ac_compile") 2>conftest.er1
27797   ac_status=$?
27798   grep -v '^ *+' conftest.er1 >conftest.err
27799   rm -f conftest.er1
27800   cat conftest.err >&5
27801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802   (exit $ac_status); } && {
27803          test -z "$ac_c_werror_flag" ||
27804          test ! -s conftest.err
27805        } && test -s conftest.$ac_objext; then
27806   ac_hi=$ac_mid; break
27807 else
27808   $as_echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27810
27811         ac_lo=`expr $ac_mid + 1`
27812                         if test $ac_lo -le $ac_mid; then
27813                           ac_lo= ac_hi=
27814                           break
27815                         fi
27816                         ac_mid=`expr 2 '*' $ac_mid + 1`
27817 fi
27818
27819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27820   done
27821 else
27822   $as_echo "$as_me: failed program was:" >&5
27823 sed 's/^/| /' conftest.$ac_ext >&5
27824
27825         cat >conftest.$ac_ext <<_ACEOF
27826 /* confdefs.h.  */
27827 _ACEOF
27828 cat confdefs.h >>conftest.$ac_ext
27829 cat >>conftest.$ac_ext <<_ACEOF
27830 /* end confdefs.h.  */
27831 $ac_includes_default
27832 #ifndef offsetof
27833 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27834 #endif
27835 typedef struct { char x; double y; } ac__type_alignof_;
27836 int
27837 main ()
27838 {
27839 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27840 test_array [0] = 0
27841
27842   ;
27843   return 0;
27844 }
27845 _ACEOF
27846 rm -f conftest.$ac_objext
27847 if { (ac_try="$ac_compile"
27848 case "(($ac_try" in
27849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850   *) ac_try_echo=$ac_try;;
27851 esac
27852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27853 $as_echo "$ac_try_echo") >&5
27854   (eval "$ac_compile") 2>conftest.er1
27855   ac_status=$?
27856   grep -v '^ *+' conftest.er1 >conftest.err
27857   rm -f conftest.er1
27858   cat conftest.err >&5
27859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860   (exit $ac_status); } && {
27861          test -z "$ac_c_werror_flag" ||
27862          test ! -s conftest.err
27863        } && test -s conftest.$ac_objext; then
27864   ac_hi=-1 ac_mid=-1
27865   while :; do
27866     cat >conftest.$ac_ext <<_ACEOF
27867 /* confdefs.h.  */
27868 _ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h.  */
27872 $ac_includes_default
27873 #ifndef offsetof
27874 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27875 #endif
27876 typedef struct { char x; double y; } ac__type_alignof_;
27877 int
27878 main ()
27879 {
27880 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27881 test_array [0] = 0
27882
27883   ;
27884   return 0;
27885 }
27886 _ACEOF
27887 rm -f conftest.$ac_objext
27888 if { (ac_try="$ac_compile"
27889 case "(($ac_try" in
27890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891   *) ac_try_echo=$ac_try;;
27892 esac
27893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27894 $as_echo "$ac_try_echo") >&5
27895   (eval "$ac_compile") 2>conftest.er1
27896   ac_status=$?
27897   grep -v '^ *+' conftest.er1 >conftest.err
27898   rm -f conftest.er1
27899   cat conftest.err >&5
27900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901   (exit $ac_status); } && {
27902          test -z "$ac_c_werror_flag" ||
27903          test ! -s conftest.err
27904        } && test -s conftest.$ac_objext; then
27905   ac_lo=$ac_mid; break
27906 else
27907   $as_echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27909
27910         ac_hi=`expr '(' $ac_mid ')' - 1`
27911                         if test $ac_mid -le $ac_hi; then
27912                           ac_lo= ac_hi=
27913                           break
27914                         fi
27915                         ac_mid=`expr 2 '*' $ac_mid`
27916 fi
27917
27918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27919   done
27920 else
27921   $as_echo "$as_me: failed program was:" >&5
27922 sed 's/^/| /' conftest.$ac_ext >&5
27923
27924         ac_lo= ac_hi=
27925 fi
27926
27927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27928 fi
27929
27930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27931 # Binary search between lo and hi bounds.
27932 while test "x$ac_lo" != "x$ac_hi"; do
27933   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27934   cat >conftest.$ac_ext <<_ACEOF
27935 /* confdefs.h.  */
27936 _ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h.  */
27940 $ac_includes_default
27941 #ifndef offsetof
27942 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27943 #endif
27944 typedef struct { char x; double y; } ac__type_alignof_;
27945 int
27946 main ()
27947 {
27948 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27949 test_array [0] = 0
27950
27951   ;
27952   return 0;
27953 }
27954 _ACEOF
27955 rm -f conftest.$ac_objext
27956 if { (ac_try="$ac_compile"
27957 case "(($ac_try" in
27958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959   *) ac_try_echo=$ac_try;;
27960 esac
27961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27962 $as_echo "$ac_try_echo") >&5
27963   (eval "$ac_compile") 2>conftest.er1
27964   ac_status=$?
27965   grep -v '^ *+' conftest.er1 >conftest.err
27966   rm -f conftest.er1
27967   cat conftest.err >&5
27968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); } && {
27970          test -z "$ac_c_werror_flag" ||
27971          test ! -s conftest.err
27972        } && test -s conftest.$ac_objext; then
27973   ac_hi=$ac_mid
27974 else
27975   $as_echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978         ac_lo=`expr '(' $ac_mid ')' + 1`
27979 fi
27980
27981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27982 done
27983 case $ac_lo in
27984 ?*) ac_cv_alignof_double=$ac_lo;;
27985 '') if test "$ac_cv_type_double" = yes; then
27986      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27988 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27989 See \`config.log' for more details." >&5
27990 $as_echo "$as_me: error: cannot compute alignment of double
27991 See \`config.log' for more details." >&2;}
27992    { (exit 77); exit 77; }; }; }
27993    else
27994      ac_cv_alignof_double=0
27995    fi ;;
27996 esac
27997 else
27998   cat >conftest.$ac_ext <<_ACEOF
27999 /* confdefs.h.  */
28000 _ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h.  */
28004 $ac_includes_default
28005 #ifndef offsetof
28006 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28007 #endif
28008 typedef struct { char x; double y; } ac__type_alignof_;
28009 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
28010 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
28011 #include <stdio.h>
28012 #include <stdlib.h>
28013 int
28014 main ()
28015 {
28016
28017   FILE *f = fopen ("conftest.val", "w");
28018   if (! f)
28019     return 1;
28020   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
28021     {
28022       long int i = longval ();
28023       if (i != ((long int) offsetof (ac__type_alignof_, y)))
28024         return 1;
28025       fprintf (f, "%ld", i);
28026     }
28027   else
28028     {
28029       unsigned long int i = ulongval ();
28030       if (i != ((long int) offsetof (ac__type_alignof_, y)))
28031         return 1;
28032       fprintf (f, "%lu", i);
28033     }
28034   /* Do not output a trailing newline, as this causes \r\n confusion
28035      on some platforms.  */
28036   return ferror (f) || fclose (f) != 0;
28037
28038   ;
28039   return 0;
28040 }
28041 _ACEOF
28042 rm -f conftest$ac_exeext
28043 if { (ac_try="$ac_link"
28044 case "(($ac_try" in
28045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046   *) ac_try_echo=$ac_try;;
28047 esac
28048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28049 $as_echo "$ac_try_echo") >&5
28050   (eval "$ac_link") 2>&5
28051   ac_status=$?
28052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28054   { (case "(($ac_try" in
28055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056   *) ac_try_echo=$ac_try;;
28057 esac
28058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28059 $as_echo "$ac_try_echo") >&5
28060   (eval "$ac_try") 2>&5
28061   ac_status=$?
28062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); }; }; then
28064   ac_cv_alignof_double=`cat conftest.val`
28065 else
28066   $as_echo "$as_me: program exited with status $ac_status" >&5
28067 $as_echo "$as_me: failed program was:" >&5
28068 sed 's/^/| /' conftest.$ac_ext >&5
28069
28070 ( exit $ac_status )
28071 if test "$ac_cv_type_double" = yes; then
28072      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28074 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28075 See \`config.log' for more details." >&5
28076 $as_echo "$as_me: error: cannot compute alignment of double
28077 See \`config.log' for more details." >&2;}
28078    { (exit 77); exit 77; }; }; }
28079    else
28080      ac_cv_alignof_double=0
28081    fi
28082 fi
28083 rm -rf conftest.dSYM
28084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28085 fi
28086 rm -f conftest.val
28087 fi
28088 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
28089 $as_echo "$ac_cv_alignof_double" >&6; }
28090
28091
28092
28093 cat >>confdefs.h <<_ACEOF
28094 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
28095 _ACEOF
28096
28097
28098
28099 # Compute maximum alignment of any basic type.
28100 # We assume long's alignment is at least as strong as char, short, or int;
28101 # but we must check long long (if it exists) and double.
28102
28103 MAX_ALIGNOF=$ac_cv_alignof_long
28104 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
28105   MAX_ALIGNOF=$ac_cv_alignof_double
28106 fi
28107 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
28108   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
28109 fi
28110
28111 cat >>confdefs.h <<_ACEOF
28112 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
28113 _ACEOF
28114
28115
28116
28117 # Some platforms predefine the types int8, int16, etc.  Only check
28118 # a (hopefully) representative subset.
28119 { $as_echo "$as_me:$LINENO: checking for int8" >&5
28120 $as_echo_n "checking for int8... " >&6; }
28121 if test "${ac_cv_type_int8+set}" = set; then
28122   $as_echo_n "(cached) " >&6
28123 else
28124   ac_cv_type_int8=no
28125 cat >conftest.$ac_ext <<_ACEOF
28126 /* confdefs.h.  */
28127 _ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h.  */
28131 #include <stdio.h>
28132
28133 int
28134 main ()
28135 {
28136 if (sizeof (int8))
28137        return 0;
28138   ;
28139   return 0;
28140 }
28141 _ACEOF
28142 rm -f conftest.$ac_objext
28143 if { (ac_try="$ac_compile"
28144 case "(($ac_try" in
28145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146   *) ac_try_echo=$ac_try;;
28147 esac
28148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28149 $as_echo "$ac_try_echo") >&5
28150   (eval "$ac_compile") 2>conftest.er1
28151   ac_status=$?
28152   grep -v '^ *+' conftest.er1 >conftest.err
28153   rm -f conftest.er1
28154   cat conftest.err >&5
28155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156   (exit $ac_status); } && {
28157          test -z "$ac_c_werror_flag" ||
28158          test ! -s conftest.err
28159        } && test -s conftest.$ac_objext; then
28160   cat >conftest.$ac_ext <<_ACEOF
28161 /* confdefs.h.  */
28162 _ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h.  */
28166 #include <stdio.h>
28167
28168 int
28169 main ()
28170 {
28171 if (sizeof ((int8)))
28172           return 0;
28173   ;
28174   return 0;
28175 }
28176 _ACEOF
28177 rm -f conftest.$ac_objext
28178 if { (ac_try="$ac_compile"
28179 case "(($ac_try" in
28180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181   *) ac_try_echo=$ac_try;;
28182 esac
28183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28184 $as_echo "$ac_try_echo") >&5
28185   (eval "$ac_compile") 2>conftest.er1
28186   ac_status=$?
28187   grep -v '^ *+' conftest.er1 >conftest.err
28188   rm -f conftest.er1
28189   cat conftest.err >&5
28190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191   (exit $ac_status); } && {
28192          test -z "$ac_c_werror_flag" ||
28193          test ! -s conftest.err
28194        } && test -s conftest.$ac_objext; then
28195   :
28196 else
28197   $as_echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28199
28200         ac_cv_type_int8=yes
28201 fi
28202
28203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28204 else
28205   $as_echo "$as_me: failed program was:" >&5
28206 sed 's/^/| /' conftest.$ac_ext >&5
28207
28208
28209 fi
28210
28211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28212 fi
28213 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
28214 $as_echo "$ac_cv_type_int8" >&6; }
28215 if test "x$ac_cv_type_int8" = x""yes; then
28216
28217 cat >>confdefs.h <<_ACEOF
28218 #define HAVE_INT8 1
28219 _ACEOF
28220
28221
28222 fi
28223 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
28224 $as_echo_n "checking for uint8... " >&6; }
28225 if test "${ac_cv_type_uint8+set}" = set; then
28226   $as_echo_n "(cached) " >&6
28227 else
28228   ac_cv_type_uint8=no
28229 cat >conftest.$ac_ext <<_ACEOF
28230 /* confdefs.h.  */
28231 _ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h.  */
28235 #include <stdio.h>
28236
28237 int
28238 main ()
28239 {
28240 if (sizeof (uint8))
28241        return 0;
28242   ;
28243   return 0;
28244 }
28245 _ACEOF
28246 rm -f conftest.$ac_objext
28247 if { (ac_try="$ac_compile"
28248 case "(($ac_try" in
28249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28250   *) ac_try_echo=$ac_try;;
28251 esac
28252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28253 $as_echo "$ac_try_echo") >&5
28254   (eval "$ac_compile") 2>conftest.er1
28255   ac_status=$?
28256   grep -v '^ *+' conftest.er1 >conftest.err
28257   rm -f conftest.er1
28258   cat conftest.err >&5
28259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260   (exit $ac_status); } && {
28261          test -z "$ac_c_werror_flag" ||
28262          test ! -s conftest.err
28263        } && test -s conftest.$ac_objext; then
28264   cat >conftest.$ac_ext <<_ACEOF
28265 /* confdefs.h.  */
28266 _ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h.  */
28270 #include <stdio.h>
28271
28272 int
28273 main ()
28274 {
28275 if (sizeof ((uint8)))
28276           return 0;
28277   ;
28278   return 0;
28279 }
28280 _ACEOF
28281 rm -f conftest.$ac_objext
28282 if { (ac_try="$ac_compile"
28283 case "(($ac_try" in
28284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285   *) ac_try_echo=$ac_try;;
28286 esac
28287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28288 $as_echo "$ac_try_echo") >&5
28289   (eval "$ac_compile") 2>conftest.er1
28290   ac_status=$?
28291   grep -v '^ *+' conftest.er1 >conftest.err
28292   rm -f conftest.er1
28293   cat conftest.err >&5
28294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295   (exit $ac_status); } && {
28296          test -z "$ac_c_werror_flag" ||
28297          test ! -s conftest.err
28298        } && test -s conftest.$ac_objext; then
28299   :
28300 else
28301   $as_echo "$as_me: failed program was:" >&5
28302 sed 's/^/| /' conftest.$ac_ext >&5
28303
28304         ac_cv_type_uint8=yes
28305 fi
28306
28307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28308 else
28309   $as_echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28311
28312
28313 fi
28314
28315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28316 fi
28317 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
28318 $as_echo "$ac_cv_type_uint8" >&6; }
28319 if test "x$ac_cv_type_uint8" = x""yes; then
28320
28321 cat >>confdefs.h <<_ACEOF
28322 #define HAVE_UINT8 1
28323 _ACEOF
28324
28325
28326 fi
28327 { $as_echo "$as_me:$LINENO: checking for int64" >&5
28328 $as_echo_n "checking for int64... " >&6; }
28329 if test "${ac_cv_type_int64+set}" = set; then
28330   $as_echo_n "(cached) " >&6
28331 else
28332   ac_cv_type_int64=no
28333 cat >conftest.$ac_ext <<_ACEOF
28334 /* confdefs.h.  */
28335 _ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h.  */
28339 #include <stdio.h>
28340
28341 int
28342 main ()
28343 {
28344 if (sizeof (int64))
28345        return 0;
28346   ;
28347   return 0;
28348 }
28349 _ACEOF
28350 rm -f conftest.$ac_objext
28351 if { (ac_try="$ac_compile"
28352 case "(($ac_try" in
28353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354   *) ac_try_echo=$ac_try;;
28355 esac
28356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28357 $as_echo "$ac_try_echo") >&5
28358   (eval "$ac_compile") 2>conftest.er1
28359   ac_status=$?
28360   grep -v '^ *+' conftest.er1 >conftest.err
28361   rm -f conftest.er1
28362   cat conftest.err >&5
28363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); } && {
28365          test -z "$ac_c_werror_flag" ||
28366          test ! -s conftest.err
28367        } && test -s conftest.$ac_objext; then
28368   cat >conftest.$ac_ext <<_ACEOF
28369 /* confdefs.h.  */
28370 _ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h.  */
28374 #include <stdio.h>
28375
28376 int
28377 main ()
28378 {
28379 if (sizeof ((int64)))
28380           return 0;
28381   ;
28382   return 0;
28383 }
28384 _ACEOF
28385 rm -f conftest.$ac_objext
28386 if { (ac_try="$ac_compile"
28387 case "(($ac_try" in
28388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389   *) ac_try_echo=$ac_try;;
28390 esac
28391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28392 $as_echo "$ac_try_echo") >&5
28393   (eval "$ac_compile") 2>conftest.er1
28394   ac_status=$?
28395   grep -v '^ *+' conftest.er1 >conftest.err
28396   rm -f conftest.er1
28397   cat conftest.err >&5
28398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); } && {
28400          test -z "$ac_c_werror_flag" ||
28401          test ! -s conftest.err
28402        } && test -s conftest.$ac_objext; then
28403   :
28404 else
28405   $as_echo "$as_me: failed program was:" >&5
28406 sed 's/^/| /' conftest.$ac_ext >&5
28407
28408         ac_cv_type_int64=yes
28409 fi
28410
28411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28412 else
28413   $as_echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28415
28416
28417 fi
28418
28419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28420 fi
28421 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28422 $as_echo "$ac_cv_type_int64" >&6; }
28423 if test "x$ac_cv_type_int64" = x""yes; then
28424
28425 cat >>confdefs.h <<_ACEOF
28426 #define HAVE_INT64 1
28427 _ACEOF
28428
28429
28430 fi
28431 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28432 $as_echo_n "checking for uint64... " >&6; }
28433 if test "${ac_cv_type_uint64+set}" = set; then
28434   $as_echo_n "(cached) " >&6
28435 else
28436   ac_cv_type_uint64=no
28437 cat >conftest.$ac_ext <<_ACEOF
28438 /* confdefs.h.  */
28439 _ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h.  */
28443 #include <stdio.h>
28444
28445 int
28446 main ()
28447 {
28448 if (sizeof (uint64))
28449        return 0;
28450   ;
28451   return 0;
28452 }
28453 _ACEOF
28454 rm -f conftest.$ac_objext
28455 if { (ac_try="$ac_compile"
28456 case "(($ac_try" in
28457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28458   *) ac_try_echo=$ac_try;;
28459 esac
28460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28461 $as_echo "$ac_try_echo") >&5
28462   (eval "$ac_compile") 2>conftest.er1
28463   ac_status=$?
28464   grep -v '^ *+' conftest.er1 >conftest.err
28465   rm -f conftest.er1
28466   cat conftest.err >&5
28467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468   (exit $ac_status); } && {
28469          test -z "$ac_c_werror_flag" ||
28470          test ! -s conftest.err
28471        } && test -s conftest.$ac_objext; then
28472   cat >conftest.$ac_ext <<_ACEOF
28473 /* confdefs.h.  */
28474 _ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h.  */
28478 #include <stdio.h>
28479
28480 int
28481 main ()
28482 {
28483 if (sizeof ((uint64)))
28484           return 0;
28485   ;
28486   return 0;
28487 }
28488 _ACEOF
28489 rm -f conftest.$ac_objext
28490 if { (ac_try="$ac_compile"
28491 case "(($ac_try" in
28492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493   *) ac_try_echo=$ac_try;;
28494 esac
28495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28496 $as_echo "$ac_try_echo") >&5
28497   (eval "$ac_compile") 2>conftest.er1
28498   ac_status=$?
28499   grep -v '^ *+' conftest.er1 >conftest.err
28500   rm -f conftest.er1
28501   cat conftest.err >&5
28502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503   (exit $ac_status); } && {
28504          test -z "$ac_c_werror_flag" ||
28505          test ! -s conftest.err
28506        } && test -s conftest.$ac_objext; then
28507   :
28508 else
28509   $as_echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28511
28512         ac_cv_type_uint64=yes
28513 fi
28514
28515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516 else
28517   $as_echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28519
28520
28521 fi
28522
28523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28524 fi
28525 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28526 $as_echo "$ac_cv_type_uint64" >&6; }
28527 if test "x$ac_cv_type_uint64" = x""yes; then
28528
28529 cat >>confdefs.h <<_ACEOF
28530 #define HAVE_UINT64 1
28531 _ACEOF
28532
28533
28534 fi
28535
28536
28537 # We also check for sig_atomic_t, which *should* be defined per ANSI
28538 # C, but is missing on some old platforms.
28539 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28540 $as_echo_n "checking for sig_atomic_t... " >&6; }
28541 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28542   $as_echo_n "(cached) " >&6
28543 else
28544   ac_cv_type_sig_atomic_t=no
28545 cat >conftest.$ac_ext <<_ACEOF
28546 /* confdefs.h.  */
28547 _ACEOF
28548 cat confdefs.h >>conftest.$ac_ext
28549 cat >>conftest.$ac_ext <<_ACEOF
28550 /* end confdefs.h.  */
28551 #include <signal.h>
28552
28553 int
28554 main ()
28555 {
28556 if (sizeof (sig_atomic_t))
28557        return 0;
28558   ;
28559   return 0;
28560 }
28561 _ACEOF
28562 rm -f conftest.$ac_objext
28563 if { (ac_try="$ac_compile"
28564 case "(($ac_try" in
28565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566   *) ac_try_echo=$ac_try;;
28567 esac
28568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28569 $as_echo "$ac_try_echo") >&5
28570   (eval "$ac_compile") 2>conftest.er1
28571   ac_status=$?
28572   grep -v '^ *+' conftest.er1 >conftest.err
28573   rm -f conftest.er1
28574   cat conftest.err >&5
28575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); } && {
28577          test -z "$ac_c_werror_flag" ||
28578          test ! -s conftest.err
28579        } && test -s conftest.$ac_objext; then
28580   cat >conftest.$ac_ext <<_ACEOF
28581 /* confdefs.h.  */
28582 _ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h.  */
28586 #include <signal.h>
28587
28588 int
28589 main ()
28590 {
28591 if (sizeof ((sig_atomic_t)))
28592           return 0;
28593   ;
28594   return 0;
28595 }
28596 _ACEOF
28597 rm -f conftest.$ac_objext
28598 if { (ac_try="$ac_compile"
28599 case "(($ac_try" in
28600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601   *) ac_try_echo=$ac_try;;
28602 esac
28603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28604 $as_echo "$ac_try_echo") >&5
28605   (eval "$ac_compile") 2>conftest.er1
28606   ac_status=$?
28607   grep -v '^ *+' conftest.er1 >conftest.err
28608   rm -f conftest.er1
28609   cat conftest.err >&5
28610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611   (exit $ac_status); } && {
28612          test -z "$ac_c_werror_flag" ||
28613          test ! -s conftest.err
28614        } && test -s conftest.$ac_objext; then
28615   :
28616 else
28617   $as_echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.$ac_ext >&5
28619
28620         ac_cv_type_sig_atomic_t=yes
28621 fi
28622
28623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28624 else
28625   $as_echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28627
28628
28629 fi
28630
28631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28632 fi
28633 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28634 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28635 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28636
28637 cat >>confdefs.h <<_ACEOF
28638 #define HAVE_SIG_ATOMIC_T 1
28639 _ACEOF
28640
28641
28642 fi
28643
28644
28645
28646 if test "$PORTNAME" != "win32"
28647 then
28648 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28649 $as_echo_n "checking for POSIX signal interface... " >&6; }
28650 if test "${pgac_cv_func_posix_signals+set}" = set; then
28651   $as_echo_n "(cached) " >&6
28652 else
28653   cat >conftest.$ac_ext <<_ACEOF
28654 /* confdefs.h.  */
28655 _ACEOF
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h.  */
28659 #include <signal.h>
28660
28661 int
28662 main ()
28663 {
28664 struct sigaction act, oact;
28665 sigemptyset(&act.sa_mask);
28666 act.sa_flags = SA_RESTART;
28667 sigaction(0, &act, &oact);
28668   ;
28669   return 0;
28670 }
28671 _ACEOF
28672 rm -f conftest.$ac_objext conftest$ac_exeext
28673 if { (ac_try="$ac_link"
28674 case "(($ac_try" in
28675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676   *) ac_try_echo=$ac_try;;
28677 esac
28678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28679 $as_echo "$ac_try_echo") >&5
28680   (eval "$ac_link") 2>conftest.er1
28681   ac_status=$?
28682   grep -v '^ *+' conftest.er1 >conftest.err
28683   rm -f conftest.er1
28684   cat conftest.err >&5
28685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686   (exit $ac_status); } && {
28687          test -z "$ac_c_werror_flag" ||
28688          test ! -s conftest.err
28689        } && test -s conftest$ac_exeext && {
28690          test "$cross_compiling" = yes ||
28691          $as_test_x conftest$ac_exeext
28692        }; then
28693   pgac_cv_func_posix_signals=yes
28694 else
28695   $as_echo "$as_me: failed program was:" >&5
28696 sed 's/^/| /' conftest.$ac_ext >&5
28697
28698         pgac_cv_func_posix_signals=no
28699 fi
28700
28701 rm -rf conftest.dSYM
28702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28703       conftest$ac_exeext conftest.$ac_ext
28704 fi
28705 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28706 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28707 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28708
28709 cat >>confdefs.h <<\_ACEOF
28710 #define HAVE_POSIX_SIGNALS 1
28711 _ACEOF
28712
28713 fi
28714 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28715
28716 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28717   { { $as_echo "$as_me:$LINENO: error:
28718 Thread-safety requires POSIX signals, which are not supported by this
28719 operating system;  use --disable-thread-safety to disable thread safety." >&5
28720 $as_echo "$as_me: error:
28721 Thread-safety requires POSIX signals, which are not supported by this
28722 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28723    { (exit 1); exit 1; }; }
28724 fi
28725 fi
28726
28727 # SunOS doesn't handle negative byte comparisons properly with +/- return
28728 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28729 $as_echo_n "checking for working memcmp... " >&6; }
28730 if test "${ac_cv_func_memcmp_working+set}" = set; then
28731   $as_echo_n "(cached) " >&6
28732 else
28733   if test "$cross_compiling" = yes; then
28734   ac_cv_func_memcmp_working=no
28735 else
28736   cat >conftest.$ac_ext <<_ACEOF
28737 /* confdefs.h.  */
28738 _ACEOF
28739 cat confdefs.h >>conftest.$ac_ext
28740 cat >>conftest.$ac_ext <<_ACEOF
28741 /* end confdefs.h.  */
28742 $ac_includes_default
28743 int
28744 main ()
28745 {
28746
28747   /* Some versions of memcmp are not 8-bit clean.  */
28748   char c0 = '\100', c1 = '\200', c2 = '\201';
28749   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28750     return 1;
28751
28752   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28753      or more and with at least one buffer not starting on a 4-byte boundary.
28754      William Lewis provided this test program.   */
28755   {
28756     char foo[21];
28757     char bar[21];
28758     int i;
28759     for (i = 0; i < 4; i++)
28760       {
28761         char *a = foo + i;
28762         char *b = bar + i;
28763         strcpy (a, "--------01111111");
28764         strcpy (b, "--------10000000");
28765         if (memcmp (a, b, 16) >= 0)
28766           return 1;
28767       }
28768     return 0;
28769   }
28770
28771   ;
28772   return 0;
28773 }
28774 _ACEOF
28775 rm -f conftest$ac_exeext
28776 if { (ac_try="$ac_link"
28777 case "(($ac_try" in
28778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779   *) ac_try_echo=$ac_try;;
28780 esac
28781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28782 $as_echo "$ac_try_echo") >&5
28783   (eval "$ac_link") 2>&5
28784   ac_status=$?
28785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28787   { (case "(($ac_try" in
28788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789   *) ac_try_echo=$ac_try;;
28790 esac
28791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28792 $as_echo "$ac_try_echo") >&5
28793   (eval "$ac_try") 2>&5
28794   ac_status=$?
28795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); }; }; then
28797   ac_cv_func_memcmp_working=yes
28798 else
28799   $as_echo "$as_me: program exited with status $ac_status" >&5
28800 $as_echo "$as_me: failed program was:" >&5
28801 sed 's/^/| /' conftest.$ac_ext >&5
28802
28803 ( exit $ac_status )
28804 ac_cv_func_memcmp_working=no
28805 fi
28806 rm -rf conftest.dSYM
28807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28808 fi
28809
28810
28811 fi
28812 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28813 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28814 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28815   *" memcmp.$ac_objext "* ) ;;
28816   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28817  ;;
28818 esac
28819
28820
28821
28822
28823 # Select semaphore implementation type.
28824 if test "$PORTNAME" != "win32"; then
28825   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28826
28827 cat >>confdefs.h <<\_ACEOF
28828 #define USE_NAMED_POSIX_SEMAPHORES 1
28829 _ACEOF
28830
28831     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28832   else
28833     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28834
28835 cat >>confdefs.h <<\_ACEOF
28836 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28837 _ACEOF
28838
28839       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28840     else
28841
28842 cat >>confdefs.h <<\_ACEOF
28843 #define USE_SYSV_SEMAPHORES 1
28844 _ACEOF
28845
28846       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28847     fi
28848   fi
28849 else
28850
28851 cat >>confdefs.h <<\_ACEOF
28852 #define USE_WIN32_SEMAPHORES 1
28853 _ACEOF
28854
28855   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28856 fi
28857
28858
28859 # Select shared-memory implementation type.
28860 if test "$PORTNAME" != "win32"; then
28861
28862 cat >>confdefs.h <<\_ACEOF
28863 #define USE_SYSV_SHARED_MEMORY 1
28864 _ACEOF
28865
28866   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28867 else
28868
28869 cat >>confdefs.h <<\_ACEOF
28870 #define USE_WIN32_SHARED_MEMORY 1
28871 _ACEOF
28872
28873   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28874 fi
28875
28876 # Select latch implementation type.
28877 if test "$PORTNAME" != "win32"; then
28878   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28879 else
28880   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28881 fi
28882
28883 # If not set in template file, set bytes to use libc memset()
28884 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28885   MEMSET_LOOP_LIMIT=1024
28886 fi
28887
28888 cat >>confdefs.h <<_ACEOF
28889 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28890 _ACEOF
28891
28892
28893
28894 if test "$enable_nls" = yes ; then
28895
28896   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28897 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28898 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28899   $as_echo_n "(cached) " >&6
28900 else
28901   ac_func_search_save_LIBS=$LIBS
28902 cat >conftest.$ac_ext <<_ACEOF
28903 /* confdefs.h.  */
28904 _ACEOF
28905 cat confdefs.h >>conftest.$ac_ext
28906 cat >>conftest.$ac_ext <<_ACEOF
28907 /* end confdefs.h.  */
28908
28909 /* Override any GCC internal prototype to avoid an error.
28910    Use char because int might match the return type of a GCC
28911    builtin and then its argument prototype would still apply.  */
28912 #ifdef __cplusplus
28913 extern "C"
28914 #endif
28915 char bind_textdomain_codeset ();
28916 int
28917 main ()
28918 {
28919 return bind_textdomain_codeset ();
28920   ;
28921   return 0;
28922 }
28923 _ACEOF
28924 for ac_lib in '' intl; do
28925   if test -z "$ac_lib"; then
28926     ac_res="none required"
28927   else
28928     ac_res=-l$ac_lib
28929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28930   fi
28931   rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (ac_try="$ac_link"
28933 case "(($ac_try" in
28934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935   *) ac_try_echo=$ac_try;;
28936 esac
28937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28938 $as_echo "$ac_try_echo") >&5
28939   (eval "$ac_link") 2>conftest.er1
28940   ac_status=$?
28941   grep -v '^ *+' conftest.er1 >conftest.err
28942   rm -f conftest.er1
28943   cat conftest.err >&5
28944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945   (exit $ac_status); } && {
28946          test -z "$ac_c_werror_flag" ||
28947          test ! -s conftest.err
28948        } && test -s conftest$ac_exeext && {
28949          test "$cross_compiling" = yes ||
28950          $as_test_x conftest$ac_exeext
28951        }; then
28952   ac_cv_search_bind_textdomain_codeset=$ac_res
28953 else
28954   $as_echo "$as_me: failed program was:" >&5
28955 sed 's/^/| /' conftest.$ac_ext >&5
28956
28957
28958 fi
28959
28960 rm -rf conftest.dSYM
28961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28962       conftest$ac_exeext
28963   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28964   break
28965 fi
28966 done
28967 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28968   :
28969 else
28970   ac_cv_search_bind_textdomain_codeset=no
28971 fi
28972 rm conftest.$ac_ext
28973 LIBS=$ac_func_search_save_LIBS
28974 fi
28975 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28976 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28977 ac_res=$ac_cv_search_bind_textdomain_codeset
28978 if test "$ac_res" != no; then
28979   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28980
28981 else
28982   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28983 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28984    { (exit 1); exit 1; }; }
28985 fi
28986
28987   if test "${ac_cv_header_libintl_h+set}" = set; then
28988   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28989 $as_echo_n "checking for libintl.h... " >&6; }
28990 if test "${ac_cv_header_libintl_h+set}" = set; then
28991   $as_echo_n "(cached) " >&6
28992 fi
28993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28994 $as_echo "$ac_cv_header_libintl_h" >&6; }
28995 else
28996   # Is the header compilable?
28997 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28998 $as_echo_n "checking libintl.h usability... " >&6; }
28999 cat >conftest.$ac_ext <<_ACEOF
29000 /* confdefs.h.  */
29001 _ACEOF
29002 cat confdefs.h >>conftest.$ac_ext
29003 cat >>conftest.$ac_ext <<_ACEOF
29004 /* end confdefs.h.  */
29005 $ac_includes_default
29006 #include <libintl.h>
29007 _ACEOF
29008 rm -f conftest.$ac_objext
29009 if { (ac_try="$ac_compile"
29010 case "(($ac_try" in
29011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012   *) ac_try_echo=$ac_try;;
29013 esac
29014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29015 $as_echo "$ac_try_echo") >&5
29016   (eval "$ac_compile") 2>conftest.er1
29017   ac_status=$?
29018   grep -v '^ *+' conftest.er1 >conftest.err
29019   rm -f conftest.er1
29020   cat conftest.err >&5
29021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022   (exit $ac_status); } && {
29023          test -z "$ac_c_werror_flag" ||
29024          test ! -s conftest.err
29025        } && test -s conftest.$ac_objext; then
29026   ac_header_compiler=yes
29027 else
29028   $as_echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29030
29031         ac_header_compiler=no
29032 fi
29033
29034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29035 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29036 $as_echo "$ac_header_compiler" >&6; }
29037
29038 # Is the header present?
29039 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
29040 $as_echo_n "checking libintl.h presence... " >&6; }
29041 cat >conftest.$ac_ext <<_ACEOF
29042 /* confdefs.h.  */
29043 _ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h.  */
29047 #include <libintl.h>
29048 _ACEOF
29049 if { (ac_try="$ac_cpp conftest.$ac_ext"
29050 case "(($ac_try" in
29051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052   *) ac_try_echo=$ac_try;;
29053 esac
29054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29055 $as_echo "$ac_try_echo") >&5
29056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29057   ac_status=$?
29058   grep -v '^ *+' conftest.er1 >conftest.err
29059   rm -f conftest.er1
29060   cat conftest.err >&5
29061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062   (exit $ac_status); } >/dev/null && {
29063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29064          test ! -s conftest.err
29065        }; then
29066   ac_header_preproc=yes
29067 else
29068   $as_echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29070
29071   ac_header_preproc=no
29072 fi
29073
29074 rm -f conftest.err conftest.$ac_ext
29075 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29076 $as_echo "$ac_header_preproc" >&6; }
29077
29078 # So?  What about this header?
29079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29080   yes:no: )
29081     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29082 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29083     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
29084 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
29085     ac_header_preproc=yes
29086     ;;
29087   no:yes:* )
29088     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
29089 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
29090     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
29091 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
29092     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
29093 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
29094     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
29095 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29096     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
29097 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
29098     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
29099 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
29100     ( cat <<\_ASBOX
29101 ## ---------------------------------------- ##
29102 ## Report this to pgsql-bugs@postgresql.org ##
29103 ## ---------------------------------------- ##
29104 _ASBOX
29105      ) | sed "s/^/$as_me: WARNING:     /" >&2
29106     ;;
29107 esac
29108 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29109 $as_echo_n "checking for libintl.h... " >&6; }
29110 if test "${ac_cv_header_libintl_h+set}" = set; then
29111   $as_echo_n "(cached) " >&6
29112 else
29113   ac_cv_header_libintl_h=$ac_header_preproc
29114 fi
29115 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29116 $as_echo "$ac_cv_header_libintl_h" >&6; }
29117
29118 fi
29119 if test "x$ac_cv_header_libintl_h" = x""yes; then
29120   :
29121 else
29122   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
29123 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
29124    { (exit 1); exit 1; }; }
29125 fi
29126
29127
29128   for ac_prog in msgfmt
29129 do
29130   # Extract the first word of "$ac_prog", so it can be a program name with args.
29131 set dummy $ac_prog; ac_word=$2
29132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29133 $as_echo_n "checking for $ac_word... " >&6; }
29134 if test "${ac_cv_prog_MSGFMT+set}" = set; then
29135   $as_echo_n "(cached) " >&6
29136 else
29137   if test -n "$MSGFMT"; then
29138   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
29139 else
29140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29141 for as_dir in $PATH
29142 do
29143   IFS=$as_save_IFS
29144   test -z "$as_dir" && as_dir=.
29145   for ac_exec_ext in '' $ac_executable_extensions; do
29146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29147     ac_cv_prog_MSGFMT="$ac_prog"
29148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29149     break 2
29150   fi
29151 done
29152 done
29153 IFS=$as_save_IFS
29154
29155 fi
29156 fi
29157 MSGFMT=$ac_cv_prog_MSGFMT
29158 if test -n "$MSGFMT"; then
29159   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
29160 $as_echo "$MSGFMT" >&6; }
29161 else
29162   { $as_echo "$as_me:$LINENO: result: no" >&5
29163 $as_echo "no" >&6; }
29164 fi
29165
29166
29167   test -n "$MSGFMT" && break
29168 done
29169
29170   if test -z "$MSGFMT"; then
29171     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
29172 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
29173    { (exit 1); exit 1; }; }
29174   fi
29175   for ac_prog in msgmerge
29176 do
29177   # Extract the first word of "$ac_prog", so it can be a program name with args.
29178 set dummy $ac_prog; ac_word=$2
29179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29180 $as_echo_n "checking for $ac_word... " >&6; }
29181 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
29182   $as_echo_n "(cached) " >&6
29183 else
29184   if test -n "$MSGMERGE"; then
29185   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
29186 else
29187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29188 for as_dir in $PATH
29189 do
29190   IFS=$as_save_IFS
29191   test -z "$as_dir" && as_dir=.
29192   for ac_exec_ext in '' $ac_executable_extensions; do
29193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29194     ac_cv_prog_MSGMERGE="$ac_prog"
29195     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29196     break 2
29197   fi
29198 done
29199 done
29200 IFS=$as_save_IFS
29201
29202 fi
29203 fi
29204 MSGMERGE=$ac_cv_prog_MSGMERGE
29205 if test -n "$MSGMERGE"; then
29206   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
29207 $as_echo "$MSGMERGE" >&6; }
29208 else
29209   { $as_echo "$as_me:$LINENO: result: no" >&5
29210 $as_echo "no" >&6; }
29211 fi
29212
29213
29214   test -n "$MSGMERGE" && break
29215 done
29216
29217   for ac_prog in xgettext
29218 do
29219   # Extract the first word of "$ac_prog", so it can be a program name with args.
29220 set dummy $ac_prog; ac_word=$2
29221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29222 $as_echo_n "checking for $ac_word... " >&6; }
29223 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
29224   $as_echo_n "(cached) " >&6
29225 else
29226   if test -n "$XGETTEXT"; then
29227   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
29228 else
29229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29230 for as_dir in $PATH
29231 do
29232   IFS=$as_save_IFS
29233   test -z "$as_dir" && as_dir=.
29234   for ac_exec_ext in '' $ac_executable_extensions; do
29235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29236     ac_cv_prog_XGETTEXT="$ac_prog"
29237     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29238     break 2
29239   fi
29240 done
29241 done
29242 IFS=$as_save_IFS
29243
29244 fi
29245 fi
29246 XGETTEXT=$ac_cv_prog_XGETTEXT
29247 if test -n "$XGETTEXT"; then
29248   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
29249 $as_echo "$XGETTEXT" >&6; }
29250 else
29251   { $as_echo "$as_me:$LINENO: result: no" >&5
29252 $as_echo "no" >&6; }
29253 fi
29254
29255
29256   test -n "$XGETTEXT" && break
29257 done
29258
29259
29260 fi
29261
29262 # Check for Tcl configuration script tclConfig.sh
29263 if test "$with_tcl" = yes; then
29264     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
29265 do
29266   # Extract the first word of "$ac_prog", so it can be a program name with args.
29267 set dummy $ac_prog; ac_word=$2
29268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29269 $as_echo_n "checking for $ac_word... " >&6; }
29270 if test "${ac_cv_path_TCLSH+set}" = set; then
29271   $as_echo_n "(cached) " >&6
29272 else
29273   case $TCLSH in
29274   [\\/]* | ?:[\\/]*)
29275   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
29276   ;;
29277   *)
29278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29279 for as_dir in $PATH
29280 do
29281   IFS=$as_save_IFS
29282   test -z "$as_dir" && as_dir=.
29283   for ac_exec_ext in '' $ac_executable_extensions; do
29284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29285     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
29286     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29287     break 2
29288   fi
29289 done
29290 done
29291 IFS=$as_save_IFS
29292
29293   ;;
29294 esac
29295 fi
29296 TCLSH=$ac_cv_path_TCLSH
29297 if test -n "$TCLSH"; then
29298   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
29299 $as_echo "$TCLSH" >&6; }
29300 else
29301   { $as_echo "$as_me:$LINENO: result: no" >&5
29302 $as_echo "no" >&6; }
29303 fi
29304
29305
29306   test -n "$TCLSH" && break
29307 done
29308
29309 if test x"$TCLSH" = x""; then
29310   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
29311 $as_echo "$as_me: error: Tcl shell not found" >&2;}
29312    { (exit 1); exit 1; }; }
29313 fi
29314
29315 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
29316 $as_echo_n "checking for tclConfig.sh... " >&6; }
29317 # Let user override test
29318 if test -z "$TCL_CONFIG_SH"; then
29319     pgac_test_dirs="$with_tclconfig"
29320
29321     set X $pgac_test_dirs; shift
29322     if test $# -eq 0; then
29323         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
29324 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
29325    { (exit 1); exit 1; }; }
29326         set X `echo 'puts $auto_path' | $TCLSH`; shift
29327     fi
29328
29329     for pgac_dir do
29330         if test -r "$pgac_dir/tclConfig.sh"; then
29331             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
29332             break
29333         fi
29334     done
29335 fi
29336
29337 if test -z "$TCL_CONFIG_SH"; then
29338     { $as_echo "$as_me:$LINENO: result: no" >&5
29339 $as_echo "no" >&6; }
29340     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
29341 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
29342    { (exit 1); exit 1; }; }
29343 else
29344     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
29345 $as_echo "$TCL_CONFIG_SH" >&6; }
29346 fi
29347
29348
29349
29350     . "$TCL_CONFIG_SH"
29351 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
29352 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
29353 eval TCL_LIBS=\"$TCL_LIBS\"
29354 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
29355 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
29356
29357         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
29358     ac_save_CPPFLAGS=$CPPFLAGS
29359     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
29360     if test "${ac_cv_header_tcl_h+set}" = set; then
29361   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29362 $as_echo_n "checking for tcl.h... " >&6; }
29363 if test "${ac_cv_header_tcl_h+set}" = set; then
29364   $as_echo_n "(cached) " >&6
29365 fi
29366 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29367 $as_echo "$ac_cv_header_tcl_h" >&6; }
29368 else
29369   # Is the header compilable?
29370 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
29371 $as_echo_n "checking tcl.h usability... " >&6; }
29372 cat >conftest.$ac_ext <<_ACEOF
29373 /* confdefs.h.  */
29374 _ACEOF
29375 cat confdefs.h >>conftest.$ac_ext
29376 cat >>conftest.$ac_ext <<_ACEOF
29377 /* end confdefs.h.  */
29378 $ac_includes_default
29379 #include <tcl.h>
29380 _ACEOF
29381 rm -f conftest.$ac_objext
29382 if { (ac_try="$ac_compile"
29383 case "(($ac_try" in
29384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29385   *) ac_try_echo=$ac_try;;
29386 esac
29387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29388 $as_echo "$ac_try_echo") >&5
29389   (eval "$ac_compile") 2>conftest.er1
29390   ac_status=$?
29391   grep -v '^ *+' conftest.er1 >conftest.err
29392   rm -f conftest.er1
29393   cat conftest.err >&5
29394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395   (exit $ac_status); } && {
29396          test -z "$ac_c_werror_flag" ||
29397          test ! -s conftest.err
29398        } && test -s conftest.$ac_objext; then
29399   ac_header_compiler=yes
29400 else
29401   $as_echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29403
29404         ac_header_compiler=no
29405 fi
29406
29407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29408 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29409 $as_echo "$ac_header_compiler" >&6; }
29410
29411 # Is the header present?
29412 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29413 $as_echo_n "checking tcl.h presence... " >&6; }
29414 cat >conftest.$ac_ext <<_ACEOF
29415 /* confdefs.h.  */
29416 _ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h.  */
29420 #include <tcl.h>
29421 _ACEOF
29422 if { (ac_try="$ac_cpp conftest.$ac_ext"
29423 case "(($ac_try" in
29424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425   *) ac_try_echo=$ac_try;;
29426 esac
29427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29428 $as_echo "$ac_try_echo") >&5
29429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29430   ac_status=$?
29431   grep -v '^ *+' conftest.er1 >conftest.err
29432   rm -f conftest.er1
29433   cat conftest.err >&5
29434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435   (exit $ac_status); } >/dev/null && {
29436          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29437          test ! -s conftest.err
29438        }; then
29439   ac_header_preproc=yes
29440 else
29441   $as_echo "$as_me: failed program was:" >&5
29442 sed 's/^/| /' conftest.$ac_ext >&5
29443
29444   ac_header_preproc=no
29445 fi
29446
29447 rm -f conftest.err conftest.$ac_ext
29448 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29449 $as_echo "$ac_header_preproc" >&6; }
29450
29451 # So?  What about this header?
29452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29453   yes:no: )
29454     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29455 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29456     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29457 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29458     ac_header_preproc=yes
29459     ;;
29460   no:yes:* )
29461     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29462 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29463     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
29464 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
29465     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29466 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29467     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
29468 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29469     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29470 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29471     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29472 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29473     ( cat <<\_ASBOX
29474 ## ---------------------------------------- ##
29475 ## Report this to pgsql-bugs@postgresql.org ##
29476 ## ---------------------------------------- ##
29477 _ASBOX
29478      ) | sed "s/^/$as_me: WARNING:     /" >&2
29479     ;;
29480 esac
29481 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29482 $as_echo_n "checking for tcl.h... " >&6; }
29483 if test "${ac_cv_header_tcl_h+set}" = set; then
29484   $as_echo_n "(cached) " >&6
29485 else
29486   ac_cv_header_tcl_h=$ac_header_preproc
29487 fi
29488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29489 $as_echo "$ac_cv_header_tcl_h" >&6; }
29490
29491 fi
29492 if test "x$ac_cv_header_tcl_h" = x""yes; then
29493   :
29494 else
29495   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29496 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29497    { (exit 1); exit 1; }; }
29498 fi
29499
29500
29501     CPPFLAGS=$ac_save_CPPFLAGS
29502 fi
29503
29504 # check for <perl.h>
29505 if test "$with_perl" = yes; then
29506   ac_save_CPPFLAGS=$CPPFLAGS
29507   CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
29508   { $as_echo "$as_me:$LINENO: checking for perl.h" >&5
29509 $as_echo_n "checking for perl.h... " >&6; }
29510 if test "${ac_cv_header_perl_h+set}" = set; then
29511   $as_echo_n "(cached) " >&6
29512 else
29513   cat >conftest.$ac_ext <<_ACEOF
29514 /* confdefs.h.  */
29515 _ACEOF
29516 cat confdefs.h >>conftest.$ac_ext
29517 cat >>conftest.$ac_ext <<_ACEOF
29518 /* end confdefs.h.  */
29519 #include <EXTERN.h>
29520
29521 #include <perl.h>
29522 _ACEOF
29523 rm -f conftest.$ac_objext
29524 if { (ac_try="$ac_compile"
29525 case "(($ac_try" in
29526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527   *) ac_try_echo=$ac_try;;
29528 esac
29529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29530 $as_echo "$ac_try_echo") >&5
29531   (eval "$ac_compile") 2>conftest.er1
29532   ac_status=$?
29533   grep -v '^ *+' conftest.er1 >conftest.err
29534   rm -f conftest.er1
29535   cat conftest.err >&5
29536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); } && {
29538          test -z "$ac_c_werror_flag" ||
29539          test ! -s conftest.err
29540        } && test -s conftest.$ac_objext; then
29541   ac_cv_header_perl_h=yes
29542 else
29543   $as_echo "$as_me: failed program was:" >&5
29544 sed 's/^/| /' conftest.$ac_ext >&5
29545
29546         ac_cv_header_perl_h=no
29547 fi
29548
29549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29550 fi
29551 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perl_h" >&5
29552 $as_echo "$ac_cv_header_perl_h" >&6; }
29553 if test "x$ac_cv_header_perl_h" = x""yes; then
29554   :
29555 else
29556   { { $as_echo "$as_me:$LINENO: error: header file <perl.h> is required for Perl" >&5
29557 $as_echo "$as_me: error: header file <perl.h> is required for Perl" >&2;}
29558    { (exit 1); exit 1; }; }
29559 fi
29560
29561
29562   # While we're at it, check that we can link to libperl.
29563   # On most platforms, if perl.h is there then libperl.so will be too, but at
29564   # this writing Debian packages them separately.  There is no known reason to
29565   # waste cycles on separate probes for the Tcl or Python libraries, though.
29566   pgac_save_LIBS=$LIBS
29567   LIBS="$perl_embed_ldflags"
29568   { $as_echo "$as_me:$LINENO: checking for libperl" >&5
29569 $as_echo_n "checking for libperl... " >&6; }
29570   cat >conftest.$ac_ext <<_ACEOF
29571 /* confdefs.h.  */
29572 _ACEOF
29573 cat confdefs.h >>conftest.$ac_ext
29574 cat >>conftest.$ac_ext <<_ACEOF
29575 /* end confdefs.h.  */
29576
29577 #include <EXTERN.h>
29578 #include <perl.h>
29579
29580 int
29581 main ()
29582 {
29583 perl_alloc();
29584   ;
29585   return 0;
29586 }
29587 _ACEOF
29588 rm -f conftest.$ac_objext conftest$ac_exeext
29589 if { (ac_try="$ac_link"
29590 case "(($ac_try" in
29591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29592   *) ac_try_echo=$ac_try;;
29593 esac
29594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29595 $as_echo "$ac_try_echo") >&5
29596   (eval "$ac_link") 2>conftest.er1
29597   ac_status=$?
29598   grep -v '^ *+' conftest.er1 >conftest.err
29599   rm -f conftest.er1
29600   cat conftest.err >&5
29601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602   (exit $ac_status); } && {
29603          test -z "$ac_c_werror_flag" ||
29604          test ! -s conftest.err
29605        } && test -s conftest$ac_exeext && {
29606          test "$cross_compiling" = yes ||
29607          $as_test_x conftest$ac_exeext
29608        }; then
29609   { $as_echo "$as_me:$LINENO: result: yes" >&5
29610 $as_echo "yes" >&6; }
29611 else
29612   $as_echo "$as_me: failed program was:" >&5
29613 sed 's/^/| /' conftest.$ac_ext >&5
29614
29615         { $as_echo "$as_me:$LINENO: result: no" >&5
29616 $as_echo "no" >&6; }
29617      { { $as_echo "$as_me:$LINENO: error: libperl library is required for Perl" >&5
29618 $as_echo "$as_me: error: libperl library is required for Perl" >&2;}
29619    { (exit 1); exit 1; }; }
29620 fi
29621
29622 rm -rf conftest.dSYM
29623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29624       conftest$ac_exeext conftest.$ac_ext
29625   LIBS=$pgac_save_LIBS
29626   CPPFLAGS=$ac_save_CPPFLAGS
29627 fi
29628
29629 # check for <Python.h>
29630 if test "$with_python" = yes; then
29631   ac_save_CPPFLAGS=$CPPFLAGS
29632   CPPFLAGS="$python_includespec $CPPFLAGS"
29633   if test "${ac_cv_header_Python_h+set}" = set; then
29634   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29635 $as_echo_n "checking for Python.h... " >&6; }
29636 if test "${ac_cv_header_Python_h+set}" = set; then
29637   $as_echo_n "(cached) " >&6
29638 fi
29639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29640 $as_echo "$ac_cv_header_Python_h" >&6; }
29641 else
29642   # Is the header compilable?
29643 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29644 $as_echo_n "checking Python.h usability... " >&6; }
29645 cat >conftest.$ac_ext <<_ACEOF
29646 /* confdefs.h.  */
29647 _ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h.  */
29651 $ac_includes_default
29652 #include <Python.h>
29653 _ACEOF
29654 rm -f conftest.$ac_objext
29655 if { (ac_try="$ac_compile"
29656 case "(($ac_try" in
29657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29658   *) ac_try_echo=$ac_try;;
29659 esac
29660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29661 $as_echo "$ac_try_echo") >&5
29662   (eval "$ac_compile") 2>conftest.er1
29663   ac_status=$?
29664   grep -v '^ *+' conftest.er1 >conftest.err
29665   rm -f conftest.er1
29666   cat conftest.err >&5
29667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668   (exit $ac_status); } && {
29669          test -z "$ac_c_werror_flag" ||
29670          test ! -s conftest.err
29671        } && test -s conftest.$ac_objext; then
29672   ac_header_compiler=yes
29673 else
29674   $as_echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29676
29677         ac_header_compiler=no
29678 fi
29679
29680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29681 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29682 $as_echo "$ac_header_compiler" >&6; }
29683
29684 # Is the header present?
29685 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29686 $as_echo_n "checking Python.h presence... " >&6; }
29687 cat >conftest.$ac_ext <<_ACEOF
29688 /* confdefs.h.  */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h.  */
29693 #include <Python.h>
29694 _ACEOF
29695 if { (ac_try="$ac_cpp conftest.$ac_ext"
29696 case "(($ac_try" in
29697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698   *) ac_try_echo=$ac_try;;
29699 esac
29700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29701 $as_echo "$ac_try_echo") >&5
29702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29703   ac_status=$?
29704   grep -v '^ *+' conftest.er1 >conftest.err
29705   rm -f conftest.er1
29706   cat conftest.err >&5
29707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708   (exit $ac_status); } >/dev/null && {
29709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29710          test ! -s conftest.err
29711        }; then
29712   ac_header_preproc=yes
29713 else
29714   $as_echo "$as_me: failed program was:" >&5
29715 sed 's/^/| /' conftest.$ac_ext >&5
29716
29717   ac_header_preproc=no
29718 fi
29719
29720 rm -f conftest.err conftest.$ac_ext
29721 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29722 $as_echo "$ac_header_preproc" >&6; }
29723
29724 # So?  What about this header?
29725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29726   yes:no: )
29727     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29728 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29729     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29730 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29731     ac_header_preproc=yes
29732     ;;
29733   no:yes:* )
29734     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29735 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29736     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29737 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29738     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29739 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29740     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29741 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29742     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29743 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29744     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29745 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29746     ( cat <<\_ASBOX
29747 ## ---------------------------------------- ##
29748 ## Report this to pgsql-bugs@postgresql.org ##
29749 ## ---------------------------------------- ##
29750 _ASBOX
29751      ) | sed "s/^/$as_me: WARNING:     /" >&2
29752     ;;
29753 esac
29754 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29755 $as_echo_n "checking for Python.h... " >&6; }
29756 if test "${ac_cv_header_Python_h+set}" = set; then
29757   $as_echo_n "(cached) " >&6
29758 else
29759   ac_cv_header_Python_h=$ac_header_preproc
29760 fi
29761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29762 $as_echo "$ac_cv_header_Python_h" >&6; }
29763
29764 fi
29765 if test "x$ac_cv_header_Python_h" = x""yes; then
29766   :
29767 else
29768   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29769 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29770    { (exit 1); exit 1; }; }
29771 fi
29772
29773
29774   CPPFLAGS=$ac_save_CPPFLAGS
29775 fi
29776
29777 #
29778 # Check for DocBook and tools
29779 #
29780 for ac_prog in onsgmls nsgmls
29781 do
29782   # Extract the first word of "$ac_prog", so it can be a program name with args.
29783 set dummy $ac_prog; ac_word=$2
29784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29785 $as_echo_n "checking for $ac_word... " >&6; }
29786 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29787   $as_echo_n "(cached) " >&6
29788 else
29789   if test -n "$NSGMLS"; then
29790   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29791 else
29792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29793 for as_dir in $PATH
29794 do
29795   IFS=$as_save_IFS
29796   test -z "$as_dir" && as_dir=.
29797   for ac_exec_ext in '' $ac_executable_extensions; do
29798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29799     ac_cv_prog_NSGMLS="$ac_prog"
29800     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29801     break 2
29802   fi
29803 done
29804 done
29805 IFS=$as_save_IFS
29806
29807 fi
29808 fi
29809 NSGMLS=$ac_cv_prog_NSGMLS
29810 if test -n "$NSGMLS"; then
29811   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29812 $as_echo "$NSGMLS" >&6; }
29813 else
29814   { $as_echo "$as_me:$LINENO: result: no" >&5
29815 $as_echo "no" >&6; }
29816 fi
29817
29818
29819   test -n "$NSGMLS" && break
29820 done
29821
29822 for ac_prog in openjade jade
29823 do
29824   # Extract the first word of "$ac_prog", so it can be a program name with args.
29825 set dummy $ac_prog; ac_word=$2
29826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29827 $as_echo_n "checking for $ac_word... " >&6; }
29828 if test "${ac_cv_prog_JADE+set}" = set; then
29829   $as_echo_n "(cached) " >&6
29830 else
29831   if test -n "$JADE"; then
29832   ac_cv_prog_JADE="$JADE" # Let the user override the test.
29833 else
29834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29835 for as_dir in $PATH
29836 do
29837   IFS=$as_save_IFS
29838   test -z "$as_dir" && as_dir=.
29839   for ac_exec_ext in '' $ac_executable_extensions; do
29840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29841     ac_cv_prog_JADE="$ac_prog"
29842     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29843     break 2
29844   fi
29845 done
29846 done
29847 IFS=$as_save_IFS
29848
29849 fi
29850 fi
29851 JADE=$ac_cv_prog_JADE
29852 if test -n "$JADE"; then
29853   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29854 $as_echo "$JADE" >&6; }
29855 else
29856   { $as_echo "$as_me:$LINENO: result: no" >&5
29857 $as_echo "no" >&6; }
29858 fi
29859
29860
29861   test -n "$JADE" && break
29862 done
29863
29864
29865 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29866 $as_echo_n "checking for DocBook V4.2... " >&6; }
29867 if test "${pgac_cv_check_docbook+set}" = set; then
29868   $as_echo_n "(cached) " >&6
29869 else
29870   cat >conftest.sgml <<EOF
29871 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29872 <book>
29873  <title>test</title>
29874  <chapter>
29875   <title>random</title>
29876    <sect1>
29877     <title>testsect</title>
29878     <para>text</para>
29879   </sect1>
29880  </chapter>
29881 </book>
29882 EOF
29883
29884 pgac_cv_check_docbook=no
29885
29886 if test -n "$NSGMLS"; then
29887   $NSGMLS -s conftest.sgml 1>&5 2>&1
29888   if test $? -eq 0; then
29889     pgac_cv_check_docbook=yes
29890   fi
29891 fi
29892 rm -f conftest.sgml
29893 fi
29894 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29895 $as_echo "$pgac_cv_check_docbook" >&6; }
29896
29897 have_docbook=$pgac_cv_check_docbook
29898
29899
29900 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29901 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29902 if test "${pgac_cv_path_stylesheets+set}" = set; then
29903   $as_echo_n "(cached) " >&6
29904 else
29905   if test -n "$DOCBOOKSTYLE"; then
29906   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29907 else
29908   for pgac_prefix in /usr /usr/local /opt /sw; do
29909     for pgac_infix in share lib; do
29910       for pgac_postfix in \
29911         sgml/stylesheets/nwalsh-modular \
29912         sgml/stylesheets/docbook \
29913         sgml/stylesheets/dsssl/docbook \
29914         sgml/docbook-dsssl \
29915         sgml/docbook/dsssl/modular \
29916         sgml/docbook/stylesheet/dsssl/modular \
29917         sgml/docbook/dsssl-stylesheets \
29918         sgml/dsssl/docbook-dsssl-nwalsh
29919       do
29920         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29921         if test -r "$pgac_candidate/html/docbook.dsl" \
29922            && test -r "$pgac_candidate/print/docbook.dsl"
29923         then
29924           pgac_cv_path_stylesheets=$pgac_candidate
29925           break 3
29926         fi
29927       done
29928     done
29929   done
29930 fi
29931 fi
29932
29933 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29934
29935 if test -n "$DOCBOOKSTYLE"; then
29936   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29937 $as_echo "$DOCBOOKSTYLE" >&6; }
29938 else
29939   { $as_echo "$as_me:$LINENO: result: no" >&5
29940 $as_echo "no" >&6; }
29941 fi
29942 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29943   COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29944
29945 else
29946   # Extract the first word of "collateindex.pl", so it can be a program name with args.
29947 set dummy collateindex.pl; ac_word=$2
29948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29949 $as_echo_n "checking for $ac_word... " >&6; }
29950 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29951   $as_echo_n "(cached) " >&6
29952 else
29953   case $COLLATEINDEX in
29954   [\\/]* | ?:[\\/]*)
29955   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29956   ;;
29957   *)
29958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29959 for as_dir in $PATH
29960 do
29961   IFS=$as_save_IFS
29962   test -z "$as_dir" && as_dir=.
29963   for ac_exec_ext in '' $ac_executable_extensions; do
29964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29965     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29966     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29967     break 2
29968   fi
29969 done
29970 done
29971 IFS=$as_save_IFS
29972
29973   ;;
29974 esac
29975 fi
29976 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29977 if test -n "$COLLATEINDEX"; then
29978   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29979 $as_echo "$COLLATEINDEX" >&6; }
29980 else
29981   { $as_echo "$as_me:$LINENO: result: no" >&5
29982 $as_echo "no" >&6; }
29983 fi
29984
29985
29986 fi
29987 for ac_prog in xsltproc
29988 do
29989   # Extract the first word of "$ac_prog", so it can be a program name with args.
29990 set dummy $ac_prog; ac_word=$2
29991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29992 $as_echo_n "checking for $ac_word... " >&6; }
29993 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29994   $as_echo_n "(cached) " >&6
29995 else
29996   if test -n "$XSLTPROC"; then
29997   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29998 else
29999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30000 for as_dir in $PATH
30001 do
30002   IFS=$as_save_IFS
30003   test -z "$as_dir" && as_dir=.
30004   for ac_exec_ext in '' $ac_executable_extensions; do
30005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30006     ac_cv_prog_XSLTPROC="$ac_prog"
30007     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30008     break 2
30009   fi
30010 done
30011 done
30012 IFS=$as_save_IFS
30013
30014 fi
30015 fi
30016 XSLTPROC=$ac_cv_prog_XSLTPROC
30017 if test -n "$XSLTPROC"; then
30018   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
30019 $as_echo "$XSLTPROC" >&6; }
30020 else
30021   { $as_echo "$as_me:$LINENO: result: no" >&5
30022 $as_echo "no" >&6; }
30023 fi
30024
30025
30026   test -n "$XSLTPROC" && break
30027 done
30028
30029 for ac_prog in osx sgml2xml sx
30030 do
30031   # Extract the first word of "$ac_prog", so it can be a program name with args.
30032 set dummy $ac_prog; ac_word=$2
30033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30034 $as_echo_n "checking for $ac_word... " >&6; }
30035 if test "${ac_cv_prog_OSX+set}" = set; then
30036   $as_echo_n "(cached) " >&6
30037 else
30038   if test -n "$OSX"; then
30039   ac_cv_prog_OSX="$OSX" # Let the user override the test.
30040 else
30041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30042 for as_dir in $PATH
30043 do
30044   IFS=$as_save_IFS
30045   test -z "$as_dir" && as_dir=.
30046   for ac_exec_ext in '' $ac_executable_extensions; do
30047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30048     ac_cv_prog_OSX="$ac_prog"
30049     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30050     break 2
30051   fi
30052 done
30053 done
30054 IFS=$as_save_IFS
30055
30056 fi
30057 fi
30058 OSX=$ac_cv_prog_OSX
30059 if test -n "$OSX"; then
30060   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
30061 $as_echo "$OSX" >&6; }
30062 else
30063   { $as_echo "$as_me:$LINENO: result: no" >&5
30064 $as_echo "no" >&6; }
30065 fi
30066
30067
30068   test -n "$OSX" && break
30069 done
30070
30071
30072 # Thread testing
30073
30074 # We have to run the thread test near the end so we have all our symbols
30075 # defined.  Cross compiling throws a warning.
30076 #
30077 if test "$enable_thread_safety" = yes; then
30078 if test "$PORTNAME" != "win32"
30079 then
30080 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
30081 $as_echo_n "checking thread safety of required library functions... " >&6; }
30082
30083 _CFLAGS="$CFLAGS"
30084 _LIBS="$LIBS"
30085 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
30086 LIBS="$LIBS $PTHREAD_LIBS"
30087 if test "$cross_compiling" = yes; then
30088   { $as_echo "$as_me:$LINENO: result: maybe" >&5
30089 $as_echo "maybe" >&6; }
30090   { $as_echo "$as_me:$LINENO: WARNING:
30091 *** Skipping thread test program because of cross-compile build.
30092 *** Run the program in src/test/thread on the target machine.
30093 " >&5
30094 $as_echo "$as_me: WARNING:
30095 *** Skipping thread test program because of cross-compile build.
30096 *** Run the program in src/test/thread on the target machine.
30097 " >&2;}
30098 else
30099   cat >conftest.$ac_ext <<_ACEOF
30100 /* confdefs.h.  */
30101 _ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h.  */
30105 #include "$srcdir/src/test/thread/thread_test.c"
30106 _ACEOF
30107 rm -f conftest$ac_exeext
30108 if { (ac_try="$ac_link"
30109 case "(($ac_try" in
30110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111   *) ac_try_echo=$ac_try;;
30112 esac
30113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30114 $as_echo "$ac_try_echo") >&5
30115   (eval "$ac_link") 2>&5
30116   ac_status=$?
30117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30119   { (case "(($ac_try" in
30120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121   *) ac_try_echo=$ac_try;;
30122 esac
30123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30124 $as_echo "$ac_try_echo") >&5
30125   (eval "$ac_try") 2>&5
30126   ac_status=$?
30127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128   (exit $ac_status); }; }; then
30129   { $as_echo "$as_me:$LINENO: result: yes" >&5
30130 $as_echo "yes" >&6; }
30131 else
30132   $as_echo "$as_me: program exited with status $ac_status" >&5
30133 $as_echo "$as_me: failed program was:" >&5
30134 sed 's/^/| /' conftest.$ac_ext >&5
30135
30136 ( exit $ac_status )
30137 { $as_echo "$as_me:$LINENO: result: no" >&5
30138 $as_echo "no" >&6; }
30139   { { $as_echo "$as_me:$LINENO: error: thread test program failed
30140 This platform is not thread-safe.  Check the file 'config.log' or compile
30141 and run src/test/thread/thread_test for the exact reason.
30142 Use --disable-thread-safety to disable thread safety." >&5
30143 $as_echo "$as_me: error: thread test program failed
30144 This platform is not thread-safe.  Check the file 'config.log' or compile
30145 and run src/test/thread/thread_test for the exact reason.
30146 Use --disable-thread-safety to disable thread safety." >&2;}
30147    { (exit 1); exit 1; }; }
30148 fi
30149 rm -rf conftest.dSYM
30150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30151 fi
30152
30153
30154 CFLAGS="$_CFLAGS"
30155 LIBS="$_LIBS"
30156 else
30157 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
30158 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
30159 fi
30160 fi
30161
30162 # If compiler will take -Wl,--as-needed (or various platform-specific
30163 # spellings thereof) then add that to LDFLAGS.  This is much easier than
30164 # trying to filter LIBS to the minimum for each executable.
30165 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
30166 # libreadline; therefore we postpone testing it until we know what library
30167 # dependencies readline has.  The test code will try to link with $LIBS.
30168 if test "$with_readline" = yes; then
30169   link_test_func=readline
30170 else
30171   link_test_func=exit
30172 fi
30173
30174 if test "$PORTNAME" = "darwin"; then
30175   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
30176 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
30177 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
30178   $as_echo_n "(cached) " >&6
30179 else
30180   pgac_save_LDFLAGS=$LDFLAGS
30181 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
30182 if test "$cross_compiling" = yes; then
30183   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
30184 else
30185   cat >conftest.$ac_ext <<_ACEOF
30186 /* confdefs.h.  */
30187 _ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h.  */
30191 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30192 int
30193 main ()
30194 {
30195
30196   ;
30197   return 0;
30198 }
30199 _ACEOF
30200 rm -f conftest$ac_exeext
30201 if { (ac_try="$ac_link"
30202 case "(($ac_try" in
30203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204   *) ac_try_echo=$ac_try;;
30205 esac
30206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30207 $as_echo "$ac_try_echo") >&5
30208   (eval "$ac_link") 2>&5
30209   ac_status=$?
30210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30212   { (case "(($ac_try" in
30213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214   *) ac_try_echo=$ac_try;;
30215 esac
30216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30217 $as_echo "$ac_try_echo") >&5
30218   (eval "$ac_try") 2>&5
30219   ac_status=$?
30220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221   (exit $ac_status); }; }; then
30222   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
30223 else
30224   $as_echo "$as_me: program exited with status $ac_status" >&5
30225 $as_echo "$as_me: failed program was:" >&5
30226 sed 's/^/| /' conftest.$ac_ext >&5
30227
30228 ( exit $ac_status )
30229 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
30230 fi
30231 rm -rf conftest.dSYM
30232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30233 fi
30234
30235
30236 LDFLAGS="$pgac_save_LDFLAGS"
30237 fi
30238 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
30239 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
30240 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
30241   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
30242 fi
30243
30244 elif test "$PORTNAME" = "openbsd"; then
30245   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
30246 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
30247 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
30248   $as_echo_n "(cached) " >&6
30249 else
30250   pgac_save_LDFLAGS=$LDFLAGS
30251 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
30252 if test "$cross_compiling" = yes; then
30253   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
30254 else
30255   cat >conftest.$ac_ext <<_ACEOF
30256 /* confdefs.h.  */
30257 _ACEOF
30258 cat confdefs.h >>conftest.$ac_ext
30259 cat >>conftest.$ac_ext <<_ACEOF
30260 /* end confdefs.h.  */
30261 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30262 int
30263 main ()
30264 {
30265
30266   ;
30267   return 0;
30268 }
30269 _ACEOF
30270 rm -f conftest$ac_exeext
30271 if { (ac_try="$ac_link"
30272 case "(($ac_try" in
30273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30274   *) ac_try_echo=$ac_try;;
30275 esac
30276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30277 $as_echo "$ac_try_echo") >&5
30278   (eval "$ac_link") 2>&5
30279   ac_status=$?
30280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30282   { (case "(($ac_try" in
30283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284   *) ac_try_echo=$ac_try;;
30285 esac
30286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30287 $as_echo "$ac_try_echo") >&5
30288   (eval "$ac_try") 2>&5
30289   ac_status=$?
30290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291   (exit $ac_status); }; }; then
30292   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
30293 else
30294   $as_echo "$as_me: program exited with status $ac_status" >&5
30295 $as_echo "$as_me: failed program was:" >&5
30296 sed 's/^/| /' conftest.$ac_ext >&5
30297
30298 ( exit $ac_status )
30299 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
30300 fi
30301 rm -rf conftest.dSYM
30302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30303 fi
30304
30305
30306 LDFLAGS="$pgac_save_LDFLAGS"
30307 fi
30308 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
30309 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
30310 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
30311   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
30312 fi
30313
30314 else
30315   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
30316 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
30317 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
30318   $as_echo_n "(cached) " >&6
30319 else
30320   pgac_save_LDFLAGS=$LDFLAGS
30321 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
30322 if test "$cross_compiling" = yes; then
30323   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
30324 else
30325   cat >conftest.$ac_ext <<_ACEOF
30326 /* confdefs.h.  */
30327 _ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h.  */
30331 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30332 int
30333 main ()
30334 {
30335
30336   ;
30337   return 0;
30338 }
30339 _ACEOF
30340 rm -f conftest$ac_exeext
30341 if { (ac_try="$ac_link"
30342 case "(($ac_try" in
30343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30344   *) ac_try_echo=$ac_try;;
30345 esac
30346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30347 $as_echo "$ac_try_echo") >&5
30348   (eval "$ac_link") 2>&5
30349   ac_status=$?
30350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30352   { (case "(($ac_try" in
30353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354   *) ac_try_echo=$ac_try;;
30355 esac
30356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30357 $as_echo "$ac_try_echo") >&5
30358   (eval "$ac_try") 2>&5
30359   ac_status=$?
30360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361   (exit $ac_status); }; }; then
30362   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
30363 else
30364   $as_echo "$as_me: program exited with status $ac_status" >&5
30365 $as_echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30367
30368 ( exit $ac_status )
30369 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
30370 fi
30371 rm -rf conftest.dSYM
30372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30373 fi
30374
30375
30376 LDFLAGS="$pgac_save_LDFLAGS"
30377 fi
30378 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
30379 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
30380 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
30381   LDFLAGS="$LDFLAGS -Wl,--as-needed"
30382 fi
30383
30384 fi
30385
30386 # Create compiler version string
30387 if test x"$GCC" = x"yes" ; then
30388   cc_string=`${CC} --version | sed q`
30389   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
30390 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
30391   cc_string=`${CC} -V 2>&1 | sed q`
30392 else
30393   cc_string=$CC
30394 fi
30395
30396
30397 cat >>confdefs.h <<_ACEOF
30398 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
30399 _ACEOF
30400
30401
30402 # Supply a numeric version string for use by 3rd party add-ons
30403 # awk -F is a regex on some platforms, and not on others, so make "." a tab
30404 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
30405 tr '.' '        ' |
30406 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
30407
30408 cat >>confdefs.h <<_ACEOF
30409 #define PG_VERSION_NUM $PG_VERSION_NUM
30410 _ACEOF
30411
30412
30413
30414 # Begin output steps
30415
30416 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
30417 $as_echo "$as_me: using compiler=$cc_string" >&6;}
30418 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
30419 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
30420 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
30421 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
30422 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
30423 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
30424
30425 # prepare build tree if outside source tree
30426 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
30427 # Note 2: /bin/pwd might be better than shell's built-in at getting
30428 #         a symlink-free name.
30429 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
30430   vpath_build=no
30431 else
30432   vpath_build=yes
30433   if test "$no_create" != yes; then
30434     $as_echo_n "preparing build tree... " >&6
30435     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
30436     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
30437       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
30438 $as_echo "$as_me: error: failed" >&2;}
30439    { (exit 1); exit 1; }; }
30440     { $as_echo "$as_me:$LINENO: result: done" >&5
30441 $as_echo "done" >&6; }
30442   fi
30443 fi
30444
30445
30446
30447 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
30448
30449
30450 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}"
30451
30452
30453 if test "$PORTNAME" = "win32"; then
30454 ac_config_commands="$ac_config_commands check_win32_symlinks"
30455
30456 fi
30457
30458 ac_config_headers="$ac_config_headers src/include/pg_config.h"
30459
30460
30461 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
30462
30463
30464 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
30465
30466
30467 cat >confcache <<\_ACEOF
30468 # This file is a shell script that caches the results of configure
30469 # tests run on this system so they can be shared between configure
30470 # scripts and configure runs, see configure's option --config-cache.
30471 # It is not useful on other systems.  If it contains results you don't
30472 # want to keep, you may remove or edit it.
30473 #
30474 # config.status only pays attention to the cache file if you give it
30475 # the --recheck option to rerun configure.
30476 #
30477 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30478 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30479 # following values.
30480
30481 _ACEOF
30482
30483 # The following way of writing the cache mishandles newlines in values,
30484 # but we know of no workaround that is simple, portable, and efficient.
30485 # So, we kill variables containing newlines.
30486 # Ultrix sh set writes to stderr and can't be redirected directly,
30487 # and sets the high bit in the cache file unless we assign to the vars.
30488 (
30489   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30490     eval ac_val=\$$ac_var
30491     case $ac_val in #(
30492     *${as_nl}*)
30493       case $ac_var in #(
30494       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30495 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30496       esac
30497       case $ac_var in #(
30498       _ | IFS | as_nl) ;; #(
30499       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30500       *) $as_unset $ac_var ;;
30501       esac ;;
30502     esac
30503   done
30504
30505   (set) 2>&1 |
30506     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30507     *${as_nl}ac_space=\ *)
30508       # `set' does not quote correctly, so add quotes (double-quote
30509       # substitution turns \\\\ into \\, and sed turns \\ into \).
30510       sed -n \
30511         "s/'/'\\\\''/g;
30512           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30513       ;; #(
30514     *)
30515       # `set' quotes correctly as required by POSIX, so do not add quotes.
30516       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30517       ;;
30518     esac |
30519     sort
30520 ) |
30521   sed '
30522      /^ac_cv_env_/b end
30523      t clear
30524      :clear
30525      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30526      t end
30527      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30528      :end' >>confcache
30529 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30530   if test -w "$cache_file"; then
30531     test "x$cache_file" != "x/dev/null" &&
30532       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30533 $as_echo "$as_me: updating cache $cache_file" >&6;}
30534     cat confcache >$cache_file
30535   else
30536     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30537 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30538   fi
30539 fi
30540 rm -f confcache
30541
30542 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30543 # Let make expand exec_prefix.
30544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30545
30546 DEFS=-DHAVE_CONFIG_H
30547
30548 ac_libobjs=
30549 ac_ltlibobjs=
30550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30551   # 1. Remove the extension, and $U if already installed.
30552   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30553   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30554   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30555   #    will be set to the directory where LIBOBJS objects are built.
30556   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30557   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30558 done
30559 LIBOBJS=$ac_libobjs
30560
30561 LTLIBOBJS=$ac_ltlibobjs
30562
30563
30564
30565
30566 : ${CONFIG_STATUS=./config.status}
30567 ac_write_fail=0
30568 ac_clean_files_save=$ac_clean_files
30569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30570 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30571 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30572 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30573 #! $SHELL
30574 # Generated by $as_me.
30575 # Run this file to recreate the current configuration.
30576 # Compiler output produced by configure, useful for debugging
30577 # configure, is in config.log if it exists.
30578
30579 debug=false
30580 ac_cs_recheck=false
30581 ac_cs_silent=false
30582 SHELL=\${CONFIG_SHELL-$SHELL}
30583 _ACEOF
30584
30585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30586 ## --------------------- ##
30587 ## M4sh Initialization.  ##
30588 ## --------------------- ##
30589
30590 # Be more Bourne compatible
30591 DUALCASE=1; export DUALCASE # for MKS sh
30592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30593   emulate sh
30594   NULLCMD=:
30595   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30596   # is contrary to our usage.  Disable this feature.
30597   alias -g '${1+"$@"}'='"$@"'
30598   setopt NO_GLOB_SUBST
30599 else
30600   case `(set -o) 2>/dev/null` in
30601   *posix*) set -o posix ;;
30602 esac
30603
30604 fi
30605
30606
30607
30608
30609 # PATH needs CR
30610 # Avoid depending upon Character Ranges.
30611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30614 as_cr_digits='0123456789'
30615 as_cr_alnum=$as_cr_Letters$as_cr_digits
30616
30617 as_nl='
30618 '
30619 export as_nl
30620 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30621 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30624 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30625   as_echo='printf %s\n'
30626   as_echo_n='printf %s'
30627 else
30628   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30629     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30630     as_echo_n='/usr/ucb/echo -n'
30631   else
30632     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30633     as_echo_n_body='eval
30634       arg=$1;
30635       case $arg in
30636       *"$as_nl"*)
30637         expr "X$arg" : "X\\(.*\\)$as_nl";
30638         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30639       esac;
30640       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30641     '
30642     export as_echo_n_body
30643     as_echo_n='sh -c $as_echo_n_body as_echo'
30644   fi
30645   export as_echo_body
30646   as_echo='sh -c $as_echo_body as_echo'
30647 fi
30648
30649 # The user is always right.
30650 if test "${PATH_SEPARATOR+set}" != set; then
30651   PATH_SEPARATOR=:
30652   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30653     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30654       PATH_SEPARATOR=';'
30655   }
30656 fi
30657
30658 # Support unset when possible.
30659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30660   as_unset=unset
30661 else
30662   as_unset=false
30663 fi
30664
30665
30666 # IFS
30667 # We need space, tab and new line, in precisely that order.  Quoting is
30668 # there to prevent editors from complaining about space-tab.
30669 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30670 # splitting by setting IFS to empty value.)
30671 IFS=" ""        $as_nl"
30672
30673 # Find who we are.  Look in the path if we contain no directory separator.
30674 case $0 in
30675   *[\\/]* ) as_myself=$0 ;;
30676   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30677 for as_dir in $PATH
30678 do
30679   IFS=$as_save_IFS
30680   test -z "$as_dir" && as_dir=.
30681   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30682 done
30683 IFS=$as_save_IFS
30684
30685      ;;
30686 esac
30687 # We did not find ourselves, most probably we were run as `sh COMMAND'
30688 # in which case we are not to be found in the path.
30689 if test "x$as_myself" = x; then
30690   as_myself=$0
30691 fi
30692 if test ! -f "$as_myself"; then
30693   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30694   { (exit 1); exit 1; }
30695 fi
30696
30697 # Work around bugs in pre-3.0 UWIN ksh.
30698 for as_var in ENV MAIL MAILPATH
30699 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30700 done
30701 PS1='$ '
30702 PS2='> '
30703 PS4='+ '
30704
30705 # NLS nuisances.
30706 LC_ALL=C
30707 export LC_ALL
30708 LANGUAGE=C
30709 export LANGUAGE
30710
30711 # Required to use basename.
30712 if expr a : '\(a\)' >/dev/null 2>&1 &&
30713    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30714   as_expr=expr
30715 else
30716   as_expr=false
30717 fi
30718
30719 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30720   as_basename=basename
30721 else
30722   as_basename=false
30723 fi
30724
30725
30726 # Name of the executable.
30727 as_me=`$as_basename -- "$0" ||
30728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30729          X"$0" : 'X\(//\)$' \| \
30730          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30731 $as_echo X/"$0" |
30732     sed '/^.*\/\([^/][^/]*\)\/*$/{
30733             s//\1/
30734             q
30735           }
30736           /^X\/\(\/\/\)$/{
30737             s//\1/
30738             q
30739           }
30740           /^X\/\(\/\).*/{
30741             s//\1/
30742             q
30743           }
30744           s/.*/./; q'`
30745
30746 # CDPATH.
30747 $as_unset CDPATH
30748
30749
30750
30751   as_lineno_1=$LINENO
30752   as_lineno_2=$LINENO
30753   test "x$as_lineno_1" != "x$as_lineno_2" &&
30754   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30755
30756   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30757   # uniformly replaced by the line number.  The first 'sed' inserts a
30758   # line-number line after each line using $LINENO; the second 'sed'
30759   # does the real work.  The second script uses 'N' to pair each
30760   # line-number line with the line containing $LINENO, and appends
30761   # trailing '-' during substitution so that $LINENO is not a special
30762   # case at line end.
30763   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30764   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30765   # E. McMahon (1931-1989) for sed's syntax.  :-)
30766   sed -n '
30767     p
30768     /[$]LINENO/=
30769   ' <$as_myself |
30770     sed '
30771       s/[$]LINENO.*/&-/
30772       t lineno
30773       b
30774       :lineno
30775       N
30776       :loop
30777       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30778       t loop
30779       s/-\n.*//
30780     ' >$as_me.lineno &&
30781   chmod +x "$as_me.lineno" ||
30782     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30783    { (exit 1); exit 1; }; }
30784
30785   # Don't try to exec as it changes $[0], causing all sort of problems
30786   # (the dirname of $[0] is not the place where we might find the
30787   # original and so on.  Autoconf is especially sensitive to this).
30788   . "./$as_me.lineno"
30789   # Exit status is that of the last command.
30790   exit
30791 }
30792
30793
30794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30795   as_dirname=dirname
30796 else
30797   as_dirname=false
30798 fi
30799
30800 ECHO_C= ECHO_N= ECHO_T=
30801 case `echo -n x` in
30802 -n*)
30803   case `echo 'x\c'` in
30804   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30805   *)   ECHO_C='\c';;
30806   esac;;
30807 *)
30808   ECHO_N='-n';;
30809 esac
30810 if expr a : '\(a\)' >/dev/null 2>&1 &&
30811    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30812   as_expr=expr
30813 else
30814   as_expr=false
30815 fi
30816
30817 rm -f conf$$ conf$$.exe conf$$.file
30818 if test -d conf$$.dir; then
30819   rm -f conf$$.dir/conf$$.file
30820 else
30821   rm -f conf$$.dir
30822   mkdir conf$$.dir 2>/dev/null
30823 fi
30824 if (echo >conf$$.file) 2>/dev/null; then
30825   if ln -s conf$$.file conf$$ 2>/dev/null; then
30826     as_ln_s='ln -s'
30827     # ... but there are two gotchas:
30828     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30829     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30830     # In both cases, we have to default to `cp -p'.
30831     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30832       as_ln_s='cp -p'
30833   elif ln conf$$.file conf$$ 2>/dev/null; then
30834     as_ln_s=ln
30835   else
30836     as_ln_s='cp -p'
30837   fi
30838 else
30839   as_ln_s='cp -p'
30840 fi
30841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30842 rmdir conf$$.dir 2>/dev/null
30843
30844 if mkdir -p . 2>/dev/null; then
30845   as_mkdir_p=:
30846 else
30847   test -d ./-p && rmdir ./-p
30848   as_mkdir_p=false
30849 fi
30850
30851 if test -x / >/dev/null 2>&1; then
30852   as_test_x='test -x'
30853 else
30854   if ls -dL / >/dev/null 2>&1; then
30855     as_ls_L_option=L
30856   else
30857     as_ls_L_option=
30858   fi
30859   as_test_x='
30860     eval sh -c '\''
30861       if test -d "$1"; then
30862         test -d "$1/.";
30863       else
30864         case $1 in
30865         -*)set "./$1";;
30866         esac;
30867         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30868         ???[sx]*):;;*)false;;esac;fi
30869     '\'' sh
30870   '
30871 fi
30872 as_executable_p=$as_test_x
30873
30874 # Sed expression to map a string onto a valid CPP name.
30875 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30876
30877 # Sed expression to map a string onto a valid variable name.
30878 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30879
30880
30881 exec 6>&1
30882
30883 # Save the log message, to keep $[0] and so on meaningful, and to
30884 # report actual input values of CONFIG_FILES etc. instead of their
30885 # values after options handling.
30886 ac_log="
30887 This file was extended by PostgreSQL $as_me 9.4devel, which was
30888 generated by GNU Autoconf 2.63.  Invocation command line was
30889
30890   CONFIG_FILES    = $CONFIG_FILES
30891   CONFIG_HEADERS  = $CONFIG_HEADERS
30892   CONFIG_LINKS    = $CONFIG_LINKS
30893   CONFIG_COMMANDS = $CONFIG_COMMANDS
30894   $ $0 $@
30895
30896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30897 "
30898
30899 _ACEOF
30900
30901 case $ac_config_files in *"
30902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30903 esac
30904
30905 case $ac_config_headers in *"
30906 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30907 esac
30908
30909
30910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30911 # Files that config.status was made for.
30912 config_files="$ac_config_files"
30913 config_headers="$ac_config_headers"
30914 config_links="$ac_config_links"
30915 config_commands="$ac_config_commands"
30916
30917 _ACEOF
30918
30919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30920 ac_cs_usage="\
30921 \`$as_me' instantiates files from templates according to the
30922 current configuration.
30923
30924 Usage: $0 [OPTION]... [FILE]...
30925
30926   -h, --help       print this help, then exit
30927   -V, --version    print version number and configuration settings, then exit
30928   -q, --quiet, --silent
30929                    do not print progress messages
30930   -d, --debug      don't remove temporary files
30931       --recheck    update $as_me by reconfiguring in the same conditions
30932       --file=FILE[:TEMPLATE]
30933                    instantiate the configuration file FILE
30934       --header=FILE[:TEMPLATE]
30935                    instantiate the configuration header FILE
30936
30937 Configuration files:
30938 $config_files
30939
30940 Configuration headers:
30941 $config_headers
30942
30943 Configuration links:
30944 $config_links
30945
30946 Configuration commands:
30947 $config_commands
30948
30949 Report bugs to <bug-autoconf@gnu.org>."
30950
30951 _ACEOF
30952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30953 ac_cs_version="\\
30954 PostgreSQL config.status 9.4devel
30955 configured by $0, generated by GNU Autoconf 2.63,
30956   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30957
30958 Copyright (C) 2008 Free Software Foundation, Inc.
30959 This config.status script is free software; the Free Software Foundation
30960 gives unlimited permission to copy, distribute and modify it."
30961
30962 ac_pwd='$ac_pwd'
30963 srcdir='$srcdir'
30964 INSTALL='$INSTALL'
30965 MKDIR_P='$MKDIR_P'
30966 AWK='$AWK'
30967 test -n "\$AWK" || AWK=awk
30968 _ACEOF
30969
30970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30971 # The default lists apply if the user does not specify any file.
30972 ac_need_defaults=:
30973 while test $# != 0
30974 do
30975   case $1 in
30976   --*=*)
30977     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30978     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30979     ac_shift=:
30980     ;;
30981   *)
30982     ac_option=$1
30983     ac_optarg=$2
30984     ac_shift=shift
30985     ;;
30986   esac
30987
30988   case $ac_option in
30989   # Handling of the options.
30990   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30991     ac_cs_recheck=: ;;
30992   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30993     $as_echo "$ac_cs_version"; exit ;;
30994   --debug | --debu | --deb | --de | --d | -d )
30995     debug=: ;;
30996   --file | --fil | --fi | --f )
30997     $ac_shift
30998     case $ac_optarg in
30999     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31000     esac
31001     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31002     ac_need_defaults=false;;
31003   --header | --heade | --head | --hea )
31004     $ac_shift
31005     case $ac_optarg in
31006     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31007     esac
31008     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31009     ac_need_defaults=false;;
31010   --he | --h)
31011     # Conflict between --help and --header
31012     { $as_echo "$as_me: error: ambiguous option: $1
31013 Try \`$0 --help' for more information." >&2
31014    { (exit 1); exit 1; }; };;
31015   --help | --hel | -h )
31016     $as_echo "$ac_cs_usage"; exit ;;
31017   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31018   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31019     ac_cs_silent=: ;;
31020
31021   # This is an error.
31022   -*) { $as_echo "$as_me: error: unrecognized option: $1
31023 Try \`$0 --help' for more information." >&2
31024    { (exit 1); exit 1; }; } ;;
31025
31026   *) ac_config_targets="$ac_config_targets $1"
31027      ac_need_defaults=false ;;
31028
31029   esac
31030   shift
31031 done
31032
31033 ac_configure_extra_args=
31034
31035 if $ac_cs_silent; then
31036   exec 6>/dev/null
31037   ac_configure_extra_args="$ac_configure_extra_args --silent"
31038 fi
31039
31040 _ACEOF
31041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31042 if \$ac_cs_recheck; then
31043   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31044   shift
31045   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31046   CONFIG_SHELL='$SHELL'
31047   export CONFIG_SHELL
31048   exec "\$@"
31049 fi
31050
31051 _ACEOF
31052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31053 exec 5>>config.log
31054 {
31055   echo
31056   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31057 ## Running $as_me. ##
31058 _ASBOX
31059   $as_echo "$ac_log"
31060 } >&5
31061
31062 _ACEOF
31063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31064 _ACEOF
31065
31066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31067
31068 # Handling of arguments.
31069 for ac_config_target in $ac_config_targets
31070 do
31071   case $ac_config_target in
31072     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
31073     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
31074     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
31075     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
31076     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
31077     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
31078     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
31079     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
31080     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
31081     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
31082     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
31083     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
31084     "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
31085     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
31086
31087   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31088 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31089    { (exit 1); exit 1; }; };;
31090   esac
31091 done
31092
31093
31094 # If the user did not use the arguments to specify the items to instantiate,
31095 # then the envvar interface is used.  Set only those that are not.
31096 # We use the long form for the default assignment because of an extremely
31097 # bizarre bug on SunOS 4.1.3.
31098 if $ac_need_defaults; then
31099   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31100   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31101   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31102   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31103 fi
31104
31105 # Have a temporary directory for convenience.  Make it in the build tree
31106 # simply because there is no reason against having it here, and in addition,
31107 # creating and moving files from /tmp can sometimes cause problems.
31108 # Hook for its removal unless debugging.
31109 # Note that there is a small window in which the directory will not be cleaned:
31110 # after its creation but before its name has been assigned to `$tmp'.
31111 $debug ||
31112 {
31113   tmp=
31114   trap 'exit_status=$?
31115   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31116 ' 0
31117   trap '{ (exit 1); exit 1; }' 1 2 13 15
31118 }
31119 # Create a (secure) tmp directory for tmp files.
31120
31121 {
31122   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31123   test -n "$tmp" && test -d "$tmp"
31124 }  ||
31125 {
31126   tmp=./conf$$-$RANDOM
31127   (umask 077 && mkdir "$tmp")
31128 } ||
31129 {
31130    $as_echo "$as_me: cannot create a temporary directory in ." >&2
31131    { (exit 1); exit 1; }
31132 }
31133
31134 # Set up the scripts for CONFIG_FILES section.
31135 # No need to generate them if there are no CONFIG_FILES.
31136 # This happens for instance with `./config.status config.h'.
31137 if test -n "$CONFIG_FILES"; then
31138
31139
31140 ac_cr='\r'
31141 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31142 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31143   ac_cs_awk_cr='\\r'
31144 else
31145   ac_cs_awk_cr=$ac_cr
31146 fi
31147
31148 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31149 _ACEOF
31150
31151
31152 {
31153   echo "cat >conf$$subs.awk <<_ACEOF" &&
31154   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31155   echo "_ACEOF"
31156 } >conf$$subs.sh ||
31157   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31158 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31159    { (exit 1); exit 1; }; }
31160 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31161 ac_delim='%!_!# '
31162 for ac_last_try in false false false false false :; do
31163   . ./conf$$subs.sh ||
31164     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31165 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31166    { (exit 1); exit 1; }; }
31167
31168   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31169   if test $ac_delim_n = $ac_delim_num; then
31170     break
31171   elif $ac_last_try; then
31172     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31173 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31174    { (exit 1); exit 1; }; }
31175   else
31176     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31177   fi
31178 done
31179 rm -f conf$$subs.sh
31180
31181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31182 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31183 _ACEOF
31184 sed -n '
31185 h
31186 s/^/S["/; s/!.*/"]=/
31187 p
31188 g
31189 s/^[^!]*!//
31190 :repl
31191 t repl
31192 s/'"$ac_delim"'$//
31193 t delim
31194 :nl
31195 h
31196 s/\(.\{148\}\).*/\1/
31197 t more1
31198 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31199 p
31200 n
31201 b repl
31202 :more1
31203 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31204 p
31205 g
31206 s/.\{148\}//
31207 t nl
31208 :delim
31209 h
31210 s/\(.\{148\}\).*/\1/
31211 t more2
31212 s/["\\]/\\&/g; s/^/"/; s/$/"/
31213 p
31214 b
31215 :more2
31216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31217 p
31218 g
31219 s/.\{148\}//
31220 t delim
31221 ' <conf$$subs.awk | sed '
31222 /^[^""]/{
31223   N
31224   s/\n//
31225 }
31226 ' >>$CONFIG_STATUS || ac_write_fail=1
31227 rm -f conf$$subs.awk
31228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31229 _ACAWK
31230 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31231   for (key in S) S_is_set[key] = 1
31232   FS = "\a"
31233
31234 }
31235 {
31236   line = $ 0
31237   nfields = split(line, field, "@")
31238   substed = 0
31239   len = length(field[1])
31240   for (i = 2; i < nfields; i++) {
31241     key = field[i]
31242     keylen = length(key)
31243     if (S_is_set[key]) {
31244       value = S[key]
31245       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31246       len += length(value) + length(field[++i])
31247       substed = 1
31248     } else
31249       len += 1 + keylen
31250   }
31251
31252   print line
31253 }
31254
31255 _ACAWK
31256 _ACEOF
31257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31258 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31259   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31260 else
31261   cat
31262 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31263   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31264 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31265    { (exit 1); exit 1; }; }
31266 _ACEOF
31267
31268 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31269 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31270 # trailing colons and then remove the whole line if VPATH becomes empty
31271 # (actually we leave an empty line to preserve line numbers).
31272 if test "x$srcdir" = x.; then
31273   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31274 s/:*\$(srcdir):*/:/
31275 s/:*\${srcdir}:*/:/
31276 s/:*@srcdir@:*/:/
31277 s/^\([^=]*=[     ]*\):*/\1/
31278 s/:*$//
31279 s/^[^=]*=[       ]*$//
31280 }'
31281 fi
31282
31283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31284 fi # test -n "$CONFIG_FILES"
31285
31286 # Set up the scripts for CONFIG_HEADERS section.
31287 # No need to generate them if there are no CONFIG_HEADERS.
31288 # This happens for instance with `./config.status Makefile'.
31289 if test -n "$CONFIG_HEADERS"; then
31290 cat >"$tmp/defines.awk" <<\_ACAWK ||
31291 BEGIN {
31292 _ACEOF
31293
31294 # Transform confdefs.h into an awk script `defines.awk', embedded as
31295 # here-document in config.status, that substitutes the proper values into
31296 # config.h.in to produce config.h.
31297
31298 # Create a delimiter string that does not exist in confdefs.h, to ease
31299 # handling of long lines.
31300 ac_delim='%!_!# '
31301 for ac_last_try in false false :; do
31302   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31303   if test -z "$ac_t"; then
31304     break
31305   elif $ac_last_try; then
31306     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31307 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31308    { (exit 1); exit 1; }; }
31309   else
31310     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31311   fi
31312 done
31313
31314 # For the awk script, D is an array of macro values keyed by name,
31315 # likewise P contains macro parameters if any.  Preserve backslash
31316 # newline sequences.
31317
31318 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31319 sed -n '
31320 s/.\{148\}/&'"$ac_delim"'/g
31321 t rset
31322 :rset
31323 s/^[     ]*#[    ]*define[       ][      ]*/ /
31324 t def
31325 d
31326 :def
31327 s/\\$//
31328 t bsnl
31329 s/["\\]/\\&/g
31330 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31331 D["\1"]=" \3"/p
31332 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31333 d
31334 :bsnl
31335 s/["\\]/\\&/g
31336 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31337 D["\1"]=" \3\\\\\\n"\\/p
31338 t cont
31339 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31340 t cont
31341 d
31342 :cont
31343 n
31344 s/.\{148\}/&'"$ac_delim"'/g
31345 t clear
31346 :clear
31347 s/\\$//
31348 t bsnlc
31349 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31350 d
31351 :bsnlc
31352 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31353 b cont
31354 ' <confdefs.h | sed '
31355 s/'"$ac_delim"'/"\\\
31356 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31357
31358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31359   for (key in D) D_is_set[key] = 1
31360   FS = "\a"
31361 }
31362 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31363   line = \$ 0
31364   split(line, arg, " ")
31365   if (arg[1] == "#") {
31366     defundef = arg[2]
31367     mac1 = arg[3]
31368   } else {
31369     defundef = substr(arg[1], 2)
31370     mac1 = arg[2]
31371   }
31372   split(mac1, mac2, "(") #)
31373   macro = mac2[1]
31374   prefix = substr(line, 1, index(line, defundef) - 1)
31375   if (D_is_set[macro]) {
31376     # Preserve the white space surrounding the "#".
31377     print prefix "define", macro P[macro] D[macro]
31378     next
31379   } else {
31380     # Replace #undef with comments.  This is necessary, for example,
31381     # in the case of _POSIX_SOURCE, which is predefined and required
31382     # on some systems where configure will not decide to define it.
31383     if (defundef == "undef") {
31384       print "/*", prefix defundef, macro, "*/"
31385       next
31386     }
31387   }
31388 }
31389 { print }
31390 _ACAWK
31391 _ACEOF
31392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31393   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31394 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31395    { (exit 1); exit 1; }; }
31396 fi # test -n "$CONFIG_HEADERS"
31397
31398
31399 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31400 shift
31401 for ac_tag
31402 do
31403   case $ac_tag in
31404   :[FHLC]) ac_mode=$ac_tag; continue;;
31405   esac
31406   case $ac_mode$ac_tag in
31407   :[FHL]*:*);;
31408   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31409 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31410    { (exit 1); exit 1; }; };;
31411   :[FH]-) ac_tag=-:-;;
31412   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31413   esac
31414   ac_save_IFS=$IFS
31415   IFS=:
31416   set x $ac_tag
31417   IFS=$ac_save_IFS
31418   shift
31419   ac_file=$1
31420   shift
31421
31422   case $ac_mode in
31423   :L) ac_source=$1;;
31424   :[FH])
31425     ac_file_inputs=
31426     for ac_f
31427     do
31428       case $ac_f in
31429       -) ac_f="$tmp/stdin";;
31430       *) # Look for the file first in the build tree, then in the source tree
31431          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31432          # because $ac_f cannot contain `:'.
31433          test -f "$ac_f" ||
31434            case $ac_f in
31435            [\\/$]*) false;;
31436            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31437            esac ||
31438            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31439 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31440    { (exit 1); exit 1; }; };;
31441       esac
31442       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31443       ac_file_inputs="$ac_file_inputs '$ac_f'"
31444     done
31445
31446     # Let's still pretend it is `configure' which instantiates (i.e., don't
31447     # use $as_me), people would be surprised to read:
31448     #    /* config.h.  Generated by config.status.  */
31449     configure_input='Generated from '`
31450           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31451         `' by configure.'
31452     if test x"$ac_file" != x-; then
31453       configure_input="$ac_file.  $configure_input"
31454       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31455 $as_echo "$as_me: creating $ac_file" >&6;}
31456     fi
31457     # Neutralize special characters interpreted by sed in replacement strings.
31458     case $configure_input in #(
31459     *\&* | *\|* | *\\* )
31460        ac_sed_conf_input=`$as_echo "$configure_input" |
31461        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31462     *) ac_sed_conf_input=$configure_input;;
31463     esac
31464
31465     case $ac_tag in
31466     *:-:* | *:-) cat >"$tmp/stdin" \
31467       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31468 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31469    { (exit 1); exit 1; }; } ;;
31470     esac
31471     ;;
31472   esac
31473
31474   ac_dir=`$as_dirname -- "$ac_file" ||
31475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31476          X"$ac_file" : 'X\(//\)[^/]' \| \
31477          X"$ac_file" : 'X\(//\)$' \| \
31478          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31479 $as_echo X"$ac_file" |
31480     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31481             s//\1/
31482             q
31483           }
31484           /^X\(\/\/\)[^/].*/{
31485             s//\1/
31486             q
31487           }
31488           /^X\(\/\/\)$/{
31489             s//\1/
31490             q
31491           }
31492           /^X\(\/\).*/{
31493             s//\1/
31494             q
31495           }
31496           s/.*/./; q'`
31497   { as_dir="$ac_dir"
31498   case $as_dir in #(
31499   -*) as_dir=./$as_dir;;
31500   esac
31501   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31502     as_dirs=
31503     while :; do
31504       case $as_dir in #(
31505       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31506       *) as_qdir=$as_dir;;
31507       esac
31508       as_dirs="'$as_qdir' $as_dirs"
31509       as_dir=`$as_dirname -- "$as_dir" ||
31510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31511          X"$as_dir" : 'X\(//\)[^/]' \| \
31512          X"$as_dir" : 'X\(//\)$' \| \
31513          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31514 $as_echo X"$as_dir" |
31515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31516             s//\1/
31517             q
31518           }
31519           /^X\(\/\/\)[^/].*/{
31520             s//\1/
31521             q
31522           }
31523           /^X\(\/\/\)$/{
31524             s//\1/
31525             q
31526           }
31527           /^X\(\/\).*/{
31528             s//\1/
31529             q
31530           }
31531           s/.*/./; q'`
31532       test -d "$as_dir" && break
31533     done
31534     test -z "$as_dirs" || eval "mkdir $as_dirs"
31535   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31536 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31537    { (exit 1); exit 1; }; }; }
31538   ac_builddir=.
31539
31540 case "$ac_dir" in
31541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31542 *)
31543   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31544   # A ".." for each directory in $ac_dir_suffix.
31545   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31546   case $ac_top_builddir_sub in
31547   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31548   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31549   esac ;;
31550 esac
31551 ac_abs_top_builddir=$ac_pwd
31552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31553 # for backward compatibility:
31554 ac_top_builddir=$ac_top_build_prefix
31555
31556 case $srcdir in
31557   .)  # We are building in place.
31558     ac_srcdir=.
31559     ac_top_srcdir=$ac_top_builddir_sub
31560     ac_abs_top_srcdir=$ac_pwd ;;
31561   [\\/]* | ?:[\\/]* )  # Absolute name.
31562     ac_srcdir=$srcdir$ac_dir_suffix;
31563     ac_top_srcdir=$srcdir
31564     ac_abs_top_srcdir=$srcdir ;;
31565   *) # Relative name.
31566     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31567     ac_top_srcdir=$ac_top_build_prefix$srcdir
31568     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31569 esac
31570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31571
31572
31573   case $ac_mode in
31574   :F)
31575   #
31576   # CONFIG_FILE
31577   #
31578
31579   case $INSTALL in
31580   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31581   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31582   esac
31583   ac_MKDIR_P=$MKDIR_P
31584   case $MKDIR_P in
31585   [\\/$]* | ?:[\\/]* ) ;;
31586   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31587   esac
31588 _ACEOF
31589
31590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31591 # If the template does not know about datarootdir, expand it.
31592 # FIXME: This hack should be removed a few years after 2.60.
31593 ac_datarootdir_hack=; ac_datarootdir_seen=
31594
31595 ac_sed_dataroot='
31596 /datarootdir/ {
31597   p
31598   q
31599 }
31600 /@datadir@/p
31601 /@docdir@/p
31602 /@infodir@/p
31603 /@localedir@/p
31604 /@mandir@/p
31605 '
31606 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31607 *datarootdir*) ac_datarootdir_seen=yes;;
31608 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31609   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31610 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31611 _ACEOF
31612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31613   ac_datarootdir_hack='
31614   s&@datadir@&$datadir&g
31615   s&@docdir@&$docdir&g
31616   s&@infodir@&$infodir&g
31617   s&@localedir@&$localedir&g
31618   s&@mandir@&$mandir&g
31619     s&\\\${datarootdir}&$datarootdir&g' ;;
31620 esac
31621 _ACEOF
31622
31623 # Neutralize VPATH when `$srcdir' = `.'.
31624 # Shell code in configure.ac might set extrasub.
31625 # FIXME: do we really want to maintain this feature?
31626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31627 ac_sed_extra="$ac_vpsub
31628 $extrasub
31629 _ACEOF
31630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31631 :t
31632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31633 s|@configure_input@|$ac_sed_conf_input|;t t
31634 s&@top_builddir@&$ac_top_builddir_sub&;t t
31635 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31636 s&@srcdir@&$ac_srcdir&;t t
31637 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31638 s&@top_srcdir@&$ac_top_srcdir&;t t
31639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31640 s&@builddir@&$ac_builddir&;t t
31641 s&@abs_builddir@&$ac_abs_builddir&;t t
31642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31643 s&@INSTALL@&$ac_INSTALL&;t t
31644 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31645 $ac_datarootdir_hack
31646 "
31647 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31648   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31649 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31650    { (exit 1); exit 1; }; }
31651
31652 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31653   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31654   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31655   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31656 which seems to be undefined.  Please make sure it is defined." >&5
31657 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31658 which seems to be undefined.  Please make sure it is defined." >&2;}
31659
31660   rm -f "$tmp/stdin"
31661   case $ac_file in
31662   -) cat "$tmp/out" && rm -f "$tmp/out";;
31663   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31664   esac \
31665   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31666 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31667    { (exit 1); exit 1; }; }
31668  ;;
31669   :H)
31670   #
31671   # CONFIG_HEADER
31672   #
31673   if test x"$ac_file" != x-; then
31674     {
31675       $as_echo "/* $configure_input  */" \
31676       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31677     } >"$tmp/config.h" \
31678       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31679 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31680    { (exit 1); exit 1; }; }
31681     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31682       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31683 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31684     else
31685       rm -f "$ac_file"
31686       mv "$tmp/config.h" "$ac_file" \
31687         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31688 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31689    { (exit 1); exit 1; }; }
31690     fi
31691   else
31692     $as_echo "/* $configure_input  */" \
31693       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31694       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31695 $as_echo "$as_me: error: could not create -" >&2;}
31696    { (exit 1); exit 1; }; }
31697   fi
31698  ;;
31699   :L)
31700   #
31701   # CONFIG_LINK
31702   #
31703
31704   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31705     :
31706   else
31707     # Prefer the file from the source tree if names are identical.
31708     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31709       ac_source=$srcdir/$ac_source
31710     fi
31711
31712     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31713 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31714
31715     if test ! -r "$ac_source"; then
31716       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31717 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31718    { (exit 1); exit 1; }; }
31719     fi
31720     rm -f "$ac_file"
31721
31722     # Try a relative symlink, then a hard link, then a copy.
31723     case $srcdir in
31724     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31725         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31726     esac
31727     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31728       ln "$ac_source" "$ac_file" 2>/dev/null ||
31729       cp -p "$ac_source" "$ac_file" ||
31730       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31731 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31732    { (exit 1); exit 1; }; }
31733   fi
31734  ;;
31735   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31736 $as_echo "$as_me: executing $ac_file commands" >&6;}
31737  ;;
31738   esac
31739
31740
31741   case $ac_file$ac_mode in
31742     "check_win32_symlinks":C)
31743 # Links sometimes fail undetected on Mingw -
31744 # so here we detect it and warn the user
31745 for FILE in $CONFIG_LINKS
31746  do
31747         # test -e works for symlinks in the MinGW console
31748         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31749 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31750  done
31751  ;;
31752     "src/include/pg_config.h":H)
31753 # Update timestamp for pg_config.h (see Makefile.global)
31754 echo >src/include/stamp-h
31755  ;;
31756     "src/include/pg_config_ext.h":H)
31757 # Update timestamp for pg_config_ext.h (see Makefile.global)
31758 echo >src/include/stamp-ext-h
31759  ;;
31760     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31761
31762   esac
31763 done # for ac_tag
31764
31765
31766 { (exit 0); exit 0; }
31767 _ACEOF
31768 chmod +x $CONFIG_STATUS
31769 ac_clean_files=$ac_clean_files_save
31770
31771 test $ac_write_fail = 0 ||
31772   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31773 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31774    { (exit 1); exit 1; }; }
31775
31776
31777 # configure is writing to config.log, and then calls config.status.
31778 # config.status does its own redirection, appending to config.log.
31779 # Unfortunately, on DOS this fails, as config.log is still kept open
31780 # by configure, so config.status won't be able to write to it; its
31781 # output is simply discarded.  So we exec the FD to /dev/null,
31782 # effectively closing config.log, so it can be properly (re)opened and
31783 # appended to by config.status.  When coming back to configure, we
31784 # need to make the FD available again.
31785 if test "$no_create" != yes; then
31786   ac_cs_success=:
31787   ac_config_status_args=
31788   test "$silent" = yes &&
31789     ac_config_status_args="$ac_config_status_args --quiet"
31790   exec 5>/dev/null
31791   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31792   exec 5>>config.log
31793   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31794   # would make configure fail if this is the last instruction.
31795   $ac_cs_success || { (exit 1); exit 1; }
31796 fi
31797 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31798   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31799 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31800 fi
31801