OSDN Git Service

Added a configure test for "long long" datatypes. So far this is only used in ecpg...
[pg-rex/syncrep.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.0beta1.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 1996-2010, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.0beta1'
602 PACKAGE_STRING='PostgreSQL 9.0beta1'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 HAVE_IPV6
671 LIBOBJS
672 OSSP_UUID_LIBS
673 ZIC
674 python_additional_libs
675 python_libspec
676 python_libdir
677 python_includespec
678 python_configdir
679 python_version
680 python_majorversion
681 PYTHON
682 perl_embed_ldflags
683 perl_useshrplib
684 perl_privlibexp
685 perl_archlibexp
686 PERL
687 FLEXFLAGS
688 FLEX
689 BISONFLAGS
690 BISON
691 MKDIR_P
692 AWK
693 LN_S
694 TAR
695 WINDRES
696 DLLWRAP
697 DLLTOOL
698 AR
699 STRIP_SHARED_LIB
700 STRIP_STATIC_LIB
701 STRIP
702 RANLIB
703 ld_R_works
704 with_gnu_ld
705 LD
706 LDFLAGS_SL
707 ELF_SYS
708 EGREP
709 GREP
710 with_zlib
711 with_system_tzdata
712 with_libxslt
713 with_libxml
714 XML2_CONFIG
715 with_ossp_uuid
716 with_openssl
717 with_bonjour
718 with_ldap
719 with_pam
720 krb_srvtab
721 with_krb5
722 with_gssapi
723 with_python
724 with_perl
725 with_tcl
726 enable_thread_safety
727 INCLUDES
728 autodepend
729 TAS
730 GCC
731 CPP
732 SUN_STUDIO_CC
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 enable_dtrace
741 DTRACEFLAGS
742 DTRACE
743 enable_coverage
744 GENHTML
745 LCOV
746 GCOV
747 enable_profiling
748 enable_debug
749 enable_rpath
750 enable_shared
751 default_port
752 WANTED_LANGUAGES
753 enable_nls
754 PORTNAME
755 host_os
756 host_vendor
757 host_cpu
758 host
759 build_os
760 build_vendor
761 build_cpu
762 build
763 PG_MAJORVERSION
764 configure_args
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_BUGREPORT
796 PACKAGE_STRING
797 PACKAGE_VERSION
798 PACKAGE_TARNAME
799 PACKAGE_NAME
800 PATH_SEPARATOR
801 SHELL'
802 ac_subst_files=''
803 ac_user_opts='
804 enable_option_checking
805 with_template
806 with_includes
807 with_libraries
808 with_libs
809 enable_integer_datetimes
810 enable_nls
811 with_pgport
812 enable_shared
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_readline
839 with_libedit_preferred
840 with_ossp_uuid
841 with_libxml
842 with_libxslt
843 with_system_tzdata
844 with_zlib
845 with_gnu_ld
846 enable_largefile
847 enable_float4_byval
848 enable_float8_byval
849 '
850       ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CPP
859 LDFLAGS_SL
860 DOCBOOKSTYLE'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915   # If the previous option needs an argument, assign it.
916   if test -n "$ac_prev"; then
917     eval $ac_prev=\$ac_option
918     ac_prev=
919     continue
920   fi
921
922   case $ac_option in
923   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924   *)    ac_optarg=yes ;;
925   esac
926
927   # Accept the important Cygnus configure options, so we can diagnose typos.
928
929   case $ac_dashdash$ac_option in
930   --)
931     ac_dashdash=yes ;;
932
933   -bindir | --bindir | --bindi | --bind | --bin | --bi)
934     ac_prev=bindir ;;
935   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936     bindir=$ac_optarg ;;
937
938   -build | --build | --buil | --bui | --bu)
939     ac_prev=build_alias ;;
940   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941     build_alias=$ac_optarg ;;
942
943   -cache-file | --cache-file | --cache-fil | --cache-fi \
944   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945     ac_prev=cache_file ;;
946   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948     cache_file=$ac_optarg ;;
949
950   --config-cache | -C)
951     cache_file=config.cache ;;
952
953   -datadir | --datadir | --datadi | --datad)
954     ac_prev=datadir ;;
955   -datadir=* | --datadir=* | --datadi=* | --datad=*)
956     datadir=$ac_optarg ;;
957
958   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959   | --dataroo | --dataro | --datar)
960     ac_prev=datarootdir ;;
961   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963     datarootdir=$ac_optarg ;;
964
965   -disable-* | --disable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970    { (exit 1); exit 1; }; }
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=no ;;
981
982   -docdir | --docdir | --docdi | --doc | --do)
983     ac_prev=docdir ;;
984   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985     docdir=$ac_optarg ;;
986
987   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988     ac_prev=dvidir ;;
989   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990     dvidir=$ac_optarg ;;
991
992   -enable-* | --enable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997    { (exit 1); exit 1; }; }
998     ac_useropt_orig=$ac_useropt
999     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000     case $ac_user_opts in
1001       *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005          ac_unrecognized_sep=', ';;
1006     esac
1007     eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011   | --exec | --exe | --ex)
1012     ac_prev=exec_prefix ;;
1013   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015   | --exec=* | --exe=* | --ex=*)
1016     exec_prefix=$ac_optarg ;;
1017
1018   -gas | --gas | --ga | --g)
1019     # Obsolete; use --with-gas.
1020     with_gas=yes ;;
1021
1022   -help | --help | --hel | --he | -h)
1023     ac_init_help=long ;;
1024   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025     ac_init_help=recursive ;;
1026   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027     ac_init_help=short ;;
1028
1029   -host | --host | --hos | --ho)
1030     ac_prev=host_alias ;;
1031   -host=* | --host=* | --hos=* | --ho=*)
1032     host_alias=$ac_optarg ;;
1033
1034   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035     ac_prev=htmldir ;;
1036   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037   | --ht=*)
1038     htmldir=$ac_optarg ;;
1039
1040   -includedir | --includedir | --includedi | --included | --include \
1041   | --includ | --inclu | --incl | --inc)
1042     ac_prev=includedir ;;
1043   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044   | --includ=* | --inclu=* | --incl=* | --inc=*)
1045     includedir=$ac_optarg ;;
1046
1047   -infodir | --infodir | --infodi | --infod | --info | --inf)
1048     ac_prev=infodir ;;
1049   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050     infodir=$ac_optarg ;;
1051
1052   -libdir | --libdir | --libdi | --libd)
1053     ac_prev=libdir ;;
1054   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055     libdir=$ac_optarg ;;
1056
1057   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058   | --libexe | --libex | --libe)
1059     ac_prev=libexecdir ;;
1060   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061   | --libexe=* | --libex=* | --libe=*)
1062     libexecdir=$ac_optarg ;;
1063
1064   -localedir | --localedir | --localedi | --localed | --locale)
1065     ac_prev=localedir ;;
1066   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067     localedir=$ac_optarg ;;
1068
1069   -localstatedir | --localstatedir | --localstatedi | --localstated \
1070   | --localstate | --localstat | --localsta | --localst | --locals)
1071     ac_prev=localstatedir ;;
1072   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074     localstatedir=$ac_optarg ;;
1075
1076   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077     ac_prev=mandir ;;
1078   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079     mandir=$ac_optarg ;;
1080
1081   -nfp | --nfp | --nf)
1082     # Obsolete; use --without-fp.
1083     with_fp=no ;;
1084
1085   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086   | --no-cr | --no-c | -n)
1087     no_create=yes ;;
1088
1089   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091     no_recursion=yes ;;
1092
1093   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095   | --oldin | --oldi | --old | --ol | --o)
1096     ac_prev=oldincludedir ;;
1097   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100     oldincludedir=$ac_optarg ;;
1101
1102   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103     ac_prev=prefix ;;
1104   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105     prefix=$ac_optarg ;;
1106
1107   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108   | --program-pre | --program-pr | --program-p)
1109     ac_prev=program_prefix ;;
1110   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112     program_prefix=$ac_optarg ;;
1113
1114   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115   | --program-suf | --program-su | --program-s)
1116     ac_prev=program_suffix ;;
1117   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119     program_suffix=$ac_optarg ;;
1120
1121   -program-transform-name | --program-transform-name \
1122   | --program-transform-nam | --program-transform-na \
1123   | --program-transform-n | --program-transform- \
1124   | --program-transform | --program-transfor \
1125   | --program-transfo | --program-transf \
1126   | --program-trans | --program-tran \
1127   | --progr-tra | --program-tr | --program-t)
1128     ac_prev=program_transform_name ;;
1129   -program-transform-name=* | --program-transform-name=* \
1130   | --program-transform-nam=* | --program-transform-na=* \
1131   | --program-transform-n=* | --program-transform-=* \
1132   | --program-transform=* | --program-transfor=* \
1133   | --program-transfo=* | --program-transf=* \
1134   | --program-trans=* | --program-tran=* \
1135   | --progr-tra=* | --program-tr=* | --program-t=*)
1136     program_transform_name=$ac_optarg ;;
1137
1138   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139     ac_prev=pdfdir ;;
1140   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141     pdfdir=$ac_optarg ;;
1142
1143   -psdir | --psdir | --psdi | --psd | --ps)
1144     ac_prev=psdir ;;
1145   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146     psdir=$ac_optarg ;;
1147
1148   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149   | -silent | --silent | --silen | --sile | --sil)
1150     silent=yes ;;
1151
1152   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153     ac_prev=sbindir ;;
1154   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155   | --sbi=* | --sb=*)
1156     sbindir=$ac_optarg ;;
1157
1158   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160   | --sharedst | --shareds | --shared | --share | --shar \
1161   | --sha | --sh)
1162     ac_prev=sharedstatedir ;;
1163   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166   | --sha=* | --sh=*)
1167     sharedstatedir=$ac_optarg ;;
1168
1169   -site | --site | --sit)
1170     ac_prev=site ;;
1171   -site=* | --site=* | --sit=*)
1172     site=$ac_optarg ;;
1173
1174   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175     ac_prev=srcdir ;;
1176   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177     srcdir=$ac_optarg ;;
1178
1179   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180   | --syscon | --sysco | --sysc | --sys | --sy)
1181     ac_prev=sysconfdir ;;
1182   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184     sysconfdir=$ac_optarg ;;
1185
1186   -target | --target | --targe | --targ | --tar | --ta | --t)
1187     ac_prev=target_alias ;;
1188   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189     target_alias=$ac_optarg ;;
1190
1191   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192     verbose=yes ;;
1193
1194   -version | --version | --versio | --versi | --vers | -V)
1195     ac_init_version=: ;;
1196
1197   -with-* | --with-*)
1198     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199     # Reject names that are not valid shell variable names.
1200     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202    { (exit 1); exit 1; }; }
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval with_$ac_useropt=\$ac_optarg ;;
1213
1214   -without-* | --without-*)
1215     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216     # Reject names that are not valid shell variable names.
1217     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219    { (exit 1); exit 1; }; }
1220     ac_useropt_orig=$ac_useropt
1221     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222     case $ac_user_opts in
1223       *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227          ac_unrecognized_sep=', ';;
1228     esac
1229     eval with_$ac_useropt=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281   case $enable_option_checking in
1282     no) ;;
1283     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284    { (exit 1); exit 1; }; } ;;
1285     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286   esac
1287 fi
1288
1289 # Check all directory arguments for consistency.
1290 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291                 datadir sysconfdir sharedstatedir localstatedir includedir \
1292                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293                 libdir localedir mandir
1294 do
1295   eval ac_val=\$$ac_var
1296   # Remove trailing slashes.
1297   case $ac_val in
1298     */ )
1299       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300       eval $ac_var=\$ac_val;;
1301   esac
1302   # Be sure to have absolute directory names.
1303   case $ac_val in
1304     [\\/$]* | ?:[\\/]* )  continue;;
1305     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306   esac
1307   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308    { (exit 1); exit 1; }; }
1309 done
1310
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1314 build=$build_alias
1315 host=$host_alias
1316 target=$target_alias
1317
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320   if test "x$build_alias" = x; then
1321     cross_compiling=maybe
1322     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323     If a cross compiler is detected then cross compile mode will be used." >&2
1324   elif test "x$build_alias" != "x$host_alias"; then
1325     cross_compiling=yes
1326   fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339    { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342    { (exit 1); exit 1; }; }
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347   ac_srcdir_defaulted=yes
1348   # Try the directory containing this script, then the parent directory.
1349   ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351          X"$as_myself" : 'X\(//\)[^/]' \| \
1352          X"$as_myself" : 'X\(//\)$' \| \
1353          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\/\)[^/].*/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)$/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\).*/{
1368             s//\1/
1369             q
1370           }
1371           s/.*/./; q'`
1372   srcdir=$ac_confdir
1373   if test ! -r "$srcdir/$ac_unique_file"; then
1374     srcdir=..
1375   fi
1376 else
1377   ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382    { (exit 1); exit 1; }; }
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387    { (exit 1); exit 1; }; }
1388         pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391   srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_env_${ac_var}_value=\$${ac_var}
1402   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410   # Omit some internal or obsolete options to make the list less imposing.
1411   # This message is too long to be a string in the A/UX 3.1 sh.
1412   cat <<_ACEOF
1413 \`configure' configures PostgreSQL 9.0beta1 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE.  See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423   -h, --help              display this help and exit
1424       --help=short        display options specific to this package
1425       --help=recursive    display the short help of all the included packages
1426   -V, --version           display version information and exit
1427   -q, --quiet, --silent   do not print \`checking...' messages
1428       --cache-file=FILE   cache test results in FILE [disabled]
1429   -C, --config-cache      alias for \`--cache-file=config.cache'
1430   -n, --no-create         do not create output files
1431       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434   --prefix=PREFIX         install architecture-independent files in PREFIX
1435                           [$ac_default_prefix]
1436   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1437                           [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447   --bindir=DIR            user executables [EPREFIX/bin]
1448   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1449   --libexecdir=DIR        program executables [EPREFIX/libexec]
1450   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1451   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1452   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1453   --libdir=DIR            object code libraries [EPREFIX/lib]
1454   --includedir=DIR        C header files [PREFIX/include]
1455   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1456   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1457   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1458   --infodir=DIR           info documentation [DATAROOTDIR/info]
1459   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1460   --mandir=DIR            man documentation [DATAROOTDIR/man]
1461   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1462   --htmldir=DIR           html documentation [DOCDIR]
1463   --dvidir=DIR            dvi documentation [DOCDIR]
1464   --pdfdir=DIR            pdf documentation [DOCDIR]
1465   --psdir=DIR             ps documentation [DOCDIR]
1466 _ACEOF
1467
1468   cat <<\_ACEOF
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473 _ACEOF
1474 fi
1475
1476 if test -n "$ac_init_help"; then
1477   case $ac_init_help in
1478      short | recursive ) echo "Configuration of PostgreSQL 9.0beta1:";;
1479    esac
1480   cat <<\_ACEOF
1481
1482 Optional Features:
1483   --disable-option-checking  ignore unrecognized --enable/--with options
1484   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486   --disable-integer-datetimes
1487                           disable 64-bit integer date/time support
1488   --enable-nls[=LANGUAGES]
1489                           enable Native Language Support
1490   --disable-shared        do not build shared libraries
1491   --disable-rpath         do not embed shared library search path in
1492                           executables
1493   --disable-spinlocks     do not use spinlocks
1494   --enable-debug          build with debugging symbols (-g)
1495   --enable-profiling      build with profiling enabled
1496   --enable-coverage       build with coverage testing instrumentation
1497   --enable-dtrace         build with DTrace support
1498   --enable-depend         turn on automatic dependency tracking
1499   --enable-cassert        enable assertion checks (for debugging)
1500   --disable-thread-safety disable thread-safety in client libraries
1501   --disable-largefile     omit support for large files
1502   --disable-float4-byval  disable float4 passed by value
1503   --disable-float8-byval  disable float8 passed by value
1504
1505 Optional Packages:
1506   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1507   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1508   --with-template=NAME    override operating system template
1509   --with-includes=DIRS    look for additional header files in DIRS
1510   --with-libraries=DIRS   look for additional libraries in DIRS
1511   --with-libs=DIRS        alternative spelling of --with-libraries
1512   --with-pgport=PORTNUM   set default port number [5432]
1513   --with-blocksize=BLOCKSIZE
1514                           set table block size in kB [8]
1515   --with-segsize=SEGSIZE  set table segment size in GB [1]
1516   --with-wal-blocksize=BLOCKSIZE
1517                           set WAL block size in kB [8]
1518   --with-wal-segsize=SEGSIZE
1519                           set WAL segment size in MB [16]
1520   --with-CC=CMD           set compiler (deprecated)
1521   --with-tcl              build Tcl modules (PL/Tcl)
1522   --with-tclconfig=DIR    tclConfig.sh is in DIR
1523   --with-perl             build Perl modules (PL/Perl)
1524   --with-python           build Python modules (PL/Python)
1525   --with-gssapi           build with GSSAPI support
1526   --with-krb5             build with Kerberos 5 support
1527   --with-krb-srvnam=NAME  default service principal name in Kerberos
1528                           [postgres]
1529   --with-pam              build with PAM support
1530   --with-ldap             build with LDAP support
1531   --with-bonjour          build with Bonjour support
1532   --with-openssl          build with OpenSSL support
1533   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1534   --with-libedit-preferred
1535                           prefer BSD Libedit over GNU Readline
1536   --with-ossp-uuid        use OSSP UUID library when building
1537                           contrib/uuid-ossp
1538   --with-libxml           build with XML support
1539   --with-libxslt          use XSLT support when building contrib/xml2
1540   --with-system-tzdata=DIR
1541                           use system time zone data in DIR
1542   --without-zlib          do not use Zlib
1543   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1544
1545 Some influential environment variables:
1546   CC          C compiler command
1547   CFLAGS      C compiler flags
1548   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549               nonstandard directory <lib dir>
1550   LIBS        libraries to pass to the linker, e.g. -l<library>
1551   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552               you have headers in a nonstandard directory <include dir>
1553   CPP         C preprocessor
1554   LDFLAGS_SL  linker flags for shared library linking
1555   DOCBOOKSTYLE
1556               location of DocBook stylesheets
1557
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1560
1561 Report bugs to <pgsql-bugs@postgresql.org>.
1562 _ACEOF
1563 ac_status=$?
1564 fi
1565
1566 if test "$ac_init_help" = "recursive"; then
1567   # If there are subdirs, report their specific --help.
1568   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569     test -d "$ac_dir" ||
1570       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571       continue
1572     ac_builddir=.
1573
1574 case "$ac_dir" in
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *)
1577   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578   # A ".." for each directory in $ac_dir_suffix.
1579   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580   case $ac_top_builddir_sub in
1581   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583   esac ;;
1584 esac
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1589
1590 case $srcdir in
1591   .)  # We are building in place.
1592     ac_srcdir=.
1593     ac_top_srcdir=$ac_top_builddir_sub
1594     ac_abs_top_srcdir=$ac_pwd ;;
1595   [\\/]* | ?:[\\/]* )  # Absolute name.
1596     ac_srcdir=$srcdir$ac_dir_suffix;
1597     ac_top_srcdir=$srcdir
1598     ac_abs_top_srcdir=$srcdir ;;
1599   *) # Relative name.
1600     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601     ac_top_srcdir=$ac_top_build_prefix$srcdir
1602     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 esac
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606     cd "$ac_dir" || { ac_status=$?; continue; }
1607     # Check for guested configure.
1608     if test -f "$ac_srcdir/configure.gnu"; then
1609       echo &&
1610       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611     elif test -f "$ac_srcdir/configure"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure" --help=recursive
1614     else
1615       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616     fi || ac_status=$?
1617     cd "$ac_pwd" || { ac_status=$?; break; }
1618   done
1619 fi
1620
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1623   cat <<\_ACEOF
1624 PostgreSQL configure 9.0beta1
1625 generated by GNU Autoconf 2.63
1626
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631
1632 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1633 _ACEOF
1634   exit
1635 fi
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1639
1640 It was created by PostgreSQL $as_me 9.0beta1, which was
1641 generated by GNU Autoconf 2.63.  Invocation command line was
1642
1643   $ $0 $@
1644
1645 _ACEOF
1646 exec 5>>config.log
1647 {
1648 cat <<_ASUNAME
1649 ## --------- ##
1650 ## Platform. ##
1651 ## --------- ##
1652
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1658
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1661
1662 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1663 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1666 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1667 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1668 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1669
1670 _ASUNAME
1671
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675   IFS=$as_save_IFS
1676   test -z "$as_dir" && as_dir=.
1677   $as_echo "PATH: $as_dir"
1678 done
1679 IFS=$as_save_IFS
1680
1681 } >&5
1682
1683 cat >&5 <<_ACEOF
1684
1685
1686 ## ----------- ##
1687 ## Core tests. ##
1688 ## ----------- ##
1689
1690 _ACEOF
1691
1692
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_configure_args=
1699 ac_configure_args0=
1700 ac_configure_args1=
1701 ac_must_keep_next=false
1702 for ac_pass in 1 2
1703 do
1704   for ac_arg
1705   do
1706     case $ac_arg in
1707     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709     | -silent | --silent | --silen | --sile | --sil)
1710       continue ;;
1711     *\'*)
1712       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713     esac
1714     case $ac_pass in
1715     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1716     2)
1717       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718       if test $ac_must_keep_next = true; then
1719         ac_must_keep_next=false # Got value, back to normal.
1720       else
1721         case $ac_arg in
1722           *=* | --config-cache | -C | -disable-* | --disable-* \
1723           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725           | -with-* | --with-* | -without-* | --without-* | --x)
1726             case "$ac_configure_args0 " in
1727               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728             esac
1729             ;;
1730           -* ) ac_must_keep_next=true ;;
1731         esac
1732       fi
1733       ac_configure_args="$ac_configure_args '$ac_arg'"
1734       ;;
1735     esac
1736   done
1737 done
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1740
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log.  We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747   # Save into config.log some information that might help in debugging.
1748   {
1749     echo
1750
1751     cat <<\_ASBOX
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1755 _ASBOX
1756     echo
1757     # The following way of writing the cache mishandles newlines in values,
1758 (
1759   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760     eval ac_val=\$$ac_var
1761     case $ac_val in #(
1762     *${as_nl}*)
1763       case $ac_var in #(
1764       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1766       esac
1767       case $ac_var in #(
1768       _ | IFS | as_nl) ;; #(
1769       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1770       *) $as_unset $ac_var ;;
1771       esac ;;
1772     esac
1773   done
1774   (set) 2>&1 |
1775     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1776     *${as_nl}ac_space=\ *)
1777       sed -n \
1778         "s/'\''/'\''\\\\'\'''\''/g;
1779           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1780       ;; #(
1781     *)
1782       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1783       ;;
1784     esac |
1785     sort
1786 )
1787     echo
1788
1789     cat <<\_ASBOX
1790 ## ----------------- ##
1791 ## Output variables. ##
1792 ## ----------------- ##
1793 _ASBOX
1794     echo
1795     for ac_var in $ac_subst_vars
1796     do
1797       eval ac_val=\$$ac_var
1798       case $ac_val in
1799       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800       esac
1801       $as_echo "$ac_var='\''$ac_val'\''"
1802     done | sort
1803     echo
1804
1805     if test -n "$ac_subst_files"; then
1806       cat <<\_ASBOX
1807 ## ------------------- ##
1808 ## File substitutions. ##
1809 ## ------------------- ##
1810 _ASBOX
1811       echo
1812       for ac_var in $ac_subst_files
1813       do
1814         eval ac_val=\$$ac_var
1815         case $ac_val in
1816         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817         esac
1818         $as_echo "$ac_var='\''$ac_val'\''"
1819       done | sort
1820       echo
1821     fi
1822
1823     if test -s confdefs.h; then
1824       cat <<\_ASBOX
1825 ## ----------- ##
1826 ## confdefs.h. ##
1827 ## ----------- ##
1828 _ASBOX
1829       echo
1830       cat confdefs.h
1831       echo
1832     fi
1833     test "$ac_signal" != 0 &&
1834       $as_echo "$as_me: caught signal $ac_signal"
1835     $as_echo "$as_me: exit $exit_status"
1836   } >&5
1837   rm -f core *.core core.conftest.* &&
1838     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1839     exit $exit_status
1840 ' 0
1841 for ac_signal in 1 2 13 15; do
1842   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1843 done
1844 ac_signal=0
1845
1846 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1847 rm -f -r conftest* confdefs.h
1848
1849 # Predefined preprocessor variables.
1850
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_NAME "$PACKAGE_NAME"
1853 _ACEOF
1854
1855
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1858 _ACEOF
1859
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_STRING "$PACKAGE_STRING"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1873 _ACEOF
1874
1875
1876 # Let the site file select an alternate cache file if it wants to.
1877 # Prefer an explicitly selected file to automatically selected ones.
1878 ac_site_file1=NONE
1879 ac_site_file2=NONE
1880 if test -n "$CONFIG_SITE"; then
1881   ac_site_file1=$CONFIG_SITE
1882 elif test "x$prefix" != xNONE; then
1883   ac_site_file1=$prefix/share/config.site
1884   ac_site_file2=$prefix/etc/config.site
1885 else
1886   ac_site_file1=$ac_default_prefix/share/config.site
1887   ac_site_file2=$ac_default_prefix/etc/config.site
1888 fi
1889 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1890 do
1891   test "x$ac_site_file" = xNONE && continue
1892   if test -r "$ac_site_file"; then
1893     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1894 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1895     sed 's/^/| /' "$ac_site_file" >&5
1896     . "$ac_site_file"
1897   fi
1898 done
1899
1900 if test -r "$cache_file"; then
1901   # Some versions of bash will fail to source /dev/null (special
1902   # files actually), so we avoid doing that.
1903   if test -f "$cache_file"; then
1904     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1905 $as_echo "$as_me: loading cache $cache_file" >&6;}
1906     case $cache_file in
1907       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1908       *)                      . "./$cache_file";;
1909     esac
1910   fi
1911 else
1912   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1913 $as_echo "$as_me: creating cache $cache_file" >&6;}
1914   >$cache_file
1915 fi
1916
1917 # Check that the precious variables saved in the cache have kept the same
1918 # value.
1919 ac_cache_corrupted=false
1920 for ac_var in $ac_precious_vars; do
1921   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1922   eval ac_new_set=\$ac_env_${ac_var}_set
1923   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1924   eval ac_new_val=\$ac_env_${ac_var}_value
1925   case $ac_old_set,$ac_new_set in
1926     set,)
1927       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1928 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1929       ac_cache_corrupted=: ;;
1930     ,set)
1931       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1932 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1933       ac_cache_corrupted=: ;;
1934     ,);;
1935     *)
1936       if test "x$ac_old_val" != "x$ac_new_val"; then
1937         # differences in whitespace do not lead to failure.
1938         ac_old_val_w=`echo x $ac_old_val`
1939         ac_new_val_w=`echo x $ac_new_val`
1940         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1941           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943           ac_cache_corrupted=:
1944         else
1945           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1946 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1947           eval $ac_var=\$ac_old_val
1948         fi
1949         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1950 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1951         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1952 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1953       fi;;
1954   esac
1955   # Pass precious variables to config.status.
1956   if test "$ac_new_set" = set; then
1957     case $ac_new_val in
1958     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959     *) ac_arg=$ac_var=$ac_new_val ;;
1960     esac
1961     case " $ac_configure_args " in
1962       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1963       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964     esac
1965   fi
1966 done
1967 if $ac_cache_corrupted; then
1968   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1970   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974    { (exit 1); exit 1; }; }
1975 fi
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001 ac_ext=c
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006
2007
2008
2009
2010
2011 ac_aux_dir=
2012 for ac_dir in config "$srcdir"/config; do
2013   if test -f "$ac_dir/install-sh"; then
2014     ac_aux_dir=$ac_dir
2015     ac_install_sh="$ac_aux_dir/install-sh -c"
2016     break
2017   elif test -f "$ac_dir/install.sh"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/install.sh -c"
2020     break
2021   elif test -f "$ac_dir/shtool"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/shtool install -c"
2024     break
2025   fi
2026 done
2027 if test -z "$ac_aux_dir"; then
2028   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2029 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2030    { (exit 1); exit 1; }; }
2031 fi
2032
2033 # These three variables are undocumented and unsupported,
2034 # and are intended to be withdrawn in a future Autoconf release.
2035 # They can cause serious problems if a builder's source tree is in a directory
2036 # whose full name contains unusual characters.
2037 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2038 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2039 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2040
2041
2042
2043 configure_args=$ac_configure_args
2044
2045
2046
2047 cat >>confdefs.h <<_ACEOF
2048 #define PG_VERSION "$PACKAGE_VERSION"
2049 _ACEOF
2050
2051 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2052
2053
2054 cat >>confdefs.h <<_ACEOF
2055 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2056 _ACEOF
2057
2058
2059 # Make sure we can run config.sub.
2060 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2061   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2062 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2063    { (exit 1); exit 1; }; }
2064
2065 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2066 $as_echo_n "checking build system type... " >&6; }
2067 if test "${ac_cv_build+set}" = set; then
2068   $as_echo_n "(cached) " >&6
2069 else
2070   ac_build_alias=$build_alias
2071 test "x$ac_build_alias" = x &&
2072   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2073 test "x$ac_build_alias" = x &&
2074   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2075 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2076    { (exit 1); exit 1; }; }
2077 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2078   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2079 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2080    { (exit 1); exit 1; }; }
2081
2082 fi
2083 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2084 $as_echo "$ac_cv_build" >&6; }
2085 case $ac_cv_build in
2086 *-*-*) ;;
2087 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2088 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2089    { (exit 1); exit 1; }; };;
2090 esac
2091 build=$ac_cv_build
2092 ac_save_IFS=$IFS; IFS='-'
2093 set x $ac_cv_build
2094 shift
2095 build_cpu=$1
2096 build_vendor=$2
2097 shift; shift
2098 # Remember, the first character of IFS is used to create $*,
2099 # except with old shells:
2100 build_os=$*
2101 IFS=$ac_save_IFS
2102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2103
2104
2105 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2106 $as_echo_n "checking host system type... " >&6; }
2107 if test "${ac_cv_host+set}" = set; then
2108   $as_echo_n "(cached) " >&6
2109 else
2110   if test "x$host_alias" = x; then
2111   ac_cv_host=$ac_cv_build
2112 else
2113   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2114     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2115 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2116    { (exit 1); exit 1; }; }
2117 fi
2118
2119 fi
2120 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2121 $as_echo "$ac_cv_host" >&6; }
2122 case $ac_cv_host in
2123 *-*-*) ;;
2124 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2125 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2126    { (exit 1); exit 1; }; };;
2127 esac
2128 host=$ac_cv_host
2129 ac_save_IFS=$IFS; IFS='-'
2130 set x $ac_cv_host
2131 shift
2132 host_cpu=$1
2133 host_vendor=$2
2134 shift; shift
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2137 host_os=$*
2138 IFS=$ac_save_IFS
2139 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2140
2141
2142
2143 template=
2144 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2145 $as_echo_n "checking which template to use... " >&6; }
2146
2147
2148
2149
2150 # Check whether --with-template was given.
2151 if test "${with_template+set}" = set; then
2152   withval=$with_template;
2153   case $withval in
2154     yes)
2155       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2156 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2157    { (exit 1); exit 1; }; }
2158       ;;
2159     no)
2160       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2161 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2162    { (exit 1); exit 1; }; }
2163       ;;
2164     *)
2165
2166   case $withval in
2167     list)   echo; ls "$srcdir/src/template"; exit;;
2168     *)      if test -f "$srcdir/src/template/$with_template" ; then
2169               template=$withval
2170             else
2171               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2172 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2173    { (exit 1); exit 1; }; }
2174             fi;;
2175   esac
2176
2177       ;;
2178   esac
2179
2180 else
2181
2182 # --with-template not given
2183
2184 case $host_os in
2185      aix*) template=aix ;;
2186     bsdi*) template=bsdi ;;
2187   cygwin*) template=cygwin ;;
2188   darwin*) template=darwin ;;
2189     dgux*) template=dgux ;;
2190  freebsd*) template=freebsd ;;
2191     hpux*) template=hpux ;;
2192     irix*) template=irix ;;
2193  linux*|gnu*|k*bsd*-gnu)
2194            template=linux ;;
2195    mingw*) template=win32 ;;
2196   netbsd*) template=netbsd ;;
2197 nextstep*) template=nextstep ;;
2198  openbsd*) template=openbsd ;;
2199      osf*) template=osf ;;
2200      sco*) template=sco ;;
2201  solaris*) template=solaris ;;
2202    sunos*) template=sunos4 ;;
2203  sysv4.2*)
2204         case $host_vendor in
2205           univel) template=univel ;;
2206         esac ;;
2207    sysv4*) template=svr4 ;;
2208    sysv5*) template=unixware ;;
2209   ultrix*) template=ultrix4 ;;
2210 esac
2211
2212   if test x"$template" = x"" ; then
2213     { { $as_echo "$as_me:$LINENO: error:
2214 *******************************************************************
2215 PostgreSQL has apparently not been ported to your platform yet.
2216 To try a manual configuration, look into the src/template directory
2217 for a similar platform and use the '--with-template=' option.
2218
2219 Please also contact <pgsql-bugs@postgresql.org> to see about
2220 rectifying this.  Include the above 'checking host system type...'
2221 line.
2222 *******************************************************************
2223 " >&5
2224 $as_echo "$as_me: error:
2225 *******************************************************************
2226 PostgreSQL has apparently not been ported to your platform yet.
2227 To try a manual configuration, look into the src/template directory
2228 for a similar platform and use the '--with-template=' option.
2229
2230 Please also contact <pgsql-bugs@postgresql.org> to see about
2231 rectifying this.  Include the above 'checking host system type...'
2232 line.
2233 *******************************************************************
2234 " >&2;}
2235    { (exit 1); exit 1; }; }
2236   fi
2237
2238
2239 fi
2240
2241
2242
2243 { $as_echo "$as_me:$LINENO: result: $template" >&5
2244 $as_echo "$template" >&6; }
2245
2246 PORTNAME=$template
2247
2248
2249 # Initialize default assumption that we do not need separate assembly code
2250 # for TAS (test-and-set).  This can be overridden by the template file
2251 # when it's executed.
2252 need_tas=no
2253 tas_file=dummy.s
2254
2255
2256
2257 ##
2258 ## Command line options
2259 ##
2260
2261 #
2262 # Add non-standard directories to the include path
2263 #
2264
2265
2266
2267 # Check whether --with-includes was given.
2268 if test "${with_includes+set}" = set; then
2269   withval=$with_includes;
2270   case $withval in
2271     yes)
2272       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2273 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2274    { (exit 1); exit 1; }; }
2275       ;;
2276     no)
2277       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2278 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2279    { (exit 1); exit 1; }; }
2280       ;;
2281     *)
2282
2283       ;;
2284   esac
2285
2286 fi
2287
2288
2289
2290
2291 #
2292 # Add non-standard directories to the library search path
2293 #
2294
2295
2296
2297 # Check whether --with-libraries was given.
2298 if test "${with_libraries+set}" = set; then
2299   withval=$with_libraries;
2300   case $withval in
2301     yes)
2302       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2303 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2304    { (exit 1); exit 1; }; }
2305       ;;
2306     no)
2307       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2308 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2309    { (exit 1); exit 1; }; }
2310       ;;
2311     *)
2312       LIBRARY_DIRS=$withval
2313       ;;
2314   esac
2315
2316 fi
2317
2318
2319
2320
2321
2322
2323 # Check whether --with-libs was given.
2324 if test "${with_libs+set}" = set; then
2325   withval=$with_libs;
2326   case $withval in
2327     yes)
2328       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2329 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2330    { (exit 1); exit 1; }; }
2331       ;;
2332     no)
2333       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2334 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2335    { (exit 1); exit 1; }; }
2336       ;;
2337     *)
2338       LIBRARY_DIRS=$withval
2339       ;;
2340   esac
2341
2342 fi
2343
2344
2345
2346
2347 #
2348 # 64-bit integer date/time storage: enabled by default.
2349 #
2350 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2351 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2352
2353
2354 # Check whether --enable-integer-datetimes was given.
2355 if test "${enable_integer_datetimes+set}" = set; then
2356   enableval=$enable_integer_datetimes;
2357   case $enableval in
2358     yes)
2359
2360 cat >>confdefs.h <<\_ACEOF
2361 #define USE_INTEGER_DATETIMES 1
2362 _ACEOF
2363
2364       ;;
2365     no)
2366       :
2367       ;;
2368     *)
2369       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2370 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2371    { (exit 1); exit 1; }; }
2372       ;;
2373   esac
2374
2375 else
2376   enable_integer_datetimes=yes
2377
2378 cat >>confdefs.h <<\_ACEOF
2379 #define USE_INTEGER_DATETIMES 1
2380 _ACEOF
2381
2382 fi
2383
2384
2385 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2386 $as_echo "$enable_integer_datetimes" >&6; }
2387
2388
2389 #
2390 # NLS
2391 #
2392 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2393 $as_echo_n "checking whether NLS is wanted... " >&6; }
2394
2395
2396 # Check whether --enable-nls was given.
2397 if test "${enable_nls+set}" = set; then
2398   enableval=$enable_nls;
2399   case $enableval in
2400     yes)
2401       :
2402       ;;
2403     no)
2404       :
2405       ;;
2406     *)
2407       enable_nls=yes
2408 WANTED_LANGUAGES=$enableval
2409       ;;
2410   esac
2411
2412 else
2413   enable_nls=no
2414 fi
2415
2416
2417
2418 if test "$enable_nls" = yes; then
2419
2420 cat >>confdefs.h <<\_ACEOF
2421 #define ENABLE_NLS 1
2422 _ACEOF
2423
2424 fi
2425
2426 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2427 $as_echo "$enable_nls" >&6; }
2428
2429
2430
2431 #
2432 # Default port number (--with-pgport), default 5432
2433 #
2434 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2435 $as_echo_n "checking for default port number... " >&6; }
2436
2437
2438
2439 # Check whether --with-pgport was given.
2440 if test "${with_pgport+set}" = set; then
2441   withval=$with_pgport;
2442   case $withval in
2443     yes)
2444       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2445 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2446    { (exit 1); exit 1; }; }
2447       ;;
2448     no)
2449       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2450 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2451    { (exit 1); exit 1; }; }
2452       ;;
2453     *)
2454       default_port=$withval
2455       ;;
2456   esac
2457
2458 else
2459   default_port=5432
2460 fi
2461
2462
2463 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2464 $as_echo "$default_port" >&6; }
2465 # Need both of these because some places want an integer and some a string
2466
2467 cat >>confdefs.h <<_ACEOF
2468 #define DEF_PGPORT ${default_port}
2469 _ACEOF
2470
2471
2472 cat >>confdefs.h <<_ACEOF
2473 #define DEF_PGPORT_STR "${default_port}"
2474 _ACEOF
2475
2476
2477
2478 #
2479 # Option to disable shared libraries
2480 #
2481
2482
2483 # Check whether --enable-shared was given.
2484 if test "${enable_shared+set}" = set; then
2485   enableval=$enable_shared;
2486   case $enableval in
2487     yes)
2488       :
2489       ;;
2490     no)
2491       :
2492       ;;
2493     *)
2494       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2495 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2496    { (exit 1); exit 1; }; }
2497       ;;
2498   esac
2499
2500 else
2501   enable_shared=yes
2502
2503 fi
2504
2505
2506
2507
2508 #
2509 # '-rpath'-like feature can be disabled
2510 #
2511
2512
2513 # Check whether --enable-rpath was given.
2514 if test "${enable_rpath+set}" = set; then
2515   enableval=$enable_rpath;
2516   case $enableval in
2517     yes)
2518       :
2519       ;;
2520     no)
2521       :
2522       ;;
2523     *)
2524       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2525 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2526    { (exit 1); exit 1; }; }
2527       ;;
2528   esac
2529
2530 else
2531   enable_rpath=yes
2532
2533 fi
2534
2535
2536
2537
2538 #
2539 # Spinlocks
2540 #
2541
2542
2543 # Check whether --enable-spinlocks was given.
2544 if test "${enable_spinlocks+set}" = set; then
2545   enableval=$enable_spinlocks;
2546   case $enableval in
2547     yes)
2548       :
2549       ;;
2550     no)
2551       :
2552       ;;
2553     *)
2554       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2555 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2556    { (exit 1); exit 1; }; }
2557       ;;
2558   esac
2559
2560 else
2561   enable_spinlocks=yes
2562
2563 fi
2564
2565
2566
2567 #
2568 # --enable-debug adds -g to compiler flags
2569 #
2570
2571
2572 # Check whether --enable-debug was given.
2573 if test "${enable_debug+set}" = set; then
2574   enableval=$enable_debug;
2575   case $enableval in
2576     yes)
2577       :
2578       ;;
2579     no)
2580       :
2581       ;;
2582     *)
2583       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2584 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2585    { (exit 1); exit 1; }; }
2586       ;;
2587   esac
2588
2589 else
2590   enable_debug=no
2591
2592 fi
2593
2594
2595
2596
2597 #
2598 # --enable-profiling enables gcc profiling
2599 #
2600
2601
2602 # Check whether --enable-profiling was given.
2603 if test "${enable_profiling+set}" = set; then
2604   enableval=$enable_profiling;
2605   case $enableval in
2606     yes)
2607       :
2608       ;;
2609     no)
2610       :
2611       ;;
2612     *)
2613       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2614 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2615    { (exit 1); exit 1; }; }
2616       ;;
2617   esac
2618
2619 else
2620   enable_profiling=no
2621
2622 fi
2623
2624
2625
2626
2627 #
2628 # --enable-coverage enables generation of code coverage metrics with gcov
2629 #
2630
2631
2632 # Check whether --enable-coverage was given.
2633 if test "${enable_coverage+set}" = set; then
2634   enableval=$enable_coverage;
2635   case $enableval in
2636     yes)
2637       for ac_prog in gcov
2638 do
2639   # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_GCOV+set}" = set; then
2644   $as_echo_n "(cached) " >&6
2645 else
2646   if test -n "$GCOV"; then
2647   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2648 else
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654   for ac_exec_ext in '' $ac_executable_extensions; do
2655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656     ac_cv_prog_GCOV="$ac_prog"
2657     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658     break 2
2659   fi
2660 done
2661 done
2662 IFS=$as_save_IFS
2663
2664 fi
2665 fi
2666 GCOV=$ac_cv_prog_GCOV
2667 if test -n "$GCOV"; then
2668   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2669 $as_echo "$GCOV" >&6; }
2670 else
2671   { $as_echo "$as_me:$LINENO: result: no" >&5
2672 $as_echo "no" >&6; }
2673 fi
2674
2675
2676   test -n "$GCOV" && break
2677 done
2678
2679 if test -z "$GCOV"; then
2680   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2681 $as_echo "$as_me: error: gcov not found" >&2;}
2682    { (exit 1); exit 1; }; }
2683 fi
2684 for ac_prog in lcov
2685 do
2686   # Extract the first word of "$ac_prog", so it can be a program name with args.
2687 set dummy $ac_prog; ac_word=$2
2688 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if test "${ac_cv_prog_LCOV+set}" = set; then
2691   $as_echo_n "(cached) " >&6
2692 else
2693   if test -n "$LCOV"; then
2694   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699   IFS=$as_save_IFS
2700   test -z "$as_dir" && as_dir=.
2701   for ac_exec_ext in '' $ac_executable_extensions; do
2702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703     ac_cv_prog_LCOV="$ac_prog"
2704     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705     break 2
2706   fi
2707 done
2708 done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 LCOV=$ac_cv_prog_LCOV
2714 if test -n "$LCOV"; then
2715   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2716 $as_echo "$LCOV" >&6; }
2717 else
2718   { $as_echo "$as_me:$LINENO: result: no" >&5
2719 $as_echo "no" >&6; }
2720 fi
2721
2722
2723   test -n "$LCOV" && break
2724 done
2725
2726 if test -z "$LCOV"; then
2727   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2728 $as_echo "$as_me: error: lcov not found" >&2;}
2729    { (exit 1); exit 1; }; }
2730 fi
2731 for ac_prog in genhtml
2732 do
2733   # Extract the first word of "$ac_prog", so it can be a program name with args.
2734 set dummy $ac_prog; ac_word=$2
2735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_prog_GENHTML+set}" = set; then
2738   $as_echo_n "(cached) " >&6
2739 else
2740   if test -n "$GENHTML"; then
2741   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746   IFS=$as_save_IFS
2747   test -z "$as_dir" && as_dir=.
2748   for ac_exec_ext in '' $ac_executable_extensions; do
2749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750     ac_cv_prog_GENHTML="$ac_prog"
2751     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752     break 2
2753   fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 GENHTML=$ac_cv_prog_GENHTML
2761 if test -n "$GENHTML"; then
2762   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2763 $as_echo "$GENHTML" >&6; }
2764 else
2765   { $as_echo "$as_me:$LINENO: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769
2770   test -n "$GENHTML" && break
2771 done
2772
2773 if test -z "$GENHTML"; then
2774   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2775 $as_echo "$as_me: error: genhtml not found" >&2;}
2776    { (exit 1); exit 1; }; }
2777 fi
2778       ;;
2779     no)
2780       :
2781       ;;
2782     *)
2783       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2784 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2785    { (exit 1); exit 1; }; }
2786       ;;
2787   esac
2788
2789 else
2790   enable_coverage=no
2791
2792 fi
2793
2794
2795
2796
2797 #
2798 # DTrace
2799 #
2800
2801
2802 # Check whether --enable-dtrace was given.
2803 if test "${enable_dtrace+set}" = set; then
2804   enableval=$enable_dtrace;
2805   case $enableval in
2806     yes)
2807
2808 cat >>confdefs.h <<\_ACEOF
2809 #define ENABLE_DTRACE 1
2810 _ACEOF
2811
2812 for ac_prog in dtrace
2813 do
2814   # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if test "${ac_cv_prog_DTRACE+set}" = set; then
2819   $as_echo_n "(cached) " >&6
2820 else
2821   if test -n "$DTRACE"; then
2822   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829   for ac_exec_ext in '' $ac_executable_extensions; do
2830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831     ac_cv_prog_DTRACE="$ac_prog"
2832     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2833     break 2
2834   fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 DTRACE=$ac_cv_prog_DTRACE
2842 if test -n "$DTRACE"; then
2843   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2844 $as_echo "$DTRACE" >&6; }
2845 else
2846   { $as_echo "$as_me:$LINENO: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850
2851   test -n "$DTRACE" && break
2852 done
2853
2854 if test -z "$DTRACE"; then
2855   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2856 $as_echo "$as_me: error: dtrace not found" >&2;}
2857    { (exit 1); exit 1; }; }
2858 fi
2859
2860       ;;
2861     no)
2862       :
2863       ;;
2864     *)
2865       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2866 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2867    { (exit 1); exit 1; }; }
2868       ;;
2869   esac
2870
2871 else
2872   enable_dtrace=no
2873
2874 fi
2875
2876
2877
2878
2879 #
2880 # Block size
2881 #
2882 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2883 $as_echo_n "checking for block size... " >&6; }
2884
2885
2886
2887 # Check whether --with-blocksize was given.
2888 if test "${with_blocksize+set}" = set; then
2889   withval=$with_blocksize;
2890   case $withval in
2891     yes)
2892       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2893 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2894    { (exit 1); exit 1; }; }
2895       ;;
2896     no)
2897       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2898 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2899    { (exit 1); exit 1; }; }
2900       ;;
2901     *)
2902       blocksize=$withval
2903       ;;
2904   esac
2905
2906 else
2907   blocksize=8
2908 fi
2909
2910
2911 case ${blocksize} in
2912   1) BLCKSZ=1024;;
2913   2) BLCKSZ=2048;;
2914   4) BLCKSZ=4096;;
2915   8) BLCKSZ=8192;;
2916  16) BLCKSZ=16384;;
2917  32) BLCKSZ=32768;;
2918   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2919 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2920    { (exit 1); exit 1; }; }
2921 esac
2922 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2923 $as_echo "${blocksize}kB" >&6; }
2924
2925
2926 cat >>confdefs.h <<_ACEOF
2927 #define BLCKSZ ${BLCKSZ}
2928 _ACEOF
2929
2930
2931 #
2932 # Relation segment size
2933 #
2934 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2935 $as_echo_n "checking for segment size... " >&6; }
2936
2937
2938
2939 # Check whether --with-segsize was given.
2940 if test "${with_segsize+set}" = set; then
2941   withval=$with_segsize;
2942   case $withval in
2943     yes)
2944       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2945 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2946    { (exit 1); exit 1; }; }
2947       ;;
2948     no)
2949       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2950 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2951    { (exit 1); exit 1; }; }
2952       ;;
2953     *)
2954       segsize=$withval
2955       ;;
2956   esac
2957
2958 else
2959   segsize=1
2960 fi
2961
2962
2963 # this expression is set up to avoid unnecessary integer overflow
2964 # blocksize is already guaranteed to be a factor of 1024
2965 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2966 test $? -eq 0 || exit 1
2967 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2968 $as_echo "${segsize}GB" >&6; }
2969
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define RELSEG_SIZE ${RELSEG_SIZE}
2973 _ACEOF
2974
2975
2976 #
2977 # WAL block size
2978 #
2979 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2980 $as_echo_n "checking for WAL block size... " >&6; }
2981
2982
2983
2984 # Check whether --with-wal-blocksize was given.
2985 if test "${with_wal_blocksize+set}" = set; then
2986   withval=$with_wal_blocksize;
2987   case $withval in
2988     yes)
2989       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2990 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2991    { (exit 1); exit 1; }; }
2992       ;;
2993     no)
2994       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2995 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2996    { (exit 1); exit 1; }; }
2997       ;;
2998     *)
2999       wal_blocksize=$withval
3000       ;;
3001   esac
3002
3003 else
3004   wal_blocksize=8
3005 fi
3006
3007
3008 case ${wal_blocksize} in
3009   1) XLOG_BLCKSZ=1024;;
3010   2) XLOG_BLCKSZ=2048;;
3011   4) XLOG_BLCKSZ=4096;;
3012   8) XLOG_BLCKSZ=8192;;
3013  16) XLOG_BLCKSZ=16384;;
3014  32) XLOG_BLCKSZ=32768;;
3015  64) XLOG_BLCKSZ=65536;;
3016   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3017 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3018    { (exit 1); exit 1; }; }
3019 esac
3020 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3021 $as_echo "${wal_blocksize}kB" >&6; }
3022
3023
3024 cat >>confdefs.h <<_ACEOF
3025 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3026 _ACEOF
3027
3028
3029 #
3030 # WAL segment size
3031 #
3032 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3033 $as_echo_n "checking for WAL segment size... " >&6; }
3034
3035
3036
3037 # Check whether --with-wal-segsize was given.
3038 if test "${with_wal_segsize+set}" = set; then
3039   withval=$with_wal_segsize;
3040   case $withval in
3041     yes)
3042       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3043 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3044    { (exit 1); exit 1; }; }
3045       ;;
3046     no)
3047       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3048 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3049    { (exit 1); exit 1; }; }
3050       ;;
3051     *)
3052       wal_segsize=$withval
3053       ;;
3054   esac
3055
3056 else
3057   wal_segsize=16
3058 fi
3059
3060
3061 case ${wal_segsize} in
3062   1) ;;
3063   2) ;;
3064   4) ;;
3065   8) ;;
3066  16) ;;
3067  32) ;;
3068  64) ;;
3069   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3070 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3071    { (exit 1); exit 1; }; }
3072 esac
3073 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3074 $as_echo "${wal_segsize}MB" >&6; }
3075
3076
3077 cat >>confdefs.h <<_ACEOF
3078 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3079 _ACEOF
3080
3081
3082 #
3083 # C compiler
3084 #
3085
3086 # For historical reasons you can also use --with-CC to specify the C compiler
3087 # to use, although the standard way to do this is to set the CC environment
3088 # variable.
3089
3090
3091
3092 # Check whether --with-CC was given.
3093 if test "${with_CC+set}" = set; then
3094   withval=$with_CC;
3095   case $withval in
3096     yes)
3097       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3098 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3099    { (exit 1); exit 1; }; }
3100       ;;
3101     no)
3102       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3103 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3104    { (exit 1); exit 1; }; }
3105       ;;
3106     *)
3107       CC=$with_CC
3108       ;;
3109   esac
3110
3111 fi
3112
3113
3114
3115 case $template in
3116   aix) pgac_cc_list="gcc xlc";;
3117  irix) pgac_cc_list="cc";; # no gcc
3118     *) pgac_cc_list="gcc cc";;
3119 esac
3120
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 if test -n "$ac_tool_prefix"; then
3127   for ac_prog in $pgac_cc_list
3128   do
3129     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if test "${ac_cv_prog_CC+set}" = set; then
3134   $as_echo_n "(cached) " >&6
3135 else
3136   if test -n "$CC"; then
3137   ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142   IFS=$as_save_IFS
3143   test -z "$as_dir" && as_dir=.
3144   for ac_exec_ext in '' $ac_executable_extensions; do
3145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148     break 2
3149   fi
3150 done
3151 done
3152 IFS=$as_save_IFS
3153
3154 fi
3155 fi
3156 CC=$ac_cv_prog_CC
3157 if test -n "$CC"; then
3158   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3160 else
3161   { $as_echo "$as_me:$LINENO: result: no" >&5
3162 $as_echo "no" >&6; }
3163 fi
3164
3165
3166     test -n "$CC" && break
3167   done
3168 fi
3169 if test -z "$CC"; then
3170   ac_ct_CC=$CC
3171   for ac_prog in $pgac_cc_list
3172 do
3173   # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3178   $as_echo_n "(cached) " >&6
3179 else
3180   if test -n "$ac_ct_CC"; then
3181   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190     ac_cv_prog_ac_ct_CC="$ac_prog"
3191     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3204 else
3205   { $as_echo "$as_me:$LINENO: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209
3210   test -n "$ac_ct_CC" && break
3211 done
3212
3213   if test "x$ac_ct_CC" = x; then
3214     CC=""
3215   else
3216     case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222     CC=$ac_ct_CC
3223   fi
3224 fi
3225
3226
3227 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3230 See \`config.log' for more details." >&5
3231 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details." >&2;}
3233    { (exit 1); exit 1; }; }; }
3234
3235 # Provide some information about the compiler.
3236 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3237 set X $ac_compile
3238 ac_compiler=$2
3239 { (ac_try="$ac_compiler --version >&5"
3240 case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245 $as_echo "$ac_try_echo") >&5
3246   (eval "$ac_compiler --version >&5") 2>&5
3247   ac_status=$?
3248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }
3250 { (ac_try="$ac_compiler -v >&5"
3251 case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256 $as_echo "$ac_try_echo") >&5
3257   (eval "$ac_compiler -v >&5") 2>&5
3258   ac_status=$?
3259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }
3261 { (ac_try="$ac_compiler -V >&5"
3262 case "(($ac_try" in
3263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264   *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267 $as_echo "$ac_try_echo") >&5
3268   (eval "$ac_compiler -V >&5") 2>&5
3269   ac_status=$?
3270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); }
3272
3273 cat >conftest.$ac_ext <<_ACEOF
3274 /* confdefs.h.  */
3275 _ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h.  */
3279
3280 int
3281 main ()
3282 {
3283
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 ac_clean_files_save=$ac_clean_files
3289 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3290 # Try to create an executable without -o first, disregard a.out.
3291 # It will help us diagnose broken compilers, and finding out an intuition
3292 # of exeext.
3293 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3294 $as_echo_n "checking for C compiler default output file name... " >&6; }
3295 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296
3297 # The possible output files:
3298 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3299
3300 ac_rmfiles=
3301 for ac_file in $ac_files
3302 do
3303   case $ac_file in
3304     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3306   esac
3307 done
3308 rm -f $ac_rmfiles
3309
3310 if { (ac_try="$ac_link_default"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3316 $as_echo "$ac_try_echo") >&5
3317   (eval "$ac_link_default") 2>&5
3318   ac_status=$?
3319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }; then
3321   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3324 # so that the user can short-circuit this test for compilers unknown to
3325 # Autoconf.
3326 for ac_file in $ac_files ''
3327 do
3328   test -f "$ac_file" || continue
3329   case $ac_file in
3330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3331         ;;
3332     [ab].out )
3333         # We found the default executable, but exeext='' is most
3334         # certainly right.
3335         break;;
3336     *.* )
3337         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3338         then :; else
3339            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340         fi
3341         # We set ac_cv_exeext here because the later test for it is not
3342         # safe: cross compilers may not add the suffix if given an `-o'
3343         # argument, so we may need to know it at that point already.
3344         # Even if this section looks crufty: it has the advantage of
3345         # actually working.
3346         break;;
3347     * )
3348         break;;
3349   esac
3350 done
3351 test "$ac_cv_exeext" = no && ac_cv_exeext=
3352
3353 else
3354   ac_file=''
3355 fi
3356
3357 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3358 $as_echo "$ac_file" >&6; }
3359 if test -z "$ac_file"; then
3360   $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3366 See \`config.log' for more details." >&5
3367 $as_echo "$as_me: error: C compiler cannot create executables
3368 See \`config.log' for more details." >&2;}
3369    { (exit 77); exit 77; }; }; }
3370 fi
3371
3372 ac_exeext=$ac_cv_exeext
3373
3374 # Check that the compiler produces executables we can run.  If not, either
3375 # the compiler is broken, or we cross compile.
3376 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3377 $as_echo_n "checking whether the C compiler works... " >&6; }
3378 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3379 # If not cross compiling, check that we can run a simple program.
3380 if test "$cross_compiling" != yes; then
3381   if { ac_try='./$ac_file'
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_try") 2>&5
3389   ac_status=$?
3390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; }; then
3392     cross_compiling=no
3393   else
3394     if test "$cross_compiling" = maybe; then
3395         cross_compiling=yes
3396     else
3397         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details." >&5
3402 $as_echo "$as_me: error: cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details." >&2;}
3405    { (exit 1); exit 1; }; }; }
3406     fi
3407   fi
3408 fi
3409 { $as_echo "$as_me:$LINENO: result: yes" >&5
3410 $as_echo "yes" >&6; }
3411
3412 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3413 ac_clean_files=$ac_clean_files_save
3414 # Check that the compiler produces executables we can run.  If not, either
3415 # the compiler is broken, or we cross compile.
3416 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3417 $as_echo_n "checking whether we are cross compiling... " >&6; }
3418 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3419 $as_echo "$cross_compiling" >&6; }
3420
3421 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3422 $as_echo_n "checking for suffix of executables... " >&6; }
3423 if { (ac_try="$ac_link"
3424 case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3429 $as_echo "$ac_try_echo") >&5
3430   (eval "$ac_link") 2>&5
3431   ac_status=$?
3432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }; then
3434   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3435 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3436 # work properly (i.e., refer to `conftest.exe'), while it won't with
3437 # `rm'.
3438 for ac_file in conftest.exe conftest conftest.*; do
3439   test -f "$ac_file" || continue
3440   case $ac_file in
3441     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3442     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3443           break;;
3444     * ) break;;
3445   esac
3446 done
3447 else
3448   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3451 See \`config.log' for more details." >&5
3452 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }; }
3455 fi
3456
3457 rm -f conftest$ac_cv_exeext
3458 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3459 $as_echo "$ac_cv_exeext" >&6; }
3460
3461 rm -f conftest.$ac_ext
3462 EXEEXT=$ac_cv_exeext
3463 ac_exeext=$EXEEXT
3464 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3465 $as_echo_n "checking for suffix of object files... " >&6; }
3466 if test "${ac_cv_objext+set}" = set; then
3467   $as_echo_n "(cached) " >&6
3468 else
3469   cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h.  */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h.  */
3475
3476 int
3477 main ()
3478 {
3479
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 rm -f conftest.o conftest.obj
3485 if { (ac_try="$ac_compile"
3486 case "(($ac_try" in
3487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488   *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3491 $as_echo "$ac_try_echo") >&5
3492   (eval "$ac_compile") 2>&5
3493   ac_status=$?
3494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); }; then
3496   for ac_file in conftest.o conftest.obj conftest.*; do
3497   test -f "$ac_file" || continue;
3498   case $ac_file in
3499     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3500     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3501        break;;
3502   esac
3503 done
3504 else
3505   $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3511 See \`config.log' for more details." >&5
3512 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3513 See \`config.log' for more details." >&2;}
3514    { (exit 1); exit 1; }; }; }
3515 fi
3516
3517 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3518 fi
3519 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3520 $as_echo "$ac_cv_objext" >&6; }
3521 OBJEXT=$ac_cv_objext
3522 ac_objext=$OBJEXT
3523 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3524 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3525 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3526   $as_echo_n "(cached) " >&6
3527 else
3528   cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h.  */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h.  */
3534
3535 int
3536 main ()
3537 {
3538 #ifndef __GNUC__
3539        choke me
3540 #endif
3541
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3548 case "(($ac_try" in
3549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550   *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3553 $as_echo "$ac_try_echo") >&5
3554   (eval "$ac_compile") 2>conftest.er1
3555   ac_status=$?
3556   grep -v '^ *+' conftest.er1 >conftest.err
3557   rm -f conftest.er1
3558   cat conftest.err >&5
3559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560   (exit $ac_status); } && {
3561          test -z "$ac_c_werror_flag" ||
3562          test ! -s conftest.err
3563        } && test -s conftest.$ac_objext; then
3564   ac_compiler_gnu=yes
3565 else
3566   $as_echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569         ac_compiler_gnu=no
3570 fi
3571
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3574
3575 fi
3576 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3577 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3578 if test $ac_compiler_gnu = yes; then
3579   GCC=yes
3580 else
3581   GCC=
3582 fi
3583 ac_test_CFLAGS=${CFLAGS+set}
3584 ac_save_CFLAGS=$CFLAGS
3585 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3586 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3587 if test "${ac_cv_prog_cc_g+set}" = set; then
3588   $as_echo_n "(cached) " >&6
3589 else
3590   ac_save_c_werror_flag=$ac_c_werror_flag
3591    ac_c_werror_flag=yes
3592    ac_cv_prog_cc_g=no
3593    CFLAGS="-g"
3594    cat >conftest.$ac_ext <<_ACEOF
3595 /* confdefs.h.  */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h.  */
3600
3601 int
3602 main ()
3603 {
3604
3605   ;
3606   return 0;
3607 }
3608 _ACEOF
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3611 case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3616 $as_echo "$ac_try_echo") >&5
3617   (eval "$ac_compile") 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } && {
3624          test -z "$ac_c_werror_flag" ||
3625          test ! -s conftest.err
3626        } && test -s conftest.$ac_objext; then
3627   ac_cv_prog_cc_g=yes
3628 else
3629   $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3631
3632         CFLAGS=""
3633       cat >conftest.$ac_ext <<_ACEOF
3634 /* confdefs.h.  */
3635 _ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h.  */
3639
3640 int
3641 main ()
3642 {
3643
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 rm -f conftest.$ac_objext
3649 if { (ac_try="$ac_compile"
3650 case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3655 $as_echo "$ac_try_echo") >&5
3656   (eval "$ac_compile") 2>conftest.er1
3657   ac_status=$?
3658   grep -v '^ *+' conftest.er1 >conftest.err
3659   rm -f conftest.er1
3660   cat conftest.err >&5
3661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); } && {
3663          test -z "$ac_c_werror_flag" ||
3664          test ! -s conftest.err
3665        } && test -s conftest.$ac_objext; then
3666   :
3667 else
3668   $as_echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3670
3671         ac_c_werror_flag=$ac_save_c_werror_flag
3672          CFLAGS="-g"
3673          cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h.  */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h.  */
3679
3680 int
3681 main ()
3682 {
3683
3684   ;
3685   return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.$ac_objext
3689 if { (ac_try="$ac_compile"
3690 case "(($ac_try" in
3691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692   *) ac_try_echo=$ac_try;;
3693 esac
3694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3695 $as_echo "$ac_try_echo") >&5
3696   (eval "$ac_compile") 2>conftest.er1
3697   ac_status=$?
3698   grep -v '^ *+' conftest.er1 >conftest.err
3699   rm -f conftest.er1
3700   cat conftest.err >&5
3701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702   (exit $ac_status); } && {
3703          test -z "$ac_c_werror_flag" ||
3704          test ! -s conftest.err
3705        } && test -s conftest.$ac_objext; then
3706   ac_cv_prog_cc_g=yes
3707 else
3708   $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711
3712 fi
3713
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 fi
3716
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 fi
3719
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721    ac_c_werror_flag=$ac_save_c_werror_flag
3722 fi
3723 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3724 $as_echo "$ac_cv_prog_cc_g" >&6; }
3725 if test "$ac_test_CFLAGS" = set; then
3726   CFLAGS=$ac_save_CFLAGS
3727 elif test $ac_cv_prog_cc_g = yes; then
3728   if test "$GCC" = yes; then
3729     CFLAGS="-g -O2"
3730   else
3731     CFLAGS="-g"
3732   fi
3733 else
3734   if test "$GCC" = yes; then
3735     CFLAGS="-O2"
3736   else
3737     CFLAGS=
3738   fi
3739 fi
3740 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3741 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3742 if test "${ac_cv_prog_cc_c89+set}" = set; then
3743   $as_echo_n "(cached) " >&6
3744 else
3745   ac_cv_prog_cc_c89=no
3746 ac_save_CC=$CC
3747 cat >conftest.$ac_ext <<_ACEOF
3748 /* confdefs.h.  */
3749 _ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h.  */
3753 #include <stdarg.h>
3754 #include <stdio.h>
3755 #include <sys/types.h>
3756 #include <sys/stat.h>
3757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3758 struct buf { int x; };
3759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3760 static char *e (p, i)
3761      char **p;
3762      int i;
3763 {
3764   return p[i];
3765 }
3766 static char *f (char * (*g) (char **, int), char **p, ...)
3767 {
3768   char *s;
3769   va_list v;
3770   va_start (v,p);
3771   s = g (p, va_arg (v,int));
3772   va_end (v);
3773   return s;
3774 }
3775
3776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3777    function prototypes and stuff, but not '\xHH' hex character constants.
3778    These don't provoke an error unfortunately, instead are silently treated
3779    as 'x'.  The following induces an error, until -std is added to get
3780    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3781    array size at least.  It's necessary to write '\x00'==0 to get something
3782    that's true only with -std.  */
3783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3784
3785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3786    inside strings and character constants.  */
3787 #define FOO(x) 'x'
3788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3789
3790 int test (int i, double x);
3791 struct s1 {int (*f) (int a);};
3792 struct s2 {int (*f) (double a);};
3793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3794 int argc;
3795 char **argv;
3796 int
3797 main ()
3798 {
3799 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3800   ;
3801   return 0;
3802 }
3803 _ACEOF
3804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3805         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3806 do
3807   CC="$ac_save_CC $ac_arg"
3808   rm -f conftest.$ac_objext
3809 if { (ac_try="$ac_compile"
3810 case "(($ac_try" in
3811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812   *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3815 $as_echo "$ac_try_echo") >&5
3816   (eval "$ac_compile") 2>conftest.er1
3817   ac_status=$?
3818   grep -v '^ *+' conftest.er1 >conftest.err
3819   rm -f conftest.er1
3820   cat conftest.err >&5
3821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822   (exit $ac_status); } && {
3823          test -z "$ac_c_werror_flag" ||
3824          test ! -s conftest.err
3825        } && test -s conftest.$ac_objext; then
3826   ac_cv_prog_cc_c89=$ac_arg
3827 else
3828   $as_echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831
3832 fi
3833
3834 rm -f core conftest.err conftest.$ac_objext
3835   test "x$ac_cv_prog_cc_c89" != "xno" && break
3836 done
3837 rm -f conftest.$ac_ext
3838 CC=$ac_save_CC
3839
3840 fi
3841 # AC_CACHE_VAL
3842 case "x$ac_cv_prog_cc_c89" in
3843   x)
3844     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3845 $as_echo "none needed" >&6; } ;;
3846   xno)
3847     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3848 $as_echo "unsupported" >&6; } ;;
3849   *)
3850     CC="$CC $ac_cv_prog_cc_c89"
3851     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3852 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3853 esac
3854
3855
3856 ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861
3862
3863 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3864 # but has idiosyncrasies of its own.  We assume icc will define
3865 # __INTEL_COMPILER regardless of CFLAGS.
3866
3867 cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h.  */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h.  */
3873
3874 int
3875 main ()
3876 {
3877 #ifndef __INTEL_COMPILER
3878 choke me
3879 #endif
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 rm -f conftest.$ac_objext
3885 if { (ac_try="$ac_compile"
3886 case "(($ac_try" in
3887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888   *) ac_try_echo=$ac_try;;
3889 esac
3890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3891 $as_echo "$ac_try_echo") >&5
3892   (eval "$ac_compile") 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } && {
3899          test -z "$ac_c_werror_flag" ||
3900          test ! -s conftest.err
3901        } && test -s conftest.$ac_objext; then
3902   ICC=yes
3903 else
3904   $as_echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907         ICC=no
3908 fi
3909
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911
3912 # Check if it's Sun Studio compiler. We assume that
3913 # __SUNPRO_C will be defined for Sun Studio compilers
3914 cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920
3921 int
3922 main ()
3923 {
3924 #ifndef __SUNPRO_C
3925 choke me
3926 #endif
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 rm -f conftest.$ac_objext
3932 if { (ac_try="$ac_compile"
3933 case "(($ac_try" in
3934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935   *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3938 $as_echo "$ac_try_echo") >&5
3939   (eval "$ac_compile") 2>conftest.er1
3940   ac_status=$?
3941   grep -v '^ *+' conftest.er1 >conftest.err
3942   rm -f conftest.er1
3943   cat conftest.err >&5
3944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945   (exit $ac_status); } && {
3946          test -z "$ac_c_werror_flag" ||
3947          test ! -s conftest.err
3948        } && test -s conftest.$ac_objext; then
3949   SUN_STUDIO_CC=yes
3950 else
3951   $as_echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954         SUN_STUDIO_CC=no
3955 fi
3956
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958
3959
3960
3961 unset CFLAGS
3962
3963 #
3964 # Read the template
3965 #
3966 . "$srcdir/src/template/$template" || exit
3967
3968 # CFLAGS are selected so:
3969 # If the user specifies something in the environment, that is used.
3970 # else:  If the template file set something, that is used.
3971 # else:  If coverage was enabled, don't set anything.
3972 # else:  If the compiler is GCC, then we use -O2.
3973 # else:  If the compiler is something else, then we use -O, unless debugging.
3974
3975 if test "$ac_env_CFLAGS_set" = set; then
3976   CFLAGS=$ac_env_CFLAGS_value
3977 elif test "${CFLAGS+set}" = set; then
3978   : # (keep what template set)
3979 elif test "$enable_coverage" = yes; then
3980   : # no optimization by default
3981 elif test "$GCC" = yes; then
3982   CFLAGS="-O2"
3983 else
3984   # if the user selected debug mode, don't use -O
3985   if test "$enable_debug" != yes; then
3986     CFLAGS="-O"
3987   fi
3988 fi
3989
3990 # Some versions of GCC support some additional useful warning flags.
3991 # Check whether they are supported, and add them to CFLAGS if so.
3992 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3993 # but has its own.  Also check other compiler-specific flags here.
3994
3995 if test "$GCC" = yes -a "$ICC" = no; then
3996   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3997   # These work in some but not all gcc versions
3998   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3999 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4000 pgac_save_CFLAGS=$CFLAGS
4001 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4002 cat >conftest.$ac_ext <<_ACEOF
4003 /* confdefs.h.  */
4004 _ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h.  */
4008
4009 int
4010 main ()
4011 {
4012
4013   ;
4014   return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (ac_try="$ac_compile"
4019 case "(($ac_try" in
4020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021   *) ac_try_echo=$ac_try;;
4022 esac
4023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4024 $as_echo "$ac_try_echo") >&5
4025   (eval "$ac_compile") 2>conftest.er1
4026   ac_status=$?
4027   grep -v '^ *+' conftest.er1 >conftest.err
4028   rm -f conftest.er1
4029   cat conftest.err >&5
4030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031   (exit $ac_status); } && {
4032          test -z "$ac_c_werror_flag" ||
4033          test ! -s conftest.err
4034        } && test -s conftest.$ac_objext; then
4035   { $as_echo "$as_me:$LINENO: result: yes" >&5
4036 $as_echo "yes" >&6; }
4037 else
4038   $as_echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4040
4041         CFLAGS="$pgac_save_CFLAGS"
4042                     { $as_echo "$as_me:$LINENO: result: no" >&5
4043 $as_echo "no" >&6; }
4044 fi
4045
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047
4048   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4049 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4050 pgac_save_CFLAGS=$CFLAGS
4051 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h.  */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h.  */
4058
4059 int
4060 main ()
4061 {
4062
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075   (eval "$ac_compile") 2>conftest.er1
4076   ac_status=$?
4077   grep -v '^ *+' conftest.er1 >conftest.err
4078   rm -f conftest.er1
4079   cat conftest.err >&5
4080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); } && {
4082          test -z "$ac_c_werror_flag" ||
4083          test ! -s conftest.err
4084        } && test -s conftest.$ac_objext; then
4085   { $as_echo "$as_me:$LINENO: result: yes" >&5
4086 $as_echo "yes" >&6; }
4087 else
4088   $as_echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091         CFLAGS="$pgac_save_CFLAGS"
4092                     { $as_echo "$as_me:$LINENO: result: no" >&5
4093 $as_echo "no" >&6; }
4094 fi
4095
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097
4098   # Disable strict-aliasing rules; needed for gcc 3.3+
4099   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4100 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4101 pgac_save_CFLAGS=$CFLAGS
4102 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4103 cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109
4110 int
4111 main ()
4112 {
4113
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 rm -f conftest.$ac_objext
4119 if { (ac_try="$ac_compile"
4120 case "(($ac_try" in
4121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122   *) ac_try_echo=$ac_try;;
4123 esac
4124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4125 $as_echo "$ac_try_echo") >&5
4126   (eval "$ac_compile") 2>conftest.er1
4127   ac_status=$?
4128   grep -v '^ *+' conftest.er1 >conftest.err
4129   rm -f conftest.er1
4130   cat conftest.err >&5
4131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132   (exit $ac_status); } && {
4133          test -z "$ac_c_werror_flag" ||
4134          test ! -s conftest.err
4135        } && test -s conftest.$ac_objext; then
4136   { $as_echo "$as_me:$LINENO: result: yes" >&5
4137 $as_echo "yes" >&6; }
4138 else
4139   $as_echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4141
4142         CFLAGS="$pgac_save_CFLAGS"
4143                     { $as_echo "$as_me:$LINENO: result: no" >&5
4144 $as_echo "no" >&6; }
4145 fi
4146
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148
4149   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4150   { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4151 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4152 pgac_save_CFLAGS=$CFLAGS
4153 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h.  */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h.  */
4160
4161 int
4162 main ()
4163 {
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176 $as_echo "$ac_try_echo") >&5
4177   (eval "$ac_compile") 2>conftest.er1
4178   ac_status=$?
4179   grep -v '^ *+' conftest.er1 >conftest.err
4180   rm -f conftest.er1
4181   cat conftest.err >&5
4182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); } && {
4184          test -z "$ac_c_werror_flag" ||
4185          test ! -s conftest.err
4186        } && test -s conftest.$ac_objext; then
4187   { $as_echo "$as_me:$LINENO: result: yes" >&5
4188 $as_echo "yes" >&6; }
4189 else
4190   $as_echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4192
4193         CFLAGS="$pgac_save_CFLAGS"
4194                     { $as_echo "$as_me:$LINENO: result: no" >&5
4195 $as_echo "no" >&6; }
4196 fi
4197
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199
4200 elif test "$ICC" = yes; then
4201   # Intel's compiler has a bug/misoptimization in checking for
4202   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4203   { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4204 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4205 pgac_save_CFLAGS=$CFLAGS
4206 CFLAGS="$pgac_save_CFLAGS -mp1"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213
4214 int
4215 main ()
4216 {
4217
4218   ;
4219   return 0;
4220 }
4221 _ACEOF
4222 rm -f conftest.$ac_objext
4223 if { (ac_try="$ac_compile"
4224 case "(($ac_try" in
4225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226   *) ac_try_echo=$ac_try;;
4227 esac
4228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4229 $as_echo "$ac_try_echo") >&5
4230   (eval "$ac_compile") 2>conftest.er1
4231   ac_status=$?
4232   grep -v '^ *+' conftest.er1 >conftest.err
4233   rm -f conftest.er1
4234   cat conftest.err >&5
4235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); } && {
4237          test -z "$ac_c_werror_flag" ||
4238          test ! -s conftest.err
4239        } && test -s conftest.$ac_objext; then
4240   { $as_echo "$as_me:$LINENO: result: yes" >&5
4241 $as_echo "yes" >&6; }
4242 else
4243   $as_echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4245
4246         CFLAGS="$pgac_save_CFLAGS"
4247                     { $as_echo "$as_me:$LINENO: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252
4253   # Make sure strict aliasing is off (though this is said to be the default)
4254   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4255 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4256 pgac_save_CFLAGS=$CFLAGS
4257 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h.  */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h.  */
4264
4265 int
4266 main ()
4267 {
4268
4269   ;
4270   return 0;
4271 }
4272 _ACEOF
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4275 case "(($ac_try" in
4276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277   *) ac_try_echo=$ac_try;;
4278 esac
4279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4280 $as_echo "$ac_try_echo") >&5
4281   (eval "$ac_compile") 2>conftest.er1
4282   ac_status=$?
4283   grep -v '^ *+' conftest.er1 >conftest.err
4284   rm -f conftest.er1
4285   cat conftest.err >&5
4286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } && {
4288          test -z "$ac_c_werror_flag" ||
4289          test ! -s conftest.err
4290        } && test -s conftest.$ac_objext; then
4291   { $as_echo "$as_me:$LINENO: result: yes" >&5
4292 $as_echo "yes" >&6; }
4293 else
4294   $as_echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297         CFLAGS="$pgac_save_CFLAGS"
4298                     { $as_echo "$as_me:$LINENO: result: no" >&5
4299 $as_echo "no" >&6; }
4300 fi
4301
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303
4304 elif test "$PORTNAME" = "aix"; then
4305   # AIX's xlc has to have strict aliasing turned off too
4306   { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4307 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4308 pgac_save_CFLAGS=$CFLAGS
4309 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h.  */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h.  */
4316
4317 int
4318 main ()
4319 {
4320
4321   ;
4322   return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (ac_try="$ac_compile"
4327 case "(($ac_try" in
4328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329   *) ac_try_echo=$ac_try;;
4330 esac
4331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4332 $as_echo "$ac_try_echo") >&5
4333   (eval "$ac_compile") 2>conftest.er1
4334   ac_status=$?
4335   grep -v '^ *+' conftest.er1 >conftest.err
4336   rm -f conftest.er1
4337   cat conftest.err >&5
4338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } && {
4340          test -z "$ac_c_werror_flag" ||
4341          test ! -s conftest.err
4342        } && test -s conftest.$ac_objext; then
4343   { $as_echo "$as_me:$LINENO: result: yes" >&5
4344 $as_echo "yes" >&6; }
4345 else
4346   $as_echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349         CFLAGS="$pgac_save_CFLAGS"
4350                     { $as_echo "$as_me:$LINENO: result: no" >&5
4351 $as_echo "no" >&6; }
4352 fi
4353
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355
4356 fi
4357
4358 # supply -g if --enable-debug
4359 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4360   CFLAGS="$CFLAGS -g"
4361 fi
4362
4363 # enable code coverage if --enable-coverage
4364 if test "$enable_coverage" = yes; then
4365   if test "$GCC" = yes; then
4366     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4367   else
4368     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4369 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4370    { (exit 1); exit 1; }; }
4371   fi
4372 fi
4373
4374 # enable profiling if --enable-profiling
4375 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4376   if test "$GCC" = yes; then
4377
4378 cat >>confdefs.h <<\_ACEOF
4379 #define PROFILE_PID_DIR 1
4380 _ACEOF
4381
4382     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4383   else
4384     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4385 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4386    { (exit 1); exit 1; }; }
4387   fi
4388 fi
4389
4390 # We already have this in Makefile.win32, but configure needs it too
4391 if test "$PORTNAME" = "win32"; then
4392   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4393 fi
4394
4395 # Check if the compiler still works with the template settings
4396 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4397 $as_echo_n "checking whether the C compiler still works... " >&6; }
4398 cat >conftest.$ac_ext <<_ACEOF
4399 /* confdefs.h.  */
4400 _ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h.  */
4404
4405 int
4406 main ()
4407 {
4408 return 0;
4409   ;
4410   return 0;
4411 }
4412 _ACEOF
4413 rm -f conftest.$ac_objext conftest$ac_exeext
4414 if { (ac_try="$ac_link"
4415 case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4420 $as_echo "$ac_try_echo") >&5
4421   (eval "$ac_link") 2>conftest.er1
4422   ac_status=$?
4423   grep -v '^ *+' conftest.er1 >conftest.err
4424   rm -f conftest.er1
4425   cat conftest.err >&5
4426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); } && {
4428          test -z "$ac_c_werror_flag" ||
4429          test ! -s conftest.err
4430        } && test -s conftest$ac_exeext && {
4431          test "$cross_compiling" = yes ||
4432          $as_test_x conftest$ac_exeext
4433        }; then
4434   { $as_echo "$as_me:$LINENO: result: yes" >&5
4435 $as_echo "yes" >&6; }
4436 else
4437   $as_echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440         { $as_echo "$as_me:$LINENO: result: no" >&5
4441 $as_echo "no" >&6; }
4442    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4443 $as_echo "$as_me: error: cannot proceed" >&2;}
4444    { (exit 1); exit 1; }; }
4445 fi
4446
4447 rm -rf conftest.dSYM
4448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4449       conftest$ac_exeext conftest.$ac_ext
4450
4451 # Defend against gcc -ffast-math
4452 if test "$GCC" = yes; then
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h.  */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h.  */
4459
4460 int
4461 main ()
4462 {
4463 #ifdef __FAST_MATH__
4464 choke me
4465 #endif
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   :
4489 else
4490   $as_echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4494 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4495    { (exit 1); exit 1; }; }
4496 fi
4497
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 fi
4500
4501 ac_ext=c
4502 ac_cpp='$CPP $CPPFLAGS'
4503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4507 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4508 # On Suns, sometimes $CPP names a directory.
4509 if test -n "$CPP" && test -d "$CPP"; then
4510   CPP=
4511 fi
4512 if test -z "$CPP"; then
4513   if test "${ac_cv_prog_CPP+set}" = set; then
4514   $as_echo_n "(cached) " >&6
4515 else
4516       # Double quotes because CPP needs to be expanded
4517     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4518     do
4519       ac_preproc_ok=false
4520 for ac_c_preproc_warn_flag in '' yes
4521 do
4522   # Use a header file that comes with gcc, so configuring glibc
4523   # with a fresh cross-compiler works.
4524   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4525   # <limits.h> exists even on freestanding compilers.
4526   # On the NeXT, cc -E runs the code through the compiler's parser,
4527   # not just through cpp. "Syntax error" is here to catch this case.
4528   cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534 #ifdef __STDC__
4535 # include <limits.h>
4536 #else
4537 # include <assert.h>
4538 #endif
4539                      Syntax error
4540 _ACEOF
4541 if { (ac_try="$ac_cpp conftest.$ac_ext"
4542 case "(($ac_try" in
4543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544   *) ac_try_echo=$ac_try;;
4545 esac
4546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4547 $as_echo "$ac_try_echo") >&5
4548   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4549   ac_status=$?
4550   grep -v '^ *+' conftest.er1 >conftest.err
4551   rm -f conftest.er1
4552   cat conftest.err >&5
4553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); } >/dev/null && {
4555          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4556          test ! -s conftest.err
4557        }; then
4558   :
4559 else
4560   $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563   # Broken: fails on valid input.
4564 continue
4565 fi
4566
4567 rm -f conftest.err conftest.$ac_ext
4568
4569   # OK, works on sane cases.  Now check whether nonexistent headers
4570   # can be detected and how.
4571   cat >conftest.$ac_ext <<_ACEOF
4572 /* confdefs.h.  */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h.  */
4577 #include <ac_nonexistent.h>
4578 _ACEOF
4579 if { (ac_try="$ac_cpp conftest.$ac_ext"
4580 case "(($ac_try" in
4581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582   *) ac_try_echo=$ac_try;;
4583 esac
4584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4585 $as_echo "$ac_try_echo") >&5
4586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4587   ac_status=$?
4588   grep -v '^ *+' conftest.er1 >conftest.err
4589   rm -f conftest.er1
4590   cat conftest.err >&5
4591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); } >/dev/null && {
4593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4594          test ! -s conftest.err
4595        }; then
4596   # Broken: success on invalid input.
4597 continue
4598 else
4599   $as_echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602   # Passes both tests.
4603 ac_preproc_ok=:
4604 break
4605 fi
4606
4607 rm -f conftest.err conftest.$ac_ext
4608
4609 done
4610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4611 rm -f conftest.err conftest.$ac_ext
4612 if $ac_preproc_ok; then
4613   break
4614 fi
4615
4616     done
4617     ac_cv_prog_CPP=$CPP
4618
4619 fi
4620   CPP=$ac_cv_prog_CPP
4621 else
4622   ac_cv_prog_CPP=$CPP
4623 fi
4624 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4625 $as_echo "$CPP" >&6; }
4626 ac_preproc_ok=false
4627 for ac_c_preproc_warn_flag in '' yes
4628 do
4629   # Use a header file that comes with gcc, so configuring glibc
4630   # with a fresh cross-compiler works.
4631   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4632   # <limits.h> exists even on freestanding compilers.
4633   # On the NeXT, cc -E runs the code through the compiler's parser,
4634   # not just through cpp. "Syntax error" is here to catch this case.
4635   cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #ifdef __STDC__
4642 # include <limits.h>
4643 #else
4644 # include <assert.h>
4645 #endif
4646                      Syntax error
4647 _ACEOF
4648 if { (ac_try="$ac_cpp conftest.$ac_ext"
4649 case "(($ac_try" in
4650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651   *) ac_try_echo=$ac_try;;
4652 esac
4653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4654 $as_echo "$ac_try_echo") >&5
4655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4656   ac_status=$?
4657   grep -v '^ *+' conftest.er1 >conftest.err
4658   rm -f conftest.er1
4659   cat conftest.err >&5
4660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); } >/dev/null && {
4662          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4663          test ! -s conftest.err
4664        }; then
4665   :
4666 else
4667   $as_echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670   # Broken: fails on valid input.
4671 continue
4672 fi
4673
4674 rm -f conftest.err conftest.$ac_ext
4675
4676   # OK, works on sane cases.  Now check whether nonexistent headers
4677   # can be detected and how.
4678   cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h.  */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h.  */
4684 #include <ac_nonexistent.h>
4685 _ACEOF
4686 if { (ac_try="$ac_cpp conftest.$ac_ext"
4687 case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692 $as_echo "$ac_try_echo") >&5
4693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4694   ac_status=$?
4695   grep -v '^ *+' conftest.er1 >conftest.err
4696   rm -f conftest.er1
4697   cat conftest.err >&5
4698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } >/dev/null && {
4700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4701          test ! -s conftest.err
4702        }; then
4703   # Broken: success on invalid input.
4704 continue
4705 else
4706   $as_echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709   # Passes both tests.
4710 ac_preproc_ok=:
4711 break
4712 fi
4713
4714 rm -f conftest.err conftest.$ac_ext
4715
4716 done
4717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4718 rm -f conftest.err conftest.$ac_ext
4719 if $ac_preproc_ok; then
4720   :
4721 else
4722   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4724 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4725 See \`config.log' for more details." >&5
4726 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4727 See \`config.log' for more details." >&2;}
4728    { (exit 1); exit 1; }; }; }
4729 fi
4730
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736
4737
4738
4739
4740 #
4741 # Set up TAS assembly code if needed; the template file has now had its
4742 # chance to request this.
4743 #
4744 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4745
4746
4747 if test "$need_tas" = yes ; then
4748   TAS=tas.o
4749 else
4750   TAS=""
4751 fi
4752
4753
4754
4755 #
4756 # Automatic dependency tracking
4757 #
4758
4759
4760 # Check whether --enable-depend was given.
4761 if test "${enable_depend+set}" = set; then
4762   enableval=$enable_depend;
4763   case $enableval in
4764     yes)
4765       autodepend=yes
4766       ;;
4767     no)
4768       :
4769       ;;
4770     *)
4771       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4772 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4773    { (exit 1); exit 1; }; }
4774       ;;
4775   esac
4776
4777 else
4778   enable_depend=no
4779
4780 fi
4781
4782
4783
4784
4785
4786 #
4787 # Enable assert checks
4788 #
4789
4790
4791 # Check whether --enable-cassert was given.
4792 if test "${enable_cassert+set}" = set; then
4793   enableval=$enable_cassert;
4794   case $enableval in
4795     yes)
4796
4797 cat >>confdefs.h <<\_ACEOF
4798 #define USE_ASSERT_CHECKING 1
4799 _ACEOF
4800
4801       ;;
4802     no)
4803       :
4804       ;;
4805     *)
4806       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4807 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4808    { (exit 1); exit 1; }; }
4809       ;;
4810   esac
4811
4812 else
4813   enable_cassert=no
4814
4815 fi
4816
4817
4818
4819
4820 #
4821 # Include directories
4822 #
4823 ac_save_IFS=$IFS
4824 IFS="${IFS}${PATH_SEPARATOR}"
4825 # SRCH_INC comes from the template file
4826 for dir in $with_includes $SRCH_INC; do
4827   if test -d "$dir"; then
4828     INCLUDES="$INCLUDES -I$dir"
4829   else
4830     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4831 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4832   fi
4833 done
4834 IFS=$ac_save_IFS
4835
4836
4837
4838 #
4839 # Library directories
4840 #
4841 ac_save_IFS=$IFS
4842 IFS="${IFS}${PATH_SEPARATOR}"
4843 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4844 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4845   if test -d "$dir"; then
4846     LIBDIRS="$LIBDIRS -L$dir"
4847   else
4848     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4849 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4850   fi
4851 done
4852 IFS=$ac_save_IFS
4853
4854 #
4855 # Enable thread-safe client libraries
4856 #
4857 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4858 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4859
4860
4861 # Check whether --enable-thread-safety was given.
4862 if test "${enable_thread_safety+set}" = set; then
4863   enableval=$enable_thread_safety;
4864   case $enableval in
4865     yes)
4866       :
4867       ;;
4868     no)
4869       :
4870       ;;
4871     *)
4872       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4873 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4874    { (exit 1); exit 1; }; }
4875       ;;
4876   esac
4877
4878 else
4879   enable_thread_safety=yes
4880
4881 fi
4882
4883
4884 if test "$enable_thread_safety" = yes; then
4885
4886 cat >>confdefs.h <<\_ACEOF
4887 #define ENABLE_THREAD_SAFETY 1
4888 _ACEOF
4889
4890 fi
4891 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4892 $as_echo "$enable_thread_safety" >&6; }
4893
4894
4895 #
4896 # Optionally build Tcl modules (PL/Tcl)
4897 #
4898 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4899 $as_echo_n "checking whether to build with Tcl... " >&6; }
4900
4901
4902
4903 # Check whether --with-tcl was given.
4904 if test "${with_tcl+set}" = set; then
4905   withval=$with_tcl;
4906   case $withval in
4907     yes)
4908       :
4909       ;;
4910     no)
4911       :
4912       ;;
4913     *)
4914       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4915 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4916    { (exit 1); exit 1; }; }
4917       ;;
4918   esac
4919
4920 else
4921   with_tcl=no
4922
4923 fi
4924
4925
4926 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4927 $as_echo "$with_tcl" >&6; }
4928
4929
4930 # We see if the path to the Tcl/Tk configuration scripts is specified.
4931 # This will override the use of tclsh to find the paths to search.
4932
4933
4934
4935
4936 # Check whether --with-tclconfig was given.
4937 if test "${with_tclconfig+set}" = set; then
4938   withval=$with_tclconfig;
4939   case $withval in
4940     yes)
4941       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4942 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4943    { (exit 1); exit 1; }; }
4944       ;;
4945     no)
4946       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4947 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4948    { (exit 1); exit 1; }; }
4949       ;;
4950     *)
4951
4952       ;;
4953   esac
4954
4955 fi
4956
4957
4958
4959 #
4960 # Optionally build Perl modules (PL/Perl)
4961 #
4962 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4963 $as_echo_n "checking whether to build Perl modules... " >&6; }
4964
4965
4966
4967 # Check whether --with-perl was given.
4968 if test "${with_perl+set}" = set; then
4969   withval=$with_perl;
4970   case $withval in
4971     yes)
4972       :
4973       ;;
4974     no)
4975       :
4976       ;;
4977     *)
4978       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4979 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4980    { (exit 1); exit 1; }; }
4981       ;;
4982   esac
4983
4984 else
4985   with_perl=no
4986
4987 fi
4988
4989
4990 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4991 $as_echo "$with_perl" >&6; }
4992
4993
4994 #
4995 # Optionally build Python modules (PL/Python)
4996 #
4997 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4998 $as_echo_n "checking whether to build Python modules... " >&6; }
4999
5000
5001
5002 # Check whether --with-python was given.
5003 if test "${with_python+set}" = set; then
5004   withval=$with_python;
5005   case $withval in
5006     yes)
5007       :
5008       ;;
5009     no)
5010       :
5011       ;;
5012     *)
5013       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5014 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5015    { (exit 1); exit 1; }; }
5016       ;;
5017   esac
5018
5019 else
5020   with_python=no
5021
5022 fi
5023
5024
5025 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5026 $as_echo "$with_python" >&6; }
5027
5028
5029 #
5030 # GSSAPI
5031 #
5032 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5033 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5034
5035
5036
5037 # Check whether --with-gssapi was given.
5038 if test "${with_gssapi+set}" = set; then
5039   withval=$with_gssapi;
5040   case $withval in
5041     yes)
5042
5043
5044 cat >>confdefs.h <<\_ACEOF
5045 #define ENABLE_GSS 1
5046 _ACEOF
5047
5048   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5049
5050       ;;
5051     no)
5052       :
5053       ;;
5054     *)
5055       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5056 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5057    { (exit 1); exit 1; }; }
5058       ;;
5059   esac
5060
5061 else
5062   with_gssapi=no
5063
5064 fi
5065
5066
5067 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5068 $as_echo "$with_gssapi" >&6; }
5069
5070
5071 #
5072 # Kerberos 5
5073 #
5074 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5075 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5076
5077
5078
5079 # Check whether --with-krb5 was given.
5080 if test "${with_krb5+set}" = set; then
5081   withval=$with_krb5;
5082   case $withval in
5083     yes)
5084
5085
5086 cat >>confdefs.h <<\_ACEOF
5087 #define KRB5 1
5088 _ACEOF
5089
5090   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5091
5092       ;;
5093     no)
5094       :
5095       ;;
5096     *)
5097       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5098 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5099    { (exit 1); exit 1; }; }
5100       ;;
5101   esac
5102
5103 else
5104   with_krb5=no
5105
5106 fi
5107
5108
5109 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5110 $as_echo "$with_krb5" >&6; }
5111
5112
5113
5114
5115
5116
5117 #
5118 # Kerberos configuration parameters
5119 #
5120
5121
5122
5123 # Check whether --with-krb-srvnam was given.
5124 if test "${with_krb_srvnam+set}" = set; then
5125   withval=$with_krb_srvnam;
5126   case $withval in
5127     yes)
5128       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5129 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5130    { (exit 1); exit 1; }; }
5131       ;;
5132     no)
5133       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5134 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5135    { (exit 1); exit 1; }; }
5136       ;;
5137     *)
5138
5139       ;;
5140   esac
5141
5142 else
5143   with_krb_srvnam="postgres"
5144 fi
5145
5146
5147
5148 cat >>confdefs.h <<_ACEOF
5149 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5150 _ACEOF
5151
5152
5153
5154 #
5155 # PAM
5156 #
5157 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5158 $as_echo_n "checking whether to build with PAM support... " >&6; }
5159
5160
5161
5162 # Check whether --with-pam was given.
5163 if test "${with_pam+set}" = set; then
5164   withval=$with_pam;
5165   case $withval in
5166     yes)
5167
5168 cat >>confdefs.h <<\_ACEOF
5169 #define USE_PAM 1
5170 _ACEOF
5171
5172       ;;
5173     no)
5174       :
5175       ;;
5176     *)
5177       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5178 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5179    { (exit 1); exit 1; }; }
5180       ;;
5181   esac
5182
5183 else
5184   with_pam=no
5185
5186 fi
5187
5188
5189 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5190 $as_echo "$with_pam" >&6; }
5191
5192
5193
5194 #
5195 # LDAP
5196 #
5197 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5198 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5199
5200
5201
5202 # Check whether --with-ldap was given.
5203 if test "${with_ldap+set}" = set; then
5204   withval=$with_ldap;
5205   case $withval in
5206     yes)
5207
5208 cat >>confdefs.h <<\_ACEOF
5209 #define USE_LDAP 1
5210 _ACEOF
5211
5212       ;;
5213     no)
5214       :
5215       ;;
5216     *)
5217       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5218 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5219    { (exit 1); exit 1; }; }
5220       ;;
5221   esac
5222
5223 else
5224   with_ldap=no
5225
5226 fi
5227
5228
5229 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5230 $as_echo "$with_ldap" >&6; }
5231
5232
5233
5234 #
5235 # Bonjour
5236 #
5237 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5238 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5239
5240
5241
5242 # Check whether --with-bonjour was given.
5243 if test "${with_bonjour+set}" = set; then
5244   withval=$with_bonjour;
5245   case $withval in
5246     yes)
5247
5248 cat >>confdefs.h <<\_ACEOF
5249 #define USE_BONJOUR 1
5250 _ACEOF
5251
5252       ;;
5253     no)
5254       :
5255       ;;
5256     *)
5257       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5258 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5259    { (exit 1); exit 1; }; }
5260       ;;
5261   esac
5262
5263 else
5264   with_bonjour=no
5265
5266 fi
5267
5268
5269 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5270 $as_echo "$with_bonjour" >&6; }
5271
5272
5273
5274 #
5275 # OpenSSL
5276 #
5277 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5278 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5279
5280
5281
5282 # Check whether --with-openssl was given.
5283 if test "${with_openssl+set}" = set; then
5284   withval=$with_openssl;
5285   case $withval in
5286     yes)
5287
5288 cat >>confdefs.h <<\_ACEOF
5289 #define USE_SSL 1
5290 _ACEOF
5291
5292       ;;
5293     no)
5294       :
5295       ;;
5296     *)
5297       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5298 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5299    { (exit 1); exit 1; }; }
5300       ;;
5301   esac
5302
5303 else
5304   with_openssl=no
5305
5306 fi
5307
5308
5309 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5310 $as_echo "$with_openssl" >&6; }
5311
5312
5313
5314 #
5315 # Readline
5316 #
5317
5318
5319
5320 # Check whether --with-readline was given.
5321 if test "${with_readline+set}" = set; then
5322   withval=$with_readline;
5323   case $withval in
5324     yes)
5325       :
5326       ;;
5327     no)
5328       :
5329       ;;
5330     *)
5331       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5332 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5333    { (exit 1); exit 1; }; }
5334       ;;
5335   esac
5336
5337 else
5338   with_readline=yes
5339
5340 fi
5341
5342
5343 # readline on MinGW has problems with backslashes in psql and other bugs.
5344 # This is particularly a problem with non-US code pages.
5345 # Therefore disable its use until we understand the cause. 2004-07-20
5346 if test "$PORTNAME" = "win32"; then
5347   if test "$with_readline" = yes; then
5348     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5349 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5350     with_readline=no
5351   fi
5352 fi
5353
5354
5355 #
5356 # Prefer libedit
5357 #
5358
5359
5360
5361 # Check whether --with-libedit-preferred was given.
5362 if test "${with_libedit_preferred+set}" = set; then
5363   withval=$with_libedit_preferred;
5364   case $withval in
5365     yes)
5366       :
5367       ;;
5368     no)
5369       :
5370       ;;
5371     *)
5372       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5373 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5374    { (exit 1); exit 1; }; }
5375       ;;
5376   esac
5377
5378 else
5379   with_libedit_preferred=no
5380
5381 fi
5382
5383
5384
5385
5386 #
5387 # OSSP UUID library
5388 #
5389
5390
5391
5392 # Check whether --with-ossp-uuid was given.
5393 if test "${with_ossp_uuid+set}" = set; then
5394   withval=$with_ossp_uuid;
5395   case $withval in
5396     yes)
5397       :
5398       ;;
5399     no)
5400       :
5401       ;;
5402     *)
5403       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5404 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5405    { (exit 1); exit 1; }; }
5406       ;;
5407   esac
5408
5409 else
5410   with_ossp_uuid=no
5411
5412 fi
5413
5414
5415
5416
5417
5418 #
5419 # XML
5420 #
5421
5422
5423
5424 # Check whether --with-libxml was given.
5425 if test "${with_libxml+set}" = set; then
5426   withval=$with_libxml;
5427   case $withval in
5428     yes)
5429
5430 cat >>confdefs.h <<\_ACEOF
5431 #define USE_LIBXML 1
5432 _ACEOF
5433
5434       ;;
5435     no)
5436       :
5437       ;;
5438     *)
5439       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5440 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5441    { (exit 1); exit 1; }; }
5442       ;;
5443   esac
5444
5445 else
5446   with_libxml=no
5447
5448 fi
5449
5450
5451
5452 if test "$with_libxml" = yes ; then
5453   for ac_prog in xml2-config
5454 do
5455   # Extract the first word of "$ac_prog", so it can be a program name with args.
5456 set dummy $ac_prog; ac_word=$2
5457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5460   $as_echo_n "(cached) " >&6
5461 else
5462   if test -n "$XML2_CONFIG"; then
5463   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468   IFS=$as_save_IFS
5469   test -z "$as_dir" && as_dir=.
5470   for ac_exec_ext in '' $ac_executable_extensions; do
5471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472     ac_cv_prog_XML2_CONFIG="$ac_prog"
5473     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474     break 2
5475   fi
5476 done
5477 done
5478 IFS=$as_save_IFS
5479
5480 fi
5481 fi
5482 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5483 if test -n "$XML2_CONFIG"; then
5484   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5485 $as_echo "$XML2_CONFIG" >&6; }
5486 else
5487   { $as_echo "$as_me:$LINENO: result: no" >&5
5488 $as_echo "no" >&6; }
5489 fi
5490
5491
5492   test -n "$XML2_CONFIG" && break
5493 done
5494
5495   if test -n "$XML2_CONFIG"; then
5496     for pgac_option in `$XML2_CONFIG --cflags`; do
5497       case $pgac_option in
5498         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5499       esac
5500     done
5501     for pgac_option in `$XML2_CONFIG --libs`; do
5502       case $pgac_option in
5503         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5504       esac
5505     done
5506   fi
5507 fi
5508
5509
5510
5511 #
5512 # XSLT
5513 #
5514
5515
5516
5517 # Check whether --with-libxslt was given.
5518 if test "${with_libxslt+set}" = set; then
5519   withval=$with_libxslt;
5520   case $withval in
5521     yes)
5522
5523 cat >>confdefs.h <<\_ACEOF
5524 #define USE_LIBXSLT 1
5525 _ACEOF
5526
5527       ;;
5528     no)
5529       :
5530       ;;
5531     *)
5532       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5533 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5534    { (exit 1); exit 1; }; }
5535       ;;
5536   esac
5537
5538 else
5539   with_libxslt=no
5540
5541 fi
5542
5543
5544
5545
5546
5547
5548 #
5549 # tzdata
5550 #
5551
5552
5553
5554 # Check whether --with-system-tzdata was given.
5555 if test "${with_system_tzdata+set}" = set; then
5556   withval=$with_system_tzdata;
5557   case $withval in
5558     yes)
5559       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5560 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5561    { (exit 1); exit 1; }; }
5562       ;;
5563     no)
5564       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5565 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5566    { (exit 1); exit 1; }; }
5567       ;;
5568     *)
5569
5570       ;;
5571   esac
5572
5573 fi
5574
5575
5576
5577
5578 #
5579 # Zlib
5580 #
5581
5582
5583
5584 # Check whether --with-zlib was given.
5585 if test "${with_zlib+set}" = set; then
5586   withval=$with_zlib;
5587   case $withval in
5588     yes)
5589       :
5590       ;;
5591     no)
5592       :
5593       ;;
5594     *)
5595       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5596 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5597    { (exit 1); exit 1; }; }
5598       ;;
5599   esac
5600
5601 else
5602   with_zlib=yes
5603
5604 fi
5605
5606
5607
5608
5609 #
5610 # Elf
5611 #
5612
5613 # Assume system is ELF if it predefines __ELF__ as 1,
5614 # otherwise believe host_os based default.
5615 case $host_os in
5616     freebsd1*|freebsd2*) elf=no;;
5617     freebsd3*|freebsd4*) elf=yes;;
5618 esac
5619
5620
5621 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5622 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5623 if test "${ac_cv_path_GREP+set}" = set; then
5624   $as_echo_n "(cached) " >&6
5625 else
5626   if test -z "$GREP"; then
5627   ac_path_GREP_found=false
5628   # Loop through the user's path and test for each of PROGNAME-LIST
5629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634   for ac_prog in grep ggrep; do
5635     for ac_exec_ext in '' $ac_executable_extensions; do
5636       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5637       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5638 # Check for GNU ac_path_GREP and select it if it is found.
5639   # Check for GNU $ac_path_GREP
5640 case `"$ac_path_GREP" --version 2>&1` in
5641 *GNU*)
5642   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5643 *)
5644   ac_count=0
5645   $as_echo_n 0123456789 >"conftest.in"
5646   while :
5647   do
5648     cat "conftest.in" "conftest.in" >"conftest.tmp"
5649     mv "conftest.tmp" "conftest.in"
5650     cp "conftest.in" "conftest.nl"
5651     $as_echo 'GREP' >> "conftest.nl"
5652     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5654     ac_count=`expr $ac_count + 1`
5655     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5656       # Best one so far, save it but keep looking for a better one
5657       ac_cv_path_GREP="$ac_path_GREP"
5658       ac_path_GREP_max=$ac_count
5659     fi
5660     # 10*(2^10) chars as input seems more than enough
5661     test $ac_count -gt 10 && break
5662   done
5663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5664 esac
5665
5666       $ac_path_GREP_found && break 3
5667     done
5668   done
5669 done
5670 IFS=$as_save_IFS
5671   if test -z "$ac_cv_path_GREP"; then
5672     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5673 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5674    { (exit 1); exit 1; }; }
5675   fi
5676 else
5677   ac_cv_path_GREP=$GREP
5678 fi
5679
5680 fi
5681 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5682 $as_echo "$ac_cv_path_GREP" >&6; }
5683  GREP="$ac_cv_path_GREP"
5684
5685
5686 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5687 $as_echo_n "checking for egrep... " >&6; }
5688 if test "${ac_cv_path_EGREP+set}" = set; then
5689   $as_echo_n "(cached) " >&6
5690 else
5691   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5692    then ac_cv_path_EGREP="$GREP -E"
5693    else
5694      if test -z "$EGREP"; then
5695   ac_path_EGREP_found=false
5696   # Loop through the user's path and test for each of PROGNAME-LIST
5697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5699 do
5700   IFS=$as_save_IFS
5701   test -z "$as_dir" && as_dir=.
5702   for ac_prog in egrep; do
5703     for ac_exec_ext in '' $ac_executable_extensions; do
5704       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5705       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5706 # Check for GNU ac_path_EGREP and select it if it is found.
5707   # Check for GNU $ac_path_EGREP
5708 case `"$ac_path_EGREP" --version 2>&1` in
5709 *GNU*)
5710   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5711 *)
5712   ac_count=0
5713   $as_echo_n 0123456789 >"conftest.in"
5714   while :
5715   do
5716     cat "conftest.in" "conftest.in" >"conftest.tmp"
5717     mv "conftest.tmp" "conftest.in"
5718     cp "conftest.in" "conftest.nl"
5719     $as_echo 'EGREP' >> "conftest.nl"
5720     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5721     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5722     ac_count=`expr $ac_count + 1`
5723     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5724       # Best one so far, save it but keep looking for a better one
5725       ac_cv_path_EGREP="$ac_path_EGREP"
5726       ac_path_EGREP_max=$ac_count
5727     fi
5728     # 10*(2^10) chars as input seems more than enough
5729     test $ac_count -gt 10 && break
5730   done
5731   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5732 esac
5733
5734       $ac_path_EGREP_found && break 3
5735     done
5736   done
5737 done
5738 IFS=$as_save_IFS
5739   if test -z "$ac_cv_path_EGREP"; then
5740     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5741 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5742    { (exit 1); exit 1; }; }
5743   fi
5744 else
5745   ac_cv_path_EGREP=$EGREP
5746 fi
5747
5748    fi
5749 fi
5750 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5751 $as_echo "$ac_cv_path_EGREP" >&6; }
5752  EGREP="$ac_cv_path_EGREP"
5753
5754
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h.  */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h.  */
5761 #if __ELF__
5762   yes
5763 #endif
5764
5765 _ACEOF
5766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5767   $EGREP "yes" >/dev/null 2>&1; then
5768   ELF_SYS=true
5769 else
5770   if test "X$elf" = "Xyes" ; then
5771   ELF_SYS=true
5772 else
5773   ELF_SYS=
5774 fi
5775 fi
5776 rm -f conftest*
5777
5778
5779
5780 #
5781 # Assignments
5782 #
5783
5784 CPPFLAGS="$CPPFLAGS $INCLUDES"
5785 LDFLAGS="$LDFLAGS $LIBDIRS"
5786
5787
5788
5789
5790 # Check whether --with-gnu-ld was given.
5791 if test "${with_gnu_ld+set}" = set; then
5792   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5793 else
5794   with_gnu_ld=no
5795 fi
5796
5797 ac_prog=ld
5798 if test "$GCC" = yes; then
5799   # Check if gcc -print-prog-name=ld gives a path.
5800   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5801 $as_echo_n "checking for ld used by GCC... " >&6; }
5802   case $host in
5803   *-*-mingw*)
5804     # gcc leaves a trailing carriage return which upsets mingw
5805     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5806   *)
5807     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5808   esac
5809   case "$ac_prog" in
5810     # Accept absolute paths.
5811     [\\/]* | [A-Za-z]:[\\/]*)
5812       re_direlt='/[^/][^/]*/\.\./'
5813       # Canonicalize the path of ld
5814       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5815       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5816         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5817       done
5818       test -z "$LD" && LD="$ac_prog"
5819       ;;
5820   "")
5821     # If it fails, then pretend we aren't using GCC.
5822     ac_prog=ld
5823     ;;
5824   *)
5825     # If it is relative, then search for the first ld in PATH.
5826     with_gnu_ld=unknown
5827     ;;
5828   esac
5829 elif test "$with_gnu_ld" = yes; then
5830   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5831 $as_echo_n "checking for GNU ld... " >&6; }
5832 else
5833   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5834 $as_echo_n "checking for non-GNU ld... " >&6; }
5835 fi
5836 if test "${ac_cv_path_LD+set}" = set; then
5837   $as_echo_n "(cached) " >&6
5838 else
5839   if test -z "$LD"; then
5840   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5841   for ac_dir in $PATH; do
5842     test -z "$ac_dir" && ac_dir=.
5843     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5844       ac_cv_path_LD="$ac_dir/$ac_prog"
5845       # Check to see if the program is GNU ld.  I'd rather use --version,
5846       # but apparently some GNU ld's only accept -v.
5847       # Break only if it was the GNU/non-GNU ld that we prefer.
5848       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5849         test "$with_gnu_ld" != no && break
5850       else
5851         test "$with_gnu_ld" != yes && break
5852       fi
5853     fi
5854   done
5855   IFS="$ac_save_ifs"
5856 else
5857   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5858 fi
5859 fi
5860
5861 LD="$ac_cv_path_LD"
5862 if test -n "$LD"; then
5863   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5864 $as_echo "$LD" >&6; }
5865 else
5866   { $as_echo "$as_me:$LINENO: result: no" >&5
5867 $as_echo "no" >&6; }
5868 fi
5869 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5870 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5871    { (exit 1); exit 1; }; }
5872 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5873 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5874 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5875   $as_echo_n "(cached) " >&6
5876 else
5877   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5878 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5879   ac_cv_prog_gnu_ld=yes
5880 else
5881   ac_cv_prog_gnu_ld=no
5882 fi
5883 fi
5884 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5885 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5886 with_gnu_ld=$ac_cv_prog_gnu_ld
5887
5888
5889
5890
5891 case $host_os in sysv5*)
5892   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5893 $as_echo_n "checking whether ld -R works... " >&6; }
5894 if test "${pgac_cv_prog_ld_R+set}" = set; then
5895   $as_echo_n "(cached) " >&6
5896 else
5897
5898     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5899     cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905
5906 int
5907 main ()
5908 {
5909
5910   ;
5911   return 0;
5912 }
5913 _ACEOF
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (ac_try="$ac_link"
5916 case "(($ac_try" in
5917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918   *) ac_try_echo=$ac_try;;
5919 esac
5920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5921 $as_echo "$ac_try_echo") >&5
5922   (eval "$ac_link") 2>conftest.er1
5923   ac_status=$?
5924   grep -v '^ *+' conftest.er1 >conftest.err
5925   rm -f conftest.er1
5926   cat conftest.err >&5
5927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } && {
5929          test -z "$ac_c_werror_flag" ||
5930          test ! -s conftest.err
5931        } && test -s conftest$ac_exeext && {
5932          test "$cross_compiling" = yes ||
5933          $as_test_x conftest$ac_exeext
5934        }; then
5935   pgac_cv_prog_ld_R=yes
5936 else
5937   $as_echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940         pgac_cv_prog_ld_R=no
5941 fi
5942
5943 rm -rf conftest.dSYM
5944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5945       conftest$ac_exeext conftest.$ac_ext
5946     LDFLAGS=$pgac_save_LDFLAGS
5947
5948 fi
5949 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5950 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5951   ld_R_works=$pgac_cv_prog_ld_R
5952
5953 esac
5954 if test -n "$ac_tool_prefix"; then
5955   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if test "${ac_cv_prog_RANLIB+set}" = set; then
5960   $as_echo_n "(cached) " >&6
5961 else
5962   if test -n "$RANLIB"; then
5963   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970   for ac_exec_ext in '' $ac_executable_extensions; do
5971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5973     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 RANLIB=$ac_cv_prog_RANLIB
5983 if test -n "$RANLIB"; then
5984   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5985 $as_echo "$RANLIB" >&6; }
5986 else
5987   { $as_echo "$as_me:$LINENO: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991
5992 fi
5993 if test -z "$ac_cv_prog_RANLIB"; then
5994   ac_ct_RANLIB=$RANLIB
5995   # Extract the first word of "ranlib", so it can be a program name with args.
5996 set dummy ranlib; ac_word=$2
5997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6000   $as_echo_n "(cached) " >&6
6001 else
6002   if test -n "$ac_ct_RANLIB"; then
6003   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6004 else
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010   for ac_exec_ext in '' $ac_executable_extensions; do
6011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012     ac_cv_prog_ac_ct_RANLIB="ranlib"
6013     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017 done
6018 IFS=$as_save_IFS
6019
6020 fi
6021 fi
6022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6023 if test -n "$ac_ct_RANLIB"; then
6024   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6025 $as_echo "$ac_ct_RANLIB" >&6; }
6026 else
6027   { $as_echo "$as_me:$LINENO: result: no" >&5
6028 $as_echo "no" >&6; }
6029 fi
6030
6031   if test "x$ac_ct_RANLIB" = x; then
6032     RANLIB=":"
6033   else
6034     case $cross_compiling:$ac_tool_warned in
6035 yes:)
6036 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038 ac_tool_warned=yes ;;
6039 esac
6040     RANLIB=$ac_ct_RANLIB
6041   fi
6042 else
6043   RANLIB="$ac_cv_prog_RANLIB"
6044 fi
6045
6046
6047   if test -n "$ac_tool_prefix"; then
6048   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}strip; ac_word=$2
6050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if test "${ac_cv_prog_STRIP+set}" = set; then
6053   $as_echo_n "(cached) " >&6
6054 else
6055   if test -n "$STRIP"; then
6056   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063   for ac_exec_ext in '' $ac_executable_extensions; do
6064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6066     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 STRIP=$ac_cv_prog_STRIP
6076 if test -n "$STRIP"; then
6077   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6078 $as_echo "$STRIP" >&6; }
6079 else
6080   { $as_echo "$as_me:$LINENO: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085 fi
6086 if test -z "$ac_cv_prog_STRIP"; then
6087   ac_ct_STRIP=$STRIP
6088   # Extract the first word of "strip", so it can be a program name with args.
6089 set dummy strip; ac_word=$2
6090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6093   $as_echo_n "(cached) " >&6
6094 else
6095   if test -n "$ac_ct_STRIP"; then
6096   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103   for ac_exec_ext in '' $ac_executable_extensions; do
6104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105     ac_cv_prog_ac_ct_STRIP="strip"
6106     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110 done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6116 if test -n "$ac_ct_STRIP"; then
6117   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6118 $as_echo "$ac_ct_STRIP" >&6; }
6119 else
6120   { $as_echo "$as_me:$LINENO: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124   if test "x$ac_ct_STRIP" = x; then
6125     STRIP=":"
6126   else
6127     case $cross_compiling:$ac_tool_warned in
6128 yes:)
6129 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131 ac_tool_warned=yes ;;
6132 esac
6133     STRIP=$ac_ct_STRIP
6134   fi
6135 else
6136   STRIP="$ac_cv_prog_STRIP"
6137 fi
6138
6139
6140   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6141 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6142   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6143     STRIP_STATIC_LIB="$STRIP -x"
6144     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6145     { $as_echo "$as_me:$LINENO: result: yes" >&5
6146 $as_echo "yes" >&6; }
6147   else
6148     STRIP_STATIC_LIB=:
6149     STRIP_SHARED_LIB=:
6150     { $as_echo "$as_me:$LINENO: result: no" >&5
6151 $as_echo "no" >&6; }
6152   fi
6153
6154
6155
6156 if test -n "$ac_tool_prefix"; then
6157   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6158 set dummy ${ac_tool_prefix}ar; ac_word=$2
6159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if test "${ac_cv_prog_AR+set}" = set; then
6162   $as_echo_n "(cached) " >&6
6163 else
6164   if test -n "$AR"; then
6165   ac_cv_prog_AR="$AR" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6169 do
6170   IFS=$as_save_IFS
6171   test -z "$as_dir" && as_dir=.
6172   for ac_exec_ext in '' $ac_executable_extensions; do
6173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174     ac_cv_prog_AR="${ac_tool_prefix}ar"
6175     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176     break 2
6177   fi
6178 done
6179 done
6180 IFS=$as_save_IFS
6181
6182 fi
6183 fi
6184 AR=$ac_cv_prog_AR
6185 if test -n "$AR"; then
6186   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6187 $as_echo "$AR" >&6; }
6188 else
6189   { $as_echo "$as_me:$LINENO: result: no" >&5
6190 $as_echo "no" >&6; }
6191 fi
6192
6193
6194 fi
6195 if test -z "$ac_cv_prog_AR"; then
6196   ac_ct_AR=$AR
6197   # Extract the first word of "ar", so it can be a program name with args.
6198 set dummy ar; ac_word=$2
6199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6202   $as_echo_n "(cached) " >&6
6203 else
6204   if test -n "$ac_ct_AR"; then
6205   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6209 do
6210   IFS=$as_save_IFS
6211   test -z "$as_dir" && as_dir=.
6212   for ac_exec_ext in '' $ac_executable_extensions; do
6213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214     ac_cv_prog_ac_ct_AR="ar"
6215     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216     break 2
6217   fi
6218 done
6219 done
6220 IFS=$as_save_IFS
6221
6222 fi
6223 fi
6224 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6225 if test -n "$ac_ct_AR"; then
6226   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6227 $as_echo "$ac_ct_AR" >&6; }
6228 else
6229   { $as_echo "$as_me:$LINENO: result: no" >&5
6230 $as_echo "no" >&6; }
6231 fi
6232
6233   if test "x$ac_ct_AR" = x; then
6234     AR="ar"
6235   else
6236     case $cross_compiling:$ac_tool_warned in
6237 yes:)
6238 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6240 ac_tool_warned=yes ;;
6241 esac
6242     AR=$ac_ct_AR
6243   fi
6244 else
6245   AR="$ac_cv_prog_AR"
6246 fi
6247
6248 if test "$PORTNAME" = "win32"; then
6249   if test -n "$ac_tool_prefix"; then
6250   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6255   $as_echo_n "(cached) " >&6
6256 else
6257   if test -n "$DLLTOOL"; then
6258   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263   IFS=$as_save_IFS
6264   test -z "$as_dir" && as_dir=.
6265   for ac_exec_ext in '' $ac_executable_extensions; do
6266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6268     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6269     break 2
6270   fi
6271 done
6272 done
6273 IFS=$as_save_IFS
6274
6275 fi
6276 fi
6277 DLLTOOL=$ac_cv_prog_DLLTOOL
6278 if test -n "$DLLTOOL"; then
6279   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6280 $as_echo "$DLLTOOL" >&6; }
6281 else
6282   { $as_echo "$as_me:$LINENO: result: no" >&5
6283 $as_echo "no" >&6; }
6284 fi
6285
6286
6287 fi
6288 if test -z "$ac_cv_prog_DLLTOOL"; then
6289   ac_ct_DLLTOOL=$DLLTOOL
6290   # Extract the first word of "dlltool", so it can be a program name with args.
6291 set dummy dlltool; ac_word=$2
6292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$ac_ct_DLLTOOL"; then
6298   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305   for ac_exec_ext in '' $ac_executable_extensions; do
6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6308     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312 done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6318 if test -n "$ac_ct_DLLTOOL"; then
6319   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6320 $as_echo "$ac_ct_DLLTOOL" >&6; }
6321 else
6322   { $as_echo "$as_me:$LINENO: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326   if test "x$ac_ct_DLLTOOL" = x; then
6327     DLLTOOL="dlltool"
6328   else
6329     case $cross_compiling:$ac_tool_warned in
6330 yes:)
6331 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6334 esac
6335     DLLTOOL=$ac_ct_DLLTOOL
6336   fi
6337 else
6338   DLLTOOL="$ac_cv_prog_DLLTOOL"
6339 fi
6340
6341   if test -n "$ac_tool_prefix"; then
6342   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6343 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6347   $as_echo_n "(cached) " >&6
6348 else
6349   if test -n "$DLLWRAP"; then
6350   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357   for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6360     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 DLLWRAP=$ac_cv_prog_DLLWRAP
6370 if test -n "$DLLWRAP"; then
6371   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6372 $as_echo "$DLLWRAP" >&6; }
6373 else
6374   { $as_echo "$as_me:$LINENO: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378
6379 fi
6380 if test -z "$ac_cv_prog_DLLWRAP"; then
6381   ac_ct_DLLWRAP=$DLLWRAP
6382   # Extract the first word of "dllwrap", so it can be a program name with args.
6383 set dummy dllwrap; ac_word=$2
6384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6387   $as_echo_n "(cached) " >&6
6388 else
6389   if test -n "$ac_ct_DLLWRAP"; then
6390   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397   for ac_exec_ext in '' $ac_executable_extensions; do
6398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6399     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6400     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404 done
6405 IFS=$as_save_IFS
6406
6407 fi
6408 fi
6409 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6410 if test -n "$ac_ct_DLLWRAP"; then
6411   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6412 $as_echo "$ac_ct_DLLWRAP" >&6; }
6413 else
6414   { $as_echo "$as_me:$LINENO: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417
6418   if test "x$ac_ct_DLLWRAP" = x; then
6419     DLLWRAP="dllwrap"
6420   else
6421     case $cross_compiling:$ac_tool_warned in
6422 yes:)
6423 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6426 esac
6427     DLLWRAP=$ac_ct_DLLWRAP
6428   fi
6429 else
6430   DLLWRAP="$ac_cv_prog_DLLWRAP"
6431 fi
6432
6433   if test -n "$ac_tool_prefix"; then
6434   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}windres; ac_word=$2
6436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_WINDRES+set}" = set; then
6439   $as_echo_n "(cached) " >&6
6440 else
6441   if test -n "$WINDRES"; then
6442   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449   for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6452     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 WINDRES=$ac_cv_prog_WINDRES
6462 if test -n "$WINDRES"; then
6463   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6464 $as_echo "$WINDRES" >&6; }
6465 else
6466   { $as_echo "$as_me:$LINENO: result: no" >&5
6467 $as_echo "no" >&6; }
6468 fi
6469
6470
6471 fi
6472 if test -z "$ac_cv_prog_WINDRES"; then
6473   ac_ct_WINDRES=$WINDRES
6474   # Extract the first word of "windres", so it can be a program name with args.
6475 set dummy windres; ac_word=$2
6476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$ac_ct_WINDRES"; then
6482   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489   for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_ac_ct_WINDRES="windres"
6492     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6502 if test -n "$ac_ct_WINDRES"; then
6503   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6504 $as_echo "$ac_ct_WINDRES" >&6; }
6505 else
6506   { $as_echo "$as_me:$LINENO: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510   if test "x$ac_ct_WINDRES" = x; then
6511     WINDRES="windres"
6512   else
6513     case $cross_compiling:$ac_tool_warned in
6514 yes:)
6515 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6517 ac_tool_warned=yes ;;
6518 esac
6519     WINDRES=$ac_ct_WINDRES
6520   fi
6521 else
6522   WINDRES="$ac_cv_prog_WINDRES"
6523 fi
6524
6525 fi
6526
6527 # Extract the first word of "tar", so it can be a program name with args.
6528 set dummy tar; ac_word=$2
6529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if test "${ac_cv_path_TAR+set}" = set; then
6532   $as_echo_n "(cached) " >&6
6533 else
6534   case $TAR in
6535   [\\/]* | ?:[\\/]*)
6536   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6537   ;;
6538   *)
6539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542   IFS=$as_save_IFS
6543   test -z "$as_dir" && as_dir=.
6544   for ac_exec_ext in '' $ac_executable_extensions; do
6545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6546     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6547     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548     break 2
6549   fi
6550 done
6551 done
6552 IFS=$as_save_IFS
6553
6554   ;;
6555 esac
6556 fi
6557 TAR=$ac_cv_path_TAR
6558 if test -n "$TAR"; then
6559   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6560 $as_echo "$TAR" >&6; }
6561 else
6562   { $as_echo "$as_me:$LINENO: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6568 $as_echo_n "checking whether ln -s works... " >&6; }
6569 LN_S=$as_ln_s
6570 if test "$LN_S" = "ln -s"; then
6571   { $as_echo "$as_me:$LINENO: result: yes" >&5
6572 $as_echo "yes" >&6; }
6573 else
6574   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6575 $as_echo "no, using $LN_S" >&6; }
6576 fi
6577
6578 for ac_prog in gawk mawk nawk awk
6579 do
6580   # Extract the first word of "$ac_prog", so it can be a program name with args.
6581 set dummy $ac_prog; ac_word=$2
6582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if test "${ac_cv_prog_AWK+set}" = set; then
6585   $as_echo_n "(cached) " >&6
6586 else
6587   if test -n "$AWK"; then
6588   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595   for ac_exec_ext in '' $ac_executable_extensions; do
6596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597     ac_cv_prog_AWK="$ac_prog"
6598     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605 fi
6606 fi
6607 AWK=$ac_cv_prog_AWK
6608 if test -n "$AWK"; then
6609   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6610 $as_echo "$AWK" >&6; }
6611 else
6612   { $as_echo "$as_me:$LINENO: result: no" >&5
6613 $as_echo "no" >&6; }
6614 fi
6615
6616
6617   test -n "$AWK" && break
6618 done
6619
6620 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6621 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6622 if test -z "$MKDIR_P"; then
6623   if test "${ac_cv_path_mkdir+set}" = set; then
6624   $as_echo_n "(cached) " >&6
6625 else
6626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631   for ac_prog in mkdir gmkdir; do
6632          for ac_exec_ext in '' $ac_executable_extensions; do
6633            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6634            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6635              'mkdir (GNU coreutils) '* | \
6636              'mkdir (coreutils) '* | \
6637              'mkdir (fileutils) '4.1*)
6638                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6639                break 3;;
6640            esac
6641          done
6642        done
6643 done
6644 IFS=$as_save_IFS
6645
6646 fi
6647
6648   if test "${ac_cv_path_mkdir+set}" = set; then
6649     MKDIR_P="$ac_cv_path_mkdir -p"
6650   else
6651     # As a last resort, use the slow shell script.  Don't cache a
6652     # value for MKDIR_P within a source directory, because that will
6653     # break other packages using the cache if that directory is
6654     # removed, or if the value is a relative name.
6655     test -d ./--version && rmdir ./--version
6656     MKDIR_P="$ac_install_sh -d"
6657   fi
6658 fi
6659 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6660 $as_echo "$MKDIR_P" >&6; }
6661
6662 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6663 # a relative path to it in each makefile where it subsitutes it. This clashes
6664 # with our Makefile.global concept. This workaround helps.
6665 case $MKDIR_P in
6666   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6667 esac
6668
6669 # Let the user override the search
6670 if test -z "$BISON"; then
6671   for ac_prog in bison
6672 do
6673   # Extract the first word of "$ac_prog", so it can be a program name with args.
6674 set dummy $ac_prog; ac_word=$2
6675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if test "${ac_cv_path_BISON+set}" = set; then
6678   $as_echo_n "(cached) " >&6
6679 else
6680   case $BISON in
6681   [\\/]* | ?:[\\/]*)
6682   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6683   ;;
6684   *)
6685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690   for ac_exec_ext in '' $ac_executable_extensions; do
6691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6693     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700   ;;
6701 esac
6702 fi
6703 BISON=$ac_cv_path_BISON
6704 if test -n "$BISON"; then
6705   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6706 $as_echo "$BISON" >&6; }
6707 else
6708   { $as_echo "$as_me:$LINENO: result: no" >&5
6709 $as_echo "no" >&6; }
6710 fi
6711
6712
6713   test -n "$BISON" && break
6714 done
6715
6716 fi
6717
6718 if test "$BISON"; then
6719   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6720   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6721 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6722   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6723   then
6724     { $as_echo "$as_me:$LINENO: WARNING:
6725 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6726 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6727 $as_echo "$as_me: WARNING:
6728 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6729 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6730     BISON=""
6731   fi
6732 fi
6733
6734 if test -z "$BISON"; then
6735   { $as_echo "$as_me:$LINENO: WARNING:
6736 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6737 *** change any of the parser definition files.  You can obtain Bison from
6738 *** a GNU mirror site.  (If you are using the official distribution of
6739 *** PostgreSQL then you do not need to worry about this, because the Bison
6740 *** output is pre-generated.)" >&5
6741 $as_echo "$as_me: WARNING:
6742 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6743 *** change any of the parser definition files.  You can obtain Bison from
6744 *** a GNU mirror site.  (If you are using the official distribution of
6745 *** PostgreSQL then you do not need to worry about this, because the Bison
6746 *** output is pre-generated.)" >&2;}
6747 fi
6748 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6749
6750
6751 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6752 $as_echo_n "checking for flex... " >&6; }
6753 if test "${pgac_cv_path_flex+set}" = set; then
6754   $as_echo_n "(cached) " >&6
6755 else
6756   # Let the user override the test
6757 if test -n "$FLEX"; then
6758   pgac_cv_path_flex=$FLEX
6759 else
6760   pgac_save_IFS=$IFS
6761   IFS=$PATH_SEPARATOR
6762   for pgac_dir in $PATH; do
6763     IFS=$pgac_save_IFS
6764     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6765       pgac_dir=`pwd`
6766     fi
6767     for pgac_prog in flex lex; do
6768       pgac_candidate="$pgac_dir/$pgac_prog"
6769       if test -f "$pgac_candidate" \
6770         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6771       then
6772         echo '%%'  > conftest.l
6773         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6774           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6775           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6776           then
6777             pgac_cv_path_flex=$pgac_candidate
6778             break 2
6779           else
6780             { $as_echo "$as_me:$LINENO: WARNING:
6781 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6782 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6783 $as_echo "$as_me: WARNING:
6784 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6785 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6786           fi
6787         fi
6788       fi
6789     done
6790   done
6791   rm -f conftest.l lex.yy.c
6792   : ${pgac_cv_path_flex=no}
6793 fi
6794
6795 fi
6796 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6797 $as_echo "$pgac_cv_path_flex" >&6; }
6798 if test x"$pgac_cv_path_flex" = x"no"; then
6799   { $as_echo "$as_me:$LINENO: WARNING:
6800 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6801 *** change any of the scanner definition files.  You can obtain Flex from
6802 *** a GNU mirror site.  (If you are using the official distribution of
6803 *** PostgreSQL then you do not need to worry about this because the Flex
6804 *** output is pre-generated.)" >&5
6805 $as_echo "$as_me: WARNING:
6806 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6807 *** change any of the scanner definition files.  You can obtain Flex from
6808 *** a GNU mirror site.  (If you are using the official distribution of
6809 *** PostgreSQL then you do not need to worry about this because the Flex
6810 *** output is pre-generated.)" >&2;}
6811
6812   FLEX=
6813 else
6814   FLEX=$pgac_cv_path_flex
6815   pgac_flex_version=`$FLEX --version 2>/dev/null`
6816   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6817 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6818 fi
6819
6820
6821
6822
6823
6824 # Let the user override the search
6825 if test -z "$PERL"; then
6826   # Extract the first word of "perl", so it can be a program name with args.
6827 set dummy perl; ac_word=$2
6828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if test "${ac_cv_path_PERL+set}" = set; then
6831   $as_echo_n "(cached) " >&6
6832 else
6833   case $PERL in
6834   [\\/]* | ?:[\\/]*)
6835   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6836   ;;
6837   *)
6838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841   IFS=$as_save_IFS
6842   test -z "$as_dir" && as_dir=.
6843   for ac_exec_ext in '' $ac_executable_extensions; do
6844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6846     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847     break 2
6848   fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6852
6853   ;;
6854 esac
6855 fi
6856 PERL=$ac_cv_path_PERL
6857 if test -n "$PERL"; then
6858   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6859 $as_echo "$PERL" >&6; }
6860 else
6861   { $as_echo "$as_me:$LINENO: result: no" >&5
6862 $as_echo "no" >&6; }
6863 fi
6864
6865
6866 fi
6867
6868 if test "$PERL"; then
6869   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'`
6870   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6871 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6872   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6873     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6874   then
6875     { $as_echo "$as_me:$LINENO: WARNING:
6876 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6877 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6878 $as_echo "$as_me: WARNING:
6879 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6880 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6881     PERL=""
6882   fi
6883 fi
6884
6885 if test -z "$PERL"; then
6886   { $as_echo "$as_me:$LINENO: WARNING:
6887 *** Without Perl you will not be able to build PostgreSQL from CVS.
6888 *** You can obtain Perl from any CPAN mirror site.
6889 *** (If you are using the official distribution of PostgreSQL then you do not
6890 *** need to worry about this, because the Perl output is pre-generated.)" >&5
6891 $as_echo "$as_me: WARNING:
6892 *** Without Perl you will not be able to build PostgreSQL from CVS.
6893 *** You can obtain Perl from any CPAN mirror site.
6894 *** (If you are using the official distribution of PostgreSQL then you do not
6895 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6896 fi
6897
6898 if test "$with_perl" = yes; then
6899   if test -z "$PERL"; then
6900     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6901 $as_echo "$as_me: error: Perl not found" >&2;}
6902    { (exit 1); exit 1; }; }
6903   fi
6904
6905 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6906 $as_echo_n "checking for Perl archlibexp... " >&6; }
6907 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6908 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6909 $as_echo "$perl_archlibexp" >&6; }
6910 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6911 $as_echo_n "checking for Perl privlibexp... " >&6; }
6912 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6913 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6914 $as_echo "$perl_privlibexp" >&6; }
6915 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6916 $as_echo_n "checking for Perl useshrplib... " >&6; }
6917 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6918 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6919 $as_echo "$perl_useshrplib" >&6; }
6920
6921 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6922 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6923 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6924 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6925 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6926 if test -z "$perl_embed_ldflags" ; then
6927         { $as_echo "$as_me:$LINENO: result: no" >&5
6928 $as_echo "no" >&6; }
6929         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6930 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6931 installed." >&5
6932 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6933 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6934 installed." >&2;}
6935    { (exit 1); exit 1; }; }
6936 else
6937         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6938 $as_echo "$perl_embed_ldflags" >&6; }
6939 fi
6940
6941 fi
6942
6943 if test "$with_python" = yes; then
6944   # Extract the first word of "python", so it can be a program name with args.
6945 set dummy python; ac_word=$2
6946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if test "${ac_cv_path_PYTHON+set}" = set; then
6949   $as_echo_n "(cached) " >&6
6950 else
6951   case $PYTHON in
6952   [\\/]* | ?:[\\/]*)
6953   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6954   ;;
6955   *)
6956   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959   IFS=$as_save_IFS
6960   test -z "$as_dir" && as_dir=.
6961   for ac_exec_ext in '' $ac_executable_extensions; do
6962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6964     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965     break 2
6966   fi
6967 done
6968 done
6969 IFS=$as_save_IFS
6970
6971   ;;
6972 esac
6973 fi
6974 PYTHON=$ac_cv_path_PYTHON
6975 if test -n "$PYTHON"; then
6976   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6977 $as_echo "$PYTHON" >&6; }
6978 else
6979   { $as_echo "$as_me:$LINENO: result: no" >&5
6980 $as_echo "no" >&6; }
6981 fi
6982
6983
6984 if test x"$PYTHON" = x""; then
6985   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6986 $as_echo "$as_me: error: Python not found" >&2;}
6987    { (exit 1); exit 1; }; }
6988 fi
6989
6990
6991 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6992 $as_echo_n "checking for Python distutils module... " >&6; }
6993 if "${PYTHON}" -c 'import distutils' 2>&5
6994 then
6995     { $as_echo "$as_me:$LINENO: result: yes" >&5
6996 $as_echo "yes" >&6; }
6997 else
6998     { $as_echo "$as_me:$LINENO: result: no" >&5
6999 $as_echo "no" >&6; }
7000     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7001 $as_echo "$as_me: error: distutils module not found" >&2;}
7002    { (exit 1); exit 1; }; }
7003 fi
7004 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7005 $as_echo_n "checking Python configuration directory... " >&6; }
7006 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7007 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7008 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
7009 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7010
7011 # This should be enough of a message.
7012 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7013 $as_echo "$python_configdir" >&6; }
7014
7015
7016 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7017 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7018
7019 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7020 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7021 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7022 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7023
7024 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7025 then
7026         # New way: use the official shared library
7027         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7028         python_libspec="-L${python_libdir} -l${ldlibrary}"
7029 else
7030         # Old way: use libpython from python_configdir
7031         python_libdir="${python_configdir}"
7032         python_libspec="-L${python_libdir} -lpython${python_version}"
7033 fi
7034
7035 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7036
7037 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7038 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7039
7040
7041 # threaded python is not supported on bsd's
7042 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7043 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7044 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7045 if test "$pythreads" = "1"; then
7046   { $as_echo "$as_me:$LINENO: result: yes" >&5
7047 $as_echo "yes" >&6; }
7048   case $host_os in
7049   openbsd*|freebsd*)
7050     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7051 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7052    { (exit 1); exit 1; }; }
7053     ;;
7054   esac
7055 else
7056   { $as_echo "$as_me:$LINENO: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060
7061 fi
7062
7063 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7064   # Extract the first word of "zic", so it can be a program name with args.
7065 set dummy zic; ac_word=$2
7066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_path_ZIC+set}" = set; then
7069   $as_echo_n "(cached) " >&6
7070 else
7071   case $ZIC in
7072   [\\/]* | ?:[\\/]*)
7073   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7074   ;;
7075   *)
7076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079   IFS=$as_save_IFS
7080   test -z "$as_dir" && as_dir=.
7081   for ac_exec_ext in '' $ac_executable_extensions; do
7082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7084     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085     break 2
7086   fi
7087 done
7088 done
7089 IFS=$as_save_IFS
7090
7091   ;;
7092 esac
7093 fi
7094 ZIC=$ac_cv_path_ZIC
7095 if test -n "$ZIC"; then
7096   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7097 $as_echo "$ZIC" >&6; }
7098 else
7099   { $as_echo "$as_me:$LINENO: result: no" >&5
7100 $as_echo "no" >&6; }
7101 fi
7102
7103
7104   if test -z "$ZIC"; then
7105     { { $as_echo "$as_me:$LINENO: error:
7106 When cross-compiling, either use the option --with-system-tzdata to use
7107 existing time-zone data, or set the environment variable ZIC to a zic
7108 program to use during the build." >&5
7109 $as_echo "$as_me: error:
7110 When cross-compiling, either use the option --with-system-tzdata to use
7111 existing time-zone data, or set the environment variable ZIC to a zic
7112 program to use during the build." >&2;}
7113    { (exit 1); exit 1; }; }
7114   fi
7115 fi
7116
7117
7118 ##
7119 ## Libraries
7120 ##
7121 ## Most libraries are included only if they demonstrably provide a function
7122 ## we need, but libm is an exception: always include it, because there are
7123 ## too many compilers that play cute optimization games that will break
7124 ## probes for standard functions such as pow().
7125 ##
7126
7127
7128 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7129 $as_echo_n "checking for main in -lm... " >&6; }
7130 if test "${ac_cv_lib_m_main+set}" = set; then
7131   $as_echo_n "(cached) " >&6
7132 else
7133   ac_check_lib_save_LIBS=$LIBS
7134 LIBS="-lm  $LIBS"
7135 cat >conftest.$ac_ext <<_ACEOF
7136 /* confdefs.h.  */
7137 _ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h.  */
7141
7142
7143 int
7144 main ()
7145 {
7146 return main ();
7147   ;
7148   return 0;
7149 }
7150 _ACEOF
7151 rm -f conftest.$ac_objext conftest$ac_exeext
7152 if { (ac_try="$ac_link"
7153 case "(($ac_try" in
7154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155   *) ac_try_echo=$ac_try;;
7156 esac
7157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7158 $as_echo "$ac_try_echo") >&5
7159   (eval "$ac_link") 2>conftest.er1
7160   ac_status=$?
7161   grep -v '^ *+' conftest.er1 >conftest.err
7162   rm -f conftest.er1
7163   cat conftest.err >&5
7164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); } && {
7166          test -z "$ac_c_werror_flag" ||
7167          test ! -s conftest.err
7168        } && test -s conftest$ac_exeext && {
7169          test "$cross_compiling" = yes ||
7170          $as_test_x conftest$ac_exeext
7171        }; then
7172   ac_cv_lib_m_main=yes
7173 else
7174   $as_echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7176
7177         ac_cv_lib_m_main=no
7178 fi
7179
7180 rm -rf conftest.dSYM
7181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7182       conftest$ac_exeext conftest.$ac_ext
7183 LIBS=$ac_check_lib_save_LIBS
7184 fi
7185 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7186 $as_echo "$ac_cv_lib_m_main" >&6; }
7187 if test "x$ac_cv_lib_m_main" = x""yes; then
7188   cat >>confdefs.h <<_ACEOF
7189 #define HAVE_LIBM 1
7190 _ACEOF
7191
7192   LIBS="-lm $LIBS"
7193
7194 fi
7195
7196 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7197 $as_echo_n "checking for library containing setproctitle... " >&6; }
7198 if test "${ac_cv_search_setproctitle+set}" = set; then
7199   $as_echo_n "(cached) " >&6
7200 else
7201   ac_func_search_save_LIBS=$LIBS
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h.  */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h.  */
7208
7209 /* Override any GCC internal prototype to avoid an error.
7210    Use char because int might match the return type of a GCC
7211    builtin and then its argument prototype would still apply.  */
7212 #ifdef __cplusplus
7213 extern "C"
7214 #endif
7215 char setproctitle ();
7216 int
7217 main ()
7218 {
7219 return setproctitle ();
7220   ;
7221   return 0;
7222 }
7223 _ACEOF
7224 for ac_lib in '' util; do
7225   if test -z "$ac_lib"; then
7226     ac_res="none required"
7227   else
7228     ac_res=-l$ac_lib
7229     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7230   fi
7231   rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (ac_try="$ac_link"
7233 case "(($ac_try" in
7234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235   *) ac_try_echo=$ac_try;;
7236 esac
7237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7238 $as_echo "$ac_try_echo") >&5
7239   (eval "$ac_link") 2>conftest.er1
7240   ac_status=$?
7241   grep -v '^ *+' conftest.er1 >conftest.err
7242   rm -f conftest.er1
7243   cat conftest.err >&5
7244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } && {
7246          test -z "$ac_c_werror_flag" ||
7247          test ! -s conftest.err
7248        } && test -s conftest$ac_exeext && {
7249          test "$cross_compiling" = yes ||
7250          $as_test_x conftest$ac_exeext
7251        }; then
7252   ac_cv_search_setproctitle=$ac_res
7253 else
7254   $as_echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257
7258 fi
7259
7260 rm -rf conftest.dSYM
7261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7262       conftest$ac_exeext
7263   if test "${ac_cv_search_setproctitle+set}" = set; then
7264   break
7265 fi
7266 done
7267 if test "${ac_cv_search_setproctitle+set}" = set; then
7268   :
7269 else
7270   ac_cv_search_setproctitle=no
7271 fi
7272 rm conftest.$ac_ext
7273 LIBS=$ac_func_search_save_LIBS
7274 fi
7275 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7276 $as_echo "$ac_cv_search_setproctitle" >&6; }
7277 ac_res=$ac_cv_search_setproctitle
7278 if test "$ac_res" != no; then
7279   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7280
7281 fi
7282
7283 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7284 $as_echo_n "checking for library containing dlopen... " >&6; }
7285 if test "${ac_cv_search_dlopen+set}" = set; then
7286   $as_echo_n "(cached) " >&6
7287 else
7288   ac_func_search_save_LIBS=$LIBS
7289 cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h.  */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h.  */
7295
7296 /* Override any GCC internal prototype to avoid an error.
7297    Use char because int might match the return type of a GCC
7298    builtin and then its argument prototype would still apply.  */
7299 #ifdef __cplusplus
7300 extern "C"
7301 #endif
7302 char dlopen ();
7303 int
7304 main ()
7305 {
7306 return dlopen ();
7307   ;
7308   return 0;
7309 }
7310 _ACEOF
7311 for ac_lib in '' dl; do
7312   if test -z "$ac_lib"; then
7313     ac_res="none required"
7314   else
7315     ac_res=-l$ac_lib
7316     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7317   fi
7318   rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (ac_try="$ac_link"
7320 case "(($ac_try" in
7321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322   *) ac_try_echo=$ac_try;;
7323 esac
7324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7325 $as_echo "$ac_try_echo") >&5
7326   (eval "$ac_link") 2>conftest.er1
7327   ac_status=$?
7328   grep -v '^ *+' conftest.er1 >conftest.err
7329   rm -f conftest.er1
7330   cat conftest.err >&5
7331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); } && {
7333          test -z "$ac_c_werror_flag" ||
7334          test ! -s conftest.err
7335        } && test -s conftest$ac_exeext && {
7336          test "$cross_compiling" = yes ||
7337          $as_test_x conftest$ac_exeext
7338        }; then
7339   ac_cv_search_dlopen=$ac_res
7340 else
7341   $as_echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7343
7344
7345 fi
7346
7347 rm -rf conftest.dSYM
7348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7349       conftest$ac_exeext
7350   if test "${ac_cv_search_dlopen+set}" = set; then
7351   break
7352 fi
7353 done
7354 if test "${ac_cv_search_dlopen+set}" = set; then
7355   :
7356 else
7357   ac_cv_search_dlopen=no
7358 fi
7359 rm conftest.$ac_ext
7360 LIBS=$ac_func_search_save_LIBS
7361 fi
7362 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7363 $as_echo "$ac_cv_search_dlopen" >&6; }
7364 ac_res=$ac_cv_search_dlopen
7365 if test "$ac_res" != no; then
7366   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7367
7368 fi
7369
7370 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7371 $as_echo_n "checking for library containing socket... " >&6; }
7372 if test "${ac_cv_search_socket+set}" = set; then
7373   $as_echo_n "(cached) " >&6
7374 else
7375   ac_func_search_save_LIBS=$LIBS
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h.  */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h.  */
7382
7383 /* Override any GCC internal prototype to avoid an error.
7384    Use char because int might match the return type of a GCC
7385    builtin and then its argument prototype would still apply.  */
7386 #ifdef __cplusplus
7387 extern "C"
7388 #endif
7389 char socket ();
7390 int
7391 main ()
7392 {
7393 return socket ();
7394   ;
7395   return 0;
7396 }
7397 _ACEOF
7398 for ac_lib in '' socket wsock32; do
7399   if test -z "$ac_lib"; then
7400     ac_res="none required"
7401   else
7402     ac_res=-l$ac_lib
7403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7404   fi
7405   rm -f conftest.$ac_objext conftest$ac_exeext
7406 if { (ac_try="$ac_link"
7407 case "(($ac_try" in
7408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409   *) ac_try_echo=$ac_try;;
7410 esac
7411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7412 $as_echo "$ac_try_echo") >&5
7413   (eval "$ac_link") 2>conftest.er1
7414   ac_status=$?
7415   grep -v '^ *+' conftest.er1 >conftest.err
7416   rm -f conftest.er1
7417   cat conftest.err >&5
7418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } && {
7420          test -z "$ac_c_werror_flag" ||
7421          test ! -s conftest.err
7422        } && test -s conftest$ac_exeext && {
7423          test "$cross_compiling" = yes ||
7424          $as_test_x conftest$ac_exeext
7425        }; then
7426   ac_cv_search_socket=$ac_res
7427 else
7428   $as_echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431
7432 fi
7433
7434 rm -rf conftest.dSYM
7435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7436       conftest$ac_exeext
7437   if test "${ac_cv_search_socket+set}" = set; then
7438   break
7439 fi
7440 done
7441 if test "${ac_cv_search_socket+set}" = set; then
7442   :
7443 else
7444   ac_cv_search_socket=no
7445 fi
7446 rm conftest.$ac_ext
7447 LIBS=$ac_func_search_save_LIBS
7448 fi
7449 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7450 $as_echo "$ac_cv_search_socket" >&6; }
7451 ac_res=$ac_cv_search_socket
7452 if test "$ac_res" != no; then
7453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7454
7455 fi
7456
7457 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7458 $as_echo_n "checking for library containing shl_load... " >&6; }
7459 if test "${ac_cv_search_shl_load+set}" = set; then
7460   $as_echo_n "(cached) " >&6
7461 else
7462   ac_func_search_save_LIBS=$LIBS
7463 cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h.  */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h.  */
7469
7470 /* Override any GCC internal prototype to avoid an error.
7471    Use char because int might match the return type of a GCC
7472    builtin and then its argument prototype would still apply.  */
7473 #ifdef __cplusplus
7474 extern "C"
7475 #endif
7476 char shl_load ();
7477 int
7478 main ()
7479 {
7480 return shl_load ();
7481   ;
7482   return 0;
7483 }
7484 _ACEOF
7485 for ac_lib in '' dld; do
7486   if test -z "$ac_lib"; then
7487     ac_res="none required"
7488   else
7489     ac_res=-l$ac_lib
7490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7491   fi
7492   rm -f conftest.$ac_objext conftest$ac_exeext
7493 if { (ac_try="$ac_link"
7494 case "(($ac_try" in
7495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496   *) ac_try_echo=$ac_try;;
7497 esac
7498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7499 $as_echo "$ac_try_echo") >&5
7500   (eval "$ac_link") 2>conftest.er1
7501   ac_status=$?
7502   grep -v '^ *+' conftest.er1 >conftest.err
7503   rm -f conftest.er1
7504   cat conftest.err >&5
7505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); } && {
7507          test -z "$ac_c_werror_flag" ||
7508          test ! -s conftest.err
7509        } && test -s conftest$ac_exeext && {
7510          test "$cross_compiling" = yes ||
7511          $as_test_x conftest$ac_exeext
7512        }; then
7513   ac_cv_search_shl_load=$ac_res
7514 else
7515   $as_echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7517
7518
7519 fi
7520
7521 rm -rf conftest.dSYM
7522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7523       conftest$ac_exeext
7524   if test "${ac_cv_search_shl_load+set}" = set; then
7525   break
7526 fi
7527 done
7528 if test "${ac_cv_search_shl_load+set}" = set; then
7529   :
7530 else
7531   ac_cv_search_shl_load=no
7532 fi
7533 rm conftest.$ac_ext
7534 LIBS=$ac_func_search_save_LIBS
7535 fi
7536 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7537 $as_echo "$ac_cv_search_shl_load" >&6; }
7538 ac_res=$ac_cv_search_shl_load
7539 if test "$ac_res" != no; then
7540   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7541
7542 fi
7543
7544 # We only use libld in port/dynloader/aix.c
7545 case $host_os in
7546      aix*)
7547         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7548 $as_echo_n "checking for library containing ldopen... " >&6; }
7549 if test "${ac_cv_search_ldopen+set}" = set; then
7550   $as_echo_n "(cached) " >&6
7551 else
7552   ac_func_search_save_LIBS=$LIBS
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h.  */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h.  */
7559
7560 /* Override any GCC internal prototype to avoid an error.
7561    Use char because int might match the return type of a GCC
7562    builtin and then its argument prototype would still apply.  */
7563 #ifdef __cplusplus
7564 extern "C"
7565 #endif
7566 char ldopen ();
7567 int
7568 main ()
7569 {
7570 return ldopen ();
7571   ;
7572   return 0;
7573 }
7574 _ACEOF
7575 for ac_lib in '' ld; do
7576   if test -z "$ac_lib"; then
7577     ac_res="none required"
7578   else
7579     ac_res=-l$ac_lib
7580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7581   fi
7582   rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (ac_try="$ac_link"
7584 case "(($ac_try" in
7585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586   *) ac_try_echo=$ac_try;;
7587 esac
7588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7589 $as_echo "$ac_try_echo") >&5
7590   (eval "$ac_link") 2>conftest.er1
7591   ac_status=$?
7592   grep -v '^ *+' conftest.er1 >conftest.err
7593   rm -f conftest.er1
7594   cat conftest.err >&5
7595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); } && {
7597          test -z "$ac_c_werror_flag" ||
7598          test ! -s conftest.err
7599        } && test -s conftest$ac_exeext && {
7600          test "$cross_compiling" = yes ||
7601          $as_test_x conftest$ac_exeext
7602        }; then
7603   ac_cv_search_ldopen=$ac_res
7604 else
7605   $as_echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7607
7608
7609 fi
7610
7611 rm -rf conftest.dSYM
7612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7613       conftest$ac_exeext
7614   if test "${ac_cv_search_ldopen+set}" = set; then
7615   break
7616 fi
7617 done
7618 if test "${ac_cv_search_ldopen+set}" = set; then
7619   :
7620 else
7621   ac_cv_search_ldopen=no
7622 fi
7623 rm conftest.$ac_ext
7624 LIBS=$ac_func_search_save_LIBS
7625 fi
7626 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7627 $as_echo "$ac_cv_search_ldopen" >&6; }
7628 ac_res=$ac_cv_search_ldopen
7629 if test "$ac_res" != no; then
7630   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7631
7632 fi
7633
7634         ;;
7635 esac
7636 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7637 $as_echo_n "checking for library containing getopt_long... " >&6; }
7638 if test "${ac_cv_search_getopt_long+set}" = set; then
7639   $as_echo_n "(cached) " >&6
7640 else
7641   ac_func_search_save_LIBS=$LIBS
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h.  */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h.  */
7648
7649 /* Override any GCC internal prototype to avoid an error.
7650    Use char because int might match the return type of a GCC
7651    builtin and then its argument prototype would still apply.  */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 char getopt_long ();
7656 int
7657 main ()
7658 {
7659 return getopt_long ();
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 for ac_lib in '' getopt gnugetopt; do
7665   if test -z "$ac_lib"; then
7666     ac_res="none required"
7667   else
7668     ac_res=-l$ac_lib
7669     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7670   fi
7671   rm -f conftest.$ac_objext conftest$ac_exeext
7672 if { (ac_try="$ac_link"
7673 case "(($ac_try" in
7674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675   *) ac_try_echo=$ac_try;;
7676 esac
7677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7678 $as_echo "$ac_try_echo") >&5
7679   (eval "$ac_link") 2>conftest.er1
7680   ac_status=$?
7681   grep -v '^ *+' conftest.er1 >conftest.err
7682   rm -f conftest.er1
7683   cat conftest.err >&5
7684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); } && {
7686          test -z "$ac_c_werror_flag" ||
7687          test ! -s conftest.err
7688        } && test -s conftest$ac_exeext && {
7689          test "$cross_compiling" = yes ||
7690          $as_test_x conftest$ac_exeext
7691        }; then
7692   ac_cv_search_getopt_long=$ac_res
7693 else
7694   $as_echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697
7698 fi
7699
7700 rm -rf conftest.dSYM
7701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7702       conftest$ac_exeext
7703   if test "${ac_cv_search_getopt_long+set}" = set; then
7704   break
7705 fi
7706 done
7707 if test "${ac_cv_search_getopt_long+set}" = set; then
7708   :
7709 else
7710   ac_cv_search_getopt_long=no
7711 fi
7712 rm conftest.$ac_ext
7713 LIBS=$ac_func_search_save_LIBS
7714 fi
7715 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7716 $as_echo "$ac_cv_search_getopt_long" >&6; }
7717 ac_res=$ac_cv_search_getopt_long
7718 if test "$ac_res" != no; then
7719   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7720
7721 fi
7722
7723 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7724 $as_echo_n "checking for library containing crypt... " >&6; }
7725 if test "${ac_cv_search_crypt+set}" = set; then
7726   $as_echo_n "(cached) " >&6
7727 else
7728   ac_func_search_save_LIBS=$LIBS
7729 cat >conftest.$ac_ext <<_ACEOF
7730 /* confdefs.h.  */
7731 _ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h.  */
7735
7736 /* Override any GCC internal prototype to avoid an error.
7737    Use char because int might match the return type of a GCC
7738    builtin and then its argument prototype would still apply.  */
7739 #ifdef __cplusplus
7740 extern "C"
7741 #endif
7742 char crypt ();
7743 int
7744 main ()
7745 {
7746 return crypt ();
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 for ac_lib in '' crypt; do
7752   if test -z "$ac_lib"; then
7753     ac_res="none required"
7754   else
7755     ac_res=-l$ac_lib
7756     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7757   fi
7758   rm -f conftest.$ac_objext conftest$ac_exeext
7759 if { (ac_try="$ac_link"
7760 case "(($ac_try" in
7761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762   *) ac_try_echo=$ac_try;;
7763 esac
7764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7765 $as_echo "$ac_try_echo") >&5
7766   (eval "$ac_link") 2>conftest.er1
7767   ac_status=$?
7768   grep -v '^ *+' conftest.er1 >conftest.err
7769   rm -f conftest.er1
7770   cat conftest.err >&5
7771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); } && {
7773          test -z "$ac_c_werror_flag" ||
7774          test ! -s conftest.err
7775        } && test -s conftest$ac_exeext && {
7776          test "$cross_compiling" = yes ||
7777          $as_test_x conftest$ac_exeext
7778        }; then
7779   ac_cv_search_crypt=$ac_res
7780 else
7781   $as_echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7783
7784
7785 fi
7786
7787 rm -rf conftest.dSYM
7788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7789       conftest$ac_exeext
7790   if test "${ac_cv_search_crypt+set}" = set; then
7791   break
7792 fi
7793 done
7794 if test "${ac_cv_search_crypt+set}" = set; then
7795   :
7796 else
7797   ac_cv_search_crypt=no
7798 fi
7799 rm conftest.$ac_ext
7800 LIBS=$ac_func_search_save_LIBS
7801 fi
7802 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7803 $as_echo "$ac_cv_search_crypt" >&6; }
7804 ac_res=$ac_cv_search_crypt
7805 if test "$ac_res" != no; then
7806   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7807
7808 fi
7809
7810 # Solaris:
7811 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7812 $as_echo_n "checking for library containing fdatasync... " >&6; }
7813 if test "${ac_cv_search_fdatasync+set}" = set; then
7814   $as_echo_n "(cached) " >&6
7815 else
7816   ac_func_search_save_LIBS=$LIBS
7817 cat >conftest.$ac_ext <<_ACEOF
7818 /* confdefs.h.  */
7819 _ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h.  */
7823
7824 /* Override any GCC internal prototype to avoid an error.
7825    Use char because int might match the return type of a GCC
7826    builtin and then its argument prototype would still apply.  */
7827 #ifdef __cplusplus
7828 extern "C"
7829 #endif
7830 char fdatasync ();
7831 int
7832 main ()
7833 {
7834 return fdatasync ();
7835   ;
7836   return 0;
7837 }
7838 _ACEOF
7839 for ac_lib in '' rt posix4; do
7840   if test -z "$ac_lib"; then
7841     ac_res="none required"
7842   else
7843     ac_res=-l$ac_lib
7844     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7845   fi
7846   rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (ac_try="$ac_link"
7848 case "(($ac_try" in
7849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850   *) ac_try_echo=$ac_try;;
7851 esac
7852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854   (eval "$ac_link") 2>conftest.er1
7855   ac_status=$?
7856   grep -v '^ *+' conftest.er1 >conftest.err
7857   rm -f conftest.er1
7858   cat conftest.err >&5
7859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); } && {
7861          test -z "$ac_c_werror_flag" ||
7862          test ! -s conftest.err
7863        } && test -s conftest$ac_exeext && {
7864          test "$cross_compiling" = yes ||
7865          $as_test_x conftest$ac_exeext
7866        }; then
7867   ac_cv_search_fdatasync=$ac_res
7868 else
7869   $as_echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7871
7872
7873 fi
7874
7875 rm -rf conftest.dSYM
7876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7877       conftest$ac_exeext
7878   if test "${ac_cv_search_fdatasync+set}" = set; then
7879   break
7880 fi
7881 done
7882 if test "${ac_cv_search_fdatasync+set}" = set; then
7883   :
7884 else
7885   ac_cv_search_fdatasync=no
7886 fi
7887 rm conftest.$ac_ext
7888 LIBS=$ac_func_search_save_LIBS
7889 fi
7890 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7891 $as_echo "$ac_cv_search_fdatasync" >&6; }
7892 ac_res=$ac_cv_search_fdatasync
7893 if test "$ac_res" != no; then
7894   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7895
7896 fi
7897
7898 # Required for thread_test.c on Solaris 2.5:
7899 # Other ports use it too (HP-UX) so test unconditionally
7900 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7901 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7902 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7903   $as_echo_n "(cached) " >&6
7904 else
7905   ac_func_search_save_LIBS=$LIBS
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912
7913 /* Override any GCC internal prototype to avoid an error.
7914    Use char because int might match the return type of a GCC
7915    builtin and then its argument prototype would still apply.  */
7916 #ifdef __cplusplus
7917 extern "C"
7918 #endif
7919 char gethostbyname_r ();
7920 int
7921 main ()
7922 {
7923 return gethostbyname_r ();
7924   ;
7925   return 0;
7926 }
7927 _ACEOF
7928 for ac_lib in '' nsl; do
7929   if test -z "$ac_lib"; then
7930     ac_res="none required"
7931   else
7932     ac_res=-l$ac_lib
7933     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7934   fi
7935   rm -f conftest.$ac_objext conftest$ac_exeext
7936 if { (ac_try="$ac_link"
7937 case "(($ac_try" in
7938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939   *) ac_try_echo=$ac_try;;
7940 esac
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943   (eval "$ac_link") 2>conftest.er1
7944   ac_status=$?
7945   grep -v '^ *+' conftest.er1 >conftest.err
7946   rm -f conftest.er1
7947   cat conftest.err >&5
7948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); } && {
7950          test -z "$ac_c_werror_flag" ||
7951          test ! -s conftest.err
7952        } && test -s conftest$ac_exeext && {
7953          test "$cross_compiling" = yes ||
7954          $as_test_x conftest$ac_exeext
7955        }; then
7956   ac_cv_search_gethostbyname_r=$ac_res
7957 else
7958   $as_echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7960
7961
7962 fi
7963
7964 rm -rf conftest.dSYM
7965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7966       conftest$ac_exeext
7967   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7968   break
7969 fi
7970 done
7971 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7972   :
7973 else
7974   ac_cv_search_gethostbyname_r=no
7975 fi
7976 rm conftest.$ac_ext
7977 LIBS=$ac_func_search_save_LIBS
7978 fi
7979 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7980 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7981 ac_res=$ac_cv_search_gethostbyname_r
7982 if test "$ac_res" != no; then
7983   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7984
7985 fi
7986
7987 # Cygwin:
7988 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7989 $as_echo_n "checking for library containing shmget... " >&6; }
7990 if test "${ac_cv_search_shmget+set}" = set; then
7991   $as_echo_n "(cached) " >&6
7992 else
7993   ac_func_search_save_LIBS=$LIBS
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000
8001 /* Override any GCC internal prototype to avoid an error.
8002    Use char because int might match the return type of a GCC
8003    builtin and then its argument prototype would still apply.  */
8004 #ifdef __cplusplus
8005 extern "C"
8006 #endif
8007 char shmget ();
8008 int
8009 main ()
8010 {
8011 return shmget ();
8012   ;
8013   return 0;
8014 }
8015 _ACEOF
8016 for ac_lib in '' cygipc; do
8017   if test -z "$ac_lib"; then
8018     ac_res="none required"
8019   else
8020     ac_res=-l$ac_lib
8021     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8022   fi
8023   rm -f conftest.$ac_objext conftest$ac_exeext
8024 if { (ac_try="$ac_link"
8025 case "(($ac_try" in
8026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027   *) ac_try_echo=$ac_try;;
8028 esac
8029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8030 $as_echo "$ac_try_echo") >&5
8031   (eval "$ac_link") 2>conftest.er1
8032   ac_status=$?
8033   grep -v '^ *+' conftest.er1 >conftest.err
8034   rm -f conftest.er1
8035   cat conftest.err >&5
8036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); } && {
8038          test -z "$ac_c_werror_flag" ||
8039          test ! -s conftest.err
8040        } && test -s conftest$ac_exeext && {
8041          test "$cross_compiling" = yes ||
8042          $as_test_x conftest$ac_exeext
8043        }; then
8044   ac_cv_search_shmget=$ac_res
8045 else
8046   $as_echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8048
8049
8050 fi
8051
8052 rm -rf conftest.dSYM
8053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8054       conftest$ac_exeext
8055   if test "${ac_cv_search_shmget+set}" = set; then
8056   break
8057 fi
8058 done
8059 if test "${ac_cv_search_shmget+set}" = set; then
8060   :
8061 else
8062   ac_cv_search_shmget=no
8063 fi
8064 rm conftest.$ac_ext
8065 LIBS=$ac_func_search_save_LIBS
8066 fi
8067 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8068 $as_echo "$ac_cv_search_shmget" >&6; }
8069 ac_res=$ac_cv_search_shmget
8070 if test "$ac_res" != no; then
8071   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8072
8073 fi
8074
8075
8076 if test "$with_readline" = yes; then
8077
8078
8079 if test "${pgac_cv_check_readline+set}" = set; then
8080   $as_echo_n "(cached) " >&6
8081 else
8082   pgac_cv_check_readline=no
8083 pgac_save_LIBS=$LIBS
8084 if test x"$with_libedit_preferred" != x"yes"
8085 then    READLINE_ORDER="-lreadline -ledit"
8086 else    READLINE_ORDER="-ledit -lreadline"
8087 fi
8088 for pgac_rllib in $READLINE_ORDER ; do
8089   { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8090 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8091   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8092     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8093     cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h.  */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h.  */
8099
8100 /* Override any GCC internal prototype to avoid an error.
8101    Use char because int might match the return type of a GCC
8102    builtin and then its argument prototype would still apply.  */
8103 #ifdef __cplusplus
8104 extern "C"
8105 #endif
8106 char readline ();
8107 int
8108 main ()
8109 {
8110 return readline ();
8111   ;
8112   return 0;
8113 }
8114 _ACEOF
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8117 case "(($ac_try" in
8118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119   *) ac_try_echo=$ac_try;;
8120 esac
8121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8122 $as_echo "$ac_try_echo") >&5
8123   (eval "$ac_link") 2>conftest.er1
8124   ac_status=$?
8125   grep -v '^ *+' conftest.er1 >conftest.err
8126   rm -f conftest.er1
8127   cat conftest.err >&5
8128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); } && {
8130          test -z "$ac_c_werror_flag" ||
8131          test ! -s conftest.err
8132        } && test -s conftest$ac_exeext && {
8133          test "$cross_compiling" = yes ||
8134          $as_test_x conftest$ac_exeext
8135        }; then
8136
8137       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8138       # recognize dependent libraries; assume curses is needed if we didn't
8139       # find any dependency.
8140       case $host_os in
8141         netbsd* | openbsd* | irix*)
8142           if test x"$pgac_lib" = x"" ; then
8143             pgac_lib=" -lcurses"
8144           fi ;;
8145       esac
8146
8147       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8148       break
8149
8150 else
8151   $as_echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154
8155 fi
8156
8157 rm -rf conftest.dSYM
8158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8159       conftest$ac_exeext conftest.$ac_ext
8160   done
8161   if test "$pgac_cv_check_readline" != no ; then
8162     { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8163 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8164     break
8165   else
8166     { $as_echo "$as_me:$LINENO: result: no" >&5
8167 $as_echo "no" >&6; }
8168   fi
8169 done
8170 LIBS=$pgac_save_LIBS
8171
8172 fi
8173
8174 if test "$pgac_cv_check_readline" != no ; then
8175   LIBS="$pgac_cv_check_readline $LIBS"
8176
8177 cat >>confdefs.h <<\_ACEOF
8178 #define HAVE_LIBREADLINE 1
8179 _ACEOF
8180
8181 fi
8182
8183
8184   if test x"$pgac_cv_check_readline" = x"no"; then
8185     { { $as_echo "$as_me:$LINENO: error: readline library not found
8186 If you have readline already installed, see config.log for details on the
8187 failure.  It is possible the compiler isn't looking in the proper directory.
8188 Use --without-readline to disable readline support." >&5
8189 $as_echo "$as_me: error: readline library not found
8190 If you have readline already installed, see config.log for details on the
8191 failure.  It is possible the compiler isn't looking in the proper directory.
8192 Use --without-readline to disable readline support." >&2;}
8193    { (exit 1); exit 1; }; }
8194   fi
8195 fi
8196
8197 if test "$with_zlib" = yes; then
8198
8199 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8200 $as_echo_n "checking for inflate in -lz... " >&6; }
8201 if test "${ac_cv_lib_z_inflate+set}" = set; then
8202   $as_echo_n "(cached) " >&6
8203 else
8204   ac_check_lib_save_LIBS=$LIBS
8205 LIBS="-lz  $LIBS"
8206 cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h.  */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h.  */
8212
8213 /* Override any GCC internal prototype to avoid an error.
8214    Use char because int might match the return type of a GCC
8215    builtin and then its argument prototype would still apply.  */
8216 #ifdef __cplusplus
8217 extern "C"
8218 #endif
8219 char inflate ();
8220 int
8221 main ()
8222 {
8223 return inflate ();
8224   ;
8225   return 0;
8226 }
8227 _ACEOF
8228 rm -f conftest.$ac_objext conftest$ac_exeext
8229 if { (ac_try="$ac_link"
8230 case "(($ac_try" in
8231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232   *) ac_try_echo=$ac_try;;
8233 esac
8234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8235 $as_echo "$ac_try_echo") >&5
8236   (eval "$ac_link") 2>conftest.er1
8237   ac_status=$?
8238   grep -v '^ *+' conftest.er1 >conftest.err
8239   rm -f conftest.er1
8240   cat conftest.err >&5
8241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } && {
8243          test -z "$ac_c_werror_flag" ||
8244          test ! -s conftest.err
8245        } && test -s conftest$ac_exeext && {
8246          test "$cross_compiling" = yes ||
8247          $as_test_x conftest$ac_exeext
8248        }; then
8249   ac_cv_lib_z_inflate=yes
8250 else
8251   $as_echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254         ac_cv_lib_z_inflate=no
8255 fi
8256
8257 rm -rf conftest.dSYM
8258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8259       conftest$ac_exeext conftest.$ac_ext
8260 LIBS=$ac_check_lib_save_LIBS
8261 fi
8262 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8263 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8264 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8265   cat >>confdefs.h <<_ACEOF
8266 #define HAVE_LIBZ 1
8267 _ACEOF
8268
8269   LIBS="-lz $LIBS"
8270
8271 else
8272   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8273 If you have zlib already installed, see config.log for details on the
8274 failure.  It is possible the compiler isn't looking in the proper directory.
8275 Use --without-zlib to disable zlib support." >&5
8276 $as_echo "$as_me: error: zlib library not found
8277 If you have zlib already installed, see config.log for details on the
8278 failure.  It is possible the compiler isn't looking in the proper directory.
8279 Use --without-zlib to disable zlib support." >&2;}
8280    { (exit 1); exit 1; }; }
8281 fi
8282
8283 fi
8284
8285 if test "$enable_spinlocks" = yes; then
8286
8287 cat >>confdefs.h <<\_ACEOF
8288 #define HAVE_SPINLOCKS 1
8289 _ACEOF
8290
8291 else
8292   { $as_echo "$as_me:$LINENO: WARNING:
8293 *** Not using spinlocks will cause poor performance." >&5
8294 $as_echo "$as_me: WARNING:
8295 *** Not using spinlocks will cause poor performance." >&2;}
8296 fi
8297
8298 if test "$with_gssapi" = yes ; then
8299   if test "$PORTNAME" != "win32"; then
8300     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8301 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8302 if test "${ac_cv_search_gss_init_sec_context+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 gss_init_sec_context ();
8320 int
8321 main ()
8322 {
8323 return gss_init_sec_context ();
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; 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_gss_init_sec_context=$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_gss_init_sec_context+set}" = set; then
8368   break
8369 fi
8370 done
8371 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8372   :
8373 else
8374   ac_cv_search_gss_init_sec_context=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_gss_init_sec_context" >&5
8380 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8381 ac_res=$ac_cv_search_gss_init_sec_context
8382 if test "$ac_res" != no; then
8383   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8384
8385 else
8386   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8387 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8388    { (exit 1); exit 1; }; }
8389 fi
8390
8391   else
8392     LIBS="$LIBS -lgssapi32"
8393   fi
8394 fi
8395
8396 if test "$with_krb5" = yes ; then
8397   if test "$PORTNAME" != "win32"; then
8398      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8399 $as_echo_n "checking for library containing com_err... " >&6; }
8400 if test "${ac_cv_search_com_err+set}" = set; then
8401   $as_echo_n "(cached) " >&6
8402 else
8403   ac_func_search_save_LIBS=$LIBS
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410
8411 /* Override any GCC internal prototype to avoid an error.
8412    Use char because int might match the return type of a GCC
8413    builtin and then its argument prototype would still apply.  */
8414 #ifdef __cplusplus
8415 extern "C"
8416 #endif
8417 char com_err ();
8418 int
8419 main ()
8420 {
8421 return com_err ();
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8427   if test -z "$ac_lib"; then
8428     ac_res="none required"
8429   else
8430     ac_res=-l$ac_lib
8431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8432   fi
8433   rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (ac_try="$ac_link"
8435 case "(($ac_try" in
8436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437   *) ac_try_echo=$ac_try;;
8438 esac
8439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8440 $as_echo "$ac_try_echo") >&5
8441   (eval "$ac_link") 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } && {
8448          test -z "$ac_c_werror_flag" ||
8449          test ! -s conftest.err
8450        } && test -s conftest$ac_exeext && {
8451          test "$cross_compiling" = yes ||
8452          $as_test_x conftest$ac_exeext
8453        }; then
8454   ac_cv_search_com_err=$ac_res
8455 else
8456   $as_echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459
8460 fi
8461
8462 rm -rf conftest.dSYM
8463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8464       conftest$ac_exeext
8465   if test "${ac_cv_search_com_err+set}" = set; then
8466   break
8467 fi
8468 done
8469 if test "${ac_cv_search_com_err+set}" = set; then
8470   :
8471 else
8472   ac_cv_search_com_err=no
8473 fi
8474 rm conftest.$ac_ext
8475 LIBS=$ac_func_search_save_LIBS
8476 fi
8477 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8478 $as_echo "$ac_cv_search_com_err" >&6; }
8479 ac_res=$ac_cv_search_com_err
8480 if test "$ac_res" != no; then
8481   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8482
8483 else
8484   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8485 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8486    { (exit 1); exit 1; }; }
8487 fi
8488
8489      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8490 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8491 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8492   $as_echo_n "(cached) " >&6
8493 else
8494   ac_func_search_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501
8502 /* Override any GCC internal prototype to avoid an error.
8503    Use char because int might match the return type of a GCC
8504    builtin and then its argument prototype would still apply.  */
8505 #ifdef __cplusplus
8506 extern "C"
8507 #endif
8508 char krb5_sendauth ();
8509 int
8510 main ()
8511 {
8512 return krb5_sendauth ();
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8518   if test -z "$ac_lib"; then
8519     ac_res="none required"
8520   else
8521     ac_res=-l$ac_lib
8522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8523   fi
8524   rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8526 case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8531 $as_echo "$ac_try_echo") >&5
8532   (eval "$ac_link") 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } && {
8539          test -z "$ac_c_werror_flag" ||
8540          test ! -s conftest.err
8541        } && test -s conftest$ac_exeext && {
8542          test "$cross_compiling" = yes ||
8543          $as_test_x conftest$ac_exeext
8544        }; then
8545   ac_cv_search_krb5_sendauth=$ac_res
8546 else
8547   $as_echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550
8551 fi
8552
8553 rm -rf conftest.dSYM
8554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8555       conftest$ac_exeext
8556   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8557   break
8558 fi
8559 done
8560 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8561   :
8562 else
8563   ac_cv_search_krb5_sendauth=no
8564 fi
8565 rm conftest.$ac_ext
8566 LIBS=$ac_func_search_save_LIBS
8567 fi
8568 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8569 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8570 ac_res=$ac_cv_search_krb5_sendauth
8571 if test "$ac_res" != no; then
8572   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8573
8574 else
8575   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8576 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8577    { (exit 1); exit 1; }; }
8578 fi
8579
8580   else
8581      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8582 $as_echo_n "checking for library containing com_err... " >&6; }
8583 if test "${ac_cv_search_com_err+set}" = set; then
8584   $as_echo_n "(cached) " >&6
8585 else
8586   ac_func_search_save_LIBS=$LIBS
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h.  */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h.  */
8593
8594 /* Override any GCC internal prototype to avoid an error.
8595    Use char because int might match the return type of a GCC
8596    builtin and then its argument prototype would still apply.  */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 char com_err ();
8601 int
8602 main ()
8603 {
8604 return com_err ();
8605   ;
8606   return 0;
8607 }
8608 _ACEOF
8609 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8610   if test -z "$ac_lib"; then
8611     ac_res="none required"
8612   else
8613     ac_res=-l$ac_lib
8614     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8615   fi
8616   rm -f conftest.$ac_objext conftest$ac_exeext
8617 if { (ac_try="$ac_link"
8618 case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8623 $as_echo "$ac_try_echo") >&5
8624   (eval "$ac_link") 2>conftest.er1
8625   ac_status=$?
8626   grep -v '^ *+' conftest.er1 >conftest.err
8627   rm -f conftest.er1
8628   cat conftest.err >&5
8629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); } && {
8631          test -z "$ac_c_werror_flag" ||
8632          test ! -s conftest.err
8633        } && test -s conftest$ac_exeext && {
8634          test "$cross_compiling" = yes ||
8635          $as_test_x conftest$ac_exeext
8636        }; then
8637   ac_cv_search_com_err=$ac_res
8638 else
8639   $as_echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8641
8642
8643 fi
8644
8645 rm -rf conftest.dSYM
8646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8647       conftest$ac_exeext
8648   if test "${ac_cv_search_com_err+set}" = set; then
8649   break
8650 fi
8651 done
8652 if test "${ac_cv_search_com_err+set}" = set; then
8653   :
8654 else
8655   ac_cv_search_com_err=no
8656 fi
8657 rm conftest.$ac_ext
8658 LIBS=$ac_func_search_save_LIBS
8659 fi
8660 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8661 $as_echo "$ac_cv_search_com_err" >&6; }
8662 ac_res=$ac_cv_search_com_err
8663 if test "$ac_res" != no; then
8664   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8665
8666 else
8667   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8668 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8669    { (exit 1); exit 1; }; }
8670 fi
8671
8672   fi
8673 fi
8674
8675 if test "$with_openssl" = yes ; then
8676     if test "$PORTNAME" != "win32"; then
8677
8678 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8679 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8680 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8681   $as_echo_n "(cached) " >&6
8682 else
8683   ac_check_lib_save_LIBS=$LIBS
8684 LIBS="-lcrypto  $LIBS"
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h.  */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h.  */
8691
8692 /* Override any GCC internal prototype to avoid an error.
8693    Use char because int might match the return type of a GCC
8694    builtin and then its argument prototype would still apply.  */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 char CRYPTO_new_ex_data ();
8699 int
8700 main ()
8701 {
8702 return CRYPTO_new_ex_data ();
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (ac_try="$ac_link"
8709 case "(($ac_try" in
8710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711   *) ac_try_echo=$ac_try;;
8712 esac
8713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8714 $as_echo "$ac_try_echo") >&5
8715   (eval "$ac_link") 2>conftest.er1
8716   ac_status=$?
8717   grep -v '^ *+' conftest.er1 >conftest.err
8718   rm -f conftest.er1
8719   cat conftest.err >&5
8720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); } && {
8722          test -z "$ac_c_werror_flag" ||
8723          test ! -s conftest.err
8724        } && test -s conftest$ac_exeext && {
8725          test "$cross_compiling" = yes ||
8726          $as_test_x conftest$ac_exeext
8727        }; then
8728   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8729 else
8730   $as_echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8732
8733         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8734 fi
8735
8736 rm -rf conftest.dSYM
8737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8738       conftest$ac_exeext conftest.$ac_ext
8739 LIBS=$ac_check_lib_save_LIBS
8740 fi
8741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8742 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8743 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8744   cat >>confdefs.h <<_ACEOF
8745 #define HAVE_LIBCRYPTO 1
8746 _ACEOF
8747
8748   LIBS="-lcrypto $LIBS"
8749
8750 else
8751   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8752 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8753    { (exit 1); exit 1; }; }
8754 fi
8755
8756
8757 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8758 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8759 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8760   $as_echo_n "(cached) " >&6
8761 else
8762   ac_check_lib_save_LIBS=$LIBS
8763 LIBS="-lssl  $LIBS"
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h.  */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h.  */
8770
8771 /* Override any GCC internal prototype to avoid an error.
8772    Use char because int might match the return type of a GCC
8773    builtin and then its argument prototype would still apply.  */
8774 #ifdef __cplusplus
8775 extern "C"
8776 #endif
8777 char SSL_library_init ();
8778 int
8779 main ()
8780 {
8781 return SSL_library_init ();
8782   ;
8783   return 0;
8784 }
8785 _ACEOF
8786 rm -f conftest.$ac_objext conftest$ac_exeext
8787 if { (ac_try="$ac_link"
8788 case "(($ac_try" in
8789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8790   *) ac_try_echo=$ac_try;;
8791 esac
8792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8793 $as_echo "$ac_try_echo") >&5
8794   (eval "$ac_link") 2>conftest.er1
8795   ac_status=$?
8796   grep -v '^ *+' conftest.er1 >conftest.err
8797   rm -f conftest.er1
8798   cat conftest.err >&5
8799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } && {
8801          test -z "$ac_c_werror_flag" ||
8802          test ! -s conftest.err
8803        } && test -s conftest$ac_exeext && {
8804          test "$cross_compiling" = yes ||
8805          $as_test_x conftest$ac_exeext
8806        }; then
8807   ac_cv_lib_ssl_SSL_library_init=yes
8808 else
8809   $as_echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8811
8812         ac_cv_lib_ssl_SSL_library_init=no
8813 fi
8814
8815 rm -rf conftest.dSYM
8816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8817       conftest$ac_exeext conftest.$ac_ext
8818 LIBS=$ac_check_lib_save_LIBS
8819 fi
8820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8821 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8822 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8823   cat >>confdefs.h <<_ACEOF
8824 #define HAVE_LIBSSL 1
8825 _ACEOF
8826
8827   LIBS="-lssl $LIBS"
8828
8829 else
8830   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8831 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8832    { (exit 1); exit 1; }; }
8833 fi
8834
8835   else
8836
8837 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8838 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8839 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8840   $as_echo_n "(cached) " >&6
8841 else
8842   ac_check_lib_save_LIBS=$LIBS
8843 LIBS="-leay32  $LIBS"
8844 cat >conftest.$ac_ext <<_ACEOF
8845 /* confdefs.h.  */
8846 _ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h.  */
8850
8851 /* Override any GCC internal prototype to avoid an error.
8852    Use char because int might match the return type of a GCC
8853    builtin and then its argument prototype would still apply.  */
8854 #ifdef __cplusplus
8855 extern "C"
8856 #endif
8857 char CRYPTO_new_ex_data ();
8858 int
8859 main ()
8860 {
8861 return CRYPTO_new_ex_data ();
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8868 case "(($ac_try" in
8869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870   *) ac_try_echo=$ac_try;;
8871 esac
8872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8873 $as_echo "$ac_try_echo") >&5
8874   (eval "$ac_link") 2>conftest.er1
8875   ac_status=$?
8876   grep -v '^ *+' conftest.er1 >conftest.err
8877   rm -f conftest.er1
8878   cat conftest.err >&5
8879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); } && {
8881          test -z "$ac_c_werror_flag" ||
8882          test ! -s conftest.err
8883        } && test -s conftest$ac_exeext && {
8884          test "$cross_compiling" = yes ||
8885          $as_test_x conftest$ac_exeext
8886        }; then
8887   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8888 else
8889   $as_echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8891
8892         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8893 fi
8894
8895 rm -rf conftest.dSYM
8896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8897       conftest$ac_exeext conftest.$ac_ext
8898 LIBS=$ac_check_lib_save_LIBS
8899 fi
8900 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8901 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8902 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8903   cat >>confdefs.h <<_ACEOF
8904 #define HAVE_LIBEAY32 1
8905 _ACEOF
8906
8907   LIBS="-leay32 $LIBS"
8908
8909 else
8910   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8911 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8912    { (exit 1); exit 1; }; }
8913 fi
8914
8915
8916 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8917 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8918 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8919   $as_echo_n "(cached) " >&6
8920 else
8921   ac_check_lib_save_LIBS=$LIBS
8922 LIBS="-lssleay32  $LIBS"
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h.  */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h.  */
8929
8930 /* Override any GCC internal prototype to avoid an error.
8931    Use char because int might match the return type of a GCC
8932    builtin and then its argument prototype would still apply.  */
8933 #ifdef __cplusplus
8934 extern "C"
8935 #endif
8936 char SSL_library_init ();
8937 int
8938 main ()
8939 {
8940 return SSL_library_init ();
8941   ;
8942   return 0;
8943 }
8944 _ACEOF
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (ac_try="$ac_link"
8947 case "(($ac_try" in
8948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949   *) ac_try_echo=$ac_try;;
8950 esac
8951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8952 $as_echo "$ac_try_echo") >&5
8953   (eval "$ac_link") 2>conftest.er1
8954   ac_status=$?
8955   grep -v '^ *+' conftest.er1 >conftest.err
8956   rm -f conftest.er1
8957   cat conftest.err >&5
8958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); } && {
8960          test -z "$ac_c_werror_flag" ||
8961          test ! -s conftest.err
8962        } && test -s conftest$ac_exeext && {
8963          test "$cross_compiling" = yes ||
8964          $as_test_x conftest$ac_exeext
8965        }; then
8966   ac_cv_lib_ssleay32_SSL_library_init=yes
8967 else
8968   $as_echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971         ac_cv_lib_ssleay32_SSL_library_init=no
8972 fi
8973
8974 rm -rf conftest.dSYM
8975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8976       conftest$ac_exeext conftest.$ac_ext
8977 LIBS=$ac_check_lib_save_LIBS
8978 fi
8979 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8980 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8981 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8982   cat >>confdefs.h <<_ACEOF
8983 #define HAVE_LIBSSLEAY32 1
8984 _ACEOF
8985
8986   LIBS="-lssleay32 $LIBS"
8987
8988 else
8989   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8990 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8991    { (exit 1); exit 1; }; }
8992 fi
8993
8994   fi
8995 fi
8996
8997 if test "$with_pam" = yes ; then
8998
8999 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9000 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9001 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9002   $as_echo_n "(cached) " >&6
9003 else
9004   ac_check_lib_save_LIBS=$LIBS
9005 LIBS="-lpam  $LIBS"
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012
9013 /* Override any GCC internal prototype to avoid an error.
9014    Use char because int might match the return type of a GCC
9015    builtin and then its argument prototype would still apply.  */
9016 #ifdef __cplusplus
9017 extern "C"
9018 #endif
9019 char pam_start ();
9020 int
9021 main ()
9022 {
9023 return pam_start ();
9024   ;
9025   return 0;
9026 }
9027 _ACEOF
9028 rm -f conftest.$ac_objext conftest$ac_exeext
9029 if { (ac_try="$ac_link"
9030 case "(($ac_try" in
9031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032   *) ac_try_echo=$ac_try;;
9033 esac
9034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9035 $as_echo "$ac_try_echo") >&5
9036   (eval "$ac_link") 2>conftest.er1
9037   ac_status=$?
9038   grep -v '^ *+' conftest.er1 >conftest.err
9039   rm -f conftest.er1
9040   cat conftest.err >&5
9041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); } && {
9043          test -z "$ac_c_werror_flag" ||
9044          test ! -s conftest.err
9045        } && test -s conftest$ac_exeext && {
9046          test "$cross_compiling" = yes ||
9047          $as_test_x conftest$ac_exeext
9048        }; then
9049   ac_cv_lib_pam_pam_start=yes
9050 else
9051   $as_echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9053
9054         ac_cv_lib_pam_pam_start=no
9055 fi
9056
9057 rm -rf conftest.dSYM
9058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9059       conftest$ac_exeext conftest.$ac_ext
9060 LIBS=$ac_check_lib_save_LIBS
9061 fi
9062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9063 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9064 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9065   cat >>confdefs.h <<_ACEOF
9066 #define HAVE_LIBPAM 1
9067 _ACEOF
9068
9069   LIBS="-lpam $LIBS"
9070
9071 else
9072   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9073 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9074    { (exit 1); exit 1; }; }
9075 fi
9076
9077 fi
9078
9079 if test "$with_libxml" = yes ; then
9080
9081 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9082 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9083 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9084   $as_echo_n "(cached) " >&6
9085 else
9086   ac_check_lib_save_LIBS=$LIBS
9087 LIBS="-lxml2  $LIBS"
9088 cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h.  */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h.  */
9094
9095 /* Override any GCC internal prototype to avoid an error.
9096    Use char because int might match the return type of a GCC
9097    builtin and then its argument prototype would still apply.  */
9098 #ifdef __cplusplus
9099 extern "C"
9100 #endif
9101 char xmlSaveToBuffer ();
9102 int
9103 main ()
9104 {
9105 return xmlSaveToBuffer ();
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (ac_try="$ac_link"
9112 case "(($ac_try" in
9113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114   *) ac_try_echo=$ac_try;;
9115 esac
9116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9117 $as_echo "$ac_try_echo") >&5
9118   (eval "$ac_link") 2>conftest.er1
9119   ac_status=$?
9120   grep -v '^ *+' conftest.er1 >conftest.err
9121   rm -f conftest.er1
9122   cat conftest.err >&5
9123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); } && {
9125          test -z "$ac_c_werror_flag" ||
9126          test ! -s conftest.err
9127        } && test -s conftest$ac_exeext && {
9128          test "$cross_compiling" = yes ||
9129          $as_test_x conftest$ac_exeext
9130        }; then
9131   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9132 else
9133   $as_echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136         ac_cv_lib_xml2_xmlSaveToBuffer=no
9137 fi
9138
9139 rm -rf conftest.dSYM
9140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9141       conftest$ac_exeext conftest.$ac_ext
9142 LIBS=$ac_check_lib_save_LIBS
9143 fi
9144 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9145 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9146 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9147   cat >>confdefs.h <<_ACEOF
9148 #define HAVE_LIBXML2 1
9149 _ACEOF
9150
9151   LIBS="-lxml2 $LIBS"
9152
9153 else
9154   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9155 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9156    { (exit 1); exit 1; }; }
9157 fi
9158
9159 fi
9160
9161 if test "$with_libxslt" = yes ; then
9162
9163 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9164 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9165 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9166   $as_echo_n "(cached) " >&6
9167 else
9168   ac_check_lib_save_LIBS=$LIBS
9169 LIBS="-lxslt  $LIBS"
9170 cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h.  */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h.  */
9176
9177 /* Override any GCC internal prototype to avoid an error.
9178    Use char because int might match the return type of a GCC
9179    builtin and then its argument prototype would still apply.  */
9180 #ifdef __cplusplus
9181 extern "C"
9182 #endif
9183 char xsltCleanupGlobals ();
9184 int
9185 main ()
9186 {
9187 return xsltCleanupGlobals ();
9188   ;
9189   return 0;
9190 }
9191 _ACEOF
9192 rm -f conftest.$ac_objext conftest$ac_exeext
9193 if { (ac_try="$ac_link"
9194 case "(($ac_try" in
9195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196   *) ac_try_echo=$ac_try;;
9197 esac
9198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9199 $as_echo "$ac_try_echo") >&5
9200   (eval "$ac_link") 2>conftest.er1
9201   ac_status=$?
9202   grep -v '^ *+' conftest.er1 >conftest.err
9203   rm -f conftest.er1
9204   cat conftest.err >&5
9205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); } && {
9207          test -z "$ac_c_werror_flag" ||
9208          test ! -s conftest.err
9209        } && test -s conftest$ac_exeext && {
9210          test "$cross_compiling" = yes ||
9211          $as_test_x conftest$ac_exeext
9212        }; then
9213   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9214 else
9215   $as_echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9217
9218         ac_cv_lib_xslt_xsltCleanupGlobals=no
9219 fi
9220
9221 rm -rf conftest.dSYM
9222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9223       conftest$ac_exeext conftest.$ac_ext
9224 LIBS=$ac_check_lib_save_LIBS
9225 fi
9226 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9227 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9228 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9229   cat >>confdefs.h <<_ACEOF
9230 #define HAVE_LIBXSLT 1
9231 _ACEOF
9232
9233   LIBS="-lxslt $LIBS"
9234
9235 else
9236   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9237 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9238    { (exit 1); exit 1; }; }
9239 fi
9240
9241 fi
9242
9243 # for contrib/uuid-ossp
9244 if test "$with_ossp_uuid" = yes ; then
9245   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9246 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9247 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9248   $as_echo_n "(cached) " >&6
9249 else
9250   ac_check_lib_save_LIBS=$LIBS
9251 LIBS="-lossp-uuid  $LIBS"
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h.  */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h.  */
9258
9259 /* Override any GCC internal prototype to avoid an error.
9260    Use char because int might match the return type of a GCC
9261    builtin and then its argument prototype would still apply.  */
9262 #ifdef __cplusplus
9263 extern "C"
9264 #endif
9265 char uuid_export ();
9266 int
9267 main ()
9268 {
9269 return uuid_export ();
9270   ;
9271   return 0;
9272 }
9273 _ACEOF
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (ac_try="$ac_link"
9276 case "(($ac_try" in
9277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278   *) ac_try_echo=$ac_try;;
9279 esac
9280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9281 $as_echo "$ac_try_echo") >&5
9282   (eval "$ac_link") 2>conftest.er1
9283   ac_status=$?
9284   grep -v '^ *+' conftest.er1 >conftest.err
9285   rm -f conftest.er1
9286   cat conftest.err >&5
9287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); } && {
9289          test -z "$ac_c_werror_flag" ||
9290          test ! -s conftest.err
9291        } && test -s conftest$ac_exeext && {
9292          test "$cross_compiling" = yes ||
9293          $as_test_x conftest$ac_exeext
9294        }; then
9295   ac_cv_lib_ossp_uuid_uuid_export=yes
9296 else
9297   $as_echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300         ac_cv_lib_ossp_uuid_uuid_export=no
9301 fi
9302
9303 rm -rf conftest.dSYM
9304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9305       conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9307 fi
9308 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9309 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9310 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9311   OSSP_UUID_LIBS="-lossp-uuid"
9312 else
9313   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9314 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9315 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9316   $as_echo_n "(cached) " >&6
9317 else
9318   ac_check_lib_save_LIBS=$LIBS
9319 LIBS="-luuid  $LIBS"
9320 cat >conftest.$ac_ext <<_ACEOF
9321 /* confdefs.h.  */
9322 _ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h.  */
9326
9327 /* Override any GCC internal prototype to avoid an error.
9328    Use char because int might match the return type of a GCC
9329    builtin and then its argument prototype would still apply.  */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 char uuid_export ();
9334 int
9335 main ()
9336 {
9337 return uuid_export ();
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (ac_try="$ac_link"
9344 case "(($ac_try" in
9345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346   *) ac_try_echo=$ac_try;;
9347 esac
9348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9349 $as_echo "$ac_try_echo") >&5
9350   (eval "$ac_link") 2>conftest.er1
9351   ac_status=$?
9352   grep -v '^ *+' conftest.er1 >conftest.err
9353   rm -f conftest.er1
9354   cat conftest.err >&5
9355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); } && {
9357          test -z "$ac_c_werror_flag" ||
9358          test ! -s conftest.err
9359        } && test -s conftest$ac_exeext && {
9360          test "$cross_compiling" = yes ||
9361          $as_test_x conftest$ac_exeext
9362        }; then
9363   ac_cv_lib_uuid_uuid_export=yes
9364 else
9365   $as_echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368         ac_cv_lib_uuid_uuid_export=no
9369 fi
9370
9371 rm -rf conftest.dSYM
9372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9373       conftest$ac_exeext conftest.$ac_ext
9374 LIBS=$ac_check_lib_save_LIBS
9375 fi
9376 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9377 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9378 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9379   OSSP_UUID_LIBS="-luuid"
9380 else
9381   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9382 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9383    { (exit 1); exit 1; }; }
9384 fi
9385
9386 fi
9387
9388 fi
9389
9390
9391
9392 ##
9393 ## Header files
9394 ##
9395
9396 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9397 $as_echo_n "checking for ANSI C header files... " >&6; }
9398 if test "${ac_cv_header_stdc+set}" = set; then
9399   $as_echo_n "(cached) " >&6
9400 else
9401   cat >conftest.$ac_ext <<_ACEOF
9402 /* confdefs.h.  */
9403 _ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h.  */
9407 #include <stdlib.h>
9408 #include <stdarg.h>
9409 #include <string.h>
9410 #include <float.h>
9411
9412 int
9413 main ()
9414 {
9415
9416   ;
9417   return 0;
9418 }
9419 _ACEOF
9420 rm -f conftest.$ac_objext
9421 if { (ac_try="$ac_compile"
9422 case "(($ac_try" in
9423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424   *) ac_try_echo=$ac_try;;
9425 esac
9426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9427 $as_echo "$ac_try_echo") >&5
9428   (eval "$ac_compile") 2>conftest.er1
9429   ac_status=$?
9430   grep -v '^ *+' conftest.er1 >conftest.err
9431   rm -f conftest.er1
9432   cat conftest.err >&5
9433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } && {
9435          test -z "$ac_c_werror_flag" ||
9436          test ! -s conftest.err
9437        } && test -s conftest.$ac_objext; then
9438   ac_cv_header_stdc=yes
9439 else
9440   $as_echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443         ac_cv_header_stdc=no
9444 fi
9445
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447
9448 if test $ac_cv_header_stdc = yes; then
9449   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9450   cat >conftest.$ac_ext <<_ACEOF
9451 /* confdefs.h.  */
9452 _ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h.  */
9456 #include <string.h>
9457
9458 _ACEOF
9459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9460   $EGREP "memchr" >/dev/null 2>&1; then
9461   :
9462 else
9463   ac_cv_header_stdc=no
9464 fi
9465 rm -f conftest*
9466
9467 fi
9468
9469 if test $ac_cv_header_stdc = yes; then
9470   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9471   cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h.  */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h.  */
9477 #include <stdlib.h>
9478
9479 _ACEOF
9480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9481   $EGREP "free" >/dev/null 2>&1; then
9482   :
9483 else
9484   ac_cv_header_stdc=no
9485 fi
9486 rm -f conftest*
9487
9488 fi
9489
9490 if test $ac_cv_header_stdc = yes; then
9491   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9492   if test "$cross_compiling" = yes; then
9493   :
9494 else
9495   cat >conftest.$ac_ext <<_ACEOF
9496 /* confdefs.h.  */
9497 _ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h.  */
9501 #include <ctype.h>
9502 #include <stdlib.h>
9503 #if ((' ' & 0x0FF) == 0x020)
9504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9506 #else
9507 # define ISLOWER(c) \
9508                    (('a' <= (c) && (c) <= 'i') \
9509                      || ('j' <= (c) && (c) <= 'r') \
9510                      || ('s' <= (c) && (c) <= 'z'))
9511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9512 #endif
9513
9514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9515 int
9516 main ()
9517 {
9518   int i;
9519   for (i = 0; i < 256; i++)
9520     if (XOR (islower (i), ISLOWER (i))
9521         || toupper (i) != TOUPPER (i))
9522       return 2;
9523   return 0;
9524 }
9525 _ACEOF
9526 rm -f conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9528 case "(($ac_try" in
9529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530   *) ac_try_echo=$ac_try;;
9531 esac
9532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9533 $as_echo "$ac_try_echo") >&5
9534   (eval "$ac_link") 2>&5
9535   ac_status=$?
9536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9538   { (case "(($ac_try" in
9539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540   *) ac_try_echo=$ac_try;;
9541 esac
9542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9543 $as_echo "$ac_try_echo") >&5
9544   (eval "$ac_try") 2>&5
9545   ac_status=$?
9546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); }; }; then
9548   :
9549 else
9550   $as_echo "$as_me: program exited with status $ac_status" >&5
9551 $as_echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ( exit $ac_status )
9555 ac_cv_header_stdc=no
9556 fi
9557 rm -rf conftest.dSYM
9558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9559 fi
9560
9561
9562 fi
9563 fi
9564 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9565 $as_echo "$ac_cv_header_stdc" >&6; }
9566 if test $ac_cv_header_stdc = yes; then
9567
9568 cat >>confdefs.h <<\_ACEOF
9569 #define STDC_HEADERS 1
9570 _ACEOF
9571
9572 fi
9573
9574 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9585                   inttypes.h stdint.h unistd.h
9586 do
9587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9589 $as_echo_n "checking for $ac_header... " >&6; }
9590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9591   $as_echo_n "(cached) " >&6
9592 else
9593   cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h.  */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h.  */
9599 $ac_includes_default
9600
9601 #include <$ac_header>
9602 _ACEOF
9603 rm -f conftest.$ac_objext
9604 if { (ac_try="$ac_compile"
9605 case "(($ac_try" in
9606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607   *) ac_try_echo=$ac_try;;
9608 esac
9609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9610 $as_echo "$ac_try_echo") >&5
9611   (eval "$ac_compile") 2>conftest.er1
9612   ac_status=$?
9613   grep -v '^ *+' conftest.er1 >conftest.err
9614   rm -f conftest.er1
9615   cat conftest.err >&5
9616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); } && {
9618          test -z "$ac_c_werror_flag" ||
9619          test ! -s conftest.err
9620        } && test -s conftest.$ac_objext; then
9621   eval "$as_ac_Header=yes"
9622 else
9623   $as_echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9625
9626         eval "$as_ac_Header=no"
9627 fi
9628
9629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9630 fi
9631 ac_res=`eval 'as_val=${'$as_ac_Header'}
9632                  $as_echo "$as_val"'`
9633                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9634 $as_echo "$ac_res" >&6; }
9635 as_val=`eval 'as_val=${'$as_ac_Header'}
9636                  $as_echo "$as_val"'`
9637    if test "x$as_val" = x""yes; then
9638   cat >>confdefs.h <<_ACEOF
9639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9640 _ACEOF
9641
9642 fi
9643
9644 done
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9678 do
9679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9681   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9682 $as_echo_n "checking for $ac_header... " >&6; }
9683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9684   $as_echo_n "(cached) " >&6
9685 fi
9686 ac_res=`eval 'as_val=${'$as_ac_Header'}
9687                  $as_echo "$as_val"'`
9688                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9689 $as_echo "$ac_res" >&6; }
9690 else
9691   # Is the header compilable?
9692 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9693 $as_echo_n "checking $ac_header usability... " >&6; }
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h.  */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h.  */
9700 $ac_includes_default
9701 #include <$ac_header>
9702 _ACEOF
9703 rm -f conftest.$ac_objext
9704 if { (ac_try="$ac_compile"
9705 case "(($ac_try" in
9706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707   *) ac_try_echo=$ac_try;;
9708 esac
9709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9710 $as_echo "$ac_try_echo") >&5
9711   (eval "$ac_compile") 2>conftest.er1
9712   ac_status=$?
9713   grep -v '^ *+' conftest.er1 >conftest.err
9714   rm -f conftest.er1
9715   cat conftest.err >&5
9716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); } && {
9718          test -z "$ac_c_werror_flag" ||
9719          test ! -s conftest.err
9720        } && test -s conftest.$ac_objext; then
9721   ac_header_compiler=yes
9722 else
9723   $as_echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726         ac_header_compiler=no
9727 fi
9728
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 $as_echo "$ac_header_compiler" >&6; }
9732
9733 # Is the header present?
9734 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9735 $as_echo_n "checking $ac_header presence... " >&6; }
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742 #include <$ac_header>
9743 _ACEOF
9744 if { (ac_try="$ac_cpp conftest.$ac_ext"
9745 case "(($ac_try" in
9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747   *) ac_try_echo=$ac_try;;
9748 esac
9749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9750 $as_echo "$ac_try_echo") >&5
9751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9752   ac_status=$?
9753   grep -v '^ *+' conftest.er1 >conftest.err
9754   rm -f conftest.er1
9755   cat conftest.err >&5
9756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } >/dev/null && {
9758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9759          test ! -s conftest.err
9760        }; then
9761   ac_header_preproc=yes
9762 else
9763   $as_echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9765
9766   ac_header_preproc=no
9767 fi
9768
9769 rm -f conftest.err conftest.$ac_ext
9770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9771 $as_echo "$ac_header_preproc" >&6; }
9772
9773 # So?  What about this header?
9774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9775   yes:no: )
9776     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9777 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9778     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9780     ac_header_preproc=yes
9781     ;;
9782   no:yes:* )
9783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9786 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9788 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9790 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9793     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9794 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9795     ( cat <<\_ASBOX
9796 ## ---------------------------------------- ##
9797 ## Report this to pgsql-bugs@postgresql.org ##
9798 ## ---------------------------------------- ##
9799 _ASBOX
9800      ) | sed "s/^/$as_me: WARNING:     /" >&2
9801     ;;
9802 esac
9803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 $as_echo_n "checking for $ac_header... " >&6; }
9805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9806   $as_echo_n "(cached) " >&6
9807 else
9808   eval "$as_ac_Header=\$ac_header_preproc"
9809 fi
9810 ac_res=`eval 'as_val=${'$as_ac_Header'}
9811                  $as_echo "$as_val"'`
9812                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9813 $as_echo "$ac_res" >&6; }
9814
9815 fi
9816 as_val=`eval 'as_val=${'$as_ac_Header'}
9817                  $as_echo "$as_val"'`
9818    if test "x$as_val" = x""yes; then
9819   cat >>confdefs.h <<_ACEOF
9820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9821 _ACEOF
9822
9823 fi
9824
9825 done
9826
9827
9828 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9829 # is included first.
9830
9831 for ac_header in net/if.h
9832 do
9833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9835 $as_echo_n "checking for $ac_header... " >&6; }
9836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837   $as_echo_n "(cached) " >&6
9838 else
9839   cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845 $ac_includes_default
9846 #ifdef HAVE_SYS_SOCKET_H
9847 #include <sys/socket.h>
9848 #endif
9849
9850
9851 #include <$ac_header>
9852 _ACEOF
9853 rm -f conftest.$ac_objext
9854 if { (ac_try="$ac_compile"
9855 case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9860 $as_echo "$ac_try_echo") >&5
9861   (eval "$ac_compile") 2>conftest.er1
9862   ac_status=$?
9863   grep -v '^ *+' conftest.er1 >conftest.err
9864   rm -f conftest.er1
9865   cat conftest.err >&5
9866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } && {
9868          test -z "$ac_c_werror_flag" ||
9869          test ! -s conftest.err
9870        } && test -s conftest.$ac_objext; then
9871   eval "$as_ac_Header=yes"
9872 else
9873   $as_echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876         eval "$as_ac_Header=no"
9877 fi
9878
9879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880 fi
9881 ac_res=`eval 'as_val=${'$as_ac_Header'}
9882                  $as_echo "$as_val"'`
9883                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9884 $as_echo "$ac_res" >&6; }
9885 as_val=`eval 'as_val=${'$as_ac_Header'}
9886                  $as_echo "$as_val"'`
9887    if test "x$as_val" = x""yes; then
9888   cat >>confdefs.h <<_ACEOF
9889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9890 _ACEOF
9891
9892 fi
9893
9894 done
9895
9896
9897 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9898 # netinet/in.h is included first.
9899
9900 for ac_header in netinet/in.h
9901 do
9902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9904   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9905 $as_echo_n "checking for $ac_header... " >&6; }
9906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9907   $as_echo_n "(cached) " >&6
9908 fi
9909 ac_res=`eval 'as_val=${'$as_ac_Header'}
9910                  $as_echo "$as_val"'`
9911                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9912 $as_echo "$ac_res" >&6; }
9913 else
9914   # Is the header compilable?
9915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9916 $as_echo_n "checking $ac_header usability... " >&6; }
9917 cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923 $ac_includes_default
9924 #include <$ac_header>
9925 _ACEOF
9926 rm -f conftest.$ac_objext
9927 if { (ac_try="$ac_compile"
9928 case "(($ac_try" in
9929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930   *) ac_try_echo=$ac_try;;
9931 esac
9932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9933 $as_echo "$ac_try_echo") >&5
9934   (eval "$ac_compile") 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } && {
9941          test -z "$ac_c_werror_flag" ||
9942          test ! -s conftest.err
9943        } && test -s conftest.$ac_objext; then
9944   ac_header_compiler=yes
9945 else
9946   $as_echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949         ac_header_compiler=no
9950 fi
9951
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9954 $as_echo "$ac_header_compiler" >&6; }
9955
9956 # Is the header present?
9957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9958 $as_echo_n "checking $ac_header presence... " >&6; }
9959 cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965 #include <$ac_header>
9966 _ACEOF
9967 if { (ac_try="$ac_cpp conftest.$ac_ext"
9968 case "(($ac_try" in
9969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970   *) ac_try_echo=$ac_try;;
9971 esac
9972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9973 $as_echo "$ac_try_echo") >&5
9974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9975   ac_status=$?
9976   grep -v '^ *+' conftest.er1 >conftest.err
9977   rm -f conftest.er1
9978   cat conftest.err >&5
9979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); } >/dev/null && {
9981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9982          test ! -s conftest.err
9983        }; then
9984   ac_header_preproc=yes
9985 else
9986   $as_echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989   ac_header_preproc=no
9990 fi
9991
9992 rm -f conftest.err conftest.$ac_ext
9993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9994 $as_echo "$ac_header_preproc" >&6; }
9995
9996 # So?  What about this header?
9997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9998   yes:no: )
9999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10003     ac_header_preproc=yes
10004     ;;
10005   no:yes:* )
10006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10008     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10009 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10010     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10012     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10013 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10014     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10016     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10018     ( cat <<\_ASBOX
10019 ## ---------------------------------------- ##
10020 ## Report this to pgsql-bugs@postgresql.org ##
10021 ## ---------------------------------------- ##
10022 _ASBOX
10023      ) | sed "s/^/$as_me: WARNING:     /" >&2
10024     ;;
10025 esac
10026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10027 $as_echo_n "checking for $ac_header... " >&6; }
10028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10029   $as_echo_n "(cached) " >&6
10030 else
10031   eval "$as_ac_Header=\$ac_header_preproc"
10032 fi
10033 ac_res=`eval 'as_val=${'$as_ac_Header'}
10034                  $as_echo "$as_val"'`
10035                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10036 $as_echo "$ac_res" >&6; }
10037
10038 fi
10039 as_val=`eval 'as_val=${'$as_ac_Header'}
10040                  $as_echo "$as_val"'`
10041    if test "x$as_val" = x""yes; then
10042   cat >>confdefs.h <<_ACEOF
10043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10044 _ACEOF
10045
10046 fi
10047
10048 done
10049
10050
10051 for ac_header in netinet/tcp.h
10052 do
10053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10054 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10055 $as_echo_n "checking for $ac_header... " >&6; }
10056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10057   $as_echo_n "(cached) " >&6
10058 else
10059   cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h.  */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h.  */
10065 $ac_includes_default
10066 #ifdef HAVE_NETINET_IN_H
10067 #include <netinet/in.h>
10068 #endif
10069
10070
10071 #include <$ac_header>
10072 _ACEOF
10073 rm -f conftest.$ac_objext
10074 if { (ac_try="$ac_compile"
10075 case "(($ac_try" in
10076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077   *) ac_try_echo=$ac_try;;
10078 esac
10079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10080 $as_echo "$ac_try_echo") >&5
10081   (eval "$ac_compile") 2>conftest.er1
10082   ac_status=$?
10083   grep -v '^ *+' conftest.er1 >conftest.err
10084   rm -f conftest.er1
10085   cat conftest.err >&5
10086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); } && {
10088          test -z "$ac_c_werror_flag" ||
10089          test ! -s conftest.err
10090        } && test -s conftest.$ac_objext; then
10091   eval "$as_ac_Header=yes"
10092 else
10093   $as_echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10095
10096         eval "$as_ac_Header=no"
10097 fi
10098
10099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10100 fi
10101 ac_res=`eval 'as_val=${'$as_ac_Header'}
10102                  $as_echo "$as_val"'`
10103                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10104 $as_echo "$ac_res" >&6; }
10105 as_val=`eval 'as_val=${'$as_ac_Header'}
10106                  $as_echo "$as_val"'`
10107    if test "x$as_val" = x""yes; then
10108   cat >>confdefs.h <<_ACEOF
10109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10110 _ACEOF
10111
10112 fi
10113
10114 done
10115
10116
10117 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10118
10119 for ac_header in readline/readline.h
10120 do
10121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10123   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10124 $as_echo_n "checking for $ac_header... " >&6; }
10125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10126   $as_echo_n "(cached) " >&6
10127 fi
10128 ac_res=`eval 'as_val=${'$as_ac_Header'}
10129                  $as_echo "$as_val"'`
10130                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10131 $as_echo "$ac_res" >&6; }
10132 else
10133   # Is the header compilable?
10134 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10135 $as_echo_n "checking $ac_header usability... " >&6; }
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h.  */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h.  */
10142 $ac_includes_default
10143 #include <$ac_header>
10144 _ACEOF
10145 rm -f conftest.$ac_objext
10146 if { (ac_try="$ac_compile"
10147 case "(($ac_try" in
10148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149   *) ac_try_echo=$ac_try;;
10150 esac
10151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10152 $as_echo "$ac_try_echo") >&5
10153   (eval "$ac_compile") 2>conftest.er1
10154   ac_status=$?
10155   grep -v '^ *+' conftest.er1 >conftest.err
10156   rm -f conftest.er1
10157   cat conftest.err >&5
10158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } && {
10160          test -z "$ac_c_werror_flag" ||
10161          test ! -s conftest.err
10162        } && test -s conftest.$ac_objext; then
10163   ac_header_compiler=yes
10164 else
10165   $as_echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10167
10168         ac_header_compiler=no
10169 fi
10170
10171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173 $as_echo "$ac_header_compiler" >&6; }
10174
10175 # Is the header present?
10176 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10177 $as_echo_n "checking $ac_header presence... " >&6; }
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h.  */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h.  */
10184 #include <$ac_header>
10185 _ACEOF
10186 if { (ac_try="$ac_cpp conftest.$ac_ext"
10187 case "(($ac_try" in
10188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189   *) ac_try_echo=$ac_try;;
10190 esac
10191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10192 $as_echo "$ac_try_echo") >&5
10193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10194   ac_status=$?
10195   grep -v '^ *+' conftest.er1 >conftest.err
10196   rm -f conftest.er1
10197   cat conftest.err >&5
10198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199   (exit $ac_status); } >/dev/null && {
10200          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10201          test ! -s conftest.err
10202        }; then
10203   ac_header_preproc=yes
10204 else
10205   $as_echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10207
10208   ac_header_preproc=no
10209 fi
10210
10211 rm -f conftest.err conftest.$ac_ext
10212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10213 $as_echo "$ac_header_preproc" >&6; }
10214
10215 # So?  What about this header?
10216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10217   yes:no: )
10218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10219 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10222     ac_header_preproc=yes
10223     ;;
10224   no:yes:* )
10225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10227     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10228 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10229     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10230 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10231     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10232 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10233     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10236 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10237     ( cat <<\_ASBOX
10238 ## ---------------------------------------- ##
10239 ## Report this to pgsql-bugs@postgresql.org ##
10240 ## ---------------------------------------- ##
10241 _ASBOX
10242      ) | sed "s/^/$as_me: WARNING:     /" >&2
10243     ;;
10244 esac
10245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10246 $as_echo_n "checking for $ac_header... " >&6; }
10247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10248   $as_echo_n "(cached) " >&6
10249 else
10250   eval "$as_ac_Header=\$ac_header_preproc"
10251 fi
10252 ac_res=`eval 'as_val=${'$as_ac_Header'}
10253                  $as_echo "$as_val"'`
10254                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10255 $as_echo "$ac_res" >&6; }
10256
10257 fi
10258 as_val=`eval 'as_val=${'$as_ac_Header'}
10259                  $as_echo "$as_val"'`
10260    if test "x$as_val" = x""yes; then
10261   cat >>confdefs.h <<_ACEOF
10262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10263 _ACEOF
10264
10265 else
10266
10267 for ac_header in readline.h
10268 do
10269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10271   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10272 $as_echo_n "checking for $ac_header... " >&6; }
10273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10274   $as_echo_n "(cached) " >&6
10275 fi
10276 ac_res=`eval 'as_val=${'$as_ac_Header'}
10277                  $as_echo "$as_val"'`
10278                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10279 $as_echo "$ac_res" >&6; }
10280 else
10281   # Is the header compilable?
10282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10283 $as_echo_n "checking $ac_header usability... " >&6; }
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 $ac_includes_default
10291 #include <$ac_header>
10292 _ACEOF
10293 rm -f conftest.$ac_objext
10294 if { (ac_try="$ac_compile"
10295 case "(($ac_try" in
10296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297   *) ac_try_echo=$ac_try;;
10298 esac
10299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10300 $as_echo "$ac_try_echo") >&5
10301   (eval "$ac_compile") 2>conftest.er1
10302   ac_status=$?
10303   grep -v '^ *+' conftest.er1 >conftest.err
10304   rm -f conftest.er1
10305   cat conftest.err >&5
10306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307   (exit $ac_status); } && {
10308          test -z "$ac_c_werror_flag" ||
10309          test ! -s conftest.err
10310        } && test -s conftest.$ac_objext; then
10311   ac_header_compiler=yes
10312 else
10313   $as_echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316         ac_header_compiler=no
10317 fi
10318
10319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10321 $as_echo "$ac_header_compiler" >&6; }
10322
10323 # Is the header present?
10324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10325 $as_echo_n "checking $ac_header presence... " >&6; }
10326 cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h.  */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h.  */
10332 #include <$ac_header>
10333 _ACEOF
10334 if { (ac_try="$ac_cpp conftest.$ac_ext"
10335 case "(($ac_try" in
10336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337   *) ac_try_echo=$ac_try;;
10338 esac
10339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10340 $as_echo "$ac_try_echo") >&5
10341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10342   ac_status=$?
10343   grep -v '^ *+' conftest.er1 >conftest.err
10344   rm -f conftest.er1
10345   cat conftest.err >&5
10346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } >/dev/null && {
10348          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10349          test ! -s conftest.err
10350        }; then
10351   ac_header_preproc=yes
10352 else
10353   $as_echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10355
10356   ac_header_preproc=no
10357 fi
10358
10359 rm -f conftest.err conftest.$ac_ext
10360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10361 $as_echo "$ac_header_preproc" >&6; }
10362
10363 # So?  What about this header?
10364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10365   yes:no: )
10366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10370     ac_header_preproc=yes
10371     ;;
10372   no:yes:* )
10373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10376 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10380 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10385     ( cat <<\_ASBOX
10386 ## ---------------------------------------- ##
10387 ## Report this to pgsql-bugs@postgresql.org ##
10388 ## ---------------------------------------- ##
10389 _ASBOX
10390      ) | sed "s/^/$as_me: WARNING:     /" >&2
10391     ;;
10392 esac
10393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10394 $as_echo_n "checking for $ac_header... " >&6; }
10395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10396   $as_echo_n "(cached) " >&6
10397 else
10398   eval "$as_ac_Header=\$ac_header_preproc"
10399 fi
10400 ac_res=`eval 'as_val=${'$as_ac_Header'}
10401                  $as_echo "$as_val"'`
10402                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10403 $as_echo "$ac_res" >&6; }
10404
10405 fi
10406 as_val=`eval 'as_val=${'$as_ac_Header'}
10407                  $as_echo "$as_val"'`
10408    if test "x$as_val" = x""yes; then
10409   cat >>confdefs.h <<_ACEOF
10410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10411 _ACEOF
10412
10413 else
10414   { { $as_echo "$as_me:$LINENO: error: readline header not found
10415 If you have readline already installed, see config.log for details on the
10416 failure.  It is possible the compiler isn't looking in the proper directory.
10417 Use --without-readline to disable readline support." >&5
10418 $as_echo "$as_me: error: readline header not found
10419 If you have readline already installed, see config.log for details on the
10420 failure.  It is possible the compiler isn't looking in the proper directory.
10421 Use --without-readline to disable readline support." >&2;}
10422    { (exit 1); exit 1; }; }
10423 fi
10424
10425 done
10426
10427 fi
10428
10429 done
10430
10431
10432 for ac_header in readline/history.h
10433 do
10434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10436   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10437 $as_echo_n "checking for $ac_header... " >&6; }
10438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10439   $as_echo_n "(cached) " >&6
10440 fi
10441 ac_res=`eval 'as_val=${'$as_ac_Header'}
10442                  $as_echo "$as_val"'`
10443                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10444 $as_echo "$ac_res" >&6; }
10445 else
10446   # Is the header compilable?
10447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10448 $as_echo_n "checking $ac_header usability... " >&6; }
10449 cat >conftest.$ac_ext <<_ACEOF
10450 /* confdefs.h.  */
10451 _ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h.  */
10455 $ac_includes_default
10456 #include <$ac_header>
10457 _ACEOF
10458 rm -f conftest.$ac_objext
10459 if { (ac_try="$ac_compile"
10460 case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10465 $as_echo "$ac_try_echo") >&5
10466   (eval "$ac_compile") 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } && {
10473          test -z "$ac_c_werror_flag" ||
10474          test ! -s conftest.err
10475        } && test -s conftest.$ac_objext; then
10476   ac_header_compiler=yes
10477 else
10478   $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10480
10481         ac_header_compiler=no
10482 fi
10483
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10486 $as_echo "$ac_header_compiler" >&6; }
10487
10488 # Is the header present?
10489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10490 $as_echo_n "checking $ac_header presence... " >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h.  */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h.  */
10497 #include <$ac_header>
10498 _ACEOF
10499 if { (ac_try="$ac_cpp conftest.$ac_ext"
10500 case "(($ac_try" in
10501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502   *) ac_try_echo=$ac_try;;
10503 esac
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10507   ac_status=$?
10508   grep -v '^ *+' conftest.er1 >conftest.err
10509   rm -f conftest.er1
10510   cat conftest.err >&5
10511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } >/dev/null && {
10513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10514          test ! -s conftest.err
10515        }; then
10516   ac_header_preproc=yes
10517 else
10518   $as_echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10520
10521   ac_header_preproc=no
10522 fi
10523
10524 rm -f conftest.err conftest.$ac_ext
10525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10526 $as_echo "$ac_header_preproc" >&6; }
10527
10528 # So?  What about this header?
10529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10530   yes:no: )
10531     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10533     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10535     ac_header_preproc=yes
10536     ;;
10537   no:yes:* )
10538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10540     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10541 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10542     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10544     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10545 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10546     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10550     ( cat <<\_ASBOX
10551 ## ---------------------------------------- ##
10552 ## Report this to pgsql-bugs@postgresql.org ##
10553 ## ---------------------------------------- ##
10554 _ASBOX
10555      ) | sed "s/^/$as_me: WARNING:     /" >&2
10556     ;;
10557 esac
10558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 $as_echo_n "checking for $ac_header... " >&6; }
10560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561   $as_echo_n "(cached) " >&6
10562 else
10563   eval "$as_ac_Header=\$ac_header_preproc"
10564 fi
10565 ac_res=`eval 'as_val=${'$as_ac_Header'}
10566                  $as_echo "$as_val"'`
10567                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10568 $as_echo "$ac_res" >&6; }
10569
10570 fi
10571 as_val=`eval 'as_val=${'$as_ac_Header'}
10572                  $as_echo "$as_val"'`
10573    if test "x$as_val" = x""yes; then
10574   cat >>confdefs.h <<_ACEOF
10575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10576 _ACEOF
10577
10578 else
10579
10580 for ac_header in history.h
10581 do
10582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10584   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10585 $as_echo_n "checking for $ac_header... " >&6; }
10586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10587   $as_echo_n "(cached) " >&6
10588 fi
10589 ac_res=`eval 'as_val=${'$as_ac_Header'}
10590                  $as_echo "$as_val"'`
10591                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10592 $as_echo "$ac_res" >&6; }
10593 else
10594   # Is the header compilable?
10595 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10596 $as_echo_n "checking $ac_header usability... " >&6; }
10597 cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h.  */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h.  */
10603 $ac_includes_default
10604 #include <$ac_header>
10605 _ACEOF
10606 rm -f conftest.$ac_objext
10607 if { (ac_try="$ac_compile"
10608 case "(($ac_try" in
10609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610   *) ac_try_echo=$ac_try;;
10611 esac
10612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10613 $as_echo "$ac_try_echo") >&5
10614   (eval "$ac_compile") 2>conftest.er1
10615   ac_status=$?
10616   grep -v '^ *+' conftest.er1 >conftest.err
10617   rm -f conftest.er1
10618   cat conftest.err >&5
10619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); } && {
10621          test -z "$ac_c_werror_flag" ||
10622          test ! -s conftest.err
10623        } && test -s conftest.$ac_objext; then
10624   ac_header_compiler=yes
10625 else
10626   $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629         ac_header_compiler=no
10630 fi
10631
10632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10634 $as_echo "$ac_header_compiler" >&6; }
10635
10636 # Is the header present?
10637 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10638 $as_echo_n "checking $ac_header presence... " >&6; }
10639 cat >conftest.$ac_ext <<_ACEOF
10640 /* confdefs.h.  */
10641 _ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h.  */
10645 #include <$ac_header>
10646 _ACEOF
10647 if { (ac_try="$ac_cpp conftest.$ac_ext"
10648 case "(($ac_try" in
10649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650   *) ac_try_echo=$ac_try;;
10651 esac
10652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10653 $as_echo "$ac_try_echo") >&5
10654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10655   ac_status=$?
10656   grep -v '^ *+' conftest.er1 >conftest.err
10657   rm -f conftest.er1
10658   cat conftest.err >&5
10659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); } >/dev/null && {
10661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10662          test ! -s conftest.err
10663        }; then
10664   ac_header_preproc=yes
10665 else
10666   $as_echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10668
10669   ac_header_preproc=no
10670 fi
10671
10672 rm -f conftest.err conftest.$ac_ext
10673 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674 $as_echo "$ac_header_preproc" >&6; }
10675
10676 # So?  What about this header?
10677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10678   yes:no: )
10679     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10680 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10683     ac_header_preproc=yes
10684     ;;
10685   no:yes:* )
10686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10688     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10689 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10691 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10693 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10695 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10697 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10698     ( cat <<\_ASBOX
10699 ## ---------------------------------------- ##
10700 ## Report this to pgsql-bugs@postgresql.org ##
10701 ## ---------------------------------------- ##
10702 _ASBOX
10703      ) | sed "s/^/$as_me: WARNING:     /" >&2
10704     ;;
10705 esac
10706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10707 $as_echo_n "checking for $ac_header... " >&6; }
10708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10709   $as_echo_n "(cached) " >&6
10710 else
10711   eval "$as_ac_Header=\$ac_header_preproc"
10712 fi
10713 ac_res=`eval 'as_val=${'$as_ac_Header'}
10714                  $as_echo "$as_val"'`
10715                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10716 $as_echo "$ac_res" >&6; }
10717
10718 fi
10719 as_val=`eval 'as_val=${'$as_ac_Header'}
10720                  $as_echo "$as_val"'`
10721    if test "x$as_val" = x""yes; then
10722   cat >>confdefs.h <<_ACEOF
10723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10724 _ACEOF
10725
10726 else
10727   { { $as_echo "$as_me:$LINENO: error: history header not found
10728 If you have readline already installed, see config.log for details on the
10729 failure.  It is possible the compiler isn't looking in the proper directory.
10730 Use --without-readline to disable readline support." >&5
10731 $as_echo "$as_me: error: history header not found
10732 If you have readline already installed, see config.log for details on the
10733 failure.  It is possible the compiler isn't looking in the proper directory.
10734 Use --without-readline to disable readline support." >&2;}
10735    { (exit 1); exit 1; }; }
10736 fi
10737
10738 done
10739
10740 fi
10741
10742 done
10743
10744 fi
10745
10746 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10747 # Some installations of libedit usurp /usr/include/readline/, which seems
10748 # bad practice, since in combined installations readline will have its headers
10749 # there.  We might have to resort to AC_EGREP checks to make sure we found
10750 # the proper header...
10751
10752 for ac_header in editline/readline.h
10753 do
10754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10757 $as_echo_n "checking for $ac_header... " >&6; }
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759   $as_echo_n "(cached) " >&6
10760 fi
10761 ac_res=`eval 'as_val=${'$as_ac_Header'}
10762                  $as_echo "$as_val"'`
10763                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10764 $as_echo "$ac_res" >&6; }
10765 else
10766   # Is the header compilable?
10767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10768 $as_echo_n "checking $ac_header usability... " >&6; }
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h.  */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h.  */
10775 $ac_includes_default
10776 #include <$ac_header>
10777 _ACEOF
10778 rm -f conftest.$ac_objext
10779 if { (ac_try="$ac_compile"
10780 case "(($ac_try" in
10781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782   *) ac_try_echo=$ac_try;;
10783 esac
10784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10785 $as_echo "$ac_try_echo") >&5
10786   (eval "$ac_compile") 2>conftest.er1
10787   ac_status=$?
10788   grep -v '^ *+' conftest.er1 >conftest.err
10789   rm -f conftest.er1
10790   cat conftest.err >&5
10791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } && {
10793          test -z "$ac_c_werror_flag" ||
10794          test ! -s conftest.err
10795        } && test -s conftest.$ac_objext; then
10796   ac_header_compiler=yes
10797 else
10798   $as_echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801         ac_header_compiler=no
10802 fi
10803
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10806 $as_echo "$ac_header_compiler" >&6; }
10807
10808 # Is the header present?
10809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10810 $as_echo_n "checking $ac_header presence... " >&6; }
10811 cat >conftest.$ac_ext <<_ACEOF
10812 /* confdefs.h.  */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h.  */
10817 #include <$ac_header>
10818 _ACEOF
10819 if { (ac_try="$ac_cpp conftest.$ac_ext"
10820 case "(($ac_try" in
10821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822   *) ac_try_echo=$ac_try;;
10823 esac
10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825 $as_echo "$ac_try_echo") >&5
10826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10827   ac_status=$?
10828   grep -v '^ *+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } >/dev/null && {
10833          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10834          test ! -s conftest.err
10835        }; then
10836   ac_header_preproc=yes
10837 else
10838   $as_echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841   ac_header_preproc=no
10842 fi
10843
10844 rm -f conftest.err conftest.$ac_ext
10845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 $as_echo "$ac_header_preproc" >&6; }
10847
10848 # So?  What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10850   yes:no: )
10851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855     ac_header_preproc=yes
10856     ;;
10857   no:yes:* )
10858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10861 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10865 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10870     ( cat <<\_ASBOX
10871 ## ---------------------------------------- ##
10872 ## Report this to pgsql-bugs@postgresql.org ##
10873 ## ---------------------------------------- ##
10874 _ASBOX
10875      ) | sed "s/^/$as_me: WARNING:     /" >&2
10876     ;;
10877 esac
10878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10879 $as_echo_n "checking for $ac_header... " >&6; }
10880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10881   $as_echo_n "(cached) " >&6
10882 else
10883   eval "$as_ac_Header=\$ac_header_preproc"
10884 fi
10885 ac_res=`eval 'as_val=${'$as_ac_Header'}
10886                  $as_echo "$as_val"'`
10887                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10888 $as_echo "$ac_res" >&6; }
10889
10890 fi
10891 as_val=`eval 'as_val=${'$as_ac_Header'}
10892                  $as_echo "$as_val"'`
10893    if test "x$as_val" = x""yes; then
10894   cat >>confdefs.h <<_ACEOF
10895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10896 _ACEOF
10897
10898 else
10899
10900 for ac_header in readline.h
10901 do
10902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10904   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10905 $as_echo_n "checking for $ac_header... " >&6; }
10906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10907   $as_echo_n "(cached) " >&6
10908 fi
10909 ac_res=`eval 'as_val=${'$as_ac_Header'}
10910                  $as_echo "$as_val"'`
10911                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10912 $as_echo "$ac_res" >&6; }
10913 else
10914   # Is the header compilable?
10915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10916 $as_echo_n "checking $ac_header usability... " >&6; }
10917 cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923 $ac_includes_default
10924 #include <$ac_header>
10925 _ACEOF
10926 rm -f conftest.$ac_objext
10927 if { (ac_try="$ac_compile"
10928 case "(($ac_try" in
10929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930   *) ac_try_echo=$ac_try;;
10931 esac
10932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10933 $as_echo "$ac_try_echo") >&5
10934   (eval "$ac_compile") 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } && {
10941          test -z "$ac_c_werror_flag" ||
10942          test ! -s conftest.err
10943        } && test -s conftest.$ac_objext; then
10944   ac_header_compiler=yes
10945 else
10946   $as_echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10948
10949         ac_header_compiler=no
10950 fi
10951
10952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10954 $as_echo "$ac_header_compiler" >&6; }
10955
10956 # Is the header present?
10957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10958 $as_echo_n "checking $ac_header presence... " >&6; }
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h.  */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h.  */
10965 #include <$ac_header>
10966 _ACEOF
10967 if { (ac_try="$ac_cpp conftest.$ac_ext"
10968 case "(($ac_try" in
10969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970   *) ac_try_echo=$ac_try;;
10971 esac
10972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10973 $as_echo "$ac_try_echo") >&5
10974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10975   ac_status=$?
10976   grep -v '^ *+' conftest.er1 >conftest.err
10977   rm -f conftest.er1
10978   cat conftest.err >&5
10979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); } >/dev/null && {
10981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10982          test ! -s conftest.err
10983        }; then
10984   ac_header_preproc=yes
10985 else
10986   $as_echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10988
10989   ac_header_preproc=no
10990 fi
10991
10992 rm -f conftest.err conftest.$ac_ext
10993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10994 $as_echo "$ac_header_preproc" >&6; }
10995
10996 # So?  What about this header?
10997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10998   yes:no: )
10999     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11003     ac_header_preproc=yes
11004     ;;
11005   no:yes:* )
11006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11008     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11009 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11010     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11012     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11013 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11014     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11016     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11018     ( cat <<\_ASBOX
11019 ## ---------------------------------------- ##
11020 ## Report this to pgsql-bugs@postgresql.org ##
11021 ## ---------------------------------------- ##
11022 _ASBOX
11023      ) | sed "s/^/$as_me: WARNING:     /" >&2
11024     ;;
11025 esac
11026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11027 $as_echo_n "checking for $ac_header... " >&6; }
11028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11029   $as_echo_n "(cached) " >&6
11030 else
11031   eval "$as_ac_Header=\$ac_header_preproc"
11032 fi
11033 ac_res=`eval 'as_val=${'$as_ac_Header'}
11034                  $as_echo "$as_val"'`
11035                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11036 $as_echo "$ac_res" >&6; }
11037
11038 fi
11039 as_val=`eval 'as_val=${'$as_ac_Header'}
11040                  $as_echo "$as_val"'`
11041    if test "x$as_val" = x""yes; then
11042   cat >>confdefs.h <<_ACEOF
11043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11044 _ACEOF
11045
11046 else
11047
11048 for ac_header in readline/readline.h
11049 do
11050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11052   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11053 $as_echo_n "checking for $ac_header... " >&6; }
11054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11055   $as_echo_n "(cached) " >&6
11056 fi
11057 ac_res=`eval 'as_val=${'$as_ac_Header'}
11058                  $as_echo "$as_val"'`
11059                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11060 $as_echo "$ac_res" >&6; }
11061 else
11062   # Is the header compilable?
11063 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11064 $as_echo_n "checking $ac_header usability... " >&6; }
11065 cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h.  */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h.  */
11071 $ac_includes_default
11072 #include <$ac_header>
11073 _ACEOF
11074 rm -f conftest.$ac_objext
11075 if { (ac_try="$ac_compile"
11076 case "(($ac_try" in
11077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078   *) ac_try_echo=$ac_try;;
11079 esac
11080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11081 $as_echo "$ac_try_echo") >&5
11082   (eval "$ac_compile") 2>conftest.er1
11083   ac_status=$?
11084   grep -v '^ *+' conftest.er1 >conftest.err
11085   rm -f conftest.er1
11086   cat conftest.err >&5
11087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); } && {
11089          test -z "$ac_c_werror_flag" ||
11090          test ! -s conftest.err
11091        } && test -s conftest.$ac_objext; then
11092   ac_header_compiler=yes
11093 else
11094   $as_echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11096
11097         ac_header_compiler=no
11098 fi
11099
11100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11102 $as_echo "$ac_header_compiler" >&6; }
11103
11104 # Is the header present?
11105 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11106 $as_echo_n "checking $ac_header presence... " >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113 #include <$ac_header>
11114 _ACEOF
11115 if { (ac_try="$ac_cpp conftest.$ac_ext"
11116 case "(($ac_try" in
11117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118   *) ac_try_echo=$ac_try;;
11119 esac
11120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11121 $as_echo "$ac_try_echo") >&5
11122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11123   ac_status=$?
11124   grep -v '^ *+' conftest.er1 >conftest.err
11125   rm -f conftest.er1
11126   cat conftest.err >&5
11127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); } >/dev/null && {
11129          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11130          test ! -s conftest.err
11131        }; then
11132   ac_header_preproc=yes
11133 else
11134   $as_echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11136
11137   ac_header_preproc=no
11138 fi
11139
11140 rm -f conftest.err conftest.$ac_ext
11141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11142 $as_echo "$ac_header_preproc" >&6; }
11143
11144 # So?  What about this header?
11145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11146   yes:no: )
11147     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11148 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11149     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11151     ac_header_preproc=yes
11152     ;;
11153   no:yes:* )
11154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11155 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11156     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11157 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11159 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11160     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11161 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11162     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11164     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11165 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11166     ( cat <<\_ASBOX
11167 ## ---------------------------------------- ##
11168 ## Report this to pgsql-bugs@postgresql.org ##
11169 ## ---------------------------------------- ##
11170 _ASBOX
11171      ) | sed "s/^/$as_me: WARNING:     /" >&2
11172     ;;
11173 esac
11174 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11175 $as_echo_n "checking for $ac_header... " >&6; }
11176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11177   $as_echo_n "(cached) " >&6
11178 else
11179   eval "$as_ac_Header=\$ac_header_preproc"
11180 fi
11181 ac_res=`eval 'as_val=${'$as_ac_Header'}
11182                  $as_echo "$as_val"'`
11183                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11184 $as_echo "$ac_res" >&6; }
11185
11186 fi
11187 as_val=`eval 'as_val=${'$as_ac_Header'}
11188                  $as_echo "$as_val"'`
11189    if test "x$as_val" = x""yes; then
11190   cat >>confdefs.h <<_ACEOF
11191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11192 _ACEOF
11193
11194 else
11195   { { $as_echo "$as_me:$LINENO: error: readline header not found
11196 If you have libedit already installed, see config.log for details on the
11197 failure.  It is possible the compiler isn't looking in the proper directory.
11198 Use --without-readline to disable libedit support." >&5
11199 $as_echo "$as_me: error: readline header not found
11200 If you have libedit already installed, see config.log for details on the
11201 failure.  It is possible the compiler isn't looking in the proper directory.
11202 Use --without-readline to disable libedit support." >&2;}
11203    { (exit 1); exit 1; }; }
11204 fi
11205
11206 done
11207
11208 fi
11209
11210 done
11211
11212 fi
11213
11214 done
11215
11216 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11217 # not be there at all.  Hence, don't complain if not found.  We must check
11218 # though, since in yet other versions it is an independent header.
11219
11220 for ac_header in editline/history.h
11221 do
11222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11225 $as_echo_n "checking for $ac_header... " >&6; }
11226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11227   $as_echo_n "(cached) " >&6
11228 fi
11229 ac_res=`eval 'as_val=${'$as_ac_Header'}
11230                  $as_echo "$as_val"'`
11231                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11232 $as_echo "$ac_res" >&6; }
11233 else
11234   # Is the header compilable?
11235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11236 $as_echo_n "checking $ac_header usability... " >&6; }
11237 cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h.  */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h.  */
11243 $ac_includes_default
11244 #include <$ac_header>
11245 _ACEOF
11246 rm -f conftest.$ac_objext
11247 if { (ac_try="$ac_compile"
11248 case "(($ac_try" in
11249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250   *) ac_try_echo=$ac_try;;
11251 esac
11252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11253 $as_echo "$ac_try_echo") >&5
11254   (eval "$ac_compile") 2>conftest.er1
11255   ac_status=$?
11256   grep -v '^ *+' conftest.er1 >conftest.err
11257   rm -f conftest.er1
11258   cat conftest.err >&5
11259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); } && {
11261          test -z "$ac_c_werror_flag" ||
11262          test ! -s conftest.err
11263        } && test -s conftest.$ac_objext; then
11264   ac_header_compiler=yes
11265 else
11266   $as_echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11268
11269         ac_header_compiler=no
11270 fi
11271
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11274 $as_echo "$ac_header_compiler" >&6; }
11275
11276 # Is the header present?
11277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11278 $as_echo_n "checking $ac_header presence... " >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 #include <$ac_header>
11286 _ACEOF
11287 if { (ac_try="$ac_cpp conftest.$ac_ext"
11288 case "(($ac_try" in
11289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290   *) ac_try_echo=$ac_try;;
11291 esac
11292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11293 $as_echo "$ac_try_echo") >&5
11294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11295   ac_status=$?
11296   grep -v '^ *+' conftest.er1 >conftest.err
11297   rm -f conftest.er1
11298   cat conftest.err >&5
11299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); } >/dev/null && {
11301          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11302          test ! -s conftest.err
11303        }; then
11304   ac_header_preproc=yes
11305 else
11306   $as_echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11308
11309   ac_header_preproc=no
11310 fi
11311
11312 rm -f conftest.err conftest.$ac_ext
11313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11314 $as_echo "$ac_header_preproc" >&6; }
11315
11316 # So?  What about this header?
11317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11318   yes:no: )
11319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11323     ac_header_preproc=yes
11324     ;;
11325   no:yes:* )
11326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11329 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11333 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11336     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11338     ( cat <<\_ASBOX
11339 ## ---------------------------------------- ##
11340 ## Report this to pgsql-bugs@postgresql.org ##
11341 ## ---------------------------------------- ##
11342 _ASBOX
11343      ) | sed "s/^/$as_me: WARNING:     /" >&2
11344     ;;
11345 esac
11346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11347 $as_echo_n "checking for $ac_header... " >&6; }
11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349   $as_echo_n "(cached) " >&6
11350 else
11351   eval "$as_ac_Header=\$ac_header_preproc"
11352 fi
11353 ac_res=`eval 'as_val=${'$as_ac_Header'}
11354                  $as_echo "$as_val"'`
11355                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11356 $as_echo "$ac_res" >&6; }
11357
11358 fi
11359 as_val=`eval 'as_val=${'$as_ac_Header'}
11360                  $as_echo "$as_val"'`
11361    if test "x$as_val" = x""yes; then
11362   cat >>confdefs.h <<_ACEOF
11363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11364 _ACEOF
11365
11366 else
11367
11368 for ac_header in history.h
11369 do
11370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11372   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11373 $as_echo_n "checking for $ac_header... " >&6; }
11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375   $as_echo_n "(cached) " >&6
11376 fi
11377 ac_res=`eval 'as_val=${'$as_ac_Header'}
11378                  $as_echo "$as_val"'`
11379                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11380 $as_echo "$ac_res" >&6; }
11381 else
11382   # Is the header compilable?
11383 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11384 $as_echo_n "checking $ac_header usability... " >&6; }
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h.  */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h.  */
11391 $ac_includes_default
11392 #include <$ac_header>
11393 _ACEOF
11394 rm -f conftest.$ac_objext
11395 if { (ac_try="$ac_compile"
11396 case "(($ac_try" in
11397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398   *) ac_try_echo=$ac_try;;
11399 esac
11400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11401 $as_echo "$ac_try_echo") >&5
11402   (eval "$ac_compile") 2>conftest.er1
11403   ac_status=$?
11404   grep -v '^ *+' conftest.er1 >conftest.err
11405   rm -f conftest.er1
11406   cat conftest.err >&5
11407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); } && {
11409          test -z "$ac_c_werror_flag" ||
11410          test ! -s conftest.err
11411        } && test -s conftest.$ac_objext; then
11412   ac_header_compiler=yes
11413 else
11414   $as_echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417         ac_header_compiler=no
11418 fi
11419
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11422 $as_echo "$ac_header_compiler" >&6; }
11423
11424 # Is the header present?
11425 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11426 $as_echo_n "checking $ac_header presence... " >&6; }
11427 cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 #include <$ac_header>
11434 _ACEOF
11435 if { (ac_try="$ac_cpp conftest.$ac_ext"
11436 case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11441 $as_echo "$ac_try_echo") >&5
11442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11443   ac_status=$?
11444   grep -v '^ *+' conftest.er1 >conftest.err
11445   rm -f conftest.er1
11446   cat conftest.err >&5
11447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); } >/dev/null && {
11449          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11450          test ! -s conftest.err
11451        }; then
11452   ac_header_preproc=yes
11453 else
11454   $as_echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11456
11457   ac_header_preproc=no
11458 fi
11459
11460 rm -f conftest.err conftest.$ac_ext
11461 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11462 $as_echo "$ac_header_preproc" >&6; }
11463
11464 # So?  What about this header?
11465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11466   yes:no: )
11467     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11468 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11469     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11470 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11471     ac_header_preproc=yes
11472     ;;
11473   no:yes:* )
11474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11475 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11476     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11477 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11478     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11479 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11480     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11481 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11482     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11483 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11484     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11485 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11486     ( cat <<\_ASBOX
11487 ## ---------------------------------------- ##
11488 ## Report this to pgsql-bugs@postgresql.org ##
11489 ## ---------------------------------------- ##
11490 _ASBOX
11491      ) | sed "s/^/$as_me: WARNING:     /" >&2
11492     ;;
11493 esac
11494 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11495 $as_echo_n "checking for $ac_header... " >&6; }
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497   $as_echo_n "(cached) " >&6
11498 else
11499   eval "$as_ac_Header=\$ac_header_preproc"
11500 fi
11501 ac_res=`eval 'as_val=${'$as_ac_Header'}
11502                  $as_echo "$as_val"'`
11503                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11504 $as_echo "$ac_res" >&6; }
11505
11506 fi
11507 as_val=`eval 'as_val=${'$as_ac_Header'}
11508                  $as_echo "$as_val"'`
11509    if test "x$as_val" = x""yes; then
11510   cat >>confdefs.h <<_ACEOF
11511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11512 _ACEOF
11513
11514 else
11515
11516 for ac_header in readline/history.h
11517 do
11518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11520   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11521 $as_echo_n "checking for $ac_header... " >&6; }
11522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11523   $as_echo_n "(cached) " >&6
11524 fi
11525 ac_res=`eval 'as_val=${'$as_ac_Header'}
11526                  $as_echo "$as_val"'`
11527                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11528 $as_echo "$ac_res" >&6; }
11529 else
11530   # Is the header compilable?
11531 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11532 $as_echo_n "checking $ac_header usability... " >&6; }
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539 $ac_includes_default
11540 #include <$ac_header>
11541 _ACEOF
11542 rm -f conftest.$ac_objext
11543 if { (ac_try="$ac_compile"
11544 case "(($ac_try" in
11545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546   *) ac_try_echo=$ac_try;;
11547 esac
11548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11549 $as_echo "$ac_try_echo") >&5
11550   (eval "$ac_compile") 2>conftest.er1
11551   ac_status=$?
11552   grep -v '^ *+' conftest.er1 >conftest.err
11553   rm -f conftest.er1
11554   cat conftest.err >&5
11555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } && {
11557          test -z "$ac_c_werror_flag" ||
11558          test ! -s conftest.err
11559        } && test -s conftest.$ac_objext; then
11560   ac_header_compiler=yes
11561 else
11562   $as_echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565         ac_header_compiler=no
11566 fi
11567
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11570 $as_echo "$ac_header_compiler" >&6; }
11571
11572 # Is the header present?
11573 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11574 $as_echo_n "checking $ac_header presence... " >&6; }
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h.  */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h.  */
11581 #include <$ac_header>
11582 _ACEOF
11583 if { (ac_try="$ac_cpp conftest.$ac_ext"
11584 case "(($ac_try" in
11585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586   *) ac_try_echo=$ac_try;;
11587 esac
11588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11589 $as_echo "$ac_try_echo") >&5
11590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11591   ac_status=$?
11592   grep -v '^ *+' conftest.er1 >conftest.err
11593   rm -f conftest.er1
11594   cat conftest.err >&5
11595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); } >/dev/null && {
11597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11598          test ! -s conftest.err
11599        }; then
11600   ac_header_preproc=yes
11601 else
11602   $as_echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11604
11605   ac_header_preproc=no
11606 fi
11607
11608 rm -f conftest.err conftest.$ac_ext
11609 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11610 $as_echo "$ac_header_preproc" >&6; }
11611
11612 # So?  What about this header?
11613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11614   yes:no: )
11615     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11616 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11617     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11619     ac_header_preproc=yes
11620     ;;
11621   no:yes:* )
11622     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11624     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11625 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11626     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11628     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11629 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11630     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11632     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11633 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11634     ( cat <<\_ASBOX
11635 ## ---------------------------------------- ##
11636 ## Report this to pgsql-bugs@postgresql.org ##
11637 ## ---------------------------------------- ##
11638 _ASBOX
11639      ) | sed "s/^/$as_me: WARNING:     /" >&2
11640     ;;
11641 esac
11642 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11643 $as_echo_n "checking for $ac_header... " >&6; }
11644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11645   $as_echo_n "(cached) " >&6
11646 else
11647   eval "$as_ac_Header=\$ac_header_preproc"
11648 fi
11649 ac_res=`eval 'as_val=${'$as_ac_Header'}
11650                  $as_echo "$as_val"'`
11651                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11652 $as_echo "$ac_res" >&6; }
11653
11654 fi
11655 as_val=`eval 'as_val=${'$as_ac_Header'}
11656                  $as_echo "$as_val"'`
11657    if test "x$as_val" = x""yes; then
11658   cat >>confdefs.h <<_ACEOF
11659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11660 _ACEOF
11661
11662 fi
11663
11664 done
11665
11666 fi
11667
11668 done
11669
11670 fi
11671
11672 done
11673
11674 fi
11675
11676 if test "$with_zlib" = yes; then
11677   if test "${ac_cv_header_zlib_h+set}" = set; then
11678   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11679 $as_echo_n "checking for zlib.h... " >&6; }
11680 if test "${ac_cv_header_zlib_h+set}" = set; then
11681   $as_echo_n "(cached) " >&6
11682 fi
11683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11684 $as_echo "$ac_cv_header_zlib_h" >&6; }
11685 else
11686   # Is the header compilable?
11687 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11688 $as_echo_n "checking zlib.h usability... " >&6; }
11689 cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h.  */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h.  */
11695 $ac_includes_default
11696 #include <zlib.h>
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702   *) ac_try_echo=$ac_try;;
11703 esac
11704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11705 $as_echo "$ac_try_echo") >&5
11706   (eval "$ac_compile") 2>conftest.er1
11707   ac_status=$?
11708   grep -v '^ *+' conftest.er1 >conftest.err
11709   rm -f conftest.er1
11710   cat conftest.err >&5
11711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); } && {
11713          test -z "$ac_c_werror_flag" ||
11714          test ! -s conftest.err
11715        } && test -s conftest.$ac_objext; then
11716   ac_header_compiler=yes
11717 else
11718   $as_echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721         ac_header_compiler=no
11722 fi
11723
11724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11726 $as_echo "$ac_header_compiler" >&6; }
11727
11728 # Is the header present?
11729 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11730 $as_echo_n "checking zlib.h presence... " >&6; }
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h.  */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h.  */
11737 #include <zlib.h>
11738 _ACEOF
11739 if { (ac_try="$ac_cpp conftest.$ac_ext"
11740 case "(($ac_try" in
11741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742   *) ac_try_echo=$ac_try;;
11743 esac
11744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11745 $as_echo "$ac_try_echo") >&5
11746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11747   ac_status=$?
11748   grep -v '^ *+' conftest.er1 >conftest.err
11749   rm -f conftest.er1
11750   cat conftest.err >&5
11751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); } >/dev/null && {
11753          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11754          test ! -s conftest.err
11755        }; then
11756   ac_header_preproc=yes
11757 else
11758   $as_echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761   ac_header_preproc=no
11762 fi
11763
11764 rm -f conftest.err conftest.$ac_ext
11765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11766 $as_echo "$ac_header_preproc" >&6; }
11767
11768 # So?  What about this header?
11769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11770   yes:no: )
11771     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11772 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11773     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11774 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11775     ac_header_preproc=yes
11776     ;;
11777   no:yes:* )
11778     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11779 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11780     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
11781 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
11782     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11783 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11784     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
11785 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11786     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11787 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11788     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11789 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11790     ( cat <<\_ASBOX
11791 ## ---------------------------------------- ##
11792 ## Report this to pgsql-bugs@postgresql.org ##
11793 ## ---------------------------------------- ##
11794 _ASBOX
11795      ) | sed "s/^/$as_me: WARNING:     /" >&2
11796     ;;
11797 esac
11798 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11799 $as_echo_n "checking for zlib.h... " >&6; }
11800 if test "${ac_cv_header_zlib_h+set}" = set; then
11801   $as_echo_n "(cached) " >&6
11802 else
11803   ac_cv_header_zlib_h=$ac_header_preproc
11804 fi
11805 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11806 $as_echo "$ac_cv_header_zlib_h" >&6; }
11807
11808 fi
11809 if test "x$ac_cv_header_zlib_h" = x""yes; then
11810   :
11811 else
11812   { { $as_echo "$as_me:$LINENO: error: zlib header not found
11813 If you have zlib already installed, see config.log for details on the
11814 failure.  It is possible the compiler isn't looking in the proper directory.
11815 Use --without-zlib to disable zlib support." >&5
11816 $as_echo "$as_me: error: zlib header not found
11817 If you have zlib already installed, see config.log for details on the
11818 failure.  It is possible the compiler isn't looking in the proper directory.
11819 Use --without-zlib to disable zlib support." >&2;}
11820    { (exit 1); exit 1; }; }
11821 fi
11822
11823
11824 fi
11825
11826 if test "$with_gssapi" = yes ; then
11827
11828 for ac_header in gssapi/gssapi.h
11829 do
11830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11833 $as_echo_n "checking for $ac_header... " >&6; }
11834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11835   $as_echo_n "(cached) " >&6
11836 fi
11837 ac_res=`eval 'as_val=${'$as_ac_Header'}
11838                  $as_echo "$as_val"'`
11839                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11840 $as_echo "$ac_res" >&6; }
11841 else
11842   # Is the header compilable?
11843 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11844 $as_echo_n "checking $ac_header usability... " >&6; }
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h.  */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h.  */
11851 $ac_includes_default
11852 #include <$ac_header>
11853 _ACEOF
11854 rm -f conftest.$ac_objext
11855 if { (ac_try="$ac_compile"
11856 case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11861 $as_echo "$ac_try_echo") >&5
11862   (eval "$ac_compile") 2>conftest.er1
11863   ac_status=$?
11864   grep -v '^ *+' conftest.er1 >conftest.err
11865   rm -f conftest.er1
11866   cat conftest.err >&5
11867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } && {
11869          test -z "$ac_c_werror_flag" ||
11870          test ! -s conftest.err
11871        } && test -s conftest.$ac_objext; then
11872   ac_header_compiler=yes
11873 else
11874   $as_echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877         ac_header_compiler=no
11878 fi
11879
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11882 $as_echo "$ac_header_compiler" >&6; }
11883
11884 # Is the header present?
11885 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11886 $as_echo_n "checking $ac_header presence... " >&6; }
11887 cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h.  */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h.  */
11893 #include <$ac_header>
11894 _ACEOF
11895 if { (ac_try="$ac_cpp conftest.$ac_ext"
11896 case "(($ac_try" in
11897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898   *) ac_try_echo=$ac_try;;
11899 esac
11900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11901 $as_echo "$ac_try_echo") >&5
11902   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } >/dev/null && {
11909          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11910          test ! -s conftest.err
11911        }; then
11912   ac_header_preproc=yes
11913 else
11914   $as_echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917   ac_header_preproc=no
11918 fi
11919
11920 rm -f conftest.err conftest.$ac_ext
11921 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11922 $as_echo "$ac_header_preproc" >&6; }
11923
11924 # So?  What about this header?
11925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11926   yes:no: )
11927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11930 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11931     ac_header_preproc=yes
11932     ;;
11933   no:yes:* )
11934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11936     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11937 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11938     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11939 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11941 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11944     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11945 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11946     ( cat <<\_ASBOX
11947 ## ---------------------------------------- ##
11948 ## Report this to pgsql-bugs@postgresql.org ##
11949 ## ---------------------------------------- ##
11950 _ASBOX
11951      ) | sed "s/^/$as_me: WARNING:     /" >&2
11952     ;;
11953 esac
11954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11955 $as_echo_n "checking for $ac_header... " >&6; }
11956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11957   $as_echo_n "(cached) " >&6
11958 else
11959   eval "$as_ac_Header=\$ac_header_preproc"
11960 fi
11961 ac_res=`eval 'as_val=${'$as_ac_Header'}
11962                  $as_echo "$as_val"'`
11963                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11964 $as_echo "$ac_res" >&6; }
11965
11966 fi
11967 as_val=`eval 'as_val=${'$as_ac_Header'}
11968                  $as_echo "$as_val"'`
11969    if test "x$as_val" = x""yes; then
11970   cat >>confdefs.h <<_ACEOF
11971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11972 _ACEOF
11973
11974 else
11975
11976 for ac_header in gssapi.h
11977 do
11978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11981 $as_echo_n "checking for $ac_header... " >&6; }
11982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11983   $as_echo_n "(cached) " >&6
11984 fi
11985 ac_res=`eval 'as_val=${'$as_ac_Header'}
11986                  $as_echo "$as_val"'`
11987                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11988 $as_echo "$ac_res" >&6; }
11989 else
11990   # Is the header compilable?
11991 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11992 $as_echo_n "checking $ac_header usability... " >&6; }
11993 cat >conftest.$ac_ext <<_ACEOF
11994 /* confdefs.h.  */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h.  */
11999 $ac_includes_default
12000 #include <$ac_header>
12001 _ACEOF
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010   (eval "$ac_compile") 2>conftest.er1
12011   ac_status=$?
12012   grep -v '^ *+' conftest.er1 >conftest.err
12013   rm -f conftest.er1
12014   cat conftest.err >&5
12015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); } && {
12017          test -z "$ac_c_werror_flag" ||
12018          test ! -s conftest.err
12019        } && test -s conftest.$ac_objext; then
12020   ac_header_compiler=yes
12021 else
12022   $as_echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025         ac_header_compiler=no
12026 fi
12027
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12030 $as_echo "$ac_header_compiler" >&6; }
12031
12032 # Is the header present?
12033 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12034 $as_echo_n "checking $ac_header presence... " >&6; }
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 #include <$ac_header>
12042 _ACEOF
12043 if { (ac_try="$ac_cpp conftest.$ac_ext"
12044 case "(($ac_try" in
12045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046   *) ac_try_echo=$ac_try;;
12047 esac
12048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12049 $as_echo "$ac_try_echo") >&5
12050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12051   ac_status=$?
12052   grep -v '^ *+' conftest.er1 >conftest.err
12053   rm -f conftest.er1
12054   cat conftest.err >&5
12055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } >/dev/null && {
12057          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12058          test ! -s conftest.err
12059        }; then
12060   ac_header_preproc=yes
12061 else
12062   $as_echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065   ac_header_preproc=no
12066 fi
12067
12068 rm -f conftest.err conftest.$ac_ext
12069 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12070 $as_echo "$ac_header_preproc" >&6; }
12071
12072 # So?  What about this header?
12073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12074   yes:no: )
12075     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12076 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12077     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12078 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12079     ac_header_preproc=yes
12080     ;;
12081   no:yes:* )
12082     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12083 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12084     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12085 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12087 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12089 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12092     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12093 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12094     ( cat <<\_ASBOX
12095 ## ---------------------------------------- ##
12096 ## Report this to pgsql-bugs@postgresql.org ##
12097 ## ---------------------------------------- ##
12098 _ASBOX
12099      ) | sed "s/^/$as_me: WARNING:     /" >&2
12100     ;;
12101 esac
12102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12103 $as_echo_n "checking for $ac_header... " >&6; }
12104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12105   $as_echo_n "(cached) " >&6
12106 else
12107   eval "$as_ac_Header=\$ac_header_preproc"
12108 fi
12109 ac_res=`eval 'as_val=${'$as_ac_Header'}
12110                  $as_echo "$as_val"'`
12111                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12112 $as_echo "$ac_res" >&6; }
12113
12114 fi
12115 as_val=`eval 'as_val=${'$as_ac_Header'}
12116                  $as_echo "$as_val"'`
12117    if test "x$as_val" = x""yes; then
12118   cat >>confdefs.h <<_ACEOF
12119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12120 _ACEOF
12121
12122 else
12123   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12124 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12125    { (exit 1); exit 1; }; }
12126 fi
12127
12128 done
12129
12130 fi
12131
12132 done
12133
12134 fi
12135
12136 if test "$with_krb5" = yes ; then
12137   if test "${ac_cv_header_krb5_h+set}" = set; then
12138   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12139 $as_echo_n "checking for krb5.h... " >&6; }
12140 if test "${ac_cv_header_krb5_h+set}" = set; then
12141   $as_echo_n "(cached) " >&6
12142 fi
12143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12144 $as_echo "$ac_cv_header_krb5_h" >&6; }
12145 else
12146   # Is the header compilable?
12147 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12148 $as_echo_n "checking krb5.h usability... " >&6; }
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h.  */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h.  */
12155 $ac_includes_default
12156 #include <krb5.h>
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (ac_try="$ac_compile"
12160 case "(($ac_try" in
12161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162   *) ac_try_echo=$ac_try;;
12163 esac
12164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12165 $as_echo "$ac_try_echo") >&5
12166   (eval "$ac_compile") 2>conftest.er1
12167   ac_status=$?
12168   grep -v '^ *+' conftest.er1 >conftest.err
12169   rm -f conftest.er1
12170   cat conftest.err >&5
12171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); } && {
12173          test -z "$ac_c_werror_flag" ||
12174          test ! -s conftest.err
12175        } && test -s conftest.$ac_objext; then
12176   ac_header_compiler=yes
12177 else
12178   $as_echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12180
12181         ac_header_compiler=no
12182 fi
12183
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12186 $as_echo "$ac_header_compiler" >&6; }
12187
12188 # Is the header present?
12189 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12190 $as_echo_n "checking krb5.h presence... " >&6; }
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h.  */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h.  */
12197 #include <krb5.h>
12198 _ACEOF
12199 if { (ac_try="$ac_cpp conftest.$ac_ext"
12200 case "(($ac_try" in
12201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202   *) ac_try_echo=$ac_try;;
12203 esac
12204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12205 $as_echo "$ac_try_echo") >&5
12206   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12207   ac_status=$?
12208   grep -v '^ *+' conftest.er1 >conftest.err
12209   rm -f conftest.er1
12210   cat conftest.err >&5
12211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); } >/dev/null && {
12213          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12214          test ! -s conftest.err
12215        }; then
12216   ac_header_preproc=yes
12217 else
12218   $as_echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12220
12221   ac_header_preproc=no
12222 fi
12223
12224 rm -f conftest.err conftest.$ac_ext
12225 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12226 $as_echo "$ac_header_preproc" >&6; }
12227
12228 # So?  What about this header?
12229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12230   yes:no: )
12231     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12232 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12233     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12234 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12235     ac_header_preproc=yes
12236     ;;
12237   no:yes:* )
12238     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12239 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12240     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12241 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12242     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12243 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12244     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12245 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12246     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12247 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12248     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12249 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12250     ( cat <<\_ASBOX
12251 ## ---------------------------------------- ##
12252 ## Report this to pgsql-bugs@postgresql.org ##
12253 ## ---------------------------------------- ##
12254 _ASBOX
12255      ) | sed "s/^/$as_me: WARNING:     /" >&2
12256     ;;
12257 esac
12258 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12259 $as_echo_n "checking for krb5.h... " >&6; }
12260 if test "${ac_cv_header_krb5_h+set}" = set; then
12261   $as_echo_n "(cached) " >&6
12262 else
12263   ac_cv_header_krb5_h=$ac_header_preproc
12264 fi
12265 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12266 $as_echo "$ac_cv_header_krb5_h" >&6; }
12267
12268 fi
12269 if test "x$ac_cv_header_krb5_h" = x""yes; then
12270   :
12271 else
12272   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12273 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12274    { (exit 1); exit 1; }; }
12275 fi
12276
12277
12278 fi
12279
12280 if test "$with_openssl" = yes ; then
12281   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12282   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12283 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12284 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12285   $as_echo_n "(cached) " >&6
12286 fi
12287 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12288 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12289 else
12290   # Is the header compilable?
12291 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12292 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12293 cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h.  */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h.  */
12299 $ac_includes_default
12300 #include <openssl/ssl.h>
12301 _ACEOF
12302 rm -f conftest.$ac_objext
12303 if { (ac_try="$ac_compile"
12304 case "(($ac_try" in
12305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306   *) ac_try_echo=$ac_try;;
12307 esac
12308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12309 $as_echo "$ac_try_echo") >&5
12310   (eval "$ac_compile") 2>conftest.er1
12311   ac_status=$?
12312   grep -v '^ *+' conftest.er1 >conftest.err
12313   rm -f conftest.er1
12314   cat conftest.err >&5
12315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); } && {
12317          test -z "$ac_c_werror_flag" ||
12318          test ! -s conftest.err
12319        } && test -s conftest.$ac_objext; then
12320   ac_header_compiler=yes
12321 else
12322   $as_echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325         ac_header_compiler=no
12326 fi
12327
12328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12329 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12330 $as_echo "$ac_header_compiler" >&6; }
12331
12332 # Is the header present?
12333 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12334 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12335 cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h.  */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h.  */
12341 #include <openssl/ssl.h>
12342 _ACEOF
12343 if { (ac_try="$ac_cpp conftest.$ac_ext"
12344 case "(($ac_try" in
12345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346   *) ac_try_echo=$ac_try;;
12347 esac
12348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12349 $as_echo "$ac_try_echo") >&5
12350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } >/dev/null && {
12357          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12358          test ! -s conftest.err
12359        }; then
12360   ac_header_preproc=yes
12361 else
12362   $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12364
12365   ac_header_preproc=no
12366 fi
12367
12368 rm -f conftest.err conftest.$ac_ext
12369 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12370 $as_echo "$ac_header_preproc" >&6; }
12371
12372 # So?  What about this header?
12373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12374   yes:no: )
12375     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12376 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12377     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12378 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12379     ac_header_preproc=yes
12380     ;;
12381   no:yes:* )
12382     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12383 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12384     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12385 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12386     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12387 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12388     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12389 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12390     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12391 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12392     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12393 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12394     ( cat <<\_ASBOX
12395 ## ---------------------------------------- ##
12396 ## Report this to pgsql-bugs@postgresql.org ##
12397 ## ---------------------------------------- ##
12398 _ASBOX
12399      ) | sed "s/^/$as_me: WARNING:     /" >&2
12400     ;;
12401 esac
12402 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12403 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12404 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12405   $as_echo_n "(cached) " >&6
12406 else
12407   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12408 fi
12409 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12410 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12411
12412 fi
12413 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12414   :
12415 else
12416   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12417 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12418    { (exit 1); exit 1; }; }
12419 fi
12420
12421
12422   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12423   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12424 $as_echo_n "checking for openssl/err.h... " >&6; }
12425 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12426   $as_echo_n "(cached) " >&6
12427 fi
12428 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12429 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12430 else
12431   # Is the header compilable?
12432 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12433 $as_echo_n "checking openssl/err.h usability... " >&6; }
12434 cat >conftest.$ac_ext <<_ACEOF
12435 /* confdefs.h.  */
12436 _ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h.  */
12440 $ac_includes_default
12441 #include <openssl/err.h>
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (ac_try="$ac_compile"
12445 case "(($ac_try" in
12446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447   *) ac_try_echo=$ac_try;;
12448 esac
12449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12450 $as_echo "$ac_try_echo") >&5
12451   (eval "$ac_compile") 2>conftest.er1
12452   ac_status=$?
12453   grep -v '^ *+' conftest.er1 >conftest.err
12454   rm -f conftest.er1
12455   cat conftest.err >&5
12456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); } && {
12458          test -z "$ac_c_werror_flag" ||
12459          test ! -s conftest.err
12460        } && test -s conftest.$ac_objext; then
12461   ac_header_compiler=yes
12462 else
12463   $as_echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466         ac_header_compiler=no
12467 fi
12468
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12471 $as_echo "$ac_header_compiler" >&6; }
12472
12473 # Is the header present?
12474 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12475 $as_echo_n "checking openssl/err.h presence... " >&6; }
12476 cat >conftest.$ac_ext <<_ACEOF
12477 /* confdefs.h.  */
12478 _ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h.  */
12482 #include <openssl/err.h>
12483 _ACEOF
12484 if { (ac_try="$ac_cpp conftest.$ac_ext"
12485 case "(($ac_try" in
12486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487   *) ac_try_echo=$ac_try;;
12488 esac
12489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12490 $as_echo "$ac_try_echo") >&5
12491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12492   ac_status=$?
12493   grep -v '^ *+' conftest.er1 >conftest.err
12494   rm -f conftest.er1
12495   cat conftest.err >&5
12496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } >/dev/null && {
12498          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12499          test ! -s conftest.err
12500        }; then
12501   ac_header_preproc=yes
12502 else
12503   $as_echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506   ac_header_preproc=no
12507 fi
12508
12509 rm -f conftest.err conftest.$ac_ext
12510 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12511 $as_echo "$ac_header_preproc" >&6; }
12512
12513 # So?  What about this header?
12514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12515   yes:no: )
12516     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12517 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12518     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12519 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12520     ac_header_preproc=yes
12521     ;;
12522   no:yes:* )
12523     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12524 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12525     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12526 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12527     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12528 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12529     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12530 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12531     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12532 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12533     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12534 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12535     ( cat <<\_ASBOX
12536 ## ---------------------------------------- ##
12537 ## Report this to pgsql-bugs@postgresql.org ##
12538 ## ---------------------------------------- ##
12539 _ASBOX
12540      ) | sed "s/^/$as_me: WARNING:     /" >&2
12541     ;;
12542 esac
12543 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12544 $as_echo_n "checking for openssl/err.h... " >&6; }
12545 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12546   $as_echo_n "(cached) " >&6
12547 else
12548   ac_cv_header_openssl_err_h=$ac_header_preproc
12549 fi
12550 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12551 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12552
12553 fi
12554 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12555   :
12556 else
12557   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12558 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12559    { (exit 1); exit 1; }; }
12560 fi
12561
12562
12563
12564 for ac_func in ERR_set_mark
12565 do
12566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12567 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12568 $as_echo_n "checking for $ac_func... " >&6; }
12569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12570   $as_echo_n "(cached) " >&6
12571 else
12572   cat >conftest.$ac_ext <<_ACEOF
12573 /* confdefs.h.  */
12574 _ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h.  */
12578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12580 #define $ac_func innocuous_$ac_func
12581
12582 /* System header to define __stub macros and hopefully few prototypes,
12583     which can conflict with char $ac_func (); below.
12584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12585     <limits.h> exists even on freestanding compilers.  */
12586
12587 #ifdef __STDC__
12588 # include <limits.h>
12589 #else
12590 # include <assert.h>
12591 #endif
12592
12593 #undef $ac_func
12594
12595 /* Override any GCC internal prototype to avoid an error.
12596    Use char because int might match the return type of a GCC
12597    builtin and then its argument prototype would still apply.  */
12598 #ifdef __cplusplus
12599 extern "C"
12600 #endif
12601 char $ac_func ();
12602 /* The GNU C library defines this for functions which it implements
12603     to always fail with ENOSYS.  Some functions are actually named
12604     something starting with __ and the normal name is an alias.  */
12605 #if defined __stub_$ac_func || defined __stub___$ac_func
12606 choke me
12607 #endif
12608
12609 int
12610 main ()
12611 {
12612 return $ac_func ();
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621   *) ac_try_echo=$ac_try;;
12622 esac
12623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12624 $as_echo "$ac_try_echo") >&5
12625   (eval "$ac_link") 2>conftest.er1
12626   ac_status=$?
12627   grep -v '^ *+' conftest.er1 >conftest.err
12628   rm -f conftest.er1
12629   cat conftest.err >&5
12630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } && {
12632          test -z "$ac_c_werror_flag" ||
12633          test ! -s conftest.err
12634        } && test -s conftest$ac_exeext && {
12635          test "$cross_compiling" = yes ||
12636          $as_test_x conftest$ac_exeext
12637        }; then
12638   eval "$as_ac_var=yes"
12639 else
12640   $as_echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643         eval "$as_ac_var=no"
12644 fi
12645
12646 rm -rf conftest.dSYM
12647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12648       conftest$ac_exeext conftest.$ac_ext
12649 fi
12650 ac_res=`eval 'as_val=${'$as_ac_var'}
12651                  $as_echo "$as_val"'`
12652                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12653 $as_echo "$ac_res" >&6; }
12654 as_val=`eval 'as_val=${'$as_ac_var'}
12655                  $as_echo "$as_val"'`
12656    if test "x$as_val" = x""yes; then
12657   cat >>confdefs.h <<_ACEOF
12658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12659 _ACEOF
12660
12661 fi
12662 done
12663
12664 fi
12665
12666 if test "$with_pam" = yes ; then
12667
12668 for ac_header in security/pam_appl.h
12669 do
12670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12672   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12673 $as_echo_n "checking for $ac_header... " >&6; }
12674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12675   $as_echo_n "(cached) " >&6
12676 fi
12677 ac_res=`eval 'as_val=${'$as_ac_Header'}
12678                  $as_echo "$as_val"'`
12679                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12680 $as_echo "$ac_res" >&6; }
12681 else
12682   # Is the header compilable?
12683 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12684 $as_echo_n "checking $ac_header usability... " >&6; }
12685 cat >conftest.$ac_ext <<_ACEOF
12686 /* confdefs.h.  */
12687 _ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h.  */
12691 $ac_includes_default
12692 #include <$ac_header>
12693 _ACEOF
12694 rm -f conftest.$ac_objext
12695 if { (ac_try="$ac_compile"
12696 case "(($ac_try" in
12697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698   *) ac_try_echo=$ac_try;;
12699 esac
12700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12701 $as_echo "$ac_try_echo") >&5
12702   (eval "$ac_compile") 2>conftest.er1
12703   ac_status=$?
12704   grep -v '^ *+' conftest.er1 >conftest.err
12705   rm -f conftest.er1
12706   cat conftest.err >&5
12707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } && {
12709          test -z "$ac_c_werror_flag" ||
12710          test ! -s conftest.err
12711        } && test -s conftest.$ac_objext; then
12712   ac_header_compiler=yes
12713 else
12714   $as_echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12716
12717         ac_header_compiler=no
12718 fi
12719
12720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12722 $as_echo "$ac_header_compiler" >&6; }
12723
12724 # Is the header present?
12725 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12726 $as_echo_n "checking $ac_header presence... " >&6; }
12727 cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h.  */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h.  */
12733 #include <$ac_header>
12734 _ACEOF
12735 if { (ac_try="$ac_cpp conftest.$ac_ext"
12736 case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12741 $as_echo "$ac_try_echo") >&5
12742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12743   ac_status=$?
12744   grep -v '^ *+' conftest.er1 >conftest.err
12745   rm -f conftest.er1
12746   cat conftest.err >&5
12747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); } >/dev/null && {
12749          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12750          test ! -s conftest.err
12751        }; then
12752   ac_header_preproc=yes
12753 else
12754   $as_echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12756
12757   ac_header_preproc=no
12758 fi
12759
12760 rm -f conftest.err conftest.$ac_ext
12761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12762 $as_echo "$ac_header_preproc" >&6; }
12763
12764 # So?  What about this header?
12765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12766   yes:no: )
12767     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12768 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12769     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12770 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12771     ac_header_preproc=yes
12772     ;;
12773   no:yes:* )
12774     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12775 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12776     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12777 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12778     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12779 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12780     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12781 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12782     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12783 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12784     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12785 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12786     ( cat <<\_ASBOX
12787 ## ---------------------------------------- ##
12788 ## Report this to pgsql-bugs@postgresql.org ##
12789 ## ---------------------------------------- ##
12790 _ASBOX
12791      ) | sed "s/^/$as_me: WARNING:     /" >&2
12792     ;;
12793 esac
12794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12795 $as_echo_n "checking for $ac_header... " >&6; }
12796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12797   $as_echo_n "(cached) " >&6
12798 else
12799   eval "$as_ac_Header=\$ac_header_preproc"
12800 fi
12801 ac_res=`eval 'as_val=${'$as_ac_Header'}
12802                  $as_echo "$as_val"'`
12803                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12804 $as_echo "$ac_res" >&6; }
12805
12806 fi
12807 as_val=`eval 'as_val=${'$as_ac_Header'}
12808                  $as_echo "$as_val"'`
12809    if test "x$as_val" = x""yes; then
12810   cat >>confdefs.h <<_ACEOF
12811 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12812 _ACEOF
12813
12814 else
12815
12816 for ac_header in pam/pam_appl.h
12817 do
12818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12820   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12821 $as_echo_n "checking for $ac_header... " >&6; }
12822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12823   $as_echo_n "(cached) " >&6
12824 fi
12825 ac_res=`eval 'as_val=${'$as_ac_Header'}
12826                  $as_echo "$as_val"'`
12827                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12828 $as_echo "$ac_res" >&6; }
12829 else
12830   # Is the header compilable?
12831 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12832 $as_echo_n "checking $ac_header usability... " >&6; }
12833 cat >conftest.$ac_ext <<_ACEOF
12834 /* confdefs.h.  */
12835 _ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h.  */
12839 $ac_includes_default
12840 #include <$ac_header>
12841 _ACEOF
12842 rm -f conftest.$ac_objext
12843 if { (ac_try="$ac_compile"
12844 case "(($ac_try" in
12845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846   *) ac_try_echo=$ac_try;;
12847 esac
12848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12849 $as_echo "$ac_try_echo") >&5
12850   (eval "$ac_compile") 2>conftest.er1
12851   ac_status=$?
12852   grep -v '^ *+' conftest.er1 >conftest.err
12853   rm -f conftest.er1
12854   cat conftest.err >&5
12855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); } && {
12857          test -z "$ac_c_werror_flag" ||
12858          test ! -s conftest.err
12859        } && test -s conftest.$ac_objext; then
12860   ac_header_compiler=yes
12861 else
12862   $as_echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865         ac_header_compiler=no
12866 fi
12867
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12870 $as_echo "$ac_header_compiler" >&6; }
12871
12872 # Is the header present?
12873 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12874 $as_echo_n "checking $ac_header presence... " >&6; }
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881 #include <$ac_header>
12882 _ACEOF
12883 if { (ac_try="$ac_cpp conftest.$ac_ext"
12884 case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12889 $as_echo "$ac_try_echo") >&5
12890   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12891   ac_status=$?
12892   grep -v '^ *+' conftest.er1 >conftest.err
12893   rm -f conftest.er1
12894   cat conftest.err >&5
12895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); } >/dev/null && {
12897          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12898          test ! -s conftest.err
12899        }; then
12900   ac_header_preproc=yes
12901 else
12902   $as_echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905   ac_header_preproc=no
12906 fi
12907
12908 rm -f conftest.err conftest.$ac_ext
12909 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12910 $as_echo "$ac_header_preproc" >&6; }
12911
12912 # So?  What about this header?
12913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12914   yes:no: )
12915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12916 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12917     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12919     ac_header_preproc=yes
12920     ;;
12921   no:yes:* )
12922     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12923 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12924     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12925 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12926     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12927 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12928     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12929 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12930     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12933 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12934     ( cat <<\_ASBOX
12935 ## ---------------------------------------- ##
12936 ## Report this to pgsql-bugs@postgresql.org ##
12937 ## ---------------------------------------- ##
12938 _ASBOX
12939      ) | sed "s/^/$as_me: WARNING:     /" >&2
12940     ;;
12941 esac
12942 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12943 $as_echo_n "checking for $ac_header... " >&6; }
12944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12945   $as_echo_n "(cached) " >&6
12946 else
12947   eval "$as_ac_Header=\$ac_header_preproc"
12948 fi
12949 ac_res=`eval 'as_val=${'$as_ac_Header'}
12950                  $as_echo "$as_val"'`
12951                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12952 $as_echo "$ac_res" >&6; }
12953
12954 fi
12955 as_val=`eval 'as_val=${'$as_ac_Header'}
12956                  $as_echo "$as_val"'`
12957    if test "x$as_val" = x""yes; then
12958   cat >>confdefs.h <<_ACEOF
12959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12960 _ACEOF
12961
12962 else
12963   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12964 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12965    { (exit 1); exit 1; }; }
12966 fi
12967
12968 done
12969
12970 fi
12971
12972 done
12973
12974 fi
12975
12976 if test "$with_libxml" = yes ; then
12977   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12978   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12979 $as_echo_n "checking for libxml/parser.h... " >&6; }
12980 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12981   $as_echo_n "(cached) " >&6
12982 fi
12983 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12984 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12985 else
12986   # Is the header compilable?
12987 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12988 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12989 cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h.  */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h.  */
12995 $ac_includes_default
12996 #include <libxml/parser.h>
12997 _ACEOF
12998 rm -f conftest.$ac_objext
12999 if { (ac_try="$ac_compile"
13000 case "(($ac_try" in
13001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002   *) ac_try_echo=$ac_try;;
13003 esac
13004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13005 $as_echo "$ac_try_echo") >&5
13006   (eval "$ac_compile") 2>conftest.er1
13007   ac_status=$?
13008   grep -v '^ *+' conftest.er1 >conftest.err
13009   rm -f conftest.er1
13010   cat conftest.err >&5
13011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } && {
13013          test -z "$ac_c_werror_flag" ||
13014          test ! -s conftest.err
13015        } && test -s conftest.$ac_objext; then
13016   ac_header_compiler=yes
13017 else
13018   $as_echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13020
13021         ac_header_compiler=no
13022 fi
13023
13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13026 $as_echo "$ac_header_compiler" >&6; }
13027
13028 # Is the header present?
13029 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13030 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13031 cat >conftest.$ac_ext <<_ACEOF
13032 /* confdefs.h.  */
13033 _ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h.  */
13037 #include <libxml/parser.h>
13038 _ACEOF
13039 if { (ac_try="$ac_cpp conftest.$ac_ext"
13040 case "(($ac_try" in
13041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042   *) ac_try_echo=$ac_try;;
13043 esac
13044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13045 $as_echo "$ac_try_echo") >&5
13046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13047   ac_status=$?
13048   grep -v '^ *+' conftest.er1 >conftest.err
13049   rm -f conftest.er1
13050   cat conftest.err >&5
13051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } >/dev/null && {
13053          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13054          test ! -s conftest.err
13055        }; then
13056   ac_header_preproc=yes
13057 else
13058   $as_echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13060
13061   ac_header_preproc=no
13062 fi
13063
13064 rm -f conftest.err conftest.$ac_ext
13065 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13066 $as_echo "$ac_header_preproc" >&6; }
13067
13068 # So?  What about this header?
13069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13070   yes:no: )
13071     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13072 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13073     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13074 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13075     ac_header_preproc=yes
13076     ;;
13077   no:yes:* )
13078     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13079 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13080     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13081 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13082     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13083 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13084     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13085 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13086     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13087 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13088     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13089 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13090     ( cat <<\_ASBOX
13091 ## ---------------------------------------- ##
13092 ## Report this to pgsql-bugs@postgresql.org ##
13093 ## ---------------------------------------- ##
13094 _ASBOX
13095      ) | sed "s/^/$as_me: WARNING:     /" >&2
13096     ;;
13097 esac
13098 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13099 $as_echo_n "checking for libxml/parser.h... " >&6; }
13100 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13101   $as_echo_n "(cached) " >&6
13102 else
13103   ac_cv_header_libxml_parser_h=$ac_header_preproc
13104 fi
13105 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13106 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13107
13108 fi
13109 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13110   :
13111 else
13112   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13113 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13114    { (exit 1); exit 1; }; }
13115 fi
13116
13117
13118 fi
13119
13120 if test "$with_libxslt" = yes ; then
13121   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13122   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13123 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13124 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13125   $as_echo_n "(cached) " >&6
13126 fi
13127 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13128 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13129 else
13130   # Is the header compilable?
13131 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13132 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13133 cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h.  */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h.  */
13139 $ac_includes_default
13140 #include <libxslt/xslt.h>
13141 _ACEOF
13142 rm -f conftest.$ac_objext
13143 if { (ac_try="$ac_compile"
13144 case "(($ac_try" in
13145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146   *) ac_try_echo=$ac_try;;
13147 esac
13148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13149 $as_echo "$ac_try_echo") >&5
13150   (eval "$ac_compile") 2>conftest.er1
13151   ac_status=$?
13152   grep -v '^ *+' conftest.er1 >conftest.err
13153   rm -f conftest.er1
13154   cat conftest.err >&5
13155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156   (exit $ac_status); } && {
13157          test -z "$ac_c_werror_flag" ||
13158          test ! -s conftest.err
13159        } && test -s conftest.$ac_objext; then
13160   ac_header_compiler=yes
13161 else
13162   $as_echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165         ac_header_compiler=no
13166 fi
13167
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13170 $as_echo "$ac_header_compiler" >&6; }
13171
13172 # Is the header present?
13173 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13174 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13175 cat >conftest.$ac_ext <<_ACEOF
13176 /* confdefs.h.  */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h.  */
13181 #include <libxslt/xslt.h>
13182 _ACEOF
13183 if { (ac_try="$ac_cpp conftest.$ac_ext"
13184 case "(($ac_try" in
13185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186   *) ac_try_echo=$ac_try;;
13187 esac
13188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13189 $as_echo "$ac_try_echo") >&5
13190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13191   ac_status=$?
13192   grep -v '^ *+' conftest.er1 >conftest.err
13193   rm -f conftest.er1
13194   cat conftest.err >&5
13195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); } >/dev/null && {
13197          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13198          test ! -s conftest.err
13199        }; then
13200   ac_header_preproc=yes
13201 else
13202   $as_echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205   ac_header_preproc=no
13206 fi
13207
13208 rm -f conftest.err conftest.$ac_ext
13209 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13210 $as_echo "$ac_header_preproc" >&6; }
13211
13212 # So?  What about this header?
13213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13214   yes:no: )
13215     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13216 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13217     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13218 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13219     ac_header_preproc=yes
13220     ;;
13221   no:yes:* )
13222     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13223 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13224     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13225 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13226     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13227 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13228     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13229 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13230     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13231 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13232     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13233 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13234     ( cat <<\_ASBOX
13235 ## ---------------------------------------- ##
13236 ## Report this to pgsql-bugs@postgresql.org ##
13237 ## ---------------------------------------- ##
13238 _ASBOX
13239      ) | sed "s/^/$as_me: WARNING:     /" >&2
13240     ;;
13241 esac
13242 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13243 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13244 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13245   $as_echo_n "(cached) " >&6
13246 else
13247   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13248 fi
13249 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13250 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13251
13252 fi
13253 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13254   :
13255 else
13256   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13257 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13258    { (exit 1); exit 1; }; }
13259 fi
13260
13261
13262 fi
13263
13264 if test "$with_ldap" = yes ; then
13265   if test "$PORTNAME" != "win32"; then
13266
13267 for ac_header in ldap.h
13268 do
13269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13271   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13272 $as_echo_n "checking for $ac_header... " >&6; }
13273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13274   $as_echo_n "(cached) " >&6
13275 fi
13276 ac_res=`eval 'as_val=${'$as_ac_Header'}
13277                  $as_echo "$as_val"'`
13278                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13279 $as_echo "$ac_res" >&6; }
13280 else
13281   # Is the header compilable?
13282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13283 $as_echo_n "checking $ac_header usability... " >&6; }
13284 cat >conftest.$ac_ext <<_ACEOF
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290 $ac_includes_default
13291 #include <$ac_header>
13292 _ACEOF
13293 rm -f conftest.$ac_objext
13294 if { (ac_try="$ac_compile"
13295 case "(($ac_try" in
13296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297   *) ac_try_echo=$ac_try;;
13298 esac
13299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13300 $as_echo "$ac_try_echo") >&5
13301   (eval "$ac_compile") 2>conftest.er1
13302   ac_status=$?
13303   grep -v '^ *+' conftest.er1 >conftest.err
13304   rm -f conftest.er1
13305   cat conftest.err >&5
13306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); } && {
13308          test -z "$ac_c_werror_flag" ||
13309          test ! -s conftest.err
13310        } && test -s conftest.$ac_objext; then
13311   ac_header_compiler=yes
13312 else
13313   $as_echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316         ac_header_compiler=no
13317 fi
13318
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13321 $as_echo "$ac_header_compiler" >&6; }
13322
13323 # Is the header present?
13324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13325 $as_echo_n "checking $ac_header presence... " >&6; }
13326 cat >conftest.$ac_ext <<_ACEOF
13327 /* confdefs.h.  */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h.  */
13332 #include <$ac_header>
13333 _ACEOF
13334 if { (ac_try="$ac_cpp conftest.$ac_ext"
13335 case "(($ac_try" in
13336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337   *) ac_try_echo=$ac_try;;
13338 esac
13339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13340 $as_echo "$ac_try_echo") >&5
13341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13342   ac_status=$?
13343   grep -v '^ *+' conftest.er1 >conftest.err
13344   rm -f conftest.er1
13345   cat conftest.err >&5
13346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); } >/dev/null && {
13348          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13349          test ! -s conftest.err
13350        }; then
13351   ac_header_preproc=yes
13352 else
13353   $as_echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356   ac_header_preproc=no
13357 fi
13358
13359 rm -f conftest.err conftest.$ac_ext
13360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13361 $as_echo "$ac_header_preproc" >&6; }
13362
13363 # So?  What about this header?
13364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13365   yes:no: )
13366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13370     ac_header_preproc=yes
13371     ;;
13372   no:yes:* )
13373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13376 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13380 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13385     ( cat <<\_ASBOX
13386 ## ---------------------------------------- ##
13387 ## Report this to pgsql-bugs@postgresql.org ##
13388 ## ---------------------------------------- ##
13389 _ASBOX
13390      ) | sed "s/^/$as_me: WARNING:     /" >&2
13391     ;;
13392 esac
13393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13394 $as_echo_n "checking for $ac_header... " >&6; }
13395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13396   $as_echo_n "(cached) " >&6
13397 else
13398   eval "$as_ac_Header=\$ac_header_preproc"
13399 fi
13400 ac_res=`eval 'as_val=${'$as_ac_Header'}
13401                  $as_echo "$as_val"'`
13402                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13403 $as_echo "$ac_res" >&6; }
13404
13405 fi
13406 as_val=`eval 'as_val=${'$as_ac_Header'}
13407                  $as_echo "$as_val"'`
13408    if test "x$as_val" = x""yes; then
13409   cat >>confdefs.h <<_ACEOF
13410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13411 _ACEOF
13412
13413 else
13414   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13415 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13416    { (exit 1); exit 1; }; }
13417 fi
13418
13419 done
13420
13421   else
13422
13423 for ac_header in winldap.h
13424 do
13425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13427 $as_echo_n "checking for $ac_header... " >&6; }
13428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13429   $as_echo_n "(cached) " >&6
13430 else
13431   cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h.  */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h.  */
13437 $ac_includes_default
13438 #include <windows.h>
13439
13440
13441 #include <$ac_header>
13442 _ACEOF
13443 rm -f conftest.$ac_objext
13444 if { (ac_try="$ac_compile"
13445 case "(($ac_try" in
13446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447   *) ac_try_echo=$ac_try;;
13448 esac
13449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13450 $as_echo "$ac_try_echo") >&5
13451   (eval "$ac_compile") 2>conftest.er1
13452   ac_status=$?
13453   grep -v '^ *+' conftest.er1 >conftest.err
13454   rm -f conftest.er1
13455   cat conftest.err >&5
13456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); } && {
13458          test -z "$ac_c_werror_flag" ||
13459          test ! -s conftest.err
13460        } && test -s conftest.$ac_objext; then
13461   eval "$as_ac_Header=yes"
13462 else
13463   $as_echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13465
13466         eval "$as_ac_Header=no"
13467 fi
13468
13469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13470 fi
13471 ac_res=`eval 'as_val=${'$as_ac_Header'}
13472                  $as_echo "$as_val"'`
13473                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13474 $as_echo "$ac_res" >&6; }
13475 as_val=`eval 'as_val=${'$as_ac_Header'}
13476                  $as_echo "$as_val"'`
13477    if test "x$as_val" = x""yes; then
13478   cat >>confdefs.h <<_ACEOF
13479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13480 _ACEOF
13481
13482 else
13483   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13484 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13485    { (exit 1); exit 1; }; }
13486 fi
13487
13488 done
13489
13490   fi
13491 fi
13492
13493 if test "$with_bonjour" = yes ; then
13494   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13495   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13496 $as_echo_n "checking for dns_sd.h... " >&6; }
13497 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13498   $as_echo_n "(cached) " >&6
13499 fi
13500 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13501 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13502 else
13503   # Is the header compilable?
13504 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13505 $as_echo_n "checking dns_sd.h usability... " >&6; }
13506 cat >conftest.$ac_ext <<_ACEOF
13507 /* confdefs.h.  */
13508 _ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h.  */
13512 $ac_includes_default
13513 #include <dns_sd.h>
13514 _ACEOF
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13522 $as_echo "$ac_try_echo") >&5
13523   (eval "$ac_compile") 2>conftest.er1
13524   ac_status=$?
13525   grep -v '^ *+' conftest.er1 >conftest.err
13526   rm -f conftest.er1
13527   cat conftest.err >&5
13528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); } && {
13530          test -z "$ac_c_werror_flag" ||
13531          test ! -s conftest.err
13532        } && test -s conftest.$ac_objext; then
13533   ac_header_compiler=yes
13534 else
13535   $as_echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13537
13538         ac_header_compiler=no
13539 fi
13540
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13543 $as_echo "$ac_header_compiler" >&6; }
13544
13545 # Is the header present?
13546 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13547 $as_echo_n "checking dns_sd.h presence... " >&6; }
13548 cat >conftest.$ac_ext <<_ACEOF
13549 /* confdefs.h.  */
13550 _ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h.  */
13554 #include <dns_sd.h>
13555 _ACEOF
13556 if { (ac_try="$ac_cpp conftest.$ac_ext"
13557 case "(($ac_try" in
13558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559   *) ac_try_echo=$ac_try;;
13560 esac
13561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13562 $as_echo "$ac_try_echo") >&5
13563   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13564   ac_status=$?
13565   grep -v '^ *+' conftest.er1 >conftest.err
13566   rm -f conftest.er1
13567   cat conftest.err >&5
13568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); } >/dev/null && {
13570          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13571          test ! -s conftest.err
13572        }; then
13573   ac_header_preproc=yes
13574 else
13575   $as_echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578   ac_header_preproc=no
13579 fi
13580
13581 rm -f conftest.err conftest.$ac_ext
13582 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13583 $as_echo "$ac_header_preproc" >&6; }
13584
13585 # So?  What about this header?
13586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13587   yes:no: )
13588     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13589 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13590     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13591 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13592     ac_header_preproc=yes
13593     ;;
13594   no:yes:* )
13595     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13596 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13597     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
13598 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
13599     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13600 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13601     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
13602 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13603     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13604 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13605     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13606 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13607     ( cat <<\_ASBOX
13608 ## ---------------------------------------- ##
13609 ## Report this to pgsql-bugs@postgresql.org ##
13610 ## ---------------------------------------- ##
13611 _ASBOX
13612      ) | sed "s/^/$as_me: WARNING:     /" >&2
13613     ;;
13614 esac
13615 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13616 $as_echo_n "checking for dns_sd.h... " >&6; }
13617 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13618   $as_echo_n "(cached) " >&6
13619 else
13620   ac_cv_header_dns_sd_h=$ac_header_preproc
13621 fi
13622 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13623 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13624
13625 fi
13626 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13627   :
13628 else
13629   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13630 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13631    { (exit 1); exit 1; }; }
13632 fi
13633
13634
13635 fi
13636
13637 # for contrib/uuid-ossp
13638 if test "$with_ossp_uuid" = yes ; then
13639
13640 for ac_header in ossp/uuid.h
13641 do
13642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13644   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 $as_echo_n "checking for $ac_header... " >&6; }
13646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13647   $as_echo_n "(cached) " >&6
13648 fi
13649 ac_res=`eval 'as_val=${'$as_ac_Header'}
13650                  $as_echo "$as_val"'`
13651                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13652 $as_echo "$ac_res" >&6; }
13653 else
13654   # Is the header compilable?
13655 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13656 $as_echo_n "checking $ac_header usability... " >&6; }
13657 cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663 $ac_includes_default
13664 #include <$ac_header>
13665 _ACEOF
13666 rm -f conftest.$ac_objext
13667 if { (ac_try="$ac_compile"
13668 case "(($ac_try" in
13669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670   *) ac_try_echo=$ac_try;;
13671 esac
13672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13673 $as_echo "$ac_try_echo") >&5
13674   (eval "$ac_compile") 2>conftest.er1
13675   ac_status=$?
13676   grep -v '^ *+' conftest.er1 >conftest.err
13677   rm -f conftest.er1
13678   cat conftest.err >&5
13679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); } && {
13681          test -z "$ac_c_werror_flag" ||
13682          test ! -s conftest.err
13683        } && test -s conftest.$ac_objext; then
13684   ac_header_compiler=yes
13685 else
13686   $as_echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689         ac_header_compiler=no
13690 fi
13691
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13694 $as_echo "$ac_header_compiler" >&6; }
13695
13696 # Is the header present?
13697 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13698 $as_echo_n "checking $ac_header presence... " >&6; }
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705 #include <$ac_header>
13706 _ACEOF
13707 if { (ac_try="$ac_cpp conftest.$ac_ext"
13708 case "(($ac_try" in
13709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710   *) ac_try_echo=$ac_try;;
13711 esac
13712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13713 $as_echo "$ac_try_echo") >&5
13714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13715   ac_status=$?
13716   grep -v '^ *+' conftest.er1 >conftest.err
13717   rm -f conftest.er1
13718   cat conftest.err >&5
13719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); } >/dev/null && {
13721          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13722          test ! -s conftest.err
13723        }; then
13724   ac_header_preproc=yes
13725 else
13726   $as_echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13728
13729   ac_header_preproc=no
13730 fi
13731
13732 rm -f conftest.err conftest.$ac_ext
13733 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13734 $as_echo "$ac_header_preproc" >&6; }
13735
13736 # So?  What about this header?
13737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13738   yes:no: )
13739     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13740 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13741     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13743     ac_header_preproc=yes
13744     ;;
13745   no:yes:* )
13746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13748     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13749 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13751 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13752     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13753 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13754     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13755 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13756     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13757 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13758     ( cat <<\_ASBOX
13759 ## ---------------------------------------- ##
13760 ## Report this to pgsql-bugs@postgresql.org ##
13761 ## ---------------------------------------- ##
13762 _ASBOX
13763      ) | sed "s/^/$as_me: WARNING:     /" >&2
13764     ;;
13765 esac
13766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13767 $as_echo_n "checking for $ac_header... " >&6; }
13768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13769   $as_echo_n "(cached) " >&6
13770 else
13771   eval "$as_ac_Header=\$ac_header_preproc"
13772 fi
13773 ac_res=`eval 'as_val=${'$as_ac_Header'}
13774                  $as_echo "$as_val"'`
13775                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13776 $as_echo "$ac_res" >&6; }
13777
13778 fi
13779 as_val=`eval 'as_val=${'$as_ac_Header'}
13780                  $as_echo "$as_val"'`
13781    if test "x$as_val" = x""yes; then
13782   cat >>confdefs.h <<_ACEOF
13783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13784 _ACEOF
13785
13786 else
13787
13788
13789 for ac_header in uuid.h
13790 do
13791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13793   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13794 $as_echo_n "checking for $ac_header... " >&6; }
13795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13796   $as_echo_n "(cached) " >&6
13797 fi
13798 ac_res=`eval 'as_val=${'$as_ac_Header'}
13799                  $as_echo "$as_val"'`
13800                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13801 $as_echo "$ac_res" >&6; }
13802 else
13803   # Is the header compilable?
13804 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13805 $as_echo_n "checking $ac_header usability... " >&6; }
13806 cat >conftest.$ac_ext <<_ACEOF
13807 /* confdefs.h.  */
13808 _ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h.  */
13812 $ac_includes_default
13813 #include <$ac_header>
13814 _ACEOF
13815 rm -f conftest.$ac_objext
13816 if { (ac_try="$ac_compile"
13817 case "(($ac_try" in
13818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819   *) ac_try_echo=$ac_try;;
13820 esac
13821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13822 $as_echo "$ac_try_echo") >&5
13823   (eval "$ac_compile") 2>conftest.er1
13824   ac_status=$?
13825   grep -v '^ *+' conftest.er1 >conftest.err
13826   rm -f conftest.er1
13827   cat conftest.err >&5
13828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); } && {
13830          test -z "$ac_c_werror_flag" ||
13831          test ! -s conftest.err
13832        } && test -s conftest.$ac_objext; then
13833   ac_header_compiler=yes
13834 else
13835   $as_echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13837
13838         ac_header_compiler=no
13839 fi
13840
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13843 $as_echo "$ac_header_compiler" >&6; }
13844
13845 # Is the header present?
13846 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13847 $as_echo_n "checking $ac_header presence... " >&6; }
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854 #include <$ac_header>
13855 _ACEOF
13856 if { (ac_try="$ac_cpp conftest.$ac_ext"
13857 case "(($ac_try" in
13858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859   *) ac_try_echo=$ac_try;;
13860 esac
13861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13862 $as_echo "$ac_try_echo") >&5
13863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13864   ac_status=$?
13865   grep -v '^ *+' conftest.er1 >conftest.err
13866   rm -f conftest.er1
13867   cat conftest.err >&5
13868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } >/dev/null && {
13870          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13871          test ! -s conftest.err
13872        }; then
13873   ac_header_preproc=yes
13874 else
13875   $as_echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878   ac_header_preproc=no
13879 fi
13880
13881 rm -f conftest.err conftest.$ac_ext
13882 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13883 $as_echo "$ac_header_preproc" >&6; }
13884
13885 # So?  What about this header?
13886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13887   yes:no: )
13888     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13889 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13890     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13891 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13892     ac_header_preproc=yes
13893     ;;
13894   no:yes:* )
13895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13896 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13897     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13898 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13899     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13900 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13901     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13902 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13903     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13904 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13905     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13906 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13907     ( cat <<\_ASBOX
13908 ## ---------------------------------------- ##
13909 ## Report this to pgsql-bugs@postgresql.org ##
13910 ## ---------------------------------------- ##
13911 _ASBOX
13912      ) | sed "s/^/$as_me: WARNING:     /" >&2
13913     ;;
13914 esac
13915 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13916 $as_echo_n "checking for $ac_header... " >&6; }
13917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13918   $as_echo_n "(cached) " >&6
13919 else
13920   eval "$as_ac_Header=\$ac_header_preproc"
13921 fi
13922 ac_res=`eval 'as_val=${'$as_ac_Header'}
13923                  $as_echo "$as_val"'`
13924                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13925 $as_echo "$ac_res" >&6; }
13926
13927 fi
13928 as_val=`eval 'as_val=${'$as_ac_Header'}
13929                  $as_echo "$as_val"'`
13930    if test "x$as_val" = x""yes; then
13931   cat >>confdefs.h <<_ACEOF
13932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13933 _ACEOF
13934
13935 else
13936   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13937 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13938    { (exit 1); exit 1; }; }
13939 fi
13940
13941 done
13942
13943 fi
13944
13945 done
13946
13947 fi
13948
13949
13950 ##
13951 ## Types, structures, compiler characteristics
13952 ##
13953
13954
13955  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13956 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13957 if test "${ac_cv_c_bigendian+set}" = set; then
13958   $as_echo_n "(cached) " >&6
13959 else
13960   ac_cv_c_bigendian=unknown
13961     # See if we're dealing with a universal compiler.
13962     cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h.  */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h.  */
13968 #ifndef __APPLE_CC__
13969                not a universal capable compiler
13970              #endif
13971              typedef int dummy;
13972
13973 _ACEOF
13974 rm -f conftest.$ac_objext
13975 if { (ac_try="$ac_compile"
13976 case "(($ac_try" in
13977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978   *) ac_try_echo=$ac_try;;
13979 esac
13980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13981 $as_echo "$ac_try_echo") >&5
13982   (eval "$ac_compile") 2>conftest.er1
13983   ac_status=$?
13984   grep -v '^ *+' conftest.er1 >conftest.err
13985   rm -f conftest.er1
13986   cat conftest.err >&5
13987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); } && {
13989          test -z "$ac_c_werror_flag" ||
13990          test ! -s conftest.err
13991        } && test -s conftest.$ac_objext; then
13992
13993         # Check for potential -arch flags.  It is not universal unless
13994         # there are some -arch flags.  Note that *ppc* also matches
13995         # ppc64.  This check is also rather less than ideal.
13996         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
13997           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13998         esac
13999 else
14000   $as_echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14002
14003
14004 fi
14005
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007     if test $ac_cv_c_bigendian = unknown; then
14008       # See if sys/param.h defines the BYTE_ORDER macro.
14009       cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h.  */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h.  */
14015 #include <sys/types.h>
14016              #include <sys/param.h>
14017
14018 int
14019 main ()
14020 {
14021 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14022                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14023                      && LITTLE_ENDIAN)
14024               bogus endian macros
14025              #endif
14026
14027   ;
14028   return 0;
14029 }
14030 _ACEOF
14031 rm -f conftest.$ac_objext
14032 if { (ac_try="$ac_compile"
14033 case "(($ac_try" in
14034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035   *) ac_try_echo=$ac_try;;
14036 esac
14037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14038 $as_echo "$ac_try_echo") >&5
14039   (eval "$ac_compile") 2>conftest.er1
14040   ac_status=$?
14041   grep -v '^ *+' conftest.er1 >conftest.err
14042   rm -f conftest.er1
14043   cat conftest.err >&5
14044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045   (exit $ac_status); } && {
14046          test -z "$ac_c_werror_flag" ||
14047          test ! -s conftest.err
14048        } && test -s conftest.$ac_objext; then
14049   # It does; now see whether it defined to BIG_ENDIAN or not.
14050          cat >conftest.$ac_ext <<_ACEOF
14051 /* confdefs.h.  */
14052 _ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h.  */
14056 #include <sys/types.h>
14057                 #include <sys/param.h>
14058
14059 int
14060 main ()
14061 {
14062 #if BYTE_ORDER != BIG_ENDIAN
14063                  not big endian
14064                 #endif
14065
14066   ;
14067   return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext
14071 if { (ac_try="$ac_compile"
14072 case "(($ac_try" in
14073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074   *) ac_try_echo=$ac_try;;
14075 esac
14076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14077 $as_echo "$ac_try_echo") >&5
14078   (eval "$ac_compile") 2>conftest.er1
14079   ac_status=$?
14080   grep -v '^ *+' conftest.er1 >conftest.err
14081   rm -f conftest.er1
14082   cat conftest.err >&5
14083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084   (exit $ac_status); } && {
14085          test -z "$ac_c_werror_flag" ||
14086          test ! -s conftest.err
14087        } && test -s conftest.$ac_objext; then
14088   ac_cv_c_bigendian=yes
14089 else
14090   $as_echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093         ac_cv_c_bigendian=no
14094 fi
14095
14096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14097 else
14098   $as_echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14100
14101
14102 fi
14103
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105     fi
14106     if test $ac_cv_c_bigendian = unknown; then
14107       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14108       cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114 #include <limits.h>
14115
14116 int
14117 main ()
14118 {
14119 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14120               bogus endian macros
14121              #endif
14122
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127 rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14134 $as_echo "$ac_try_echo") >&5
14135   (eval "$ac_compile") 2>conftest.er1
14136   ac_status=$?
14137   grep -v '^ *+' conftest.er1 >conftest.err
14138   rm -f conftest.er1
14139   cat conftest.err >&5
14140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } && {
14142          test -z "$ac_c_werror_flag" ||
14143          test ! -s conftest.err
14144        } && test -s conftest.$ac_objext; then
14145   # It does; now see whether it defined to _BIG_ENDIAN or not.
14146          cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h.  */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h.  */
14152 #include <limits.h>
14153
14154 int
14155 main ()
14156 {
14157 #ifndef _BIG_ENDIAN
14158                  not big endian
14159                 #endif
14160
14161   ;
14162   return 0;
14163 }
14164 _ACEOF
14165 rm -f conftest.$ac_objext
14166 if { (ac_try="$ac_compile"
14167 case "(($ac_try" in
14168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169   *) ac_try_echo=$ac_try;;
14170 esac
14171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14172 $as_echo "$ac_try_echo") >&5
14173   (eval "$ac_compile") 2>conftest.er1
14174   ac_status=$?
14175   grep -v '^ *+' conftest.er1 >conftest.err
14176   rm -f conftest.er1
14177   cat conftest.err >&5
14178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179   (exit $ac_status); } && {
14180          test -z "$ac_c_werror_flag" ||
14181          test ! -s conftest.err
14182        } && test -s conftest.$ac_objext; then
14183   ac_cv_c_bigendian=yes
14184 else
14185   $as_echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14187
14188         ac_cv_c_bigendian=no
14189 fi
14190
14191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14192 else
14193   $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196
14197 fi
14198
14199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14200     fi
14201     if test $ac_cv_c_bigendian = unknown; then
14202       # Compile a test program.
14203       if test "$cross_compiling" = yes; then
14204   # Try to guess by grepping values from an object file.
14205          cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h.  */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h.  */
14211 short int ascii_mm[] =
14212                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14213                 short int ascii_ii[] =
14214                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14215                 int use_ascii (int i) {
14216                   return ascii_mm[i] + ascii_ii[i];
14217                 }
14218                 short int ebcdic_ii[] =
14219                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14220                 short int ebcdic_mm[] =
14221                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14222                 int use_ebcdic (int i) {
14223                   return ebcdic_mm[i] + ebcdic_ii[i];
14224                 }
14225                 extern int foo;
14226
14227 int
14228 main ()
14229 {
14230 return use_ascii (foo) == use_ebcdic (foo);
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14242 $as_echo "$ac_try_echo") >&5
14243   (eval "$ac_compile") 2>conftest.er1
14244   ac_status=$?
14245   grep -v '^ *+' conftest.er1 >conftest.err
14246   rm -f conftest.er1
14247   cat conftest.err >&5
14248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249   (exit $ac_status); } && {
14250          test -z "$ac_c_werror_flag" ||
14251          test ! -s conftest.err
14252        } && test -s conftest.$ac_objext; then
14253   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14254               ac_cv_c_bigendian=yes
14255             fi
14256             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14257               if test "$ac_cv_c_bigendian" = unknown; then
14258                 ac_cv_c_bigendian=no
14259               else
14260                 # finding both strings is unlikely to happen, but who knows?
14261                 ac_cv_c_bigendian=unknown
14262               fi
14263             fi
14264 else
14265   $as_echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14267
14268
14269 fi
14270
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 else
14273   cat >conftest.$ac_ext <<_ACEOF
14274 /* confdefs.h.  */
14275 _ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h.  */
14279 $ac_includes_default
14280 int
14281 main ()
14282 {
14283
14284              /* Are we little or big endian?  From Harbison&Steele.  */
14285              union
14286              {
14287                long int l;
14288                char c[sizeof (long int)];
14289              } u;
14290              u.l = 1;
14291              return u.c[sizeof (long int) - 1] == 1;
14292
14293   ;
14294   return 0;
14295 }
14296 _ACEOF
14297 rm -f conftest$ac_exeext
14298 if { (ac_try="$ac_link"
14299 case "(($ac_try" in
14300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301   *) ac_try_echo=$ac_try;;
14302 esac
14303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14304 $as_echo "$ac_try_echo") >&5
14305   (eval "$ac_link") 2>&5
14306   ac_status=$?
14307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14309   { (case "(($ac_try" in
14310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311   *) ac_try_echo=$ac_try;;
14312 esac
14313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14314 $as_echo "$ac_try_echo") >&5
14315   (eval "$ac_try") 2>&5
14316   ac_status=$?
14317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); }; }; then
14319   ac_cv_c_bigendian=no
14320 else
14321   $as_echo "$as_me: program exited with status $ac_status" >&5
14322 $as_echo "$as_me: failed program was:" >&5
14323 sed 's/^/| /' conftest.$ac_ext >&5
14324
14325 ( exit $ac_status )
14326 ac_cv_c_bigendian=yes
14327 fi
14328 rm -rf conftest.dSYM
14329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14330 fi
14331
14332
14333     fi
14334 fi
14335 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14336 $as_echo "$ac_cv_c_bigendian" >&6; }
14337  case $ac_cv_c_bigendian in #(
14338    yes)
14339      cat >>confdefs.h <<\_ACEOF
14340 #define WORDS_BIGENDIAN 1
14341 _ACEOF
14342 ;; #(
14343    no)
14344       ;; #(
14345    universal)
14346
14347 cat >>confdefs.h <<\_ACEOF
14348 #define AC_APPLE_UNIVERSAL_BUILD 1
14349 _ACEOF
14350
14351      ;; #(
14352    *)
14353      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14354  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14355 $as_echo "$as_me: error: unknown endianness
14356  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14357    { (exit 1); exit 1; }; } ;;
14358  esac
14359
14360 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14361 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14362 if test "${ac_cv_c_const+set}" = set; then
14363   $as_echo_n "(cached) " >&6
14364 else
14365   cat >conftest.$ac_ext <<_ACEOF
14366 /* confdefs.h.  */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h.  */
14371
14372 int
14373 main ()
14374 {
14375 /* FIXME: Include the comments suggested by Paul. */
14376 #ifndef __cplusplus
14377   /* Ultrix mips cc rejects this.  */
14378   typedef int charset[2];
14379   const charset cs;
14380   /* SunOS 4.1.1 cc rejects this.  */
14381   char const *const *pcpcc;
14382   char **ppc;
14383   /* NEC SVR4.0.2 mips cc rejects this.  */
14384   struct point {int x, y;};
14385   static struct point const zero = {0,0};
14386   /* AIX XL C 1.02.0.0 rejects this.
14387      It does not let you subtract one const X* pointer from another in
14388      an arm of an if-expression whose if-part is not a constant
14389      expression */
14390   const char *g = "string";
14391   pcpcc = &g + (g ? g-g : 0);
14392   /* HPUX 7.0 cc rejects these. */
14393   ++pcpcc;
14394   ppc = (char**) pcpcc;
14395   pcpcc = (char const *const *) ppc;
14396   { /* SCO 3.2v4 cc rejects this.  */
14397     char *t;
14398     char const *s = 0 ? (char *) 0 : (char const *) 0;
14399
14400     *t++ = 0;
14401     if (s) return 0;
14402   }
14403   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14404     int x[] = {25, 17};
14405     const int *foo = &x[0];
14406     ++foo;
14407   }
14408   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14409     typedef const int *iptr;
14410     iptr p = 0;
14411     ++p;
14412   }
14413   { /* AIX XL C 1.02.0.0 rejects this saying
14414        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14415     struct s { int j; const int *ap[3]; };
14416     struct s *b; b->j = 5;
14417   }
14418   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14419     const int foo = 10;
14420     if (!foo) return 0;
14421   }
14422   return !cs[0] && !zero.x;
14423 #endif
14424
14425   ;
14426   return 0;
14427 }
14428 _ACEOF
14429 rm -f conftest.$ac_objext
14430 if { (ac_try="$ac_compile"
14431 case "(($ac_try" in
14432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433   *) ac_try_echo=$ac_try;;
14434 esac
14435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14436 $as_echo "$ac_try_echo") >&5
14437   (eval "$ac_compile") 2>conftest.er1
14438   ac_status=$?
14439   grep -v '^ *+' conftest.er1 >conftest.err
14440   rm -f conftest.er1
14441   cat conftest.err >&5
14442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); } && {
14444          test -z "$ac_c_werror_flag" ||
14445          test ! -s conftest.err
14446        } && test -s conftest.$ac_objext; then
14447   ac_cv_c_const=yes
14448 else
14449   $as_echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14451
14452         ac_cv_c_const=no
14453 fi
14454
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456 fi
14457 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14458 $as_echo "$ac_cv_c_const" >&6; }
14459 if test $ac_cv_c_const = no; then
14460
14461 cat >>confdefs.h <<\_ACEOF
14462 #define const /**/
14463 _ACEOF
14464
14465 fi
14466
14467 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14468 $as_echo_n "checking for inline... " >&6; }
14469 if test "${ac_cv_c_inline+set}" = set; then
14470   $as_echo_n "(cached) " >&6
14471 else
14472   ac_cv_c_inline=no
14473 for ac_kw in inline __inline__ __inline; do
14474   cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h.  */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h.  */
14480 #ifndef __cplusplus
14481 typedef int foo_t;
14482 static $ac_kw foo_t static_foo () {return 0; }
14483 $ac_kw foo_t foo () {return 0; }
14484 #endif
14485
14486 _ACEOF
14487 rm -f conftest.$ac_objext
14488 if { (ac_try="$ac_compile"
14489 case "(($ac_try" in
14490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491   *) ac_try_echo=$ac_try;;
14492 esac
14493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14494 $as_echo "$ac_try_echo") >&5
14495   (eval "$ac_compile") 2>conftest.er1
14496   ac_status=$?
14497   grep -v '^ *+' conftest.er1 >conftest.err
14498   rm -f conftest.er1
14499   cat conftest.err >&5
14500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501   (exit $ac_status); } && {
14502          test -z "$ac_c_werror_flag" ||
14503          test ! -s conftest.err
14504        } && test -s conftest.$ac_objext; then
14505   ac_cv_c_inline=$ac_kw
14506 else
14507   $as_echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14509
14510
14511 fi
14512
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514   test "$ac_cv_c_inline" != no && break
14515 done
14516
14517 fi
14518 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14519 $as_echo "$ac_cv_c_inline" >&6; }
14520
14521
14522 case $ac_cv_c_inline in
14523   inline | yes) ;;
14524   *)
14525     case $ac_cv_c_inline in
14526       no) ac_val=;;
14527       *) ac_val=$ac_cv_c_inline;;
14528     esac
14529     cat >>confdefs.h <<_ACEOF
14530 #ifndef __cplusplus
14531 #define inline $ac_val
14532 #endif
14533 _ACEOF
14534     ;;
14535 esac
14536
14537 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14538 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14539 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14540   $as_echo_n "(cached) " >&6
14541 else
14542   pgac_cv_c_inline_quietly=no
14543   if test "$ac_cv_c_inline" != no; then
14544     pgac_c_inline_save_werror=$ac_c_werror_flag
14545     ac_c_werror_flag=yes
14546     cat >conftest.$ac_ext <<_ACEOF
14547 /* confdefs.h.  */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h.  */
14552 static inline int fun () {return 0;}
14553 int
14554 main ()
14555 {
14556
14557   ;
14558   return 0;
14559 }
14560 _ACEOF
14561 rm -f conftest.$ac_objext conftest$ac_exeext
14562 if { (ac_try="$ac_link"
14563 case "(($ac_try" in
14564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565   *) ac_try_echo=$ac_try;;
14566 esac
14567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14568 $as_echo "$ac_try_echo") >&5
14569   (eval "$ac_link") 2>conftest.er1
14570   ac_status=$?
14571   grep -v '^ *+' conftest.er1 >conftest.err
14572   rm -f conftest.er1
14573   cat conftest.err >&5
14574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); } && {
14576          test -z "$ac_c_werror_flag" ||
14577          test ! -s conftest.err
14578        } && test -s conftest$ac_exeext && {
14579          test "$cross_compiling" = yes ||
14580          $as_test_x conftest$ac_exeext
14581        }; then
14582   pgac_cv_c_inline_quietly=yes
14583 else
14584   $as_echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587
14588 fi
14589
14590 rm -rf conftest.dSYM
14591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14592       conftest$ac_exeext conftest.$ac_ext
14593     ac_c_werror_flag=$pgac_c_inline_save_werror
14594   fi
14595 fi
14596 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14597 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14598 if test "$pgac_cv_c_inline_quietly" != no; then
14599
14600 cat >>confdefs.h <<_ACEOF
14601 #define USE_INLINE 1
14602 _ACEOF
14603
14604 fi
14605
14606 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14607 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14608 if test "${ac_cv_c_stringize+set}" = set; then
14609   $as_echo_n "(cached) " >&6
14610 else
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 #define x(y) #y
14618
14619 char *s = x(teststring);
14620 _ACEOF
14621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14622   $EGREP "#teststring" >/dev/null 2>&1; then
14623   ac_cv_c_stringize=no
14624 else
14625   ac_cv_c_stringize=yes
14626 fi
14627 rm -f conftest*
14628
14629 fi
14630 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14631 $as_echo "$ac_cv_c_stringize" >&6; }
14632 if test $ac_cv_c_stringize = yes; then
14633
14634 cat >>confdefs.h <<\_ACEOF
14635 #define HAVE_STRINGIZE 1
14636 _ACEOF
14637
14638 fi
14639
14640 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14641 $as_echo_n "checking for signed types... " >&6; }
14642 if test "${pgac_cv_c_signed+set}" = set; then
14643   $as_echo_n "(cached) " >&6
14644 else
14645   cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651
14652 int
14653 main ()
14654 {
14655 signed char c; signed short s; signed int i;
14656   ;
14657   return 0;
14658 }
14659 _ACEOF
14660 rm -f conftest.$ac_objext
14661 if { (ac_try="$ac_compile"
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_compile") 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); } && {
14675          test -z "$ac_c_werror_flag" ||
14676          test ! -s conftest.err
14677        } && test -s conftest.$ac_objext; then
14678   pgac_cv_c_signed=yes
14679 else
14680   $as_echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14682
14683         pgac_cv_c_signed=no
14684 fi
14685
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687 fi
14688 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14689 $as_echo "$pgac_cv_c_signed" >&6; }
14690 if test x"$pgac_cv_c_signed" = xno ; then
14691
14692 cat >>confdefs.h <<\_ACEOF
14693 #define signed /**/
14694 _ACEOF
14695
14696 fi
14697 { $as_echo "$as_me:$LINENO: checking for long long type" >&5
14698 $as_echo_n "checking for long long type... " >&6; }
14699 if test "${pgac_cv_c_long_long+set}" = set; then
14700   $as_echo_n "(cached) " >&6
14701 else
14702   cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708
14709 int
14710 main ()
14711 {
14712 long long l;
14713   ;
14714   return 0;
14715 }
14716 _ACEOF
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721   *) ac_try_echo=$ac_try;;
14722 esac
14723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14724 $as_echo "$ac_try_echo") >&5
14725   (eval "$ac_compile") 2>conftest.er1
14726   ac_status=$?
14727   grep -v '^ *+' conftest.er1 >conftest.err
14728   rm -f conftest.er1
14729   cat conftest.err >&5
14730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); } && {
14732          test -z "$ac_c_werror_flag" ||
14733          test ! -s conftest.err
14734        } && test -s conftest.$ac_objext; then
14735   pgac_cv_c_long_long=yes
14736 else
14737   $as_echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14739
14740         pgac_cv_c_long_long=no
14741 fi
14742
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14744 fi
14745 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_long_long" >&5
14746 $as_echo "$pgac_cv_c_long_long" >&6; }
14747 if test x"$pgac_cv_c_long_long" = xyes ; then
14748
14749 cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_LONG_LONG 1
14751 _ACEOF
14752
14753 fi
14754 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14755 $as_echo_n "checking for working volatile... " >&6; }
14756 if test "${ac_cv_c_volatile+set}" = set; then
14757   $as_echo_n "(cached) " >&6
14758 else
14759   cat >conftest.$ac_ext <<_ACEOF
14760 /* confdefs.h.  */
14761 _ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h.  */
14765
14766 int
14767 main ()
14768 {
14769
14770 volatile int x;
14771 int * volatile y = (int *) 0;
14772 return !x && !y;
14773   ;
14774   return 0;
14775 }
14776 _ACEOF
14777 rm -f conftest.$ac_objext
14778 if { (ac_try="$ac_compile"
14779 case "(($ac_try" in
14780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781   *) ac_try_echo=$ac_try;;
14782 esac
14783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14784 $as_echo "$ac_try_echo") >&5
14785   (eval "$ac_compile") 2>conftest.er1
14786   ac_status=$?
14787   grep -v '^ *+' conftest.er1 >conftest.err
14788   rm -f conftest.er1
14789   cat conftest.err >&5
14790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); } && {
14792          test -z "$ac_c_werror_flag" ||
14793          test ! -s conftest.err
14794        } && test -s conftest.$ac_objext; then
14795   ac_cv_c_volatile=yes
14796 else
14797   $as_echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14799
14800         ac_cv_c_volatile=no
14801 fi
14802
14803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14804 fi
14805 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14806 $as_echo "$ac_cv_c_volatile" >&6; }
14807 if test $ac_cv_c_volatile = no; then
14808
14809 cat >>confdefs.h <<\_ACEOF
14810 #define volatile /**/
14811 _ACEOF
14812
14813 fi
14814
14815 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14816 $as_echo_n "checking for __func__... " >&6; }
14817 if test "${pgac_cv_funcname_func_support+set}" = set; then
14818   $as_echo_n "(cached) " >&6
14819 else
14820   cat >conftest.$ac_ext <<_ACEOF
14821 /* confdefs.h.  */
14822 _ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h.  */
14826 #include <stdio.h>
14827 int
14828 main ()
14829 {
14830 printf("%s\n", __func__);
14831   ;
14832   return 0;
14833 }
14834 _ACEOF
14835 rm -f conftest.$ac_objext
14836 if { (ac_try="$ac_compile"
14837 case "(($ac_try" in
14838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839   *) ac_try_echo=$ac_try;;
14840 esac
14841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14842 $as_echo "$ac_try_echo") >&5
14843   (eval "$ac_compile") 2>conftest.er1
14844   ac_status=$?
14845   grep -v '^ *+' conftest.er1 >conftest.err
14846   rm -f conftest.er1
14847   cat conftest.err >&5
14848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); } && {
14850          test -z "$ac_c_werror_flag" ||
14851          test ! -s conftest.err
14852        } && test -s conftest.$ac_objext; then
14853   pgac_cv_funcname_func_support=yes
14854 else
14855   $as_echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858         pgac_cv_funcname_func_support=no
14859 fi
14860
14861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14862 fi
14863 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14864 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14865 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14866
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_FUNCNAME__FUNC 1
14869 _ACEOF
14870
14871 else
14872 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14873 $as_echo_n "checking for __FUNCTION__... " >&6; }
14874 if test "${pgac_cv_funcname_function_support+set}" = set; then
14875   $as_echo_n "(cached) " >&6
14876 else
14877   cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h.  */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h.  */
14883 #include <stdio.h>
14884 int
14885 main ()
14886 {
14887 printf("%s\n", __FUNCTION__);
14888   ;
14889   return 0;
14890 }
14891 _ACEOF
14892 rm -f conftest.$ac_objext
14893 if { (ac_try="$ac_compile"
14894 case "(($ac_try" in
14895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896   *) ac_try_echo=$ac_try;;
14897 esac
14898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14899 $as_echo "$ac_try_echo") >&5
14900   (eval "$ac_compile") 2>conftest.er1
14901   ac_status=$?
14902   grep -v '^ *+' conftest.er1 >conftest.err
14903   rm -f conftest.er1
14904   cat conftest.err >&5
14905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); } && {
14907          test -z "$ac_c_werror_flag" ||
14908          test ! -s conftest.err
14909        } && test -s conftest.$ac_objext; then
14910   pgac_cv_funcname_function_support=yes
14911 else
14912   $as_echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915         pgac_cv_funcname_function_support=no
14916 fi
14917
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 fi
14920 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14921 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14922 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14923
14924 cat >>confdefs.h <<\_ACEOF
14925 #define HAVE_FUNCNAME__FUNCTION 1
14926 _ACEOF
14927
14928 fi
14929 fi
14930 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14931 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14932 if test "${ac_cv_struct_tm+set}" = set; then
14933   $as_echo_n "(cached) " >&6
14934 else
14935   cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h.  */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h.  */
14941 #include <sys/types.h>
14942 #include <time.h>
14943
14944 int
14945 main ()
14946 {
14947 struct tm tm;
14948                                      int *p = &tm.tm_sec;
14949                                      return !p;
14950   ;
14951   return 0;
14952 }
14953 _ACEOF
14954 rm -f conftest.$ac_objext
14955 if { (ac_try="$ac_compile"
14956 case "(($ac_try" in
14957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958   *) ac_try_echo=$ac_try;;
14959 esac
14960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14961 $as_echo "$ac_try_echo") >&5
14962   (eval "$ac_compile") 2>conftest.er1
14963   ac_status=$?
14964   grep -v '^ *+' conftest.er1 >conftest.err
14965   rm -f conftest.er1
14966   cat conftest.err >&5
14967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); } && {
14969          test -z "$ac_c_werror_flag" ||
14970          test ! -s conftest.err
14971        } && test -s conftest.$ac_objext; then
14972   ac_cv_struct_tm=time.h
14973 else
14974   $as_echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14976
14977         ac_cv_struct_tm=sys/time.h
14978 fi
14979
14980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14981 fi
14982 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14983 $as_echo "$ac_cv_struct_tm" >&6; }
14984 if test $ac_cv_struct_tm = sys/time.h; then
14985
14986 cat >>confdefs.h <<\_ACEOF
14987 #define TM_IN_SYS_TIME 1
14988 _ACEOF
14989
14990 fi
14991
14992 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14993 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14994 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14995   $as_echo_n "(cached) " >&6
14996 else
14997   cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h.  */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h.  */
15003 #include <sys/types.h>
15004 #include <$ac_cv_struct_tm>
15005
15006
15007 int
15008 main ()
15009 {
15010 static struct tm ac_aggr;
15011 if (ac_aggr.tm_zone)
15012 return 0;
15013   ;
15014   return 0;
15015 }
15016 _ACEOF
15017 rm -f conftest.$ac_objext
15018 if { (ac_try="$ac_compile"
15019 case "(($ac_try" in
15020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021   *) ac_try_echo=$ac_try;;
15022 esac
15023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15024 $as_echo "$ac_try_echo") >&5
15025   (eval "$ac_compile") 2>conftest.er1
15026   ac_status=$?
15027   grep -v '^ *+' conftest.er1 >conftest.err
15028   rm -f conftest.er1
15029   cat conftest.err >&5
15030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); } && {
15032          test -z "$ac_c_werror_flag" ||
15033          test ! -s conftest.err
15034        } && test -s conftest.$ac_objext; then
15035   ac_cv_member_struct_tm_tm_zone=yes
15036 else
15037   $as_echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15039
15040         cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h.  */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h.  */
15046 #include <sys/types.h>
15047 #include <$ac_cv_struct_tm>
15048
15049
15050 int
15051 main ()
15052 {
15053 static struct tm ac_aggr;
15054 if (sizeof ac_aggr.tm_zone)
15055 return 0;
15056   ;
15057   return 0;
15058 }
15059 _ACEOF
15060 rm -f conftest.$ac_objext
15061 if { (ac_try="$ac_compile"
15062 case "(($ac_try" in
15063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064   *) ac_try_echo=$ac_try;;
15065 esac
15066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15067 $as_echo "$ac_try_echo") >&5
15068   (eval "$ac_compile") 2>conftest.er1
15069   ac_status=$?
15070   grep -v '^ *+' conftest.er1 >conftest.err
15071   rm -f conftest.er1
15072   cat conftest.err >&5
15073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); } && {
15075          test -z "$ac_c_werror_flag" ||
15076          test ! -s conftest.err
15077        } && test -s conftest.$ac_objext; then
15078   ac_cv_member_struct_tm_tm_zone=yes
15079 else
15080   $as_echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083         ac_cv_member_struct_tm_tm_zone=no
15084 fi
15085
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 fi
15088
15089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15090 fi
15091 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15092 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15093 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15094
15095 cat >>confdefs.h <<_ACEOF
15096 #define HAVE_STRUCT_TM_TM_ZONE 1
15097 _ACEOF
15098
15099
15100 fi
15101
15102 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15103
15104 cat >>confdefs.h <<\_ACEOF
15105 #define HAVE_TM_ZONE 1
15106 _ACEOF
15107
15108 fi
15109 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15110 $as_echo_n "checking for tzname... " >&6; }
15111 if test "${ac_cv_var_tzname+set}" = set; then
15112   $as_echo_n "(cached) " >&6
15113 else
15114   cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h.  */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h.  */
15120 #include <time.h>
15121 #ifndef tzname /* For SGI.  */
15122 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15123 #endif
15124
15125 int
15126 main ()
15127 {
15128 atoi(*tzname);
15129   ;
15130   return 0;
15131 }
15132 _ACEOF
15133 rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (ac_try="$ac_link"
15135 case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15140 $as_echo "$ac_try_echo") >&5
15141   (eval "$ac_link") 2>conftest.er1
15142   ac_status=$?
15143   grep -v '^ *+' conftest.er1 >conftest.err
15144   rm -f conftest.er1
15145   cat conftest.err >&5
15146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); } && {
15148          test -z "$ac_c_werror_flag" ||
15149          test ! -s conftest.err
15150        } && test -s conftest$ac_exeext && {
15151          test "$cross_compiling" = yes ||
15152          $as_test_x conftest$ac_exeext
15153        }; then
15154   ac_cv_var_tzname=yes
15155 else
15156   $as_echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15158
15159         ac_cv_var_tzname=no
15160 fi
15161
15162 rm -rf conftest.dSYM
15163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15164       conftest$ac_exeext conftest.$ac_ext
15165 fi
15166 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15167 $as_echo "$ac_cv_var_tzname" >&6; }
15168 if test $ac_cv_var_tzname = yes; then
15169
15170 cat >>confdefs.h <<\_ACEOF
15171 #define HAVE_TZNAME 1
15172 _ACEOF
15173
15174 fi
15175
15176 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15177 $as_echo_n "checking for union semun... " >&6; }
15178 if test "${ac_cv_type_union_semun+set}" = set; then
15179   $as_echo_n "(cached) " >&6
15180 else
15181   ac_cv_type_union_semun=no
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h.  */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h.  */
15188 #include <sys/types.h>
15189 #include <sys/ipc.h>
15190 #include <sys/sem.h>
15191
15192 int
15193 main ()
15194 {
15195 if (sizeof (union semun))
15196        return 0;
15197   ;
15198   return 0;
15199 }
15200 _ACEOF
15201 rm -f conftest.$ac_objext
15202 if { (ac_try="$ac_compile"
15203 case "(($ac_try" in
15204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205   *) ac_try_echo=$ac_try;;
15206 esac
15207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15208 $as_echo "$ac_try_echo") >&5
15209   (eval "$ac_compile") 2>conftest.er1
15210   ac_status=$?
15211   grep -v '^ *+' conftest.er1 >conftest.err
15212   rm -f conftest.er1
15213   cat conftest.err >&5
15214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); } && {
15216          test -z "$ac_c_werror_flag" ||
15217          test ! -s conftest.err
15218        } && test -s conftest.$ac_objext; then
15219   cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225 #include <sys/types.h>
15226 #include <sys/ipc.h>
15227 #include <sys/sem.h>
15228
15229 int
15230 main ()
15231 {
15232 if (sizeof ((union semun)))
15233           return 0;
15234   ;
15235   return 0;
15236 }
15237 _ACEOF
15238 rm -f conftest.$ac_objext
15239 if { (ac_try="$ac_compile"
15240 case "(($ac_try" in
15241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242   *) ac_try_echo=$ac_try;;
15243 esac
15244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15245 $as_echo "$ac_try_echo") >&5
15246   (eval "$ac_compile") 2>conftest.er1
15247   ac_status=$?
15248   grep -v '^ *+' conftest.er1 >conftest.err
15249   rm -f conftest.er1
15250   cat conftest.err >&5
15251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); } && {
15253          test -z "$ac_c_werror_flag" ||
15254          test ! -s conftest.err
15255        } && test -s conftest.$ac_objext; then
15256   :
15257 else
15258   $as_echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15260
15261         ac_cv_type_union_semun=yes
15262 fi
15263
15264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15265 else
15266   $as_echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15268
15269
15270 fi
15271
15272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15273 fi
15274 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15275 $as_echo "$ac_cv_type_union_semun" >&6; }
15276 if test "x$ac_cv_type_union_semun" = x""yes; then
15277
15278 cat >>confdefs.h <<_ACEOF
15279 #define HAVE_UNION_SEMUN 1
15280 _ACEOF
15281
15282
15283 fi
15284
15285 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15286 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15287 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15288   $as_echo_n "(cached) " >&6
15289 else
15290   ac_cv_type_struct_sockaddr_un=no
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 #include <sys/types.h>
15298 #ifdef HAVE_SYS_UN_H
15299 #include <sys/un.h>
15300 #endif
15301
15302
15303 int
15304 main ()
15305 {
15306 if (sizeof (struct sockaddr_un))
15307        return 0;
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext
15313 if { (ac_try="$ac_compile"
15314 case "(($ac_try" in
15315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316   *) ac_try_echo=$ac_try;;
15317 esac
15318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15319 $as_echo "$ac_try_echo") >&5
15320   (eval "$ac_compile") 2>conftest.er1
15321   ac_status=$?
15322   grep -v '^ *+' conftest.er1 >conftest.err
15323   rm -f conftest.er1
15324   cat conftest.err >&5
15325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } && {
15327          test -z "$ac_c_werror_flag" ||
15328          test ! -s conftest.err
15329        } && test -s conftest.$ac_objext; then
15330   cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336 #include <sys/types.h>
15337 #ifdef HAVE_SYS_UN_H
15338 #include <sys/un.h>
15339 #endif
15340
15341
15342 int
15343 main ()
15344 {
15345 if (sizeof ((struct sockaddr_un)))
15346           return 0;
15347   ;
15348   return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest.$ac_objext
15352 if { (ac_try="$ac_compile"
15353 case "(($ac_try" in
15354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355   *) ac_try_echo=$ac_try;;
15356 esac
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359   (eval "$ac_compile") 2>conftest.er1
15360   ac_status=$?
15361   grep -v '^ *+' conftest.er1 >conftest.err
15362   rm -f conftest.er1
15363   cat conftest.err >&5
15364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365   (exit $ac_status); } && {
15366          test -z "$ac_c_werror_flag" ||
15367          test ! -s conftest.err
15368        } && test -s conftest.$ac_objext; then
15369   :
15370 else
15371   $as_echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15373
15374         ac_cv_type_struct_sockaddr_un=yes
15375 fi
15376
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 else
15379   $as_echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15381
15382
15383 fi
15384
15385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386 fi
15387 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15388 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15389 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15390
15391 cat >>confdefs.h <<_ACEOF
15392 #define HAVE_STRUCT_SOCKADDR_UN 1
15393 _ACEOF
15394
15395
15396 cat >>confdefs.h <<\_ACEOF
15397 #define HAVE_UNIX_SOCKETS 1
15398 _ACEOF
15399
15400 fi
15401
15402 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15403 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15404 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15405   $as_echo_n "(cached) " >&6
15406 else
15407   ac_cv_type_struct_sockaddr_storage=no
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h.  */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h.  */
15414 #include <sys/types.h>
15415 #ifdef HAVE_SYS_SOCKET_H
15416 #include <sys/socket.h>
15417 #endif
15418
15419
15420 int
15421 main ()
15422 {
15423 if (sizeof (struct sockaddr_storage))
15424        return 0;
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext
15430 if { (ac_try="$ac_compile"
15431 case "(($ac_try" in
15432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433   *) ac_try_echo=$ac_try;;
15434 esac
15435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15436 $as_echo "$ac_try_echo") >&5
15437   (eval "$ac_compile") 2>conftest.er1
15438   ac_status=$?
15439   grep -v '^ *+' conftest.er1 >conftest.err
15440   rm -f conftest.er1
15441   cat conftest.err >&5
15442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); } && {
15444          test -z "$ac_c_werror_flag" ||
15445          test ! -s conftest.err
15446        } && test -s conftest.$ac_objext; then
15447   cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h.  */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h.  */
15453 #include <sys/types.h>
15454 #ifdef HAVE_SYS_SOCKET_H
15455 #include <sys/socket.h>
15456 #endif
15457
15458
15459 int
15460 main ()
15461 {
15462 if (sizeof ((struct sockaddr_storage)))
15463           return 0;
15464   ;
15465   return 0;
15466 }
15467 _ACEOF
15468 rm -f conftest.$ac_objext
15469 if { (ac_try="$ac_compile"
15470 case "(($ac_try" in
15471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472   *) ac_try_echo=$ac_try;;
15473 esac
15474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475 $as_echo "$ac_try_echo") >&5
15476   (eval "$ac_compile") 2>conftest.er1
15477   ac_status=$?
15478   grep -v '^ *+' conftest.er1 >conftest.err
15479   rm -f conftest.er1
15480   cat conftest.err >&5
15481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } && {
15483          test -z "$ac_c_werror_flag" ||
15484          test ! -s conftest.err
15485        } && test -s conftest.$ac_objext; then
15486   :
15487 else
15488   $as_echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15490
15491         ac_cv_type_struct_sockaddr_storage=yes
15492 fi
15493
15494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15495 else
15496   $as_echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15498
15499
15500 fi
15501
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503 fi
15504 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15505 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15506 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15507
15508 cat >>confdefs.h <<_ACEOF
15509 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15510 _ACEOF
15511
15512
15513 fi
15514
15515 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15516 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15517 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15518   $as_echo_n "(cached) " >&6
15519 else
15520   cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h.  */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h.  */
15526 #include <sys/types.h>
15527 #ifdef HAVE_SYS_SOCKET_H
15528 #include <sys/socket.h>
15529 #endif
15530
15531
15532 int
15533 main ()
15534 {
15535 static struct sockaddr_storage ac_aggr;
15536 if (ac_aggr.ss_family)
15537 return 0;
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (ac_try="$ac_compile"
15544 case "(($ac_try" in
15545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546   *) ac_try_echo=$ac_try;;
15547 esac
15548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15549 $as_echo "$ac_try_echo") >&5
15550   (eval "$ac_compile") 2>conftest.er1
15551   ac_status=$?
15552   grep -v '^ *+' conftest.er1 >conftest.err
15553   rm -f conftest.er1
15554   cat conftest.err >&5
15555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); } && {
15557          test -z "$ac_c_werror_flag" ||
15558          test ! -s conftest.err
15559        } && test -s conftest.$ac_objext; then
15560   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15561 else
15562   $as_echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15564
15565         cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h.  */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h.  */
15571 #include <sys/types.h>
15572 #ifdef HAVE_SYS_SOCKET_H
15573 #include <sys/socket.h>
15574 #endif
15575
15576
15577 int
15578 main ()
15579 {
15580 static struct sockaddr_storage ac_aggr;
15581 if (sizeof ac_aggr.ss_family)
15582 return 0;
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_member_struct_sockaddr_storage_ss_family=yes
15606 else
15607   $as_echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610         ac_cv_member_struct_sockaddr_storage_ss_family=no
15611 fi
15612
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614 fi
15615
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617 fi
15618 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15619 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15620 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15621
15622 cat >>confdefs.h <<_ACEOF
15623 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15624 _ACEOF
15625
15626
15627 fi
15628 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15629 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15630 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15631   $as_echo_n "(cached) " >&6
15632 else
15633   cat >conftest.$ac_ext <<_ACEOF
15634 /* confdefs.h.  */
15635 _ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h.  */
15639 #include <sys/types.h>
15640 #ifdef HAVE_SYS_SOCKET_H
15641 #include <sys/socket.h>
15642 #endif
15643
15644
15645 int
15646 main ()
15647 {
15648 static struct sockaddr_storage ac_aggr;
15649 if (ac_aggr.__ss_family)
15650 return 0;
15651   ;
15652   return 0;
15653 }
15654 _ACEOF
15655 rm -f conftest.$ac_objext
15656 if { (ac_try="$ac_compile"
15657 case "(($ac_try" in
15658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659   *) ac_try_echo=$ac_try;;
15660 esac
15661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15662 $as_echo "$ac_try_echo") >&5
15663   (eval "$ac_compile") 2>conftest.er1
15664   ac_status=$?
15665   grep -v '^ *+' conftest.er1 >conftest.err
15666   rm -f conftest.er1
15667   cat conftest.err >&5
15668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); } && {
15670          test -z "$ac_c_werror_flag" ||
15671          test ! -s conftest.err
15672        } && test -s conftest.$ac_objext; then
15673   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15674 else
15675   $as_echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15677
15678         cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h.  */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h.  */
15684 #include <sys/types.h>
15685 #ifdef HAVE_SYS_SOCKET_H
15686 #include <sys/socket.h>
15687 #endif
15688
15689
15690 int
15691 main ()
15692 {
15693 static struct sockaddr_storage ac_aggr;
15694 if (sizeof ac_aggr.__ss_family)
15695 return 0;
15696   ;
15697   return 0;
15698 }
15699 _ACEOF
15700 rm -f conftest.$ac_objext
15701 if { (ac_try="$ac_compile"
15702 case "(($ac_try" in
15703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704   *) ac_try_echo=$ac_try;;
15705 esac
15706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15707 $as_echo "$ac_try_echo") >&5
15708   (eval "$ac_compile") 2>conftest.er1
15709   ac_status=$?
15710   grep -v '^ *+' conftest.er1 >conftest.err
15711   rm -f conftest.er1
15712   cat conftest.err >&5
15713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); } && {
15715          test -z "$ac_c_werror_flag" ||
15716          test ! -s conftest.err
15717        } && test -s conftest.$ac_objext; then
15718   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15719 else
15720   $as_echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723         ac_cv_member_struct_sockaddr_storage___ss_family=no
15724 fi
15725
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727 fi
15728
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 fi
15731 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15732 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15733 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15734
15735 cat >>confdefs.h <<_ACEOF
15736 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15737 _ACEOF
15738
15739
15740 fi
15741 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15742 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15743 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15744   $as_echo_n "(cached) " >&6
15745 else
15746   cat >conftest.$ac_ext <<_ACEOF
15747 /* confdefs.h.  */
15748 _ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h.  */
15752 #include <sys/types.h>
15753 #ifdef HAVE_SYS_SOCKET_H
15754 #include <sys/socket.h>
15755 #endif
15756
15757
15758 int
15759 main ()
15760 {
15761 static struct sockaddr_storage ac_aggr;
15762 if (ac_aggr.ss_len)
15763 return 0;
15764   ;
15765   return 0;
15766 }
15767 _ACEOF
15768 rm -f conftest.$ac_objext
15769 if { (ac_try="$ac_compile"
15770 case "(($ac_try" in
15771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772   *) ac_try_echo=$ac_try;;
15773 esac
15774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15775 $as_echo "$ac_try_echo") >&5
15776   (eval "$ac_compile") 2>conftest.er1
15777   ac_status=$?
15778   grep -v '^ *+' conftest.er1 >conftest.err
15779   rm -f conftest.er1
15780   cat conftest.err >&5
15781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); } && {
15783          test -z "$ac_c_werror_flag" ||
15784          test ! -s conftest.err
15785        } && test -s conftest.$ac_objext; then
15786   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15787 else
15788   $as_echo "$as_me: failed program was:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15790
15791         cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797 #include <sys/types.h>
15798 #ifdef HAVE_SYS_SOCKET_H
15799 #include <sys/socket.h>
15800 #endif
15801
15802
15803 int
15804 main ()
15805 {
15806 static struct sockaddr_storage ac_aggr;
15807 if (sizeof ac_aggr.ss_len)
15808 return 0;
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 rm -f conftest.$ac_objext
15814 if { (ac_try="$ac_compile"
15815 case "(($ac_try" in
15816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817   *) ac_try_echo=$ac_try;;
15818 esac
15819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15820 $as_echo "$ac_try_echo") >&5
15821   (eval "$ac_compile") 2>conftest.er1
15822   ac_status=$?
15823   grep -v '^ *+' conftest.er1 >conftest.err
15824   rm -f conftest.er1
15825   cat conftest.err >&5
15826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } && {
15828          test -z "$ac_c_werror_flag" ||
15829          test ! -s conftest.err
15830        } && test -s conftest.$ac_objext; then
15831   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15832 else
15833   $as_echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15835
15836         ac_cv_member_struct_sockaddr_storage_ss_len=no
15837 fi
15838
15839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840 fi
15841
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843 fi
15844 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15845 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15846 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15847
15848 cat >>confdefs.h <<_ACEOF
15849 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15850 _ACEOF
15851
15852
15853 fi
15854 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15855 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15856 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15857   $as_echo_n "(cached) " >&6
15858 else
15859   cat >conftest.$ac_ext <<_ACEOF
15860 /* confdefs.h.  */
15861 _ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h.  */
15865 #include <sys/types.h>
15866 #ifdef HAVE_SYS_SOCKET_H
15867 #include <sys/socket.h>
15868 #endif
15869
15870
15871 int
15872 main ()
15873 {
15874 static struct sockaddr_storage ac_aggr;
15875 if (ac_aggr.__ss_len)
15876 return 0;
15877   ;
15878   return 0;
15879 }
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (ac_try="$ac_compile"
15883 case "(($ac_try" in
15884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885   *) ac_try_echo=$ac_try;;
15886 esac
15887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15888 $as_echo "$ac_try_echo") >&5
15889   (eval "$ac_compile") 2>conftest.er1
15890   ac_status=$?
15891   grep -v '^ *+' conftest.er1 >conftest.err
15892   rm -f conftest.er1
15893   cat conftest.err >&5
15894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); } && {
15896          test -z "$ac_c_werror_flag" ||
15897          test ! -s conftest.err
15898        } && test -s conftest.$ac_objext; then
15899   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15900 else
15901   $as_echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904         cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h.  */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h.  */
15910 #include <sys/types.h>
15911 #ifdef HAVE_SYS_SOCKET_H
15912 #include <sys/socket.h>
15913 #endif
15914
15915
15916 int
15917 main ()
15918 {
15919 static struct sockaddr_storage ac_aggr;
15920 if (sizeof ac_aggr.__ss_len)
15921 return 0;
15922   ;
15923   return 0;
15924 }
15925 _ACEOF
15926 rm -f conftest.$ac_objext
15927 if { (ac_try="$ac_compile"
15928 case "(($ac_try" in
15929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930   *) ac_try_echo=$ac_try;;
15931 esac
15932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15933 $as_echo "$ac_try_echo") >&5
15934   (eval "$ac_compile") 2>conftest.er1
15935   ac_status=$?
15936   grep -v '^ *+' conftest.er1 >conftest.err
15937   rm -f conftest.er1
15938   cat conftest.err >&5
15939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940   (exit $ac_status); } && {
15941          test -z "$ac_c_werror_flag" ||
15942          test ! -s conftest.err
15943        } && test -s conftest.$ac_objext; then
15944   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15945 else
15946   $as_echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949         ac_cv_member_struct_sockaddr_storage___ss_len=no
15950 fi
15951
15952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956 fi
15957 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15958 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15959 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15960
15961 cat >>confdefs.h <<_ACEOF
15962 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15963 _ACEOF
15964
15965
15966 fi
15967 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15968 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15969 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15970   $as_echo_n "(cached) " >&6
15971 else
15972   cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 #include <sys/types.h>
15979 #ifdef HAVE_SYS_SOCKET_H
15980 #include <sys/socket.h>
15981 #endif
15982
15983
15984 int
15985 main ()
15986 {
15987 static struct sockaddr ac_aggr;
15988 if (ac_aggr.sa_len)
15989 return 0;
15990   ;
15991   return 0;
15992 }
15993 _ACEOF
15994 rm -f conftest.$ac_objext
15995 if { (ac_try="$ac_compile"
15996 case "(($ac_try" in
15997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998   *) ac_try_echo=$ac_try;;
15999 esac
16000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16001 $as_echo "$ac_try_echo") >&5
16002   (eval "$ac_compile") 2>conftest.er1
16003   ac_status=$?
16004   grep -v '^ *+' conftest.er1 >conftest.err
16005   rm -f conftest.er1
16006   cat conftest.err >&5
16007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); } && {
16009          test -z "$ac_c_werror_flag" ||
16010          test ! -s conftest.err
16011        } && test -s conftest.$ac_objext; then
16012   ac_cv_member_struct_sockaddr_sa_len=yes
16013 else
16014   $as_echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16016
16017         cat >conftest.$ac_ext <<_ACEOF
16018 /* confdefs.h.  */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h.  */
16023 #include <sys/types.h>
16024 #ifdef HAVE_SYS_SOCKET_H
16025 #include <sys/socket.h>
16026 #endif
16027
16028
16029 int
16030 main ()
16031 {
16032 static struct sockaddr ac_aggr;
16033 if (sizeof ac_aggr.sa_len)
16034 return 0;
16035   ;
16036   return 0;
16037 }
16038 _ACEOF
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043   *) ac_try_echo=$ac_try;;
16044 esac
16045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16046 $as_echo "$ac_try_echo") >&5
16047   (eval "$ac_compile") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } && {
16054          test -z "$ac_c_werror_flag" ||
16055          test ! -s conftest.err
16056        } && test -s conftest.$ac_objext; then
16057   ac_cv_member_struct_sockaddr_sa_len=yes
16058 else
16059   $as_echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16061
16062         ac_cv_member_struct_sockaddr_sa_len=no
16063 fi
16064
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066 fi
16067
16068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16069 fi
16070 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16071 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16072 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16073
16074 cat >>confdefs.h <<_ACEOF
16075 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16076 _ACEOF
16077
16078
16079 fi
16080
16081 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16082 $as_echo_n "checking for struct addrinfo... " >&6; }
16083 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16084   $as_echo_n "(cached) " >&6
16085 else
16086   ac_cv_type_struct_addrinfo=no
16087 cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h.  */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h.  */
16093 #include <sys/types.h>
16094 #include <sys/socket.h>
16095 #include <netdb.h>
16096
16097
16098 int
16099 main ()
16100 {
16101 if (sizeof (struct addrinfo))
16102        return 0;
16103   ;
16104   return 0;
16105 }
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16114 $as_echo "$ac_try_echo") >&5
16115   (eval "$ac_compile") 2>conftest.er1
16116   ac_status=$?
16117   grep -v '^ *+' conftest.er1 >conftest.err
16118   rm -f conftest.er1
16119   cat conftest.err >&5
16120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121   (exit $ac_status); } && {
16122          test -z "$ac_c_werror_flag" ||
16123          test ! -s conftest.err
16124        } && test -s conftest.$ac_objext; then
16125   cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h.  */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h.  */
16131 #include <sys/types.h>
16132 #include <sys/socket.h>
16133 #include <netdb.h>
16134
16135
16136 int
16137 main ()
16138 {
16139 if (sizeof ((struct addrinfo)))
16140           return 0;
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (ac_try="$ac_compile"
16147 case "(($ac_try" in
16148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149   *) ac_try_echo=$ac_try;;
16150 esac
16151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16152 $as_echo "$ac_try_echo") >&5
16153   (eval "$ac_compile") 2>conftest.er1
16154   ac_status=$?
16155   grep -v '^ *+' conftest.er1 >conftest.err
16156   rm -f conftest.er1
16157   cat conftest.err >&5
16158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } && {
16160          test -z "$ac_c_werror_flag" ||
16161          test ! -s conftest.err
16162        } && test -s conftest.$ac_objext; then
16163   :
16164 else
16165   $as_echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168         ac_cv_type_struct_addrinfo=yes
16169 fi
16170
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16172 else
16173   $as_echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16175
16176
16177 fi
16178
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180 fi
16181 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16182 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16183 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16184
16185 cat >>confdefs.h <<_ACEOF
16186 #define HAVE_STRUCT_ADDRINFO 1
16187 _ACEOF
16188
16189
16190 fi
16191
16192
16193   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16194 $as_echo_n "checking for intptr_t... " >&6; }
16195 if test "${ac_cv_type_intptr_t+set}" = set; then
16196   $as_echo_n "(cached) " >&6
16197 else
16198   ac_cv_type_intptr_t=no
16199 cat >conftest.$ac_ext <<_ACEOF
16200 /* confdefs.h.  */
16201 _ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h.  */
16205 $ac_includes_default
16206 int
16207 main ()
16208 {
16209 if (sizeof (intptr_t))
16210        return 0;
16211   ;
16212   return 0;
16213 }
16214 _ACEOF
16215 rm -f conftest.$ac_objext
16216 if { (ac_try="$ac_compile"
16217 case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16222 $as_echo "$ac_try_echo") >&5
16223   (eval "$ac_compile") 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } && {
16230          test -z "$ac_c_werror_flag" ||
16231          test ! -s conftest.err
16232        } && test -s conftest.$ac_objext; then
16233   cat >conftest.$ac_ext <<_ACEOF
16234 /* confdefs.h.  */
16235 _ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h.  */
16239 $ac_includes_default
16240 int
16241 main ()
16242 {
16243 if (sizeof ((intptr_t)))
16244           return 0;
16245   ;
16246   return 0;
16247 }
16248 _ACEOF
16249 rm -f conftest.$ac_objext
16250 if { (ac_try="$ac_compile"
16251 case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256 $as_echo "$ac_try_echo") >&5
16257   (eval "$ac_compile") 2>conftest.er1
16258   ac_status=$?
16259   grep -v '^ *+' conftest.er1 >conftest.err
16260   rm -f conftest.er1
16261   cat conftest.err >&5
16262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); } && {
16264          test -z "$ac_c_werror_flag" ||
16265          test ! -s conftest.err
16266        } && test -s conftest.$ac_objext; then
16267   :
16268 else
16269   $as_echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16271
16272         ac_cv_type_intptr_t=yes
16273 fi
16274
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 else
16277   $as_echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280
16281 fi
16282
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284 fi
16285 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16286 $as_echo "$ac_cv_type_intptr_t" >&6; }
16287 if test "x$ac_cv_type_intptr_t" = x""yes; then
16288
16289 cat >>confdefs.h <<\_ACEOF
16290 #define HAVE_INTPTR_T 1
16291 _ACEOF
16292
16293 else
16294   for ac_type in 'int' 'long int' 'long long int'; do
16295        cat >conftest.$ac_ext <<_ACEOF
16296 /* confdefs.h.  */
16297 _ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h.  */
16301 $ac_includes_default
16302 int
16303 main ()
16304 {
16305 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16306 test_array [0] = 0
16307
16308   ;
16309   return 0;
16310 }
16311 _ACEOF
16312 rm -f conftest.$ac_objext
16313 if { (ac_try="$ac_compile"
16314 case "(($ac_try" in
16315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316   *) ac_try_echo=$ac_try;;
16317 esac
16318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16319 $as_echo "$ac_try_echo") >&5
16320   (eval "$ac_compile") 2>conftest.er1
16321   ac_status=$?
16322   grep -v '^ *+' conftest.er1 >conftest.err
16323   rm -f conftest.er1
16324   cat conftest.err >&5
16325   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); } && {
16327          test -z "$ac_c_werror_flag" ||
16328          test ! -s conftest.err
16329        } && test -s conftest.$ac_objext; then
16330
16331 cat >>confdefs.h <<_ACEOF
16332 #define intptr_t $ac_type
16333 _ACEOF
16334
16335           ac_type=
16336 else
16337   $as_echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340
16341 fi
16342
16343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16344        test -z "$ac_type" && break
16345      done
16346 fi
16347
16348
16349
16350   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16351 $as_echo_n "checking for uintptr_t... " >&6; }
16352 if test "${ac_cv_type_uintptr_t+set}" = set; then
16353   $as_echo_n "(cached) " >&6
16354 else
16355   ac_cv_type_uintptr_t=no
16356 cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 $ac_includes_default
16363 int
16364 main ()
16365 {
16366 if (sizeof (uintptr_t))
16367        return 0;
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376   *) ac_try_echo=$ac_try;;
16377 esac
16378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16379 $as_echo "$ac_try_echo") >&5
16380   (eval "$ac_compile") 2>conftest.er1
16381   ac_status=$?
16382   grep -v '^ *+' conftest.er1 >conftest.err
16383   rm -f conftest.er1
16384   cat conftest.err >&5
16385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); } && {
16387          test -z "$ac_c_werror_flag" ||
16388          test ! -s conftest.err
16389        } && test -s conftest.$ac_objext; then
16390   cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h.  */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h.  */
16396 $ac_includes_default
16397 int
16398 main ()
16399 {
16400 if (sizeof ((uintptr_t)))
16401           return 0;
16402   ;
16403   return 0;
16404 }
16405 _ACEOF
16406 rm -f conftest.$ac_objext
16407 if { (ac_try="$ac_compile"
16408 case "(($ac_try" in
16409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410   *) ac_try_echo=$ac_try;;
16411 esac
16412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16413 $as_echo "$ac_try_echo") >&5
16414   (eval "$ac_compile") 2>conftest.er1
16415   ac_status=$?
16416   grep -v '^ *+' conftest.er1 >conftest.err
16417   rm -f conftest.er1
16418   cat conftest.err >&5
16419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } && {
16421          test -z "$ac_c_werror_flag" ||
16422          test ! -s conftest.err
16423        } && test -s conftest.$ac_objext; then
16424   :
16425 else
16426   $as_echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16428
16429         ac_cv_type_uintptr_t=yes
16430 fi
16431
16432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433 else
16434   $as_echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437
16438 fi
16439
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16441 fi
16442 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16443 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16444 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16445
16446 cat >>confdefs.h <<\_ACEOF
16447 #define HAVE_UINTPTR_T 1
16448 _ACEOF
16449
16450 else
16451   for ac_type in 'unsigned int' 'unsigned long int' \
16452         'unsigned long long int'; do
16453        cat >conftest.$ac_ext <<_ACEOF
16454 /* confdefs.h.  */
16455 _ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h.  */
16459 $ac_includes_default
16460 int
16461 main ()
16462 {
16463 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16464 test_array [0] = 0
16465
16466   ;
16467   return 0;
16468 }
16469 _ACEOF
16470 rm -f conftest.$ac_objext
16471 if { (ac_try="$ac_compile"
16472 case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478   (eval "$ac_compile") 2>conftest.er1
16479   ac_status=$?
16480   grep -v '^ *+' conftest.er1 >conftest.err
16481   rm -f conftest.er1
16482   cat conftest.err >&5
16483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); } && {
16485          test -z "$ac_c_werror_flag" ||
16486          test ! -s conftest.err
16487        } && test -s conftest.$ac_objext; then
16488
16489 cat >>confdefs.h <<_ACEOF
16490 #define uintptr_t $ac_type
16491 _ACEOF
16492
16493           ac_type=
16494 else
16495   $as_echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16497
16498
16499 fi
16500
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502        test -z "$ac_type" && break
16503      done
16504 fi
16505
16506
16507
16508 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16509 $as_echo_n "checking for struct cmsgcred... " >&6; }
16510 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16511   $as_echo_n "(cached) " >&6
16512 else
16513   ac_cv_type_struct_cmsgcred=no
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520 #include <sys/param.h>
16521 #include <sys/types.h>
16522 #include <sys/socket.h>
16523 #include <sys/ucred.h>
16524
16525 int
16526 main ()
16527 {
16528 if (sizeof (struct cmsgcred))
16529        return 0;
16530   ;
16531   return 0;
16532 }
16533 _ACEOF
16534 rm -f conftest.$ac_objext
16535 if { (ac_try="$ac_compile"
16536 case "(($ac_try" in
16537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538   *) ac_try_echo=$ac_try;;
16539 esac
16540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16541 $as_echo "$ac_try_echo") >&5
16542   (eval "$ac_compile") 2>conftest.er1
16543   ac_status=$?
16544   grep -v '^ *+' conftest.er1 >conftest.err
16545   rm -f conftest.er1
16546   cat conftest.err >&5
16547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548   (exit $ac_status); } && {
16549          test -z "$ac_c_werror_flag" ||
16550          test ! -s conftest.err
16551        } && test -s conftest.$ac_objext; then
16552   cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558 #include <sys/param.h>
16559 #include <sys/types.h>
16560 #include <sys/socket.h>
16561 #include <sys/ucred.h>
16562
16563 int
16564 main ()
16565 {
16566 if (sizeof ((struct cmsgcred)))
16567           return 0;
16568   ;
16569   return 0;
16570 }
16571 _ACEOF
16572 rm -f conftest.$ac_objext
16573 if { (ac_try="$ac_compile"
16574 case "(($ac_try" in
16575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576   *) ac_try_echo=$ac_try;;
16577 esac
16578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16579 $as_echo "$ac_try_echo") >&5
16580   (eval "$ac_compile") 2>conftest.er1
16581   ac_status=$?
16582   grep -v '^ *+' conftest.er1 >conftest.err
16583   rm -f conftest.er1
16584   cat conftest.err >&5
16585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); } && {
16587          test -z "$ac_c_werror_flag" ||
16588          test ! -s conftest.err
16589        } && test -s conftest.$ac_objext; then
16590   :
16591 else
16592   $as_echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595         ac_cv_type_struct_cmsgcred=yes
16596 fi
16597
16598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16599 else
16600   $as_echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16602
16603
16604 fi
16605
16606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607 fi
16608 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16609 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16610 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16611
16612 cat >>confdefs.h <<_ACEOF
16613 #define HAVE_STRUCT_CMSGCRED 1
16614 _ACEOF
16615
16616
16617 fi
16618 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16619 $as_echo_n "checking for struct fcred... " >&6; }
16620 if test "${ac_cv_type_struct_fcred+set}" = set; then
16621   $as_echo_n "(cached) " >&6
16622 else
16623   ac_cv_type_struct_fcred=no
16624 cat >conftest.$ac_ext <<_ACEOF
16625 /* confdefs.h.  */
16626 _ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h.  */
16630 #include <sys/param.h>
16631 #include <sys/types.h>
16632 #include <sys/socket.h>
16633 #include <sys/ucred.h>
16634
16635 int
16636 main ()
16637 {
16638 if (sizeof (struct fcred))
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   cat >conftest.$ac_ext <<_ACEOF
16663 /* confdefs.h.  */
16664 _ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h.  */
16668 #include <sys/param.h>
16669 #include <sys/types.h>
16670 #include <sys/socket.h>
16671 #include <sys/ucred.h>
16672
16673 int
16674 main ()
16675 {
16676 if (sizeof ((struct fcred)))
16677           return 0;
16678   ;
16679   return 0;
16680 }
16681 _ACEOF
16682 rm -f conftest.$ac_objext
16683 if { (ac_try="$ac_compile"
16684 case "(($ac_try" in
16685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686   *) ac_try_echo=$ac_try;;
16687 esac
16688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16689 $as_echo "$ac_try_echo") >&5
16690   (eval "$ac_compile") 2>conftest.er1
16691   ac_status=$?
16692   grep -v '^ *+' conftest.er1 >conftest.err
16693   rm -f conftest.er1
16694   cat conftest.err >&5
16695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); } && {
16697          test -z "$ac_c_werror_flag" ||
16698          test ! -s conftest.err
16699        } && test -s conftest.$ac_objext; then
16700   :
16701 else
16702   $as_echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16704
16705         ac_cv_type_struct_fcred=yes
16706 fi
16707
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709 else
16710   $as_echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16712
16713
16714 fi
16715
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16717 fi
16718 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16719 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16720 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16721
16722 cat >>confdefs.h <<_ACEOF
16723 #define HAVE_STRUCT_FCRED 1
16724 _ACEOF
16725
16726
16727 fi
16728 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16729 $as_echo_n "checking for struct sockcred... " >&6; }
16730 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16731   $as_echo_n "(cached) " >&6
16732 else
16733   ac_cv_type_struct_sockcred=no
16734 cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740 #include <sys/param.h>
16741 #include <sys/types.h>
16742 #include <sys/socket.h>
16743 #include <sys/ucred.h>
16744
16745 int
16746 main ()
16747 {
16748 if (sizeof (struct sockcred))
16749        return 0;
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 rm -f conftest.$ac_objext
16755 if { (ac_try="$ac_compile"
16756 case "(($ac_try" in
16757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758   *) ac_try_echo=$ac_try;;
16759 esac
16760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16761 $as_echo "$ac_try_echo") >&5
16762   (eval "$ac_compile") 2>conftest.er1
16763   ac_status=$?
16764   grep -v '^ *+' conftest.er1 >conftest.err
16765   rm -f conftest.er1
16766   cat conftest.err >&5
16767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } && {
16769          test -z "$ac_c_werror_flag" ||
16770          test ! -s conftest.err
16771        } && test -s conftest.$ac_objext; then
16772   cat >conftest.$ac_ext <<_ACEOF
16773 /* confdefs.h.  */
16774 _ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h.  */
16778 #include <sys/param.h>
16779 #include <sys/types.h>
16780 #include <sys/socket.h>
16781 #include <sys/ucred.h>
16782
16783 int
16784 main ()
16785 {
16786 if (sizeof ((struct sockcred)))
16787           return 0;
16788   ;
16789   return 0;
16790 }
16791 _ACEOF
16792 rm -f conftest.$ac_objext
16793 if { (ac_try="$ac_compile"
16794 case "(($ac_try" in
16795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796   *) ac_try_echo=$ac_try;;
16797 esac
16798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16799 $as_echo "$ac_try_echo") >&5
16800   (eval "$ac_compile") 2>conftest.er1
16801   ac_status=$?
16802   grep -v '^ *+' conftest.er1 >conftest.err
16803   rm -f conftest.er1
16804   cat conftest.err >&5
16805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); } && {
16807          test -z "$ac_c_werror_flag" ||
16808          test ! -s conftest.err
16809        } && test -s conftest.$ac_objext; then
16810   :
16811 else
16812   $as_echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16814
16815         ac_cv_type_struct_sockcred=yes
16816 fi
16817
16818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 else
16820   $as_echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823
16824 fi
16825
16826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16827 fi
16828 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16829 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16830 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16831
16832 cat >>confdefs.h <<_ACEOF
16833 #define HAVE_STRUCT_SOCKCRED 1
16834 _ACEOF
16835
16836
16837 fi
16838
16839
16840 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16841 $as_echo_n "checking for struct option... " >&6; }
16842 if test "${ac_cv_type_struct_option+set}" = set; then
16843   $as_echo_n "(cached) " >&6
16844 else
16845   ac_cv_type_struct_option=no
16846 cat >conftest.$ac_ext <<_ACEOF
16847 /* confdefs.h.  */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h.  */
16852 #ifdef HAVE_GETOPT_H
16853 #include <getopt.h>
16854 #endif
16855
16856 int
16857 main ()
16858 {
16859 if (sizeof (struct option))
16860        return 0;
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext
16866 if { (ac_try="$ac_compile"
16867 case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16872 $as_echo "$ac_try_echo") >&5
16873   (eval "$ac_compile") 2>conftest.er1
16874   ac_status=$?
16875   grep -v '^ *+' conftest.er1 >conftest.err
16876   rm -f conftest.er1
16877   cat conftest.err >&5
16878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); } && {
16880          test -z "$ac_c_werror_flag" ||
16881          test ! -s conftest.err
16882        } && test -s conftest.$ac_objext; then
16883   cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h.  */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h.  */
16889 #ifdef HAVE_GETOPT_H
16890 #include <getopt.h>
16891 #endif
16892
16893 int
16894 main ()
16895 {
16896 if (sizeof ((struct option)))
16897           return 0;
16898   ;
16899   return 0;
16900 }
16901 _ACEOF
16902 rm -f conftest.$ac_objext
16903 if { (ac_try="$ac_compile"
16904 case "(($ac_try" in
16905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906   *) ac_try_echo=$ac_try;;
16907 esac
16908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16909 $as_echo "$ac_try_echo") >&5
16910   (eval "$ac_compile") 2>conftest.er1
16911   ac_status=$?
16912   grep -v '^ *+' conftest.er1 >conftest.err
16913   rm -f conftest.er1
16914   cat conftest.err >&5
16915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916   (exit $ac_status); } && {
16917          test -z "$ac_c_werror_flag" ||
16918          test ! -s conftest.err
16919        } && test -s conftest.$ac_objext; then
16920   :
16921 else
16922   $as_echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925         ac_cv_type_struct_option=yes
16926 fi
16927
16928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929 else
16930   $as_echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933
16934 fi
16935
16936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16937 fi
16938 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16939 $as_echo "$ac_cv_type_struct_option" >&6; }
16940 if test "x$ac_cv_type_struct_option" = x""yes; then
16941
16942 cat >>confdefs.h <<_ACEOF
16943 #define HAVE_STRUCT_OPTION 1
16944 _ACEOF
16945
16946
16947 fi
16948
16949
16950 if test "$with_zlib" = yes; then
16951   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16952   # did not).  While we could work around the lack of z_streamp, it
16953   # seems unwise to encourage people to use such old zlib versions...
16954   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16955 $as_echo_n "checking for z_streamp... " >&6; }
16956 if test "${ac_cv_type_z_streamp+set}" = set; then
16957   $as_echo_n "(cached) " >&6
16958 else
16959   ac_cv_type_z_streamp=no
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h.  */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h.  */
16966 #include <zlib.h>
16967
16968 int
16969 main ()
16970 {
16971 if (sizeof (z_streamp))
16972        return 0;
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext
16978 if { (ac_try="$ac_compile"
16979 case "(($ac_try" in
16980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981   *) ac_try_echo=$ac_try;;
16982 esac
16983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985   (eval "$ac_compile") 2>conftest.er1
16986   ac_status=$?
16987   grep -v '^ *+' conftest.er1 >conftest.err
16988   rm -f conftest.er1
16989   cat conftest.err >&5
16990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); } && {
16992          test -z "$ac_c_werror_flag" ||
16993          test ! -s conftest.err
16994        } && test -s conftest.$ac_objext; then
16995   cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001 #include <zlib.h>
17002
17003 int
17004 main ()
17005 {
17006 if (sizeof ((z_streamp)))
17007           return 0;
17008   ;
17009   return 0;
17010 }
17011 _ACEOF
17012 rm -f conftest.$ac_objext
17013 if { (ac_try="$ac_compile"
17014 case "(($ac_try" in
17015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016   *) ac_try_echo=$ac_try;;
17017 esac
17018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17019 $as_echo "$ac_try_echo") >&5
17020   (eval "$ac_compile") 2>conftest.er1
17021   ac_status=$?
17022   grep -v '^ *+' conftest.er1 >conftest.err
17023   rm -f conftest.er1
17024   cat conftest.err >&5
17025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } && {
17027          test -z "$ac_c_werror_flag" ||
17028          test ! -s conftest.err
17029        } && test -s conftest.$ac_objext; then
17030   :
17031 else
17032   $as_echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035         ac_cv_type_z_streamp=yes
17036 fi
17037
17038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17039 else
17040   $as_echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17042
17043
17044 fi
17045
17046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17047 fi
17048 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17049 $as_echo "$ac_cv_type_z_streamp" >&6; }
17050 if test "x$ac_cv_type_z_streamp" = x""yes; then
17051   :
17052 else
17053   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17054 Use --without-zlib to disable zlib support." >&5
17055 $as_echo "$as_me: error: zlib version is too old
17056 Use --without-zlib to disable zlib support." >&2;}
17057    { (exit 1); exit 1; }; }
17058 fi
17059
17060 fi
17061
17062 if test "$with_krb5" = yes; then
17063 # Check for differences between MIT and Heimdal (KTH) releases
17064   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17065 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17066 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17067   $as_echo_n "(cached) " >&6
17068 else
17069   cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h.  */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h.  */
17075 #include <krb5.h>
17076
17077 int
17078 main ()
17079 {
17080 static krb5_ticket ac_aggr;
17081 if (ac_aggr.enc_part2)
17082 return 0;
17083   ;
17084   return 0;
17085 }
17086 _ACEOF
17087 rm -f conftest.$ac_objext
17088 if { (ac_try="$ac_compile"
17089 case "(($ac_try" in
17090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091   *) ac_try_echo=$ac_try;;
17092 esac
17093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17094 $as_echo "$ac_try_echo") >&5
17095   (eval "$ac_compile") 2>conftest.er1
17096   ac_status=$?
17097   grep -v '^ *+' conftest.er1 >conftest.err
17098   rm -f conftest.er1
17099   cat conftest.err >&5
17100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101   (exit $ac_status); } && {
17102          test -z "$ac_c_werror_flag" ||
17103          test ! -s conftest.err
17104        } && test -s conftest.$ac_objext; then
17105   ac_cv_member_krb5_ticket_enc_part2=yes
17106 else
17107   $as_echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110         cat >conftest.$ac_ext <<_ACEOF
17111 /* confdefs.h.  */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h.  */
17116 #include <krb5.h>
17117
17118 int
17119 main ()
17120 {
17121 static krb5_ticket ac_aggr;
17122 if (sizeof ac_aggr.enc_part2)
17123 return 0;
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext
17129 if { (ac_try="$ac_compile"
17130 case "(($ac_try" in
17131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132   *) ac_try_echo=$ac_try;;
17133 esac
17134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17135 $as_echo "$ac_try_echo") >&5
17136   (eval "$ac_compile") 2>conftest.er1
17137   ac_status=$?
17138   grep -v '^ *+' conftest.er1 >conftest.err
17139   rm -f conftest.er1
17140   cat conftest.err >&5
17141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } && {
17143          test -z "$ac_c_werror_flag" ||
17144          test ! -s conftest.err
17145        } && test -s conftest.$ac_objext; then
17146   ac_cv_member_krb5_ticket_enc_part2=yes
17147 else
17148   $as_echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17150
17151         ac_cv_member_krb5_ticket_enc_part2=no
17152 fi
17153
17154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17155 fi
17156
17157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17158 fi
17159 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17160 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17161 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17162
17163 cat >>confdefs.h <<_ACEOF
17164 #define HAVE_KRB5_TICKET_ENC_PART2 1
17165 _ACEOF
17166
17167
17168 else
17169   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17170 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17171 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17172   $as_echo_n "(cached) " >&6
17173 else
17174   cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h.  */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h.  */
17180 #include <krb5.h>
17181
17182 int
17183 main ()
17184 {
17185 static krb5_ticket ac_aggr;
17186 if (ac_aggr.client)
17187 return 0;
17188   ;
17189   return 0;
17190 }
17191 _ACEOF
17192 rm -f conftest.$ac_objext
17193 if { (ac_try="$ac_compile"
17194 case "(($ac_try" in
17195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196   *) ac_try_echo=$ac_try;;
17197 esac
17198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17199 $as_echo "$ac_try_echo") >&5
17200   (eval "$ac_compile") 2>conftest.er1
17201   ac_status=$?
17202   grep -v '^ *+' conftest.er1 >conftest.err
17203   rm -f conftest.er1
17204   cat conftest.err >&5
17205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206   (exit $ac_status); } && {
17207          test -z "$ac_c_werror_flag" ||
17208          test ! -s conftest.err
17209        } && test -s conftest.$ac_objext; then
17210   ac_cv_member_krb5_ticket_client=yes
17211 else
17212   $as_echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215         cat >conftest.$ac_ext <<_ACEOF
17216 /* confdefs.h.  */
17217 _ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h.  */
17221 #include <krb5.h>
17222
17223 int
17224 main ()
17225 {
17226 static krb5_ticket ac_aggr;
17227 if (sizeof ac_aggr.client)
17228 return 0;
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237   *) ac_try_echo=$ac_try;;
17238 esac
17239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17240 $as_echo "$ac_try_echo") >&5
17241   (eval "$ac_compile") 2>conftest.er1
17242   ac_status=$?
17243   grep -v '^ *+' conftest.er1 >conftest.err
17244   rm -f conftest.er1
17245   cat conftest.err >&5
17246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); } && {
17248          test -z "$ac_c_werror_flag" ||
17249          test ! -s conftest.err
17250        } && test -s conftest.$ac_objext; then
17251   ac_cv_member_krb5_ticket_client=yes
17252 else
17253   $as_echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17255
17256         ac_cv_member_krb5_ticket_client=no
17257 fi
17258
17259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260 fi
17261
17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17263 fi
17264 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17265 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17266 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17267
17268 cat >>confdefs.h <<_ACEOF
17269 #define HAVE_KRB5_TICKET_CLIENT 1
17270 _ACEOF
17271
17272
17273 else
17274   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17275 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17276    { (exit 1); exit 1; }; }
17277 fi
17278
17279 fi
17280
17281   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17282 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17283 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17284   $as_echo_n "(cached) " >&6
17285 else
17286   cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h.  */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h.  */
17292 #include <krb5.h>
17293
17294 int
17295 main ()
17296 {
17297 static krb5_error ac_aggr;
17298 if (ac_aggr.text.data)
17299 return 0;
17300   ;
17301   return 0;
17302 }
17303 _ACEOF
17304 rm -f conftest.$ac_objext
17305 if { (ac_try="$ac_compile"
17306 case "(($ac_try" in
17307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308   *) ac_try_echo=$ac_try;;
17309 esac
17310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17311 $as_echo "$ac_try_echo") >&5
17312   (eval "$ac_compile") 2>conftest.er1
17313   ac_status=$?
17314   grep -v '^ *+' conftest.er1 >conftest.err
17315   rm -f conftest.er1
17316   cat conftest.err >&5
17317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318   (exit $ac_status); } && {
17319          test -z "$ac_c_werror_flag" ||
17320          test ! -s conftest.err
17321        } && test -s conftest.$ac_objext; then
17322   ac_cv_member_krb5_error_text_data=yes
17323 else
17324   $as_echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17326
17327         cat >conftest.$ac_ext <<_ACEOF
17328 /* confdefs.h.  */
17329 _ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h.  */
17333 #include <krb5.h>
17334
17335 int
17336 main ()
17337 {
17338 static krb5_error ac_aggr;
17339 if (sizeof ac_aggr.text.data)
17340 return 0;
17341   ;
17342   return 0;
17343 }
17344 _ACEOF
17345 rm -f conftest.$ac_objext
17346 if { (ac_try="$ac_compile"
17347 case "(($ac_try" in
17348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349   *) ac_try_echo=$ac_try;;
17350 esac
17351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17352 $as_echo "$ac_try_echo") >&5
17353   (eval "$ac_compile") 2>conftest.er1
17354   ac_status=$?
17355   grep -v '^ *+' conftest.er1 >conftest.err
17356   rm -f conftest.er1
17357   cat conftest.err >&5
17358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359   (exit $ac_status); } && {
17360          test -z "$ac_c_werror_flag" ||
17361          test ! -s conftest.err
17362        } && test -s conftest.$ac_objext; then
17363   ac_cv_member_krb5_error_text_data=yes
17364 else
17365   $as_echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17367
17368         ac_cv_member_krb5_error_text_data=no
17369 fi
17370
17371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17372 fi
17373
17374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375 fi
17376 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17377 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17378 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17379
17380 cat >>confdefs.h <<_ACEOF
17381 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17382 _ACEOF
17383
17384
17385 else
17386   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17387 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17388 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17389   $as_echo_n "(cached) " >&6
17390 else
17391   cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h.  */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h.  */
17397 #include <krb5.h>
17398
17399 int
17400 main ()
17401 {
17402 static krb5_error ac_aggr;
17403 if (ac_aggr.e_data)
17404 return 0;
17405   ;
17406   return 0;
17407 }
17408 _ACEOF
17409 rm -f conftest.$ac_objext
17410 if { (ac_try="$ac_compile"
17411 case "(($ac_try" in
17412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413   *) ac_try_echo=$ac_try;;
17414 esac
17415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17416 $as_echo "$ac_try_echo") >&5
17417   (eval "$ac_compile") 2>conftest.er1
17418   ac_status=$?
17419   grep -v '^ *+' conftest.er1 >conftest.err
17420   rm -f conftest.er1
17421   cat conftest.err >&5
17422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } && {
17424          test -z "$ac_c_werror_flag" ||
17425          test ! -s conftest.err
17426        } && test -s conftest.$ac_objext; then
17427   ac_cv_member_krb5_error_e_data=yes
17428 else
17429   $as_echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432         cat >conftest.$ac_ext <<_ACEOF
17433 /* confdefs.h.  */
17434 _ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h.  */
17438 #include <krb5.h>
17439
17440 int
17441 main ()
17442 {
17443 static krb5_error ac_aggr;
17444 if (sizeof ac_aggr.e_data)
17445 return 0;
17446   ;
17447   return 0;
17448 }
17449 _ACEOF
17450 rm -f conftest.$ac_objext
17451 if { (ac_try="$ac_compile"
17452 case "(($ac_try" in
17453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454   *) ac_try_echo=$ac_try;;
17455 esac
17456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17457 $as_echo "$ac_try_echo") >&5
17458   (eval "$ac_compile") 2>conftest.er1
17459   ac_status=$?
17460   grep -v '^ *+' conftest.er1 >conftest.err
17461   rm -f conftest.er1
17462   cat conftest.err >&5
17463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464   (exit $ac_status); } && {
17465          test -z "$ac_c_werror_flag" ||
17466          test ! -s conftest.err
17467        } && test -s conftest.$ac_objext; then
17468   ac_cv_member_krb5_error_e_data=yes
17469 else
17470   $as_echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473         ac_cv_member_krb5_error_e_data=no
17474 fi
17475
17476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17477 fi
17478
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17480 fi
17481 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17482 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17483 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17484
17485 cat >>confdefs.h <<_ACEOF
17486 #define HAVE_KRB5_ERROR_E_DATA 1
17487 _ACEOF
17488
17489
17490 else
17491   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17492 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17493    { (exit 1); exit 1; }; }
17494 fi
17495
17496 fi
17497
17498
17499 # Win32 requires headers to be loaded for __stdcall, so can't use
17500 # AC_CHECK_FUNCS here.
17501   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17502 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17503   cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509 #include <krb5.h>
17510 int
17511 main ()
17512 {
17513 krb5_free_unparsed_name(NULL,NULL);
17514   ;
17515   return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17525 $as_echo "$ac_try_echo") >&5
17526   (eval "$ac_link") 2>conftest.er1
17527   ac_status=$?
17528   grep -v '^ *+' conftest.er1 >conftest.err
17529   rm -f conftest.er1
17530   cat conftest.err >&5
17531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); } && {
17533          test -z "$ac_c_werror_flag" ||
17534          test ! -s conftest.err
17535        } && test -s conftest$ac_exeext && {
17536          test "$cross_compiling" = yes ||
17537          $as_test_x conftest$ac_exeext
17538        }; then
17539
17540 cat >>confdefs.h <<\_ACEOF
17541 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17542 _ACEOF
17543
17544 { $as_echo "$as_me:$LINENO: result: yes" >&5
17545 $as_echo "yes" >&6; }
17546 else
17547   $as_echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550         { $as_echo "$as_me:$LINENO: result: no" >&5
17551 $as_echo "no" >&6; }
17552 fi
17553
17554 rm -rf conftest.dSYM
17555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17556       conftest$ac_exeext conftest.$ac_ext
17557 fi
17558
17559 # Check largefile support.  You might think this is a system service not a
17560 # compiler characteristic, but you'd be wrong.  We must check this before
17561 # probing existence of related functions such as fseeko, since the largefile
17562 # defines can affect what is generated for that.
17563 # Check whether --enable-largefile was given.
17564 if test "${enable_largefile+set}" = set; then
17565   enableval=$enable_largefile;
17566 fi
17567
17568 if test "$enable_largefile" != no; then
17569
17570   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17571 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17572 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17573   $as_echo_n "(cached) " >&6
17574 else
17575   ac_cv_sys_largefile_CC=no
17576      if test "$GCC" != yes; then
17577        ac_save_CC=$CC
17578        while :; do
17579          # IRIX 6.2 and later do not support large files by default,
17580          # so use the C compiler's -n32 option if that helps.
17581          cat >conftest.$ac_ext <<_ACEOF
17582 /* confdefs.h.  */
17583 _ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h.  */
17587 #include <sys/types.h>
17588  /* Check that off_t can represent 2**63 - 1 correctly.
17589     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17590     since some C++ compilers masquerading as C compilers
17591     incorrectly reject 9223372036854775807.  */
17592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17593   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17594                        && LARGE_OFF_T % 2147483647 == 1)
17595                       ? 1 : -1];
17596 int
17597 main ()
17598 {
17599
17600   ;
17601   return 0;
17602 }
17603 _ACEOF
17604          rm -f conftest.$ac_objext
17605 if { (ac_try="$ac_compile"
17606 case "(($ac_try" in
17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608   *) ac_try_echo=$ac_try;;
17609 esac
17610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17611 $as_echo "$ac_try_echo") >&5
17612   (eval "$ac_compile") 2>conftest.er1
17613   ac_status=$?
17614   grep -v '^ *+' conftest.er1 >conftest.err
17615   rm -f conftest.er1
17616   cat conftest.err >&5
17617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); } && {
17619          test -z "$ac_c_werror_flag" ||
17620          test ! -s conftest.err
17621        } && test -s conftest.$ac_objext; then
17622   break
17623 else
17624   $as_echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17626
17627
17628 fi
17629
17630 rm -f core conftest.err conftest.$ac_objext
17631          CC="$CC -n32"
17632          rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640   (eval "$ac_compile") 2>conftest.er1
17641   ac_status=$?
17642   grep -v '^ *+' conftest.er1 >conftest.err
17643   rm -f conftest.er1
17644   cat conftest.err >&5
17645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); } && {
17647          test -z "$ac_c_werror_flag" ||
17648          test ! -s conftest.err
17649        } && test -s conftest.$ac_objext; then
17650   ac_cv_sys_largefile_CC=' -n32'; break
17651 else
17652   $as_echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17654
17655
17656 fi
17657
17658 rm -f core conftest.err conftest.$ac_objext
17659          break
17660        done
17661        CC=$ac_save_CC
17662        rm -f conftest.$ac_ext
17663     fi
17664 fi
17665 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17666 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17667   if test "$ac_cv_sys_largefile_CC" != no; then
17668     CC=$CC$ac_cv_sys_largefile_CC
17669   fi
17670
17671   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17672 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17673 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17674   $as_echo_n "(cached) " >&6
17675 else
17676   while :; do
17677   cat >conftest.$ac_ext <<_ACEOF
17678 /* confdefs.h.  */
17679 _ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h.  */
17683 #include <sys/types.h>
17684  /* Check that off_t can represent 2**63 - 1 correctly.
17685     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17686     since some C++ compilers masquerading as C compilers
17687     incorrectly reject 9223372036854775807.  */
17688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17689   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17690                        && LARGE_OFF_T % 2147483647 == 1)
17691                       ? 1 : -1];
17692 int
17693 main ()
17694 {
17695
17696   ;
17697   return 0;
17698 }
17699 _ACEOF
17700 rm -f conftest.$ac_objext
17701 if { (ac_try="$ac_compile"
17702 case "(($ac_try" in
17703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704   *) ac_try_echo=$ac_try;;
17705 esac
17706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17707 $as_echo "$ac_try_echo") >&5
17708   (eval "$ac_compile") 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } && {
17715          test -z "$ac_c_werror_flag" ||
17716          test ! -s conftest.err
17717        } && test -s conftest.$ac_objext; then
17718   ac_cv_sys_file_offset_bits=no; break
17719 else
17720   $as_echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723
17724 fi
17725
17726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17727   cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733 #define _FILE_OFFSET_BITS 64
17734 #include <sys/types.h>
17735  /* Check that off_t can represent 2**63 - 1 correctly.
17736     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17737     since some C++ compilers masquerading as C compilers
17738     incorrectly reject 9223372036854775807.  */
17739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17740   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17741                        && LARGE_OFF_T % 2147483647 == 1)
17742                       ? 1 : -1];
17743 int
17744 main ()
17745 {
17746
17747   ;
17748   return 0;
17749 }
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755   *) ac_try_echo=$ac_try;;
17756 esac
17757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17758 $as_echo "$ac_try_echo") >&5
17759   (eval "$ac_compile") 2>conftest.er1
17760   ac_status=$?
17761   grep -v '^ *+' conftest.er1 >conftest.err
17762   rm -f conftest.er1
17763   cat conftest.err >&5
17764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } && {
17766          test -z "$ac_c_werror_flag" ||
17767          test ! -s conftest.err
17768        } && test -s conftest.$ac_objext; then
17769   ac_cv_sys_file_offset_bits=64; break
17770 else
17771   $as_echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17773
17774
17775 fi
17776
17777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17778   ac_cv_sys_file_offset_bits=unknown
17779   break
17780 done
17781 fi
17782 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17783 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17784 case $ac_cv_sys_file_offset_bits in #(
17785   no | unknown) ;;
17786   *)
17787 cat >>confdefs.h <<_ACEOF
17788 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17789 _ACEOF
17790 ;;
17791 esac
17792 rm -rf conftest*
17793   if test $ac_cv_sys_file_offset_bits = unknown; then
17794     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17795 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17796 if test "${ac_cv_sys_large_files+set}" = set; then
17797   $as_echo_n "(cached) " >&6
17798 else
17799   while :; do
17800   cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h.  */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h.  */
17806 #include <sys/types.h>
17807  /* Check that off_t can represent 2**63 - 1 correctly.
17808     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17809     since some C++ compilers masquerading as C compilers
17810     incorrectly reject 9223372036854775807.  */
17811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17812   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17813                        && LARGE_OFF_T % 2147483647 == 1)
17814                       ? 1 : -1];
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   ac_cv_sys_large_files=no; break
17842 else
17843   $as_echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846
17847 fi
17848
17849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850   cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856 #define _LARGE_FILES 1
17857 #include <sys/types.h>
17858  /* Check that off_t can represent 2**63 - 1 correctly.
17859     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17860     since some C++ compilers masquerading as C compilers
17861     incorrectly reject 9223372036854775807.  */
17862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17863   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17864                        && LARGE_OFF_T % 2147483647 == 1)
17865                       ? 1 : -1];
17866 int
17867 main ()
17868 {
17869
17870   ;
17871   return 0;
17872 }
17873 _ACEOF
17874 rm -f conftest.$ac_objext
17875 if { (ac_try="$ac_compile"
17876 case "(($ac_try" in
17877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878   *) ac_try_echo=$ac_try;;
17879 esac
17880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17881 $as_echo "$ac_try_echo") >&5
17882   (eval "$ac_compile") 2>conftest.er1
17883   ac_status=$?
17884   grep -v '^ *+' conftest.er1 >conftest.err
17885   rm -f conftest.er1
17886   cat conftest.err >&5
17887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888   (exit $ac_status); } && {
17889          test -z "$ac_c_werror_flag" ||
17890          test ! -s conftest.err
17891        } && test -s conftest.$ac_objext; then
17892   ac_cv_sys_large_files=1; break
17893 else
17894   $as_echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17896
17897
17898 fi
17899
17900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17901   ac_cv_sys_large_files=unknown
17902   break
17903 done
17904 fi
17905 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17906 $as_echo "$ac_cv_sys_large_files" >&6; }
17907 case $ac_cv_sys_large_files in #(
17908   no | unknown) ;;
17909   *)
17910 cat >>confdefs.h <<_ACEOF
17911 #define _LARGE_FILES $ac_cv_sys_large_files
17912 _ACEOF
17913 ;;
17914 esac
17915 rm -rf conftest*
17916   fi
17917 fi
17918
17919
17920 # Check for largefile support (must be after AC_SYS_LARGEFILE)
17921 # The cast to long int works around a bug in the HP C Compiler
17922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17924 # This bug is HP SR number 8606223364.
17925 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
17926 $as_echo_n "checking size of off_t... " >&6; }
17927 if test "${ac_cv_sizeof_off_t+set}" = set; then
17928   $as_echo_n "(cached) " >&6
17929 else
17930   if test "$cross_compiling" = yes; then
17931   # Depending upon the size, compute the lo and hi bounds.
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h.  */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h.  */
17938 $ac_includes_default
17939 int
17940 main ()
17941 {
17942 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
17943 test_array [0] = 0
17944
17945   ;
17946   return 0;
17947 }
17948 _ACEOF
17949 rm -f conftest.$ac_objext
17950 if { (ac_try="$ac_compile"
17951 case "(($ac_try" in
17952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953   *) ac_try_echo=$ac_try;;
17954 esac
17955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17956 $as_echo "$ac_try_echo") >&5
17957   (eval "$ac_compile") 2>conftest.er1
17958   ac_status=$?
17959   grep -v '^ *+' conftest.er1 >conftest.err
17960   rm -f conftest.er1
17961   cat conftest.err >&5
17962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); } && {
17964          test -z "$ac_c_werror_flag" ||
17965          test ! -s conftest.err
17966        } && test -s conftest.$ac_objext; then
17967   ac_lo=0 ac_mid=0
17968   while :; do
17969     cat >conftest.$ac_ext <<_ACEOF
17970 /* confdefs.h.  */
17971 _ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h.  */
17975 $ac_includes_default
17976 int
17977 main ()
17978 {
17979 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
17980 test_array [0] = 0
17981
17982   ;
17983   return 0;
17984 }
17985 _ACEOF
17986 rm -f conftest.$ac_objext
17987 if { (ac_try="$ac_compile"
17988 case "(($ac_try" in
17989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990   *) ac_try_echo=$ac_try;;
17991 esac
17992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17993 $as_echo "$ac_try_echo") >&5
17994   (eval "$ac_compile") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } && {
18001          test -z "$ac_c_werror_flag" ||
18002          test ! -s conftest.err
18003        } && test -s conftest.$ac_objext; then
18004   ac_hi=$ac_mid; break
18005 else
18006   $as_echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009         ac_lo=`expr $ac_mid + 1`
18010                         if test $ac_lo -le $ac_mid; then
18011                           ac_lo= ac_hi=
18012                           break
18013                         fi
18014                         ac_mid=`expr 2 '*' $ac_mid + 1`
18015 fi
18016
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018   done
18019 else
18020   $as_echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023         cat >conftest.$ac_ext <<_ACEOF
18024 /* confdefs.h.  */
18025 _ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h.  */
18029 $ac_includes_default
18030 int
18031 main ()
18032 {
18033 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18034 test_array [0] = 0
18035
18036   ;
18037   return 0;
18038 }
18039 _ACEOF
18040 rm -f conftest.$ac_objext
18041 if { (ac_try="$ac_compile"
18042 case "(($ac_try" in
18043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044   *) ac_try_echo=$ac_try;;
18045 esac
18046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18047 $as_echo "$ac_try_echo") >&5
18048   (eval "$ac_compile") 2>conftest.er1
18049   ac_status=$?
18050   grep -v '^ *+' conftest.er1 >conftest.err
18051   rm -f conftest.er1
18052   cat conftest.err >&5
18053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); } && {
18055          test -z "$ac_c_werror_flag" ||
18056          test ! -s conftest.err
18057        } && test -s conftest.$ac_objext; then
18058   ac_hi=-1 ac_mid=-1
18059   while :; do
18060     cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h.  */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h.  */
18066 $ac_includes_default
18067 int
18068 main ()
18069 {
18070 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18071 test_array [0] = 0
18072
18073   ;
18074   return 0;
18075 }
18076 _ACEOF
18077 rm -f conftest.$ac_objext
18078 if { (ac_try="$ac_compile"
18079 case "(($ac_try" in
18080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081   *) ac_try_echo=$ac_try;;
18082 esac
18083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18084 $as_echo "$ac_try_echo") >&5
18085   (eval "$ac_compile") 2>conftest.er1
18086   ac_status=$?
18087   grep -v '^ *+' conftest.er1 >conftest.err
18088   rm -f conftest.er1
18089   cat conftest.err >&5
18090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); } && {
18092          test -z "$ac_c_werror_flag" ||
18093          test ! -s conftest.err
18094        } && test -s conftest.$ac_objext; then
18095   ac_lo=$ac_mid; break
18096 else
18097   $as_echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18099
18100         ac_hi=`expr '(' $ac_mid ')' - 1`
18101                         if test $ac_mid -le $ac_hi; then
18102                           ac_lo= ac_hi=
18103                           break
18104                         fi
18105                         ac_mid=`expr 2 '*' $ac_mid`
18106 fi
18107
18108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18109   done
18110 else
18111   $as_echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18113
18114         ac_lo= ac_hi=
18115 fi
18116
18117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18118 fi
18119
18120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121 # Binary search between lo and hi bounds.
18122 while test "x$ac_lo" != "x$ac_hi"; do
18123   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18124   cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h.  */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h.  */
18130 $ac_includes_default
18131 int
18132 main ()
18133 {
18134 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18135 test_array [0] = 0
18136
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145   *) ac_try_echo=$ac_try;;
18146 esac
18147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18148 $as_echo "$ac_try_echo") >&5
18149   (eval "$ac_compile") 2>conftest.er1
18150   ac_status=$?
18151   grep -v '^ *+' conftest.er1 >conftest.err
18152   rm -f conftest.er1
18153   cat conftest.err >&5
18154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155   (exit $ac_status); } && {
18156          test -z "$ac_c_werror_flag" ||
18157          test ! -s conftest.err
18158        } && test -s conftest.$ac_objext; then
18159   ac_hi=$ac_mid
18160 else
18161   $as_echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18163
18164         ac_lo=`expr '(' $ac_mid ')' + 1`
18165 fi
18166
18167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18168 done
18169 case $ac_lo in
18170 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18171 '') if test "$ac_cv_type_off_t" = yes; then
18172      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18174 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18175 See \`config.log' for more details." >&5
18176 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18177 See \`config.log' for more details." >&2;}
18178    { (exit 77); exit 77; }; }; }
18179    else
18180      ac_cv_sizeof_off_t=0
18181    fi ;;
18182 esac
18183 else
18184   cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h.  */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h.  */
18190 $ac_includes_default
18191 static long int longval () { return (long int) (sizeof (off_t)); }
18192 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18193 #include <stdio.h>
18194 #include <stdlib.h>
18195 int
18196 main ()
18197 {
18198
18199   FILE *f = fopen ("conftest.val", "w");
18200   if (! f)
18201     return 1;
18202   if (((long int) (sizeof (off_t))) < 0)
18203     {
18204       long int i = longval ();
18205       if (i != ((long int) (sizeof (off_t))))
18206         return 1;
18207       fprintf (f, "%ld", i);
18208     }
18209   else
18210     {
18211       unsigned long int i = ulongval ();
18212       if (i != ((long int) (sizeof (off_t))))
18213         return 1;
18214       fprintf (f, "%lu", i);
18215     }
18216   /* Do not output a trailing newline, as this causes \r\n confusion
18217      on some platforms.  */
18218   return ferror (f) || fclose (f) != 0;
18219
18220   ;
18221   return 0;
18222 }
18223 _ACEOF
18224 rm -f conftest$ac_exeext
18225 if { (ac_try="$ac_link"
18226 case "(($ac_try" in
18227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228   *) ac_try_echo=$ac_try;;
18229 esac
18230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18231 $as_echo "$ac_try_echo") >&5
18232   (eval "$ac_link") 2>&5
18233   ac_status=$?
18234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18236   { (case "(($ac_try" in
18237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238   *) ac_try_echo=$ac_try;;
18239 esac
18240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18241 $as_echo "$ac_try_echo") >&5
18242   (eval "$ac_try") 2>&5
18243   ac_status=$?
18244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); }; }; then
18246   ac_cv_sizeof_off_t=`cat conftest.val`
18247 else
18248   $as_echo "$as_me: program exited with status $ac_status" >&5
18249 $as_echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 ( exit $ac_status )
18253 if test "$ac_cv_type_off_t" = yes; then
18254      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18256 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18257 See \`config.log' for more details." >&5
18258 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18259 See \`config.log' for more details." >&2;}
18260    { (exit 77); exit 77; }; }; }
18261    else
18262      ac_cv_sizeof_off_t=0
18263    fi
18264 fi
18265 rm -rf conftest.dSYM
18266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18267 fi
18268 rm -f conftest.val
18269 fi
18270 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18271 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18272
18273
18274
18275 cat >>confdefs.h <<_ACEOF
18276 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18277 _ACEOF
18278
18279
18280
18281 # If we don't have largefile support, can't handle segsize >= 2GB.
18282 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18283    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18284 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18285    { (exit 1); exit 1; }; }
18286 fi
18287
18288
18289 ##
18290 ## Functions, global variables
18291 ##
18292
18293 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18294 $as_echo_n "checking for int timezone... " >&6; }
18295 if test "${pgac_cv_var_int_timezone+set}" = set; then
18296   $as_echo_n "(cached) " >&6
18297 else
18298   cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h.  */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h.  */
18304 #include <time.h>
18305 int res;
18306 int
18307 main ()
18308 {
18309 #ifndef __CYGWIN__
18310 res = timezone / 60;
18311 #else
18312 res = _timezone / 60;
18313 #endif
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322   *) ac_try_echo=$ac_try;;
18323 esac
18324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18325 $as_echo "$ac_try_echo") >&5
18326   (eval "$ac_link") 2>conftest.er1
18327   ac_status=$?
18328   grep -v '^ *+' conftest.er1 >conftest.err
18329   rm -f conftest.er1
18330   cat conftest.err >&5
18331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } && {
18333          test -z "$ac_c_werror_flag" ||
18334          test ! -s conftest.err
18335        } && test -s conftest$ac_exeext && {
18336          test "$cross_compiling" = yes ||
18337          $as_test_x conftest$ac_exeext
18338        }; then
18339   pgac_cv_var_int_timezone=yes
18340 else
18341   $as_echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18343
18344         pgac_cv_var_int_timezone=no
18345 fi
18346
18347 rm -rf conftest.dSYM
18348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18349       conftest$ac_exeext conftest.$ac_ext
18350 fi
18351 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18352 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18353 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18354
18355 cat >>confdefs.h <<\_ACEOF
18356 #define HAVE_INT_TIMEZONE /**/
18357 _ACEOF
18358
18359 fi
18360 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18361 $as_echo_n "checking types of arguments for accept()... " >&6; }
18362  if test "${ac_cv_func_accept_return+set}" = set; then
18363   $as_echo_n "(cached) " >&6
18364 else
18365    if test "${ac_cv_func_accept_arg1+set}" = set; then
18366   $as_echo_n "(cached) " >&6
18367 else
18368     if test "${ac_cv_func_accept_arg2+set}" = set; then
18369   $as_echo_n "(cached) " >&6
18370 else
18371      if test "${ac_cv_func_accept_arg3+set}" = set; then
18372   $as_echo_n "(cached) " >&6
18373 else
18374       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
18375       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
18376        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18377         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18378          cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h.  */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h.  */
18384 #ifdef HAVE_SYS_TYPES_H
18385 #include <sys/types.h>
18386 #endif
18387 #ifdef HAVE_SYS_SOCKET_H
18388 #include <sys/socket.h>
18389 #endif
18390 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18391 int
18392 main ()
18393 {
18394
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 rm -f conftest.$ac_objext
18400 if { (ac_try="$ac_compile"
18401 case "(($ac_try" in
18402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403   *) ac_try_echo=$ac_try;;
18404 esac
18405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18406 $as_echo "$ac_try_echo") >&5
18407   (eval "$ac_compile") 2>conftest.er1
18408   ac_status=$?
18409   grep -v '^ *+' conftest.er1 >conftest.err
18410   rm -f conftest.er1
18411   cat conftest.err >&5
18412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413   (exit $ac_status); } && {
18414          test -z "$ac_c_werror_flag" ||
18415          test ! -s conftest.err
18416        } && test -s conftest.$ac_objext; then
18417   ac_not_found=no; break 4
18418 else
18419   $as_echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18421
18422         ac_not_found=yes
18423 fi
18424
18425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18426        done
18427       done
18428      done
18429     done
18430     if test "$ac_not_found" = yes; then
18431       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18432 $as_echo "$as_me: error: could not determine argument types" >&2;}
18433    { (exit 1); exit 1; }; }
18434     fi
18435     if test "$ac_cv_func_accept_arg3" = "void"; then
18436       ac_cv_func_accept_arg3=int
18437     fi
18438
18439 fi
18440
18441 fi
18442
18443 fi
18444
18445 fi
18446  { $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
18447 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18448
18449 cat >>confdefs.h <<_ACEOF
18450 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18451 _ACEOF
18452
18453
18454 cat >>confdefs.h <<_ACEOF
18455 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18456 _ACEOF
18457
18458
18459 cat >>confdefs.h <<_ACEOF
18460 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18461 _ACEOF
18462
18463
18464 cat >>confdefs.h <<_ACEOF
18465 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18466 _ACEOF
18467
18468
18469 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18470 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18471 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18472   $as_echo_n "(cached) " >&6
18473 else
18474   cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h.  */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h.  */
18480 #include <sys/time.h>
18481 int
18482 main ()
18483 {
18484 struct timeval *tp;
18485 struct timezone *tzp;
18486 gettimeofday(tp,tzp);
18487   ;
18488   return 0;
18489 }
18490 _ACEOF
18491 rm -f conftest.$ac_objext
18492 if { (ac_try="$ac_compile"
18493 case "(($ac_try" in
18494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495   *) ac_try_echo=$ac_try;;
18496 esac
18497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18498 $as_echo "$ac_try_echo") >&5
18499   (eval "$ac_compile") 2>conftest.er1
18500   ac_status=$?
18501   grep -v '^ *+' conftest.er1 >conftest.err
18502   rm -f conftest.er1
18503   cat conftest.err >&5
18504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505   (exit $ac_status); } && {
18506          test -z "$ac_c_werror_flag" ||
18507          test ! -s conftest.err
18508        } && test -s conftest.$ac_objext; then
18509   pgac_cv_func_gettimeofday_1arg=no
18510 else
18511   $as_echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18513
18514         pgac_cv_func_gettimeofday_1arg=yes
18515 fi
18516
18517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18518 fi
18519 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18520 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18521 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18522
18523 cat >>confdefs.h <<\_ACEOF
18524 #define GETTIMEOFDAY_1ARG /**/
18525 _ACEOF
18526
18527 fi
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
18555 do
18556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18557 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18558 $as_echo_n "checking for $ac_func... " >&6; }
18559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18560   $as_echo_n "(cached) " >&6
18561 else
18562   cat >conftest.$ac_ext <<_ACEOF
18563 /* confdefs.h.  */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h.  */
18568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18570 #define $ac_func innocuous_$ac_func
18571
18572 /* System header to define __stub macros and hopefully few prototypes,
18573     which can conflict with char $ac_func (); below.
18574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18575     <limits.h> exists even on freestanding compilers.  */
18576
18577 #ifdef __STDC__
18578 # include <limits.h>
18579 #else
18580 # include <assert.h>
18581 #endif
18582
18583 #undef $ac_func
18584
18585 /* Override any GCC internal prototype to avoid an error.
18586    Use char because int might match the return type of a GCC
18587    builtin and then its argument prototype would still apply.  */
18588 #ifdef __cplusplus
18589 extern "C"
18590 #endif
18591 char $ac_func ();
18592 /* The GNU C library defines this for functions which it implements
18593     to always fail with ENOSYS.  Some functions are actually named
18594     something starting with __ and the normal name is an alias.  */
18595 #if defined __stub_$ac_func || defined __stub___$ac_func
18596 choke me
18597 #endif
18598
18599 int
18600 main ()
18601 {
18602 return $ac_func ();
18603   ;
18604   return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (ac_try="$ac_link"
18609 case "(($ac_try" in
18610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611   *) ac_try_echo=$ac_try;;
18612 esac
18613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18614 $as_echo "$ac_try_echo") >&5
18615   (eval "$ac_link") 2>conftest.er1
18616   ac_status=$?
18617   grep -v '^ *+' conftest.er1 >conftest.err
18618   rm -f conftest.er1
18619   cat conftest.err >&5
18620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621   (exit $ac_status); } && {
18622          test -z "$ac_c_werror_flag" ||
18623          test ! -s conftest.err
18624        } && test -s conftest$ac_exeext && {
18625          test "$cross_compiling" = yes ||
18626          $as_test_x conftest$ac_exeext
18627        }; then
18628   eval "$as_ac_var=yes"
18629 else
18630   $as_echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18632
18633         eval "$as_ac_var=no"
18634 fi
18635
18636 rm -rf conftest.dSYM
18637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18638       conftest$ac_exeext conftest.$ac_ext
18639 fi
18640 ac_res=`eval 'as_val=${'$as_ac_var'}
18641                  $as_echo "$as_val"'`
18642                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18643 $as_echo "$ac_res" >&6; }
18644 as_val=`eval 'as_val=${'$as_ac_var'}
18645                  $as_echo "$as_val"'`
18646    if test "x$as_val" = x""yes; then
18647   cat >>confdefs.h <<_ACEOF
18648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18649 _ACEOF
18650
18651 fi
18652 done
18653
18654
18655
18656 for ac_func in fseeko
18657 do
18658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18659 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18660 $as_echo_n "checking for $ac_func... " >&6; }
18661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18662   $as_echo_n "(cached) " >&6
18663 else
18664   cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h.  */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h.  */
18670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18672 #define $ac_func innocuous_$ac_func
18673
18674 /* System header to define __stub macros and hopefully few prototypes,
18675     which can conflict with char $ac_func (); below.
18676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18677     <limits.h> exists even on freestanding compilers.  */
18678
18679 #ifdef __STDC__
18680 # include <limits.h>
18681 #else
18682 # include <assert.h>
18683 #endif
18684
18685 #undef $ac_func
18686
18687 /* Override any GCC internal prototype to avoid an error.
18688    Use char because int might match the return type of a GCC
18689    builtin and then its argument prototype would still apply.  */
18690 #ifdef __cplusplus
18691 extern "C"
18692 #endif
18693 char $ac_func ();
18694 /* The GNU C library defines this for functions which it implements
18695     to always fail with ENOSYS.  Some functions are actually named
18696     something starting with __ and the normal name is an alias.  */
18697 #if defined __stub_$ac_func || defined __stub___$ac_func
18698 choke me
18699 #endif
18700
18701 int
18702 main ()
18703 {
18704 return $ac_func ();
18705   ;
18706   return 0;
18707 }
18708 _ACEOF
18709 rm -f conftest.$ac_objext conftest$ac_exeext
18710 if { (ac_try="$ac_link"
18711 case "(($ac_try" in
18712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713   *) ac_try_echo=$ac_try;;
18714 esac
18715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18716 $as_echo "$ac_try_echo") >&5
18717   (eval "$ac_link") 2>conftest.er1
18718   ac_status=$?
18719   grep -v '^ *+' conftest.er1 >conftest.err
18720   rm -f conftest.er1
18721   cat conftest.err >&5
18722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723   (exit $ac_status); } && {
18724          test -z "$ac_c_werror_flag" ||
18725          test ! -s conftest.err
18726        } && test -s conftest$ac_exeext && {
18727          test "$cross_compiling" = yes ||
18728          $as_test_x conftest$ac_exeext
18729        }; then
18730   eval "$as_ac_var=yes"
18731 else
18732   $as_echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18734
18735         eval "$as_ac_var=no"
18736 fi
18737
18738 rm -rf conftest.dSYM
18739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18740       conftest$ac_exeext conftest.$ac_ext
18741 fi
18742 ac_res=`eval 'as_val=${'$as_ac_var'}
18743                  $as_echo "$as_val"'`
18744                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18745 $as_echo "$ac_res" >&6; }
18746 as_val=`eval 'as_val=${'$as_ac_var'}
18747                  $as_echo "$as_val"'`
18748    if test "x$as_val" = x""yes; then
18749   cat >>confdefs.h <<_ACEOF
18750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18751 _ACEOF
18752
18753 else
18754   case " $LIBOBJS " in
18755   *" $ac_func.$ac_objext "* ) ;;
18756   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18757  ;;
18758 esac
18759
18760 fi
18761 done
18762
18763
18764 case $host_os in
18765         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18766         # Mingw uses macros to access Win32 API calls
18767         bsdi*|netbsd*|mingw*)
18768
18769 cat >>confdefs.h <<\_ACEOF
18770 #define HAVE_FSEEKO 1
18771 _ACEOF
18772
18773                 ac_cv_func_fseeko=yes;;
18774         *)
18775                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18776 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18777 if test "${ac_cv_sys_largefile_source+set}" = set; then
18778   $as_echo_n "(cached) " >&6
18779 else
18780   while :; do
18781   cat >conftest.$ac_ext <<_ACEOF
18782 /* confdefs.h.  */
18783 _ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h.  */
18787 #include <sys/types.h> /* for off_t */
18788      #include <stdio.h>
18789 int
18790 main ()
18791 {
18792 int (*fp) (FILE *, off_t, int) = fseeko;
18793      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18794   ;
18795   return 0;
18796 }
18797 _ACEOF
18798 rm -f conftest.$ac_objext conftest$ac_exeext
18799 if { (ac_try="$ac_link"
18800 case "(($ac_try" in
18801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802   *) ac_try_echo=$ac_try;;
18803 esac
18804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18805 $as_echo "$ac_try_echo") >&5
18806   (eval "$ac_link") 2>conftest.er1
18807   ac_status=$?
18808   grep -v '^ *+' conftest.er1 >conftest.err
18809   rm -f conftest.er1
18810   cat conftest.err >&5
18811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); } && {
18813          test -z "$ac_c_werror_flag" ||
18814          test ! -s conftest.err
18815        } && test -s conftest$ac_exeext && {
18816          test "$cross_compiling" = yes ||
18817          $as_test_x conftest$ac_exeext
18818        }; then
18819   ac_cv_sys_largefile_source=no; break
18820 else
18821   $as_echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18823
18824
18825 fi
18826
18827 rm -rf conftest.dSYM
18828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18829       conftest$ac_exeext conftest.$ac_ext
18830   cat >conftest.$ac_ext <<_ACEOF
18831 /* confdefs.h.  */
18832 _ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h.  */
18836 #define _LARGEFILE_SOURCE 1
18837 #include <sys/types.h> /* for off_t */
18838      #include <stdio.h>
18839 int
18840 main ()
18841 {
18842 int (*fp) (FILE *, off_t, int) = fseeko;
18843      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18844   ;
18845   return 0;
18846 }
18847 _ACEOF
18848 rm -f conftest.$ac_objext conftest$ac_exeext
18849 if { (ac_try="$ac_link"
18850 case "(($ac_try" in
18851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852   *) ac_try_echo=$ac_try;;
18853 esac
18854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18855 $as_echo "$ac_try_echo") >&5
18856   (eval "$ac_link") 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } && {
18863          test -z "$ac_c_werror_flag" ||
18864          test ! -s conftest.err
18865        } && test -s conftest$ac_exeext && {
18866          test "$cross_compiling" = yes ||
18867          $as_test_x conftest$ac_exeext
18868        }; then
18869   ac_cv_sys_largefile_source=1; break
18870 else
18871   $as_echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18873
18874
18875 fi
18876
18877 rm -rf conftest.dSYM
18878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18879       conftest$ac_exeext conftest.$ac_ext
18880   ac_cv_sys_largefile_source=unknown
18881   break
18882 done
18883 fi
18884 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18885 $as_echo "$ac_cv_sys_largefile_source" >&6; }
18886 case $ac_cv_sys_largefile_source in #(
18887   no | unknown) ;;
18888   *)
18889 cat >>confdefs.h <<_ACEOF
18890 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18891 _ACEOF
18892 ;;
18893 esac
18894 rm -rf conftest*
18895
18896 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18897 # in glibc 2.1.3, but that breaks too many other things.
18898 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18899 if test $ac_cv_sys_largefile_source != unknown; then
18900
18901 cat >>confdefs.h <<\_ACEOF
18902 #define HAVE_FSEEKO 1
18903 _ACEOF
18904
18905 fi
18906 ;;
18907 esac
18908
18909 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
18910 # by calling it, 2009-04-02
18911 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
18912 if test "$PORTNAME" != "solaris"; then
18913
18914 for ac_func in posix_fadvise
18915 do
18916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18917 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18918 $as_echo_n "checking for $ac_func... " >&6; }
18919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18920   $as_echo_n "(cached) " >&6
18921 else
18922   cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h.  */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h.  */
18928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18930 #define $ac_func innocuous_$ac_func
18931
18932 /* System header to define __stub macros and hopefully few prototypes,
18933     which can conflict with char $ac_func (); below.
18934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18935     <limits.h> exists even on freestanding compilers.  */
18936
18937 #ifdef __STDC__
18938 # include <limits.h>
18939 #else
18940 # include <assert.h>
18941 #endif
18942
18943 #undef $ac_func
18944
18945 /* Override any GCC internal prototype to avoid an error.
18946    Use char because int might match the return type of a GCC
18947    builtin and then its argument prototype would still apply.  */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 char $ac_func ();
18952 /* The GNU C library defines this for functions which it implements
18953     to always fail with ENOSYS.  Some functions are actually named
18954     something starting with __ and the normal name is an alias.  */
18955 #if defined __stub_$ac_func || defined __stub___$ac_func
18956 choke me
18957 #endif
18958
18959 int
18960 main ()
18961 {
18962 return $ac_func ();
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (ac_try="$ac_link"
18969 case "(($ac_try" in
18970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971   *) ac_try_echo=$ac_try;;
18972 esac
18973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18974 $as_echo "$ac_try_echo") >&5
18975   (eval "$ac_link") 2>conftest.er1
18976   ac_status=$?
18977   grep -v '^ *+' conftest.er1 >conftest.err
18978   rm -f conftest.er1
18979   cat conftest.err >&5
18980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); } && {
18982          test -z "$ac_c_werror_flag" ||
18983          test ! -s conftest.err
18984        } && test -s conftest$ac_exeext && {
18985          test "$cross_compiling" = yes ||
18986          $as_test_x conftest$ac_exeext
18987        }; then
18988   eval "$as_ac_var=yes"
18989 else
18990   $as_echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18992
18993         eval "$as_ac_var=no"
18994 fi
18995
18996 rm -rf conftest.dSYM
18997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18998       conftest$ac_exeext conftest.$ac_ext
18999 fi
19000 ac_res=`eval 'as_val=${'$as_ac_var'}
19001                  $as_echo "$as_val"'`
19002                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19003 $as_echo "$ac_res" >&6; }
19004 as_val=`eval 'as_val=${'$as_ac_var'}
19005                  $as_echo "$as_val"'`
19006    if test "x$as_val" = x""yes; then
19007   cat >>confdefs.h <<_ACEOF
19008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19009 _ACEOF
19010
19011 fi
19012 done
19013
19014 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19015 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19016 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19017   $as_echo_n "(cached) " >&6
19018 else
19019   cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h.  */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h.  */
19025 #include <fcntl.h>
19026
19027 int
19028 main ()
19029 {
19030 #ifndef posix_fadvise
19031   (void) posix_fadvise;
19032 #endif
19033
19034   ;
19035   return 0;
19036 }
19037 _ACEOF
19038 rm -f conftest.$ac_objext
19039 if { (ac_try="$ac_compile"
19040 case "(($ac_try" in
19041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042   *) ac_try_echo=$ac_try;;
19043 esac
19044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19045 $as_echo "$ac_try_echo") >&5
19046   (eval "$ac_compile") 2>conftest.er1
19047   ac_status=$?
19048   grep -v '^ *+' conftest.er1 >conftest.err
19049   rm -f conftest.er1
19050   cat conftest.err >&5
19051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); } && {
19053          test -z "$ac_c_werror_flag" ||
19054          test ! -s conftest.err
19055        } && test -s conftest.$ac_objext; then
19056   ac_cv_have_decl_posix_fadvise=yes
19057 else
19058   $as_echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19060
19061         ac_cv_have_decl_posix_fadvise=no
19062 fi
19063
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19065 fi
19066 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19067 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19068 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19069
19070 cat >>confdefs.h <<_ACEOF
19071 #define HAVE_DECL_POSIX_FADVISE 1
19072 _ACEOF
19073
19074
19075 else
19076   cat >>confdefs.h <<_ACEOF
19077 #define HAVE_DECL_POSIX_FADVISE 0
19078 _ACEOF
19079
19080
19081 fi
19082
19083
19084 fi
19085
19086 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19087 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19088 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19089   $as_echo_n "(cached) " >&6
19090 else
19091   cat >conftest.$ac_ext <<_ACEOF
19092 /* confdefs.h.  */
19093 _ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h.  */
19097 #include <unistd.h>
19098
19099 int
19100 main ()
19101 {
19102 #ifndef fdatasync
19103   (void) fdatasync;
19104 #endif
19105
19106   ;
19107   return 0;
19108 }
19109 _ACEOF
19110 rm -f conftest.$ac_objext
19111 if { (ac_try="$ac_compile"
19112 case "(($ac_try" in
19113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114   *) ac_try_echo=$ac_try;;
19115 esac
19116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19117 $as_echo "$ac_try_echo") >&5
19118   (eval "$ac_compile") 2>conftest.er1
19119   ac_status=$?
19120   grep -v '^ *+' conftest.er1 >conftest.err
19121   rm -f conftest.er1
19122   cat conftest.err >&5
19123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); } && {
19125          test -z "$ac_c_werror_flag" ||
19126          test ! -s conftest.err
19127        } && test -s conftest.$ac_objext; then
19128   ac_cv_have_decl_fdatasync=yes
19129 else
19130   $as_echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133         ac_cv_have_decl_fdatasync=no
19134 fi
19135
19136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19137 fi
19138 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19139 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19140 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19141
19142 cat >>confdefs.h <<_ACEOF
19143 #define HAVE_DECL_FDATASYNC 1
19144 _ACEOF
19145
19146
19147 else
19148   cat >>confdefs.h <<_ACEOF
19149 #define HAVE_DECL_FDATASYNC 0
19150 _ACEOF
19151
19152
19153 fi
19154
19155
19156 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19157 $as_echo_n "checking whether strlcat is declared... " >&6; }
19158 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19159   $as_echo_n "(cached) " >&6
19160 else
19161   cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h.  */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h.  */
19167 $ac_includes_default
19168 int
19169 main ()
19170 {
19171 #ifndef strlcat
19172   (void) strlcat;
19173 #endif
19174
19175   ;
19176   return 0;
19177 }
19178 _ACEOF
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183   *) ac_try_echo=$ac_try;;
19184 esac
19185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19186 $as_echo "$ac_try_echo") >&5
19187   (eval "$ac_compile") 2>conftest.er1
19188   ac_status=$?
19189   grep -v '^ *+' conftest.er1 >conftest.err
19190   rm -f conftest.er1
19191   cat conftest.err >&5
19192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); } && {
19194          test -z "$ac_c_werror_flag" ||
19195          test ! -s conftest.err
19196        } && test -s conftest.$ac_objext; then
19197   ac_cv_have_decl_strlcat=yes
19198 else
19199   $as_echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19201
19202         ac_cv_have_decl_strlcat=no
19203 fi
19204
19205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 fi
19207 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19208 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19209 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19210
19211 cat >>confdefs.h <<_ACEOF
19212 #define HAVE_DECL_STRLCAT 1
19213 _ACEOF
19214
19215
19216 else
19217   cat >>confdefs.h <<_ACEOF
19218 #define HAVE_DECL_STRLCAT 0
19219 _ACEOF
19220
19221
19222 fi
19223 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19224 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19225 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19226   $as_echo_n "(cached) " >&6
19227 else
19228   cat >conftest.$ac_ext <<_ACEOF
19229 /* confdefs.h.  */
19230 _ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h.  */
19234 $ac_includes_default
19235 int
19236 main ()
19237 {
19238 #ifndef strlcpy
19239   (void) strlcpy;
19240 #endif
19241
19242   ;
19243   return 0;
19244 }
19245 _ACEOF
19246 rm -f conftest.$ac_objext
19247 if { (ac_try="$ac_compile"
19248 case "(($ac_try" in
19249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250   *) ac_try_echo=$ac_try;;
19251 esac
19252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19253 $as_echo "$ac_try_echo") >&5
19254   (eval "$ac_compile") 2>conftest.er1
19255   ac_status=$?
19256   grep -v '^ *+' conftest.er1 >conftest.err
19257   rm -f conftest.er1
19258   cat conftest.err >&5
19259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260   (exit $ac_status); } && {
19261          test -z "$ac_c_werror_flag" ||
19262          test ! -s conftest.err
19263        } && test -s conftest.$ac_objext; then
19264   ac_cv_have_decl_strlcpy=yes
19265 else
19266   $as_echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19268
19269         ac_cv_have_decl_strlcpy=no
19270 fi
19271
19272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19273 fi
19274 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19275 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19276 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19277
19278 cat >>confdefs.h <<_ACEOF
19279 #define HAVE_DECL_STRLCPY 1
19280 _ACEOF
19281
19282
19283 else
19284   cat >>confdefs.h <<_ACEOF
19285 #define HAVE_DECL_STRLCPY 0
19286 _ACEOF
19287
19288
19289 fi
19290
19291
19292 # This is probably only present on Darwin, but may as well check always
19293 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19294 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19295 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19296   $as_echo_n "(cached) " >&6
19297 else
19298   cat >conftest.$ac_ext <<_ACEOF
19299 /* confdefs.h.  */
19300 _ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h.  */
19304 #include <fcntl.h>
19305
19306 int
19307 main ()
19308 {
19309 #ifndef F_FULLFSYNC
19310   (void) F_FULLFSYNC;
19311 #endif
19312
19313   ;
19314   return 0;
19315 }
19316 _ACEOF
19317 rm -f conftest.$ac_objext
19318 if { (ac_try="$ac_compile"
19319 case "(($ac_try" in
19320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321   *) ac_try_echo=$ac_try;;
19322 esac
19323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19324 $as_echo "$ac_try_echo") >&5
19325   (eval "$ac_compile") 2>conftest.er1
19326   ac_status=$?
19327   grep -v '^ *+' conftest.er1 >conftest.err
19328   rm -f conftest.er1
19329   cat conftest.err >&5
19330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); } && {
19332          test -z "$ac_c_werror_flag" ||
19333          test ! -s conftest.err
19334        } && test -s conftest.$ac_objext; then
19335   ac_cv_have_decl_F_FULLFSYNC=yes
19336 else
19337   $as_echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340         ac_cv_have_decl_F_FULLFSYNC=no
19341 fi
19342
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19344 fi
19345 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19346 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19347 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19348
19349 cat >>confdefs.h <<_ACEOF
19350 #define HAVE_DECL_F_FULLFSYNC 1
19351 _ACEOF
19352
19353
19354 else
19355   cat >>confdefs.h <<_ACEOF
19356 #define HAVE_DECL_F_FULLFSYNC 0
19357 _ACEOF
19358
19359
19360 fi
19361
19362
19363
19364 HAVE_IPV6=no
19365 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19366 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19367 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19368   $as_echo_n "(cached) " >&6
19369 else
19370   ac_cv_type_struct_sockaddr_in6=no
19371 cat >conftest.$ac_ext <<_ACEOF
19372 /* confdefs.h.  */
19373 _ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h.  */
19377 $ac_includes_default
19378 #include <netinet/in.h>
19379
19380 int
19381 main ()
19382 {
19383 if (sizeof (struct sockaddr_in6))
19384        return 0;
19385   ;
19386   return 0;
19387 }
19388 _ACEOF
19389 rm -f conftest.$ac_objext
19390 if { (ac_try="$ac_compile"
19391 case "(($ac_try" in
19392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393   *) ac_try_echo=$ac_try;;
19394 esac
19395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19396 $as_echo "$ac_try_echo") >&5
19397   (eval "$ac_compile") 2>conftest.er1
19398   ac_status=$?
19399   grep -v '^ *+' conftest.er1 >conftest.err
19400   rm -f conftest.er1
19401   cat conftest.err >&5
19402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); } && {
19404          test -z "$ac_c_werror_flag" ||
19405          test ! -s conftest.err
19406        } && test -s conftest.$ac_objext; then
19407   cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413 $ac_includes_default
19414 #include <netinet/in.h>
19415
19416 int
19417 main ()
19418 {
19419 if (sizeof ((struct sockaddr_in6)))
19420           return 0;
19421   ;
19422   return 0;
19423 }
19424 _ACEOF
19425 rm -f conftest.$ac_objext
19426 if { (ac_try="$ac_compile"
19427 case "(($ac_try" in
19428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429   *) ac_try_echo=$ac_try;;
19430 esac
19431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19432 $as_echo "$ac_try_echo") >&5
19433   (eval "$ac_compile") 2>conftest.er1
19434   ac_status=$?
19435   grep -v '^ *+' conftest.er1 >conftest.err
19436   rm -f conftest.er1
19437   cat conftest.err >&5
19438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); } && {
19440          test -z "$ac_c_werror_flag" ||
19441          test ! -s conftest.err
19442        } && test -s conftest.$ac_objext; then
19443   :
19444 else
19445   $as_echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448         ac_cv_type_struct_sockaddr_in6=yes
19449 fi
19450
19451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452 else
19453   $as_echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19455
19456
19457 fi
19458
19459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19460 fi
19461 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19462 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19463 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19464
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE_IPV6 1
19467 _ACEOF
19468
19469          HAVE_IPV6=yes
19470 fi
19471
19472
19473
19474 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19475 $as_echo_n "checking for PS_STRINGS... " >&6; }
19476 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19477   $as_echo_n "(cached) " >&6
19478 else
19479   cat >conftest.$ac_ext <<_ACEOF
19480 /* confdefs.h.  */
19481 _ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h.  */
19485 #include <machine/vmparam.h>
19486 #include <sys/exec.h>
19487
19488 int
19489 main ()
19490 {
19491 PS_STRINGS->ps_nargvstr = 1;
19492 PS_STRINGS->ps_argvstr = "foo";
19493   ;
19494   return 0;
19495 }
19496 _ACEOF
19497 rm -f conftest.$ac_objext conftest$ac_exeext
19498 if { (ac_try="$ac_link"
19499 case "(($ac_try" in
19500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501   *) ac_try_echo=$ac_try;;
19502 esac
19503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19504 $as_echo "$ac_try_echo") >&5
19505   (eval "$ac_link") 2>conftest.er1
19506   ac_status=$?
19507   grep -v '^ *+' conftest.er1 >conftest.err
19508   rm -f conftest.er1
19509   cat conftest.err >&5
19510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); } && {
19512          test -z "$ac_c_werror_flag" ||
19513          test ! -s conftest.err
19514        } && test -s conftest$ac_exeext && {
19515          test "$cross_compiling" = yes ||
19516          $as_test_x conftest$ac_exeext
19517        }; then
19518   pgac_cv_var_PS_STRINGS=yes
19519 else
19520   $as_echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523         pgac_cv_var_PS_STRINGS=no
19524 fi
19525
19526 rm -rf conftest.dSYM
19527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19528       conftest$ac_exeext conftest.$ac_ext
19529 fi
19530 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19531 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19532 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19533
19534 cat >>confdefs.h <<\_ACEOF
19535 #define HAVE_PS_STRINGS /**/
19536 _ACEOF
19537
19538 fi
19539
19540
19541 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19542 # is missing.  Yes, there are machines that have only one.  We may
19543 # also decide to use snprintf.c if snprintf() is present but does not
19544 # have all the features we need --- see below.
19545
19546 if test "$PORTNAME" = "win32"; then
19547   # Win32 gets snprintf.c built unconditionally.
19548   #
19549   # To properly translate all NLS languages strings, we must support the
19550   # *printf() %$ format, which allows *printf() arguments to be selected
19551   # by position in the translated string.
19552   #
19553   # libintl versions < 0.13 use the native *printf() functions, and Win32
19554   # *printf() doesn't understand %$, so we must use our /port versions,
19555   # which do understand %$. libintl versions >= 0.13 include their own
19556   # *printf versions on Win32.  The libintl 0.13 release note text is:
19557   #
19558   #   C format strings with positions, as they arise when a translator
19559   #   needs to reorder a sentence, are now supported on all platforms.
19560   #   On those few platforms (NetBSD and Woe32) for which the native
19561   #   printf()/fprintf()/... functions don't support such format
19562   #   strings, replacements are provided through <libintl.h>.
19563   #
19564   # We could use libintl >= 0.13's *printf() if we were sure that we had
19565   # a litint >= 0.13 at runtime, but seeing that there is no clean way
19566   # to guarantee that, it is best to just use our own, so we are sure to
19567   # get %$ support. In include/port.h we disable the *printf() macros
19568   # that might have been defined by libintl.
19569   #
19570   # We do this unconditionally whether NLS is used or not so we are sure
19571   # that all Win32 libraries and binaries behave the same.
19572   pgac_need_repl_snprintf=yes
19573 else
19574   pgac_need_repl_snprintf=no
19575
19576 for ac_func in snprintf
19577 do
19578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19579 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19580 $as_echo_n "checking for $ac_func... " >&6; }
19581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19582   $as_echo_n "(cached) " >&6
19583 else
19584   cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h.  */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h.  */
19590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19592 #define $ac_func innocuous_$ac_func
19593
19594 /* System header to define __stub macros and hopefully few prototypes,
19595     which can conflict with char $ac_func (); below.
19596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19597     <limits.h> exists even on freestanding compilers.  */
19598
19599 #ifdef __STDC__
19600 # include <limits.h>
19601 #else
19602 # include <assert.h>
19603 #endif
19604
19605 #undef $ac_func
19606
19607 /* Override any GCC internal prototype to avoid an error.
19608    Use char because int might match the return type of a GCC
19609    builtin and then its argument prototype would still apply.  */
19610 #ifdef __cplusplus
19611 extern "C"
19612 #endif
19613 char $ac_func ();
19614 /* The GNU C library defines this for functions which it implements
19615     to always fail with ENOSYS.  Some functions are actually named
19616     something starting with __ and the normal name is an alias.  */
19617 #if defined __stub_$ac_func || defined __stub___$ac_func
19618 choke me
19619 #endif
19620
19621 int
19622 main ()
19623 {
19624 return $ac_func ();
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633   *) ac_try_echo=$ac_try;;
19634 esac
19635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19636 $as_echo "$ac_try_echo") >&5
19637   (eval "$ac_link") 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } && {
19644          test -z "$ac_c_werror_flag" ||
19645          test ! -s conftest.err
19646        } && test -s conftest$ac_exeext && {
19647          test "$cross_compiling" = yes ||
19648          $as_test_x conftest$ac_exeext
19649        }; then
19650   eval "$as_ac_var=yes"
19651 else
19652   $as_echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655         eval "$as_ac_var=no"
19656 fi
19657
19658 rm -rf conftest.dSYM
19659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19660       conftest$ac_exeext conftest.$ac_ext
19661 fi
19662 ac_res=`eval 'as_val=${'$as_ac_var'}
19663                  $as_echo "$as_val"'`
19664                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19665 $as_echo "$ac_res" >&6; }
19666 as_val=`eval 'as_val=${'$as_ac_var'}
19667                  $as_echo "$as_val"'`
19668    if test "x$as_val" = x""yes; then
19669   cat >>confdefs.h <<_ACEOF
19670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19671 _ACEOF
19672
19673 else
19674   pgac_need_repl_snprintf=yes
19675 fi
19676 done
19677
19678
19679 for ac_func in vsnprintf
19680 do
19681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19682 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19683 $as_echo_n "checking for $ac_func... " >&6; }
19684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19685   $as_echo_n "(cached) " >&6
19686 else
19687   cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h.  */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h.  */
19693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19695 #define $ac_func innocuous_$ac_func
19696
19697 /* System header to define __stub macros and hopefully few prototypes,
19698     which can conflict with char $ac_func (); below.
19699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19700     <limits.h> exists even on freestanding compilers.  */
19701
19702 #ifdef __STDC__
19703 # include <limits.h>
19704 #else
19705 # include <assert.h>
19706 #endif
19707
19708 #undef $ac_func
19709
19710 /* Override any GCC internal prototype to avoid an error.
19711    Use char because int might match the return type of a GCC
19712    builtin and then its argument prototype would still apply.  */
19713 #ifdef __cplusplus
19714 extern "C"
19715 #endif
19716 char $ac_func ();
19717 /* The GNU C library defines this for functions which it implements
19718     to always fail with ENOSYS.  Some functions are actually named
19719     something starting with __ and the normal name is an alias.  */
19720 #if defined __stub_$ac_func || defined __stub___$ac_func
19721 choke me
19722 #endif
19723
19724 int
19725 main ()
19726 {
19727 return $ac_func ();
19728   ;
19729   return 0;
19730 }
19731 _ACEOF
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736   *) ac_try_echo=$ac_try;;
19737 esac
19738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19739 $as_echo "$ac_try_echo") >&5
19740   (eval "$ac_link") 2>conftest.er1
19741   ac_status=$?
19742   grep -v '^ *+' conftest.er1 >conftest.err
19743   rm -f conftest.er1
19744   cat conftest.err >&5
19745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746   (exit $ac_status); } && {
19747          test -z "$ac_c_werror_flag" ||
19748          test ! -s conftest.err
19749        } && test -s conftest$ac_exeext && {
19750          test "$cross_compiling" = yes ||
19751          $as_test_x conftest$ac_exeext
19752        }; then
19753   eval "$as_ac_var=yes"
19754 else
19755   $as_echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19757
19758         eval "$as_ac_var=no"
19759 fi
19760
19761 rm -rf conftest.dSYM
19762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19763       conftest$ac_exeext conftest.$ac_ext
19764 fi
19765 ac_res=`eval 'as_val=${'$as_ac_var'}
19766                  $as_echo "$as_val"'`
19767                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19768 $as_echo "$ac_res" >&6; }
19769 as_val=`eval 'as_val=${'$as_ac_var'}
19770                  $as_echo "$as_val"'`
19771    if test "x$as_val" = x""yes; then
19772   cat >>confdefs.h <<_ACEOF
19773 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19774 _ACEOF
19775
19776 else
19777   pgac_need_repl_snprintf=yes
19778 fi
19779 done
19780
19781 fi
19782
19783
19784 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19785 # include/c.h will provide declarations.  Note this is a separate test
19786 # from whether the functions exist in the C library --- there are
19787 # systems that have the functions but don't bother to declare them :-(
19788
19789 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19790 $as_echo_n "checking whether snprintf is declared... " >&6; }
19791 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19792   $as_echo_n "(cached) " >&6
19793 else
19794   cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h.  */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h.  */
19800 $ac_includes_default
19801 int
19802 main ()
19803 {
19804 #ifndef snprintf
19805   (void) snprintf;
19806 #endif
19807
19808   ;
19809   return 0;
19810 }
19811 _ACEOF
19812 rm -f conftest.$ac_objext
19813 if { (ac_try="$ac_compile"
19814 case "(($ac_try" in
19815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816   *) ac_try_echo=$ac_try;;
19817 esac
19818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19819 $as_echo "$ac_try_echo") >&5
19820   (eval "$ac_compile") 2>conftest.er1
19821   ac_status=$?
19822   grep -v '^ *+' conftest.er1 >conftest.err
19823   rm -f conftest.er1
19824   cat conftest.err >&5
19825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); } && {
19827          test -z "$ac_c_werror_flag" ||
19828          test ! -s conftest.err
19829        } && test -s conftest.$ac_objext; then
19830   ac_cv_have_decl_snprintf=yes
19831 else
19832   $as_echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835         ac_cv_have_decl_snprintf=no
19836 fi
19837
19838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19839 fi
19840 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19841 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19842 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
19843
19844 cat >>confdefs.h <<_ACEOF
19845 #define HAVE_DECL_SNPRINTF 1
19846 _ACEOF
19847
19848
19849 else
19850   cat >>confdefs.h <<_ACEOF
19851 #define HAVE_DECL_SNPRINTF 0
19852 _ACEOF
19853
19854
19855 fi
19856 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19857 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
19858 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19859   $as_echo_n "(cached) " >&6
19860 else
19861   cat >conftest.$ac_ext <<_ACEOF
19862 /* confdefs.h.  */
19863 _ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h.  */
19867 $ac_includes_default
19868 int
19869 main ()
19870 {
19871 #ifndef vsnprintf
19872   (void) vsnprintf;
19873 #endif
19874
19875   ;
19876   return 0;
19877 }
19878 _ACEOF
19879 rm -f conftest.$ac_objext
19880 if { (ac_try="$ac_compile"
19881 case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19886 $as_echo "$ac_try_echo") >&5
19887   (eval "$ac_compile") 2>conftest.er1
19888   ac_status=$?
19889   grep -v '^ *+' conftest.er1 >conftest.err
19890   rm -f conftest.er1
19891   cat conftest.err >&5
19892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } && {
19894          test -z "$ac_c_werror_flag" ||
19895          test ! -s conftest.err
19896        } && test -s conftest.$ac_objext; then
19897   ac_cv_have_decl_vsnprintf=yes
19898 else
19899   $as_echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19901
19902         ac_cv_have_decl_vsnprintf=no
19903 fi
19904
19905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19906 fi
19907 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
19908 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
19909 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
19910
19911 cat >>confdefs.h <<_ACEOF
19912 #define HAVE_DECL_VSNPRINTF 1
19913 _ACEOF
19914
19915
19916 else
19917   cat >>confdefs.h <<_ACEOF
19918 #define HAVE_DECL_VSNPRINTF 0
19919 _ACEOF
19920
19921
19922 fi
19923
19924
19925
19926
19927 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
19928 $as_echo_n "checking for isinf... " >&6; }
19929 if test "${ac_cv_func_isinf+set}" = set; then
19930   $as_echo_n "(cached) " >&6
19931 else
19932   cat >conftest.$ac_ext <<_ACEOF
19933 /* confdefs.h.  */
19934 _ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h.  */
19938
19939 #include <math.h>
19940 double glob_double;
19941
19942 int
19943 main ()
19944 {
19945 return isinf(glob_double) ? 0 : 1;
19946   ;
19947   return 0;
19948 }
19949 _ACEOF
19950 rm -f conftest.$ac_objext conftest$ac_exeext
19951 if { (ac_try="$ac_link"
19952 case "(($ac_try" in
19953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954   *) ac_try_echo=$ac_try;;
19955 esac
19956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19957 $as_echo "$ac_try_echo") >&5
19958   (eval "$ac_link") 2>conftest.er1
19959   ac_status=$?
19960   grep -v '^ *+' conftest.er1 >conftest.err
19961   rm -f conftest.er1
19962   cat conftest.err >&5
19963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); } && {
19965          test -z "$ac_c_werror_flag" ||
19966          test ! -s conftest.err
19967        } && test -s conftest$ac_exeext && {
19968          test "$cross_compiling" = yes ||
19969          $as_test_x conftest$ac_exeext
19970        }; then
19971   ac_cv_func_isinf=yes
19972 else
19973   $as_echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976         ac_cv_func_isinf=no
19977 fi
19978
19979 rm -rf conftest.dSYM
19980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19981       conftest$ac_exeext conftest.$ac_ext
19982 fi
19983 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
19984 $as_echo "$ac_cv_func_isinf" >&6; }
19985
19986 if test $ac_cv_func_isinf = yes ; then
19987
19988 cat >>confdefs.h <<\_ACEOF
19989 #define HAVE_ISINF 1
19990 _ACEOF
19991
19992 else
19993   case " $LIBOBJS " in
19994   *" isinf.$ac_objext "* ) ;;
19995   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
19996  ;;
19997 esac
19998
19999   # Look for a way to implement a substitute for isinf()
20000
20001
20002
20003
20004 for ac_func in fpclass fp_class fp_class_d class
20005 do
20006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20007 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20008 $as_echo_n "checking for $ac_func... " >&6; }
20009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20010   $as_echo_n "(cached) " >&6
20011 else
20012   cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h.  */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h.  */
20018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20020 #define $ac_func innocuous_$ac_func
20021
20022 /* System header to define __stub macros and hopefully few prototypes,
20023     which can conflict with char $ac_func (); below.
20024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20025     <limits.h> exists even on freestanding compilers.  */
20026
20027 #ifdef __STDC__
20028 # include <limits.h>
20029 #else
20030 # include <assert.h>
20031 #endif
20032
20033 #undef $ac_func
20034
20035 /* Override any GCC internal prototype to avoid an error.
20036    Use char because int might match the return type of a GCC
20037    builtin and then its argument prototype would still apply.  */
20038 #ifdef __cplusplus
20039 extern "C"
20040 #endif
20041 char $ac_func ();
20042 /* The GNU C library defines this for functions which it implements
20043     to always fail with ENOSYS.  Some functions are actually named
20044     something starting with __ and the normal name is an alias.  */
20045 #if defined __stub_$ac_func || defined __stub___$ac_func
20046 choke me
20047 #endif
20048
20049 int
20050 main ()
20051 {
20052 return $ac_func ();
20053   ;
20054   return 0;
20055 }
20056 _ACEOF
20057 rm -f conftest.$ac_objext conftest$ac_exeext
20058 if { (ac_try="$ac_link"
20059 case "(($ac_try" in
20060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061   *) ac_try_echo=$ac_try;;
20062 esac
20063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20064 $as_echo "$ac_try_echo") >&5
20065   (eval "$ac_link") 2>conftest.er1
20066   ac_status=$?
20067   grep -v '^ *+' conftest.er1 >conftest.err
20068   rm -f conftest.er1
20069   cat conftest.err >&5
20070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } && {
20072          test -z "$ac_c_werror_flag" ||
20073          test ! -s conftest.err
20074        } && test -s conftest$ac_exeext && {
20075          test "$cross_compiling" = yes ||
20076          $as_test_x conftest$ac_exeext
20077        }; then
20078   eval "$as_ac_var=yes"
20079 else
20080   $as_echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083         eval "$as_ac_var=no"
20084 fi
20085
20086 rm -rf conftest.dSYM
20087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20088       conftest$ac_exeext conftest.$ac_ext
20089 fi
20090 ac_res=`eval 'as_val=${'$as_ac_var'}
20091                  $as_echo "$as_val"'`
20092                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20093 $as_echo "$ac_res" >&6; }
20094 as_val=`eval 'as_val=${'$as_ac_var'}
20095                  $as_echo "$as_val"'`
20096    if test "x$as_val" = x""yes; then
20097   cat >>confdefs.h <<_ACEOF
20098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20099 _ACEOF
20100  break
20101 fi
20102 done
20103
20104 fi
20105
20106 # Some versions of libedit contain strlcpy(); so disregard that library while
20107 # checking for these standard libc functions.
20108 pgac_save_LIBS="$LIBS"
20109 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20126 do
20127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20128 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20129 $as_echo_n "checking for $ac_func... " >&6; }
20130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20131   $as_echo_n "(cached) " >&6
20132 else
20133   cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h.  */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h.  */
20139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20141 #define $ac_func innocuous_$ac_func
20142
20143 /* System header to define __stub macros and hopefully few prototypes,
20144     which can conflict with char $ac_func (); below.
20145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20146     <limits.h> exists even on freestanding compilers.  */
20147
20148 #ifdef __STDC__
20149 # include <limits.h>
20150 #else
20151 # include <assert.h>
20152 #endif
20153
20154 #undef $ac_func
20155
20156 /* Override any GCC internal prototype to avoid an error.
20157    Use char because int might match the return type of a GCC
20158    builtin and then its argument prototype would still apply.  */
20159 #ifdef __cplusplus
20160 extern "C"
20161 #endif
20162 char $ac_func ();
20163 /* The GNU C library defines this for functions which it implements
20164     to always fail with ENOSYS.  Some functions are actually named
20165     something starting with __ and the normal name is an alias.  */
20166 #if defined __stub_$ac_func || defined __stub___$ac_func
20167 choke me
20168 #endif
20169
20170 int
20171 main ()
20172 {
20173 return $ac_func ();
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (ac_try="$ac_link"
20180 case "(($ac_try" in
20181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182   *) ac_try_echo=$ac_try;;
20183 esac
20184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20185 $as_echo "$ac_try_echo") >&5
20186   (eval "$ac_link") 2>conftest.er1
20187   ac_status=$?
20188   grep -v '^ *+' conftest.er1 >conftest.err
20189   rm -f conftest.er1
20190   cat conftest.err >&5
20191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); } && {
20193          test -z "$ac_c_werror_flag" ||
20194          test ! -s conftest.err
20195        } && test -s conftest$ac_exeext && {
20196          test "$cross_compiling" = yes ||
20197          $as_test_x conftest$ac_exeext
20198        }; then
20199   eval "$as_ac_var=yes"
20200 else
20201   $as_echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204         eval "$as_ac_var=no"
20205 fi
20206
20207 rm -rf conftest.dSYM
20208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20209       conftest$ac_exeext conftest.$ac_ext
20210 fi
20211 ac_res=`eval 'as_val=${'$as_ac_var'}
20212                  $as_echo "$as_val"'`
20213                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20214 $as_echo "$ac_res" >&6; }
20215 as_val=`eval 'as_val=${'$as_ac_var'}
20216                  $as_echo "$as_val"'`
20217    if test "x$as_val" = x""yes; then
20218   cat >>confdefs.h <<_ACEOF
20219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20220 _ACEOF
20221
20222 else
20223   case " $LIBOBJS " in
20224   *" $ac_func.$ac_objext "* ) ;;
20225   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20226  ;;
20227 esac
20228
20229 fi
20230 done
20231
20232
20233
20234 case $host_os in
20235
20236         # Windows uses a specialised env handler
20237         mingw*)
20238
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_UNSETENV 1
20241 _ACEOF
20242
20243                 ac_cv_func_unsetenv=yes;;
20244         *)
20245
20246 for ac_func in unsetenv
20247 do
20248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20249 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20250 $as_echo_n "checking for $ac_func... " >&6; }
20251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20252   $as_echo_n "(cached) " >&6
20253 else
20254   cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20262 #define $ac_func innocuous_$ac_func
20263
20264 /* System header to define __stub macros and hopefully few prototypes,
20265     which can conflict with char $ac_func (); below.
20266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20267     <limits.h> exists even on freestanding compilers.  */
20268
20269 #ifdef __STDC__
20270 # include <limits.h>
20271 #else
20272 # include <assert.h>
20273 #endif
20274
20275 #undef $ac_func
20276
20277 /* Override any GCC internal prototype to avoid an error.
20278    Use char because int might match the return type of a GCC
20279    builtin and then its argument prototype would still apply.  */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 char $ac_func ();
20284 /* The GNU C library defines this for functions which it implements
20285     to always fail with ENOSYS.  Some functions are actually named
20286     something starting with __ and the normal name is an alias.  */
20287 #if defined __stub_$ac_func || defined __stub___$ac_func
20288 choke me
20289 #endif
20290
20291 int
20292 main ()
20293 {
20294 return $ac_func ();
20295   ;
20296   return 0;
20297 }
20298 _ACEOF
20299 rm -f conftest.$ac_objext conftest$ac_exeext
20300 if { (ac_try="$ac_link"
20301 case "(($ac_try" in
20302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303   *) ac_try_echo=$ac_try;;
20304 esac
20305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20306 $as_echo "$ac_try_echo") >&5
20307   (eval "$ac_link") 2>conftest.er1
20308   ac_status=$?
20309   grep -v '^ *+' conftest.er1 >conftest.err
20310   rm -f conftest.er1
20311   cat conftest.err >&5
20312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); } && {
20314          test -z "$ac_c_werror_flag" ||
20315          test ! -s conftest.err
20316        } && test -s conftest$ac_exeext && {
20317          test "$cross_compiling" = yes ||
20318          $as_test_x conftest$ac_exeext
20319        }; then
20320   eval "$as_ac_var=yes"
20321 else
20322   $as_echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20324
20325         eval "$as_ac_var=no"
20326 fi
20327
20328 rm -rf conftest.dSYM
20329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20330       conftest$ac_exeext conftest.$ac_ext
20331 fi
20332 ac_res=`eval 'as_val=${'$as_ac_var'}
20333                  $as_echo "$as_val"'`
20334                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20335 $as_echo "$ac_res" >&6; }
20336 as_val=`eval 'as_val=${'$as_ac_var'}
20337                  $as_echo "$as_val"'`
20338    if test "x$as_val" = x""yes; then
20339   cat >>confdefs.h <<_ACEOF
20340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20341 _ACEOF
20342
20343 else
20344   case " $LIBOBJS " in
20345   *" $ac_func.$ac_objext "* ) ;;
20346   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20347  ;;
20348 esac
20349
20350 fi
20351 done
20352
20353
20354                 ;;
20355 esac
20356
20357
20358 LIBS="$pgac_save_LIBS"
20359
20360 # System's version of getaddrinfo(), if any, may be used only if we found
20361 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20362 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20363 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
20364 # because we want to use our own getaddrinfo.c on Windows anyway.)
20365 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20366
20367 for ac_func in getaddrinfo
20368 do
20369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20370 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20371 $as_echo_n "checking for $ac_func... " >&6; }
20372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20373   $as_echo_n "(cached) " >&6
20374 else
20375   cat >conftest.$ac_ext <<_ACEOF
20376 /* confdefs.h.  */
20377 _ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h.  */
20381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20383 #define $ac_func innocuous_$ac_func
20384
20385 /* System header to define __stub macros and hopefully few prototypes,
20386     which can conflict with char $ac_func (); below.
20387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20388     <limits.h> exists even on freestanding compilers.  */
20389
20390 #ifdef __STDC__
20391 # include <limits.h>
20392 #else
20393 # include <assert.h>
20394 #endif
20395
20396 #undef $ac_func
20397
20398 /* Override any GCC internal prototype to avoid an error.
20399    Use char because int might match the return type of a GCC
20400    builtin and then its argument prototype would still apply.  */
20401 #ifdef __cplusplus
20402 extern "C"
20403 #endif
20404 char $ac_func ();
20405 /* The GNU C library defines this for functions which it implements
20406     to always fail with ENOSYS.  Some functions are actually named
20407     something starting with __ and the normal name is an alias.  */
20408 #if defined __stub_$ac_func || defined __stub___$ac_func
20409 choke me
20410 #endif
20411
20412 int
20413 main ()
20414 {
20415 return $ac_func ();
20416   ;
20417   return 0;
20418 }
20419 _ACEOF
20420 rm -f conftest.$ac_objext conftest$ac_exeext
20421 if { (ac_try="$ac_link"
20422 case "(($ac_try" in
20423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424   *) ac_try_echo=$ac_try;;
20425 esac
20426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20427 $as_echo "$ac_try_echo") >&5
20428   (eval "$ac_link") 2>conftest.er1
20429   ac_status=$?
20430   grep -v '^ *+' conftest.er1 >conftest.err
20431   rm -f conftest.er1
20432   cat conftest.err >&5
20433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); } && {
20435          test -z "$ac_c_werror_flag" ||
20436          test ! -s conftest.err
20437        } && test -s conftest$ac_exeext && {
20438          test "$cross_compiling" = yes ||
20439          $as_test_x conftest$ac_exeext
20440        }; then
20441   eval "$as_ac_var=yes"
20442 else
20443   $as_echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446         eval "$as_ac_var=no"
20447 fi
20448
20449 rm -rf conftest.dSYM
20450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20451       conftest$ac_exeext conftest.$ac_ext
20452 fi
20453 ac_res=`eval 'as_val=${'$as_ac_var'}
20454                  $as_echo "$as_val"'`
20455                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20456 $as_echo "$ac_res" >&6; }
20457 as_val=`eval 'as_val=${'$as_ac_var'}
20458                  $as_echo "$as_val"'`
20459    if test "x$as_val" = x""yes; then
20460   cat >>confdefs.h <<_ACEOF
20461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20462 _ACEOF
20463
20464 else
20465   case " $LIBOBJS " in
20466   *" $ac_func.$ac_objext "* ) ;;
20467   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20468  ;;
20469 esac
20470
20471 fi
20472 done
20473
20474
20475 else
20476   case " $LIBOBJS " in
20477   *" getaddrinfo.$ac_objext "* ) ;;
20478   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20479  ;;
20480 esac
20481
20482 fi
20483
20484 # Similarly, use system's getopt_long() only if system provides struct option.
20485 if test x"$ac_cv_type_struct_option" = xyes ; then
20486
20487 for ac_func in getopt_long
20488 do
20489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20490 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20491 $as_echo_n "checking for $ac_func... " >&6; }
20492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20493   $as_echo_n "(cached) " >&6
20494 else
20495   cat >conftest.$ac_ext <<_ACEOF
20496 /* confdefs.h.  */
20497 _ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h.  */
20501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20503 #define $ac_func innocuous_$ac_func
20504
20505 /* System header to define __stub macros and hopefully few prototypes,
20506     which can conflict with char $ac_func (); below.
20507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20508     <limits.h> exists even on freestanding compilers.  */
20509
20510 #ifdef __STDC__
20511 # include <limits.h>
20512 #else
20513 # include <assert.h>
20514 #endif
20515
20516 #undef $ac_func
20517
20518 /* Override any GCC internal prototype to avoid an error.
20519    Use char because int might match the return type of a GCC
20520    builtin and then its argument prototype would still apply.  */
20521 #ifdef __cplusplus
20522 extern "C"
20523 #endif
20524 char $ac_func ();
20525 /* The GNU C library defines this for functions which it implements
20526     to always fail with ENOSYS.  Some functions are actually named
20527     something starting with __ and the normal name is an alias.  */
20528 #if defined __stub_$ac_func || defined __stub___$ac_func
20529 choke me
20530 #endif
20531
20532 int
20533 main ()
20534 {
20535 return $ac_func ();
20536   ;
20537   return 0;
20538 }
20539 _ACEOF
20540 rm -f conftest.$ac_objext conftest$ac_exeext
20541 if { (ac_try="$ac_link"
20542 case "(($ac_try" in
20543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544   *) ac_try_echo=$ac_try;;
20545 esac
20546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20547 $as_echo "$ac_try_echo") >&5
20548   (eval "$ac_link") 2>conftest.er1
20549   ac_status=$?
20550   grep -v '^ *+' conftest.er1 >conftest.err
20551   rm -f conftest.er1
20552   cat conftest.err >&5
20553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); } && {
20555          test -z "$ac_c_werror_flag" ||
20556          test ! -s conftest.err
20557        } && test -s conftest$ac_exeext && {
20558          test "$cross_compiling" = yes ||
20559          $as_test_x conftest$ac_exeext
20560        }; then
20561   eval "$as_ac_var=yes"
20562 else
20563   $as_echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20565
20566         eval "$as_ac_var=no"
20567 fi
20568
20569 rm -rf conftest.dSYM
20570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20571       conftest$ac_exeext conftest.$ac_ext
20572 fi
20573 ac_res=`eval 'as_val=${'$as_ac_var'}
20574                  $as_echo "$as_val"'`
20575                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20576 $as_echo "$ac_res" >&6; }
20577 as_val=`eval 'as_val=${'$as_ac_var'}
20578                  $as_echo "$as_val"'`
20579    if test "x$as_val" = x""yes; then
20580   cat >>confdefs.h <<_ACEOF
20581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20582 _ACEOF
20583
20584 else
20585   case " $LIBOBJS " in
20586   *" $ac_func.$ac_objext "* ) ;;
20587   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20588  ;;
20589 esac
20590
20591 fi
20592 done
20593
20594
20595 else
20596   case " $LIBOBJS " in
20597   *" getopt_long.$ac_objext "* ) ;;
20598   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20599  ;;
20600 esac
20601
20602 fi
20603
20604 # Solaris' getopt() doesn't do what we want for long options, so always use
20605 # our version on that platform.
20606 if test "$PORTNAME" = "solaris"; then
20607   case " $LIBOBJS " in
20608   *" getopt.$ac_objext "* ) ;;
20609   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20610  ;;
20611 esac
20612
20613 fi
20614
20615 # Cygwin's erand48() is broken (always returns zero) in some releases,
20616 # so force use of ours.
20617 if test "$PORTNAME" = "cygwin"; then
20618   case " $LIBOBJS " in
20619   *" erand48.$ac_objext "* ) ;;
20620   *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
20621  ;;
20622 esac
20623
20624 fi
20625
20626 # Win32 support
20627 if test "$PORTNAME" = "win32"; then
20628
20629 for ac_func in gettimeofday
20630 do
20631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20632 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20633 $as_echo_n "checking for $ac_func... " >&6; }
20634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20635   $as_echo_n "(cached) " >&6
20636 else
20637   cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20645 #define $ac_func innocuous_$ac_func
20646
20647 /* System header to define __stub macros and hopefully few prototypes,
20648     which can conflict with char $ac_func (); below.
20649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20650     <limits.h> exists even on freestanding compilers.  */
20651
20652 #ifdef __STDC__
20653 # include <limits.h>
20654 #else
20655 # include <assert.h>
20656 #endif
20657
20658 #undef $ac_func
20659
20660 /* Override any GCC internal prototype to avoid an error.
20661    Use char because int might match the return type of a GCC
20662    builtin and then its argument prototype would still apply.  */
20663 #ifdef __cplusplus
20664 extern "C"
20665 #endif
20666 char $ac_func ();
20667 /* The GNU C library defines this for functions which it implements
20668     to always fail with ENOSYS.  Some functions are actually named
20669     something starting with __ and the normal name is an alias.  */
20670 #if defined __stub_$ac_func || defined __stub___$ac_func
20671 choke me
20672 #endif
20673
20674 int
20675 main ()
20676 {
20677 return $ac_func ();
20678   ;
20679   return 0;
20680 }
20681 _ACEOF
20682 rm -f conftest.$ac_objext conftest$ac_exeext
20683 if { (ac_try="$ac_link"
20684 case "(($ac_try" in
20685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686   *) ac_try_echo=$ac_try;;
20687 esac
20688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20689 $as_echo "$ac_try_echo") >&5
20690   (eval "$ac_link") 2>conftest.er1
20691   ac_status=$?
20692   grep -v '^ *+' conftest.er1 >conftest.err
20693   rm -f conftest.er1
20694   cat conftest.err >&5
20695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); } && {
20697          test -z "$ac_c_werror_flag" ||
20698          test ! -s conftest.err
20699        } && test -s conftest$ac_exeext && {
20700          test "$cross_compiling" = yes ||
20701          $as_test_x conftest$ac_exeext
20702        }; then
20703   eval "$as_ac_var=yes"
20704 else
20705   $as_echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20707
20708         eval "$as_ac_var=no"
20709 fi
20710
20711 rm -rf conftest.dSYM
20712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20713       conftest$ac_exeext conftest.$ac_ext
20714 fi
20715 ac_res=`eval 'as_val=${'$as_ac_var'}
20716                  $as_echo "$as_val"'`
20717                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20718 $as_echo "$ac_res" >&6; }
20719 as_val=`eval 'as_val=${'$as_ac_var'}
20720                  $as_echo "$as_val"'`
20721    if test "x$as_val" = x""yes; then
20722   cat >>confdefs.h <<_ACEOF
20723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20724 _ACEOF
20725
20726 else
20727   case " $LIBOBJS " in
20728   *" $ac_func.$ac_objext "* ) ;;
20729   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20730  ;;
20731 esac
20732
20733 fi
20734 done
20735
20736
20737 case " $LIBOBJS " in
20738   *" kill.$ac_objext "* ) ;;
20739   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
20740  ;;
20741 esac
20742
20743 case " $LIBOBJS " in
20744   *" open.$ac_objext "* ) ;;
20745   *) LIBOBJS="$LIBOBJS open.$ac_objext"
20746  ;;
20747 esac
20748
20749 case " $LIBOBJS " in
20750   *" win32env.$ac_objext "* ) ;;
20751   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
20752  ;;
20753 esac
20754
20755 case " $LIBOBJS " in
20756   *" win32error.$ac_objext "* ) ;;
20757   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
20758  ;;
20759 esac
20760
20761
20762 cat >>confdefs.h <<\_ACEOF
20763 #define HAVE_SYMLINK 1
20764 _ACEOF
20765
20766 fi
20767
20768 if test "$with_readline" = yes; then
20769   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
20770 $as_echo_n "checking for rl_completion_append_character... " >&6; }
20771 cat >conftest.$ac_ext <<_ACEOF
20772 /* confdefs.h.  */
20773 _ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h.  */
20777 #include <stdio.h>
20778 #ifdef HAVE_READLINE_READLINE_H
20779 # include <readline/readline.h>
20780 #elif defined(HAVE_READLINE_H)
20781 # include <readline.h>
20782 #endif
20783
20784 int
20785 main ()
20786 {
20787 rl_completion_append_character = 'x';
20788   ;
20789   return 0;
20790 }
20791 _ACEOF
20792 rm -f conftest.$ac_objext conftest$ac_exeext
20793 if { (ac_try="$ac_link"
20794 case "(($ac_try" in
20795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796   *) ac_try_echo=$ac_try;;
20797 esac
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800   (eval "$ac_link") 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } && {
20807          test -z "$ac_c_werror_flag" ||
20808          test ! -s conftest.err
20809        } && test -s conftest$ac_exeext && {
20810          test "$cross_compiling" = yes ||
20811          $as_test_x conftest$ac_exeext
20812        }; then
20813   { $as_echo "$as_me:$LINENO: result: yes" >&5
20814 $as_echo "yes" >&6; }
20815
20816 cat >>confdefs.h <<\_ACEOF
20817 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20818 _ACEOF
20819
20820 else
20821   $as_echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20823
20824         { $as_echo "$as_me:$LINENO: result: no" >&5
20825 $as_echo "no" >&6; }
20826 fi
20827
20828 rm -rf conftest.dSYM
20829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20830       conftest$ac_exeext conftest.$ac_ext
20831
20832
20833 for ac_func in rl_completion_matches rl_filename_completion_function
20834 do
20835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20836 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20837 $as_echo_n "checking for $ac_func... " >&6; }
20838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20839   $as_echo_n "(cached) " >&6
20840 else
20841   cat >conftest.$ac_ext <<_ACEOF
20842 /* confdefs.h.  */
20843 _ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h.  */
20847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20849 #define $ac_func innocuous_$ac_func
20850
20851 /* System header to define __stub macros and hopefully few prototypes,
20852     which can conflict with char $ac_func (); below.
20853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20854     <limits.h> exists even on freestanding compilers.  */
20855
20856 #ifdef __STDC__
20857 # include <limits.h>
20858 #else
20859 # include <assert.h>
20860 #endif
20861
20862 #undef $ac_func
20863
20864 /* Override any GCC internal prototype to avoid an error.
20865    Use char because int might match the return type of a GCC
20866    builtin and then its argument prototype would still apply.  */
20867 #ifdef __cplusplus
20868 extern "C"
20869 #endif
20870 char $ac_func ();
20871 /* The GNU C library defines this for functions which it implements
20872     to always fail with ENOSYS.  Some functions are actually named
20873     something starting with __ and the normal name is an alias.  */
20874 #if defined __stub_$ac_func || defined __stub___$ac_func
20875 choke me
20876 #endif
20877
20878 int
20879 main ()
20880 {
20881 return $ac_func ();
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 rm -f conftest.$ac_objext conftest$ac_exeext
20887 if { (ac_try="$ac_link"
20888 case "(($ac_try" in
20889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890   *) ac_try_echo=$ac_try;;
20891 esac
20892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20893 $as_echo "$ac_try_echo") >&5
20894   (eval "$ac_link") 2>conftest.er1
20895   ac_status=$?
20896   grep -v '^ *+' conftest.er1 >conftest.err
20897   rm -f conftest.er1
20898   cat conftest.err >&5
20899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900   (exit $ac_status); } && {
20901          test -z "$ac_c_werror_flag" ||
20902          test ! -s conftest.err
20903        } && test -s conftest$ac_exeext && {
20904          test "$cross_compiling" = yes ||
20905          $as_test_x conftest$ac_exeext
20906        }; then
20907   eval "$as_ac_var=yes"
20908 else
20909   $as_echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20911
20912         eval "$as_ac_var=no"
20913 fi
20914
20915 rm -rf conftest.dSYM
20916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20917       conftest$ac_exeext conftest.$ac_ext
20918 fi
20919 ac_res=`eval 'as_val=${'$as_ac_var'}
20920                  $as_echo "$as_val"'`
20921                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20922 $as_echo "$ac_res" >&6; }
20923 as_val=`eval 'as_val=${'$as_ac_var'}
20924                  $as_echo "$as_val"'`
20925    if test "x$as_val" = x""yes; then
20926   cat >>confdefs.h <<_ACEOF
20927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20928 _ACEOF
20929
20930 fi
20931 done
20932
20933
20934
20935 for ac_func in append_history history_truncate_file
20936 do
20937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20938 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20939 $as_echo_n "checking for $ac_func... " >&6; }
20940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20941   $as_echo_n "(cached) " >&6
20942 else
20943   cat >conftest.$ac_ext <<_ACEOF
20944 /* confdefs.h.  */
20945 _ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h.  */
20949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20951 #define $ac_func innocuous_$ac_func
20952
20953 /* System header to define __stub macros and hopefully few prototypes,
20954     which can conflict with char $ac_func (); below.
20955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20956     <limits.h> exists even on freestanding compilers.  */
20957
20958 #ifdef __STDC__
20959 # include <limits.h>
20960 #else
20961 # include <assert.h>
20962 #endif
20963
20964 #undef $ac_func
20965
20966 /* Override any GCC internal prototype to avoid an error.
20967    Use char because int might match the return type of a GCC
20968    builtin and then its argument prototype would still apply.  */
20969 #ifdef __cplusplus
20970 extern "C"
20971 #endif
20972 char $ac_func ();
20973 /* The GNU C library defines this for functions which it implements
20974     to always fail with ENOSYS.  Some functions are actually named
20975     something starting with __ and the normal name is an alias.  */
20976 #if defined __stub_$ac_func || defined __stub___$ac_func
20977 choke me
20978 #endif
20979
20980 int
20981 main ()
20982 {
20983 return $ac_func ();
20984   ;
20985   return 0;
20986 }
20987 _ACEOF
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20995 $as_echo "$ac_try_echo") >&5
20996   (eval "$ac_link") 2>conftest.er1
20997   ac_status=$?
20998   grep -v '^ *+' conftest.er1 >conftest.err
20999   rm -f conftest.er1
21000   cat conftest.err >&5
21001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } && {
21003          test -z "$ac_c_werror_flag" ||
21004          test ! -s conftest.err
21005        } && test -s conftest$ac_exeext && {
21006          test "$cross_compiling" = yes ||
21007          $as_test_x conftest$ac_exeext
21008        }; then
21009   eval "$as_ac_var=yes"
21010 else
21011   $as_echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014         eval "$as_ac_var=no"
21015 fi
21016
21017 rm -rf conftest.dSYM
21018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21019       conftest$ac_exeext conftest.$ac_ext
21020 fi
21021 ac_res=`eval 'as_val=${'$as_ac_var'}
21022                  $as_echo "$as_val"'`
21023                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21024 $as_echo "$ac_res" >&6; }
21025 as_val=`eval 'as_val=${'$as_ac_var'}
21026                  $as_echo "$as_val"'`
21027    if test "x$as_val" = x""yes; then
21028   cat >>confdefs.h <<_ACEOF
21029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21030 _ACEOF
21031
21032 fi
21033 done
21034
21035 fi
21036
21037
21038 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21039 $as_echo_n "checking for sigsetjmp... " >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h.  */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h.  */
21046 #include <setjmp.h>
21047 int
21048 main ()
21049 {
21050 sigjmp_buf x; sigsetjmp(x, 1);
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext conftest$ac_exeext
21056 if { (ac_try="$ac_link"
21057 case "(($ac_try" in
21058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059   *) ac_try_echo=$ac_try;;
21060 esac
21061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21062 $as_echo "$ac_try_echo") >&5
21063   (eval "$ac_link") 2>conftest.er1
21064   ac_status=$?
21065   grep -v '^ *+' conftest.er1 >conftest.err
21066   rm -f conftest.er1
21067   cat conftest.err >&5
21068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); } && {
21070          test -z "$ac_c_werror_flag" ||
21071          test ! -s conftest.err
21072        } && test -s conftest$ac_exeext && {
21073          test "$cross_compiling" = yes ||
21074          $as_test_x conftest$ac_exeext
21075        }; then
21076
21077 cat >>confdefs.h <<\_ACEOF
21078 #define HAVE_SIGSETJMP 1
21079 _ACEOF
21080
21081 { $as_echo "$as_me:$LINENO: result: yes" >&5
21082 $as_echo "yes" >&6; }
21083 else
21084   $as_echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21086
21087         { $as_echo "$as_me:$LINENO: result: no" >&5
21088 $as_echo "no" >&6; }
21089 fi
21090
21091 rm -rf conftest.dSYM
21092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21093       conftest$ac_exeext conftest.$ac_ext
21094
21095 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21096 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21097 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21098   $as_echo_n "(cached) " >&6
21099 else
21100   cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h.  */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h.  */
21106 #include <signal.h>
21107 /* NetBSD declares sys_siglist in unistd.h.  */
21108 #ifdef HAVE_UNISTD_H
21109 # include <unistd.h>
21110 #endif
21111
21112
21113 int
21114 main ()
21115 {
21116 #ifndef sys_siglist
21117   (void) sys_siglist;
21118 #endif
21119
21120   ;
21121   return 0;
21122 }
21123 _ACEOF
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128   *) ac_try_echo=$ac_try;;
21129 esac
21130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21131 $as_echo "$ac_try_echo") >&5
21132   (eval "$ac_compile") 2>conftest.er1
21133   ac_status=$?
21134   grep -v '^ *+' conftest.er1 >conftest.err
21135   rm -f conftest.er1
21136   cat conftest.err >&5
21137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); } && {
21139          test -z "$ac_c_werror_flag" ||
21140          test ! -s conftest.err
21141        } && test -s conftest.$ac_objext; then
21142   ac_cv_have_decl_sys_siglist=yes
21143 else
21144   $as_echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147         ac_cv_have_decl_sys_siglist=no
21148 fi
21149
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151 fi
21152 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21153 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21154 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21155
21156 cat >>confdefs.h <<_ACEOF
21157 #define HAVE_DECL_SYS_SIGLIST 1
21158 _ACEOF
21159
21160
21161 else
21162   cat >>confdefs.h <<_ACEOF
21163 #define HAVE_DECL_SYS_SIGLIST 0
21164 _ACEOF
21165
21166
21167 fi
21168
21169
21170
21171
21172 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21173 $as_echo_n "checking for syslog... " >&6; }
21174 if test "${ac_cv_func_syslog+set}" = set; then
21175   $as_echo_n "(cached) " >&6
21176 else
21177   cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h.  */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h.  */
21183 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21185 #define syslog innocuous_syslog
21186
21187 /* System header to define __stub macros and hopefully few prototypes,
21188     which can conflict with char syslog (); below.
21189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21190     <limits.h> exists even on freestanding compilers.  */
21191
21192 #ifdef __STDC__
21193 # include <limits.h>
21194 #else
21195 # include <assert.h>
21196 #endif
21197
21198 #undef syslog
21199
21200 /* Override any GCC internal prototype to avoid an error.
21201    Use char because int might match the return type of a GCC
21202    builtin and then its argument prototype would still apply.  */
21203 #ifdef __cplusplus
21204 extern "C"
21205 #endif
21206 char syslog ();
21207 /* The GNU C library defines this for functions which it implements
21208     to always fail with ENOSYS.  Some functions are actually named
21209     something starting with __ and the normal name is an alias.  */
21210 #if defined __stub_syslog || defined __stub___syslog
21211 choke me
21212 #endif
21213
21214 int
21215 main ()
21216 {
21217 return syslog ();
21218   ;
21219   return 0;
21220 }
21221 _ACEOF
21222 rm -f conftest.$ac_objext conftest$ac_exeext
21223 if { (ac_try="$ac_link"
21224 case "(($ac_try" in
21225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226   *) ac_try_echo=$ac_try;;
21227 esac
21228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21229 $as_echo "$ac_try_echo") >&5
21230   (eval "$ac_link") 2>conftest.er1
21231   ac_status=$?
21232   grep -v '^ *+' conftest.er1 >conftest.err
21233   rm -f conftest.er1
21234   cat conftest.err >&5
21235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } && {
21237          test -z "$ac_c_werror_flag" ||
21238          test ! -s conftest.err
21239        } && test -s conftest$ac_exeext && {
21240          test "$cross_compiling" = yes ||
21241          $as_test_x conftest$ac_exeext
21242        }; then
21243   ac_cv_func_syslog=yes
21244 else
21245   $as_echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248         ac_cv_func_syslog=no
21249 fi
21250
21251 rm -rf conftest.dSYM
21252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21253       conftest$ac_exeext conftest.$ac_ext
21254 fi
21255 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21256 $as_echo "$ac_cv_func_syslog" >&6; }
21257 if test "x$ac_cv_func_syslog" = x""yes; then
21258   if test "${ac_cv_header_syslog_h+set}" = set; then
21259   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21260 $as_echo_n "checking for syslog.h... " >&6; }
21261 if test "${ac_cv_header_syslog_h+set}" = set; then
21262   $as_echo_n "(cached) " >&6
21263 fi
21264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21265 $as_echo "$ac_cv_header_syslog_h" >&6; }
21266 else
21267   # Is the header compilable?
21268 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21269 $as_echo_n "checking syslog.h usability... " >&6; }
21270 cat >conftest.$ac_ext <<_ACEOF
21271 /* confdefs.h.  */
21272 _ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h.  */
21276 $ac_includes_default
21277 #include <syslog.h>
21278 _ACEOF
21279 rm -f conftest.$ac_objext
21280 if { (ac_try="$ac_compile"
21281 case "(($ac_try" in
21282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283   *) ac_try_echo=$ac_try;;
21284 esac
21285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21286 $as_echo "$ac_try_echo") >&5
21287   (eval "$ac_compile") 2>conftest.er1
21288   ac_status=$?
21289   grep -v '^ *+' conftest.er1 >conftest.err
21290   rm -f conftest.er1
21291   cat conftest.err >&5
21292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } && {
21294          test -z "$ac_c_werror_flag" ||
21295          test ! -s conftest.err
21296        } && test -s conftest.$ac_objext; then
21297   ac_header_compiler=yes
21298 else
21299   $as_echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21301
21302         ac_header_compiler=no
21303 fi
21304
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21307 $as_echo "$ac_header_compiler" >&6; }
21308
21309 # Is the header present?
21310 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21311 $as_echo_n "checking syslog.h presence... " >&6; }
21312 cat >conftest.$ac_ext <<_ACEOF
21313 /* confdefs.h.  */
21314 _ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h.  */
21318 #include <syslog.h>
21319 _ACEOF
21320 if { (ac_try="$ac_cpp conftest.$ac_ext"
21321 case "(($ac_try" in
21322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323   *) ac_try_echo=$ac_try;;
21324 esac
21325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21326 $as_echo "$ac_try_echo") >&5
21327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21328   ac_status=$?
21329   grep -v '^ *+' conftest.er1 >conftest.err
21330   rm -f conftest.er1
21331   cat conftest.err >&5
21332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } >/dev/null && {
21334          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21335          test ! -s conftest.err
21336        }; then
21337   ac_header_preproc=yes
21338 else
21339   $as_echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342   ac_header_preproc=no
21343 fi
21344
21345 rm -f conftest.err conftest.$ac_ext
21346 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21347 $as_echo "$ac_header_preproc" >&6; }
21348
21349 # So?  What about this header?
21350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21351   yes:no: )
21352     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21353 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21354     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21355 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21356     ac_header_preproc=yes
21357     ;;
21358   no:yes:* )
21359     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21360 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21361     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
21362 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
21363     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21364 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21365     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
21366 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21367     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21368 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21369     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21370 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21371     ( cat <<\_ASBOX
21372 ## ---------------------------------------- ##
21373 ## Report this to pgsql-bugs@postgresql.org ##
21374 ## ---------------------------------------- ##
21375 _ASBOX
21376      ) | sed "s/^/$as_me: WARNING:     /" >&2
21377     ;;
21378 esac
21379 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21380 $as_echo_n "checking for syslog.h... " >&6; }
21381 if test "${ac_cv_header_syslog_h+set}" = set; then
21382   $as_echo_n "(cached) " >&6
21383 else
21384   ac_cv_header_syslog_h=$ac_header_preproc
21385 fi
21386 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21387 $as_echo "$ac_cv_header_syslog_h" >&6; }
21388
21389 fi
21390 if test "x$ac_cv_header_syslog_h" = x""yes; then
21391
21392 cat >>confdefs.h <<\_ACEOF
21393 #define HAVE_SYSLOG 1
21394 _ACEOF
21395
21396 fi
21397
21398
21399 fi
21400
21401
21402 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21403 $as_echo_n "checking for opterr... " >&6; }
21404 if test "${pgac_cv_var_int_opterr+set}" = set; then
21405   $as_echo_n "(cached) " >&6
21406 else
21407   cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h.  */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h.  */
21413 #include <unistd.h>
21414 int
21415 main ()
21416 {
21417 extern int opterr; opterr = 1;
21418   ;
21419   return 0;
21420 }
21421 _ACEOF
21422 rm -f conftest.$ac_objext conftest$ac_exeext
21423 if { (ac_try="$ac_link"
21424 case "(($ac_try" in
21425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426   *) ac_try_echo=$ac_try;;
21427 esac
21428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21429 $as_echo "$ac_try_echo") >&5
21430   (eval "$ac_link") 2>conftest.er1
21431   ac_status=$?
21432   grep -v '^ *+' conftest.er1 >conftest.err
21433   rm -f conftest.er1
21434   cat conftest.err >&5
21435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); } && {
21437          test -z "$ac_c_werror_flag" ||
21438          test ! -s conftest.err
21439        } && test -s conftest$ac_exeext && {
21440          test "$cross_compiling" = yes ||
21441          $as_test_x conftest$ac_exeext
21442        }; then
21443   pgac_cv_var_int_opterr=yes
21444 else
21445   $as_echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21447
21448         pgac_cv_var_int_opterr=no
21449 fi
21450
21451 rm -rf conftest.dSYM
21452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21453       conftest$ac_exeext conftest.$ac_ext
21454 fi
21455 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21456 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21457 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21458
21459 cat >>confdefs.h <<\_ACEOF
21460 #define HAVE_INT_OPTERR 1
21461 _ACEOF
21462
21463 fi
21464
21465 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21466 $as_echo_n "checking for optreset... " >&6; }
21467 if test "${pgac_cv_var_int_optreset+set}" = set; then
21468   $as_echo_n "(cached) " >&6
21469 else
21470   cat >conftest.$ac_ext <<_ACEOF
21471 /* confdefs.h.  */
21472 _ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h.  */
21476 #include <unistd.h>
21477 int
21478 main ()
21479 {
21480 extern int optreset; optreset = 1;
21481   ;
21482   return 0;
21483 }
21484 _ACEOF
21485 rm -f conftest.$ac_objext conftest$ac_exeext
21486 if { (ac_try="$ac_link"
21487 case "(($ac_try" in
21488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489   *) ac_try_echo=$ac_try;;
21490 esac
21491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21492 $as_echo "$ac_try_echo") >&5
21493   (eval "$ac_link") 2>conftest.er1
21494   ac_status=$?
21495   grep -v '^ *+' conftest.er1 >conftest.err
21496   rm -f conftest.er1
21497   cat conftest.err >&5
21498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499   (exit $ac_status); } && {
21500          test -z "$ac_c_werror_flag" ||
21501          test ! -s conftest.err
21502        } && test -s conftest$ac_exeext && {
21503          test "$cross_compiling" = yes ||
21504          $as_test_x conftest$ac_exeext
21505        }; then
21506   pgac_cv_var_int_optreset=yes
21507 else
21508   $as_echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511         pgac_cv_var_int_optreset=no
21512 fi
21513
21514 rm -rf conftest.dSYM
21515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21516       conftest$ac_exeext conftest.$ac_ext
21517 fi
21518 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
21519 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21520 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21521
21522 cat >>confdefs.h <<\_ACEOF
21523 #define HAVE_INT_OPTRESET 1
21524 _ACEOF
21525
21526 fi
21527
21528
21529
21530 for ac_func in strtoll strtoq
21531 do
21532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21533 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21534 $as_echo_n "checking for $ac_func... " >&6; }
21535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21536   $as_echo_n "(cached) " >&6
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21546 #define $ac_func innocuous_$ac_func
21547
21548 /* System header to define __stub macros and hopefully few prototypes,
21549     which can conflict with char $ac_func (); below.
21550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21551     <limits.h> exists even on freestanding compilers.  */
21552
21553 #ifdef __STDC__
21554 # include <limits.h>
21555 #else
21556 # include <assert.h>
21557 #endif
21558
21559 #undef $ac_func
21560
21561 /* Override any GCC internal prototype to avoid an error.
21562    Use char because int might match the return type of a GCC
21563    builtin and then its argument prototype would still apply.  */
21564 #ifdef __cplusplus
21565 extern "C"
21566 #endif
21567 char $ac_func ();
21568 /* The GNU C library defines this for functions which it implements
21569     to always fail with ENOSYS.  Some functions are actually named
21570     something starting with __ and the normal name is an alias.  */
21571 #if defined __stub_$ac_func || defined __stub___$ac_func
21572 choke me
21573 #endif
21574
21575 int
21576 main ()
21577 {
21578 return $ac_func ();
21579   ;
21580   return 0;
21581 }
21582 _ACEOF
21583 rm -f conftest.$ac_objext conftest$ac_exeext
21584 if { (ac_try="$ac_link"
21585 case "(($ac_try" in
21586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587   *) ac_try_echo=$ac_try;;
21588 esac
21589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21590 $as_echo "$ac_try_echo") >&5
21591   (eval "$ac_link") 2>conftest.er1
21592   ac_status=$?
21593   grep -v '^ *+' conftest.er1 >conftest.err
21594   rm -f conftest.er1
21595   cat conftest.err >&5
21596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); } && {
21598          test -z "$ac_c_werror_flag" ||
21599          test ! -s conftest.err
21600        } && test -s conftest$ac_exeext && {
21601          test "$cross_compiling" = yes ||
21602          $as_test_x conftest$ac_exeext
21603        }; then
21604   eval "$as_ac_var=yes"
21605 else
21606   $as_echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21608
21609         eval "$as_ac_var=no"
21610 fi
21611
21612 rm -rf conftest.dSYM
21613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21614       conftest$ac_exeext conftest.$ac_ext
21615 fi
21616 ac_res=`eval 'as_val=${'$as_ac_var'}
21617                  $as_echo "$as_val"'`
21618                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21619 $as_echo "$ac_res" >&6; }
21620 as_val=`eval 'as_val=${'$as_ac_var'}
21621                  $as_echo "$as_val"'`
21622    if test "x$as_val" = x""yes; then
21623   cat >>confdefs.h <<_ACEOF
21624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21625 _ACEOF
21626  break
21627 fi
21628 done
21629
21630
21631
21632 for ac_func in strtoull strtouq
21633 do
21634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21635 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21636 $as_echo_n "checking for $ac_func... " >&6; }
21637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21638   $as_echo_n "(cached) " >&6
21639 else
21640   cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h.  */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h.  */
21646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21648 #define $ac_func innocuous_$ac_func
21649
21650 /* System header to define __stub macros and hopefully few prototypes,
21651     which can conflict with char $ac_func (); below.
21652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21653     <limits.h> exists even on freestanding compilers.  */
21654
21655 #ifdef __STDC__
21656 # include <limits.h>
21657 #else
21658 # include <assert.h>
21659 #endif
21660
21661 #undef $ac_func
21662
21663 /* Override any GCC internal prototype to avoid an error.
21664    Use char because int might match the return type of a GCC
21665    builtin and then its argument prototype would still apply.  */
21666 #ifdef __cplusplus
21667 extern "C"
21668 #endif
21669 char $ac_func ();
21670 /* The GNU C library defines this for functions which it implements
21671     to always fail with ENOSYS.  Some functions are actually named
21672     something starting with __ and the normal name is an alias.  */
21673 #if defined __stub_$ac_func || defined __stub___$ac_func
21674 choke me
21675 #endif
21676
21677 int
21678 main ()
21679 {
21680 return $ac_func ();
21681   ;
21682   return 0;
21683 }
21684 _ACEOF
21685 rm -f conftest.$ac_objext conftest$ac_exeext
21686 if { (ac_try="$ac_link"
21687 case "(($ac_try" in
21688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689   *) ac_try_echo=$ac_try;;
21690 esac
21691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21692 $as_echo "$ac_try_echo") >&5
21693   (eval "$ac_link") 2>conftest.er1
21694   ac_status=$?
21695   grep -v '^ *+' conftest.er1 >conftest.err
21696   rm -f conftest.er1
21697   cat conftest.err >&5
21698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); } && {
21700          test -z "$ac_c_werror_flag" ||
21701          test ! -s conftest.err
21702        } && test -s conftest$ac_exeext && {
21703          test "$cross_compiling" = yes ||
21704          $as_test_x conftest$ac_exeext
21705        }; then
21706   eval "$as_ac_var=yes"
21707 else
21708   $as_echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21710
21711         eval "$as_ac_var=no"
21712 fi
21713
21714 rm -rf conftest.dSYM
21715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21716       conftest$ac_exeext conftest.$ac_ext
21717 fi
21718 ac_res=`eval 'as_val=${'$as_ac_var'}
21719                  $as_echo "$as_val"'`
21720                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21721 $as_echo "$ac_res" >&6; }
21722 as_val=`eval 'as_val=${'$as_ac_var'}
21723                  $as_echo "$as_val"'`
21724    if test "x$as_val" = x""yes; then
21725   cat >>confdefs.h <<_ACEOF
21726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21727 _ACEOF
21728  break
21729 fi
21730 done
21731
21732
21733 # Check for one of atexit() or on_exit()
21734
21735 for ac_func in atexit
21736 do
21737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21738 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21739 $as_echo_n "checking for $ac_func... " >&6; }
21740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21741   $as_echo_n "(cached) " >&6
21742 else
21743   cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21750    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21751 #define $ac_func innocuous_$ac_func
21752
21753 /* System header to define __stub macros and hopefully few prototypes,
21754     which can conflict with char $ac_func (); below.
21755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21756     <limits.h> exists even on freestanding compilers.  */
21757
21758 #ifdef __STDC__
21759 # include <limits.h>
21760 #else
21761 # include <assert.h>
21762 #endif
21763
21764 #undef $ac_func
21765
21766 /* Override any GCC internal prototype to avoid an error.
21767    Use char because int might match the return type of a GCC
21768    builtin and then its argument prototype would still apply.  */
21769 #ifdef __cplusplus
21770 extern "C"
21771 #endif
21772 char $ac_func ();
21773 /* The GNU C library defines this for functions which it implements
21774     to always fail with ENOSYS.  Some functions are actually named
21775     something starting with __ and the normal name is an alias.  */
21776 #if defined __stub_$ac_func || defined __stub___$ac_func
21777 choke me
21778 #endif
21779
21780 int
21781 main ()
21782 {
21783 return $ac_func ();
21784   ;
21785   return 0;
21786 }
21787 _ACEOF
21788 rm -f conftest.$ac_objext conftest$ac_exeext
21789 if { (ac_try="$ac_link"
21790 case "(($ac_try" in
21791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792   *) ac_try_echo=$ac_try;;
21793 esac
21794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21795 $as_echo "$ac_try_echo") >&5
21796   (eval "$ac_link") 2>conftest.er1
21797   ac_status=$?
21798   grep -v '^ *+' conftest.er1 >conftest.err
21799   rm -f conftest.er1
21800   cat conftest.err >&5
21801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); } && {
21803          test -z "$ac_c_werror_flag" ||
21804          test ! -s conftest.err
21805        } && test -s conftest$ac_exeext && {
21806          test "$cross_compiling" = yes ||
21807          $as_test_x conftest$ac_exeext
21808        }; then
21809   eval "$as_ac_var=yes"
21810 else
21811   $as_echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21813
21814         eval "$as_ac_var=no"
21815 fi
21816
21817 rm -rf conftest.dSYM
21818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21819       conftest$ac_exeext conftest.$ac_ext
21820 fi
21821 ac_res=`eval 'as_val=${'$as_ac_var'}
21822                  $as_echo "$as_val"'`
21823                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21824 $as_echo "$ac_res" >&6; }
21825 as_val=`eval 'as_val=${'$as_ac_var'}
21826                  $as_echo "$as_val"'`
21827    if test "x$as_val" = x""yes; then
21828   cat >>confdefs.h <<_ACEOF
21829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21830 _ACEOF
21831
21832 else
21833
21834 for ac_func in on_exit
21835 do
21836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21837 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21838 $as_echo_n "checking for $ac_func... " >&6; }
21839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21840   $as_echo_n "(cached) " >&6
21841 else
21842   cat >conftest.$ac_ext <<_ACEOF
21843 /* confdefs.h.  */
21844 _ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h.  */
21848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21850 #define $ac_func innocuous_$ac_func
21851
21852 /* System header to define __stub macros and hopefully few prototypes,
21853     which can conflict with char $ac_func (); below.
21854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21855     <limits.h> exists even on freestanding compilers.  */
21856
21857 #ifdef __STDC__
21858 # include <limits.h>
21859 #else
21860 # include <assert.h>
21861 #endif
21862
21863 #undef $ac_func
21864
21865 /* Override any GCC internal prototype to avoid an error.
21866    Use char because int might match the return type of a GCC
21867    builtin and then its argument prototype would still apply.  */
21868 #ifdef __cplusplus
21869 extern "C"
21870 #endif
21871 char $ac_func ();
21872 /* The GNU C library defines this for functions which it implements
21873     to always fail with ENOSYS.  Some functions are actually named
21874     something starting with __ and the normal name is an alias.  */
21875 #if defined __stub_$ac_func || defined __stub___$ac_func
21876 choke me
21877 #endif
21878
21879 int
21880 main ()
21881 {
21882 return $ac_func ();
21883   ;
21884   return 0;
21885 }
21886 _ACEOF
21887 rm -f conftest.$ac_objext conftest$ac_exeext
21888 if { (ac_try="$ac_link"
21889 case "(($ac_try" in
21890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891   *) ac_try_echo=$ac_try;;
21892 esac
21893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21894 $as_echo "$ac_try_echo") >&5
21895   (eval "$ac_link") 2>conftest.er1
21896   ac_status=$?
21897   grep -v '^ *+' conftest.er1 >conftest.err
21898   rm -f conftest.er1
21899   cat conftest.err >&5
21900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } && {
21902          test -z "$ac_c_werror_flag" ||
21903          test ! -s conftest.err
21904        } && test -s conftest$ac_exeext && {
21905          test "$cross_compiling" = yes ||
21906          $as_test_x conftest$ac_exeext
21907        }; then
21908   eval "$as_ac_var=yes"
21909 else
21910   $as_echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21912
21913         eval "$as_ac_var=no"
21914 fi
21915
21916 rm -rf conftest.dSYM
21917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21918       conftest$ac_exeext conftest.$ac_ext
21919 fi
21920 ac_res=`eval 'as_val=${'$as_ac_var'}
21921                  $as_echo "$as_val"'`
21922                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21923 $as_echo "$ac_res" >&6; }
21924 as_val=`eval 'as_val=${'$as_ac_var'}
21925                  $as_echo "$as_val"'`
21926    if test "x$as_val" = x""yes; then
21927   cat >>confdefs.h <<_ACEOF
21928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21929 _ACEOF
21930
21931 else
21932   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
21933 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
21934    { (exit 1); exit 1; }; }
21935 fi
21936 done
21937
21938 fi
21939 done
21940
21941
21942
21943 #
21944 # Pthreads
21945 #
21946 # For each platform, we need to know about any special compile and link
21947 # libraries, and whether the normal C function names are thread-safe.
21948 # See the comment at the top of src/port/thread.c for more information.
21949 # WIN32 doesn't need the pthread tests;  it always uses threads
21950 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
21951
21952
21953
21954 ac_ext=c
21955 ac_cpp='$CPP $CPPFLAGS'
21956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21959
21960 acx_pthread_ok=no
21961
21962 # We used to check for pthread.h first, but this fails if pthread.h
21963 # requires special compiler flags (e.g. on True64 or Sequent).
21964 # It gets checked for in the link test anyway.
21965
21966 # First of all, check if the user has set any of the PTHREAD_LIBS,
21967 # etcetera environment variables, and if threads linking works using
21968 # them:
21969 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21970         save_CFLAGS="$CFLAGS"
21971         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21972         save_LIBS="$LIBS"
21973         LIBS="$PTHREAD_LIBS $LIBS"
21974         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21975 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
21976         cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h.  */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h.  */
21982
21983 /* Override any GCC internal prototype to avoid an error.
21984    Use char because int might match the return type of a GCC
21985    builtin and then its argument prototype would still apply.  */
21986 #ifdef __cplusplus
21987 extern "C"
21988 #endif
21989 char pthread_join ();
21990 int
21991 main ()
21992 {
21993 return pthread_join ();
21994   ;
21995   return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002   *) ac_try_echo=$ac_try;;
22003 esac
22004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22005 $as_echo "$ac_try_echo") >&5
22006   (eval "$ac_link") 2>conftest.er1
22007   ac_status=$?
22008   grep -v '^ *+' conftest.er1 >conftest.err
22009   rm -f conftest.er1
22010   cat conftest.err >&5
22011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012   (exit $ac_status); } && {
22013          test -z "$ac_c_werror_flag" ||
22014          test ! -s conftest.err
22015        } && test -s conftest$ac_exeext && {
22016          test "$cross_compiling" = yes ||
22017          $as_test_x conftest$ac_exeext
22018        }; then
22019   acx_pthread_ok=yes
22020 else
22021   $as_echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22023
22024
22025 fi
22026
22027 rm -rf conftest.dSYM
22028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22029       conftest$ac_exeext conftest.$ac_ext
22030         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22031 $as_echo "$acx_pthread_ok" >&6; }
22032         if test x"$acx_pthread_ok" = xno; then
22033                 PTHREAD_LIBS=""
22034                 PTHREAD_CFLAGS=""
22035         fi
22036         LIBS="$save_LIBS"
22037         CFLAGS="$save_CFLAGS"
22038 fi
22039
22040 # We must check for the threads library under a number of different
22041 # names; the ordering is very important because some systems
22042 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22043 # libraries is broken (non-POSIX).
22044
22045 # Create a list of thread flags to try.  Items starting with a "-" are
22046 # C compiler flags, and other items are library names, except for "none"
22047 # which indicates that we try without any flags at all, and "pthread-config"
22048 # which is a program returning the flags for the Pth emulation library.
22049
22050 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22051
22052 # The ordering *is* (sometimes) important.  Some notes on the
22053 # individual items follow:
22054
22055 # pthreads: AIX (must check this before -lpthread)
22056 # none: in case threads are in libc; should be tried before -Kthread and
22057 #       other compiler flags to prevent continual compiler warnings
22058 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22059 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22060 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22061 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22062 # -pthreads: Solaris/gcc
22063 # -mthreads: Mingw32/gcc, Lynx/gcc
22064 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22065 #      doesn't hurt to check since this sometimes defines pthreads too;
22066 #      also defines -D_REENTRANT)
22067 # pthread: Linux, etcetera
22068 # --thread-safe: KAI C++
22069 # pthread-config: use pthread-config program (for GNU Pth library)
22070
22071 case "${host_cpu}-${host_os}" in
22072         *solaris*)
22073
22074         # On Solaris (at least, for some versions), libc contains stubbed
22075         # (non-functional) versions of the pthreads routines, so link-based
22076         # tests will erroneously succeed.  (We need to link with -pthread or
22077         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22078         # a function called by this macro, so we could check for that, but
22079         # who knows whether they'll stub that too in a future libc.)  So,
22080         # we'll just look for -pthreads and -lpthread first:
22081
22082         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22083         ;;
22084 esac
22085
22086 if test x"$acx_pthread_ok" = xno; then
22087 for flag in $acx_pthread_flags; do
22088
22089         tryPTHREAD_CFLAGS=""
22090         tryPTHREAD_LIBS=""
22091         case $flag in
22092                 none)
22093                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22094 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22095                 ;;
22096
22097                 -*)
22098                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22099 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22100                 tryPTHREAD_CFLAGS="$flag"
22101                 ;;
22102
22103                 pthread-config)
22104                 # skip this if we already have flags defined, for PostgreSQL
22105                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22106                 # Extract the first word of "pthread-config", so it can be a program name with args.
22107 set dummy pthread-config; ac_word=$2
22108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22109 $as_echo_n "checking for $ac_word... " >&6; }
22110 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22111   $as_echo_n "(cached) " >&6
22112 else
22113   if test -n "$acx_pthread_config"; then
22114   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22115 else
22116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22117 for as_dir in $PATH
22118 do
22119   IFS=$as_save_IFS
22120   test -z "$as_dir" && as_dir=.
22121   for ac_exec_ext in '' $ac_executable_extensions; do
22122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22123     ac_cv_prog_acx_pthread_config="yes"
22124     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22125     break 2
22126   fi
22127 done
22128 done
22129 IFS=$as_save_IFS
22130
22131   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22132 fi
22133 fi
22134 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22135 if test -n "$acx_pthread_config"; then
22136   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22137 $as_echo "$acx_pthread_config" >&6; }
22138 else
22139   { $as_echo "$as_me:$LINENO: result: no" >&5
22140 $as_echo "no" >&6; }
22141 fi
22142
22143
22144                 if test x"$acx_pthread_config" = xno; then continue; fi
22145                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22146                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22147                 ;;
22148
22149                 *)
22150                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22151 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22152                 tryPTHREAD_LIBS="-l$flag"
22153                 ;;
22154         esac
22155
22156         save_LIBS="$LIBS"
22157         save_CFLAGS="$CFLAGS"
22158         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22159         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22160
22161         # Check for various functions.  We must include pthread.h,
22162         # since some functions may be macros.  (On the Sequent, we
22163         # need a special flag -Kthread to make this header compile.)
22164         # We check for pthread_join because it is in -lpthread on IRIX
22165         # while pthread_create is in libc.  We check for pthread_attr_init
22166         # due to DEC craziness with -lpthreads.  We check for
22167         # pthread_cleanup_push because it is one of the few pthread
22168         # functions on Solaris that doesn't have a non-functional libc stub.
22169         # We try pthread_create on general principles.
22170         cat >conftest.$ac_ext <<_ACEOF
22171 /* confdefs.h.  */
22172 _ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h.  */
22176 #include <pthread.h>
22177 int
22178 main ()
22179 {
22180 pthread_t th; pthread_join(th, 0);
22181                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22182                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22183   ;
22184   return 0;
22185 }
22186 _ACEOF
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191   *) ac_try_echo=$ac_try;;
22192 esac
22193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22194 $as_echo "$ac_try_echo") >&5
22195   (eval "$ac_link") 2>conftest.er1
22196   ac_status=$?
22197   grep -v '^ *+' conftest.er1 >conftest.err
22198   rm -f conftest.er1
22199   cat conftest.err >&5
22200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); } && {
22202          test -z "$ac_c_werror_flag" ||
22203          test ! -s conftest.err
22204        } && test -s conftest$ac_exeext && {
22205          test "$cross_compiling" = yes ||
22206          $as_test_x conftest$ac_exeext
22207        }; then
22208   acx_pthread_ok=yes
22209 else
22210   $as_echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213         acx_pthread_ok=no
22214 fi
22215
22216 rm -rf conftest.dSYM
22217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22218       conftest$ac_exeext conftest.$ac_ext
22219
22220         if test "x$acx_pthread_ok" = xyes; then
22221             # Don't use options that are ignored by the compiler.
22222             # We find them by checking stderror.
22223             cat >conftest.$ac_ext <<_ACEOF
22224 int
22225 main (int argc, char **argv)
22226 {
22227   (void) argc;
22228   (void) argv;
22229   return 0;
22230 }
22231 _ACEOF
22232             rm -f conftest.$ac_objext conftest$ac_exeext
22233             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22234                 # we continue with more flags because Linux needs -lpthread
22235                 # for libpq builds on PostgreSQL.  The test above only
22236                 # tests for building binaries, not shared libraries.
22237                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22238                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22239             else   acx_pthread_ok=no
22240             fi
22241         fi
22242
22243         LIBS="$save_LIBS"
22244         CFLAGS="$save_CFLAGS"
22245
22246         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22247 $as_echo "$acx_pthread_ok" >&6; }
22248 done
22249 fi
22250
22251 # Various other checks:
22252 if test "x$acx_pthread_ok" = xyes; then
22253         save_LIBS="$LIBS"
22254         LIBS="$PTHREAD_LIBS $LIBS"
22255         save_CFLAGS="$CFLAGS"
22256         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22257
22258         # Detect AIX lossage: threads are created detached by default
22259         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22260         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22261 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22262         cat >conftest.$ac_ext <<_ACEOF
22263 /* confdefs.h.  */
22264 _ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h.  */
22268 #include <pthread.h>
22269 int
22270 main ()
22271 {
22272 int attr=PTHREAD_CREATE_JOINABLE;
22273   ;
22274   return 0;
22275 }
22276 _ACEOF
22277 rm -f conftest.$ac_objext conftest$ac_exeext
22278 if { (ac_try="$ac_link"
22279 case "(($ac_try" in
22280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281   *) ac_try_echo=$ac_try;;
22282 esac
22283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22284 $as_echo "$ac_try_echo") >&5
22285   (eval "$ac_link") 2>conftest.er1
22286   ac_status=$?
22287   grep -v '^ *+' conftest.er1 >conftest.err
22288   rm -f conftest.er1
22289   cat conftest.err >&5
22290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291   (exit $ac_status); } && {
22292          test -z "$ac_c_werror_flag" ||
22293          test ! -s conftest.err
22294        } && test -s conftest$ac_exeext && {
22295          test "$cross_compiling" = yes ||
22296          $as_test_x conftest$ac_exeext
22297        }; then
22298   ok=PTHREAD_CREATE_JOINABLE
22299 else
22300   $as_echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22302
22303         ok=unknown
22304 fi
22305
22306 rm -rf conftest.dSYM
22307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22308       conftest$ac_exeext conftest.$ac_ext
22309         if test x"$ok" = xunknown; then
22310                 cat >conftest.$ac_ext <<_ACEOF
22311 /* confdefs.h.  */
22312 _ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h.  */
22316 #include <pthread.h>
22317 int
22318 main ()
22319 {
22320 int attr=PTHREAD_CREATE_UNDETACHED;
22321   ;
22322   return 0;
22323 }
22324 _ACEOF
22325 rm -f conftest.$ac_objext conftest$ac_exeext
22326 if { (ac_try="$ac_link"
22327 case "(($ac_try" in
22328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329   *) ac_try_echo=$ac_try;;
22330 esac
22331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22332 $as_echo "$ac_try_echo") >&5
22333   (eval "$ac_link") 2>conftest.er1
22334   ac_status=$?
22335   grep -v '^ *+' conftest.er1 >conftest.err
22336   rm -f conftest.er1
22337   cat conftest.err >&5
22338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); } && {
22340          test -z "$ac_c_werror_flag" ||
22341          test ! -s conftest.err
22342        } && test -s conftest$ac_exeext && {
22343          test "$cross_compiling" = yes ||
22344          $as_test_x conftest$ac_exeext
22345        }; then
22346   ok=PTHREAD_CREATE_UNDETACHED
22347 else
22348   $as_echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22350
22351         ok=unknown
22352 fi
22353
22354 rm -rf conftest.dSYM
22355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22356       conftest$ac_exeext conftest.$ac_ext
22357         fi
22358         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22359
22360 cat >>confdefs.h <<\_ACEOF
22361 #define PTHREAD_CREATE_JOINABLE $ok
22362 _ACEOF
22363
22364         fi
22365         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22366 $as_echo "${ok}" >&6; }
22367         if test x"$ok" = xunknown; then
22368                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22369 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22370         fi
22371
22372         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22373 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22374         flag=no
22375 # We always add these in PostgreSQL
22376 #       case "${host_cpu}-${host_os}" in
22377 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22378 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22379 #       esac
22380         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22381 $as_echo "${flag}" >&6; }
22382         if test "x$flag" != xno; then
22383                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22384         fi
22385
22386         LIBS="$save_LIBS"
22387         CFLAGS="$save_CFLAGS"
22388
22389 # Supporting cc_r would require a special CC in all places that
22390 # use libpq, and that is ugly, so we don't do it.  Users can still
22391 # define their compiler as cc_r to do thread builds of everything.
22392         # More AIX lossage: must compile with cc_r
22393         # Extract the first word of "cc_r", so it can be a program name with args.
22394 set dummy cc_r; ac_word=$2
22395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22396 $as_echo_n "checking for $ac_word... " >&6; }
22397 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22398   $as_echo_n "(cached) " >&6
22399 else
22400   if test -n "$PTHREAD_CC"; then
22401   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22402 else
22403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22404 for as_dir in $PATH
22405 do
22406   IFS=$as_save_IFS
22407   test -z "$as_dir" && as_dir=.
22408   for ac_exec_ext in '' $ac_executable_extensions; do
22409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22410     ac_cv_prog_PTHREAD_CC="cc_r"
22411     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22412     break 2
22413   fi
22414 done
22415 done
22416 IFS=$as_save_IFS
22417
22418   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22419 fi
22420 fi
22421 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22422 if test -n "$PTHREAD_CC"; then
22423   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22424 $as_echo "$PTHREAD_CC" >&6; }
22425 else
22426   { $as_echo "$as_me:$LINENO: result: no" >&5
22427 $as_echo "no" >&6; }
22428 fi
22429
22430
22431 else
22432         PTHREAD_CC="$CC"
22433 fi
22434
22435
22436
22437
22438
22439 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22440 if test x"$acx_pthread_ok" = xyes; then
22441
22442 cat >>confdefs.h <<\_ACEOF
22443 #define HAVE_PTHREAD 1
22444 _ACEOF
22445
22446         :
22447 else
22448         acx_pthread_ok=no
22449
22450 fi
22451 ac_ext=c
22452 ac_cpp='$CPP $CPPFLAGS'
22453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22456
22457         # set thread flags
22458
22459 # Some platforms use these, so just define them.  They can't hurt if they
22460 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22461 # enables 5-arg getpwuid_r, among other things.
22462 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22463
22464
22465 # At this point, we don't want to muck with the compiler name for threading.
22466 # Let's see who fails, perhaps AIX.  2004-04-23
22467 if test "$PTHREAD_CC" != "$CC"; then
22468 { { $as_echo "$as_me:$LINENO: error:
22469 PostgreSQL does not support platforms that require a special compiler
22470 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
22471 $as_echo "$as_me: error:
22472 PostgreSQL does not support platforms that require a special compiler
22473 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
22474    { (exit 1); exit 1; }; }
22475 fi
22476
22477 # Check for *_r functions
22478 _CFLAGS="$CFLAGS"
22479 _LIBS="$LIBS"
22480 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22481 LIBS="$LIBS $PTHREAD_LIBS"
22482
22483 if test "$PORTNAME" != "win32"; then
22484 if test "${ac_cv_header_pthread_h+set}" = set; then
22485   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22486 $as_echo_n "checking for pthread.h... " >&6; }
22487 if test "${ac_cv_header_pthread_h+set}" = set; then
22488   $as_echo_n "(cached) " >&6
22489 fi
22490 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22491 $as_echo "$ac_cv_header_pthread_h" >&6; }
22492 else
22493   # Is the header compilable?
22494 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22495 $as_echo_n "checking pthread.h usability... " >&6; }
22496 cat >conftest.$ac_ext <<_ACEOF
22497 /* confdefs.h.  */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h.  */
22502 $ac_includes_default
22503 #include <pthread.h>
22504 _ACEOF
22505 rm -f conftest.$ac_objext
22506 if { (ac_try="$ac_compile"
22507 case "(($ac_try" in
22508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509   *) ac_try_echo=$ac_try;;
22510 esac
22511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22512 $as_echo "$ac_try_echo") >&5
22513   (eval "$ac_compile") 2>conftest.er1
22514   ac_status=$?
22515   grep -v '^ *+' conftest.er1 >conftest.err
22516   rm -f conftest.er1
22517   cat conftest.err >&5
22518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); } && {
22520          test -z "$ac_c_werror_flag" ||
22521          test ! -s conftest.err
22522        } && test -s conftest.$ac_objext; then
22523   ac_header_compiler=yes
22524 else
22525   $as_echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22527
22528         ac_header_compiler=no
22529 fi
22530
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22533 $as_echo "$ac_header_compiler" >&6; }
22534
22535 # Is the header present?
22536 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22537 $as_echo_n "checking pthread.h presence... " >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h.  */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h.  */
22544 #include <pthread.h>
22545 _ACEOF
22546 if { (ac_try="$ac_cpp conftest.$ac_ext"
22547 case "(($ac_try" in
22548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549   *) ac_try_echo=$ac_try;;
22550 esac
22551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22552 $as_echo "$ac_try_echo") >&5
22553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22554   ac_status=$?
22555   grep -v '^ *+' conftest.er1 >conftest.err
22556   rm -f conftest.er1
22557   cat conftest.err >&5
22558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); } >/dev/null && {
22560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22561          test ! -s conftest.err
22562        }; then
22563   ac_header_preproc=yes
22564 else
22565   $as_echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22567
22568   ac_header_preproc=no
22569 fi
22570
22571 rm -f conftest.err conftest.$ac_ext
22572 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22573 $as_echo "$ac_header_preproc" >&6; }
22574
22575 # So?  What about this header?
22576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22577   yes:no: )
22578     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22579 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22580     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22581 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22582     ac_header_preproc=yes
22583     ;;
22584   no:yes:* )
22585     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22586 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22587     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
22588 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
22589     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22590 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22591     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
22592 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22593     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22594 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22595     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22596 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22597     ( cat <<\_ASBOX
22598 ## ---------------------------------------- ##
22599 ## Report this to pgsql-bugs@postgresql.org ##
22600 ## ---------------------------------------- ##
22601 _ASBOX
22602      ) | sed "s/^/$as_me: WARNING:     /" >&2
22603     ;;
22604 esac
22605 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22606 $as_echo_n "checking for pthread.h... " >&6; }
22607 if test "${ac_cv_header_pthread_h+set}" = set; then
22608   $as_echo_n "(cached) " >&6
22609 else
22610   ac_cv_header_pthread_h=$ac_header_preproc
22611 fi
22612 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22613 $as_echo "$ac_cv_header_pthread_h" >&6; }
22614
22615 fi
22616 if test "x$ac_cv_header_pthread_h" = x""yes; then
22617   :
22618 else
22619   { { $as_echo "$as_me:$LINENO: error:
22620 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
22621 $as_echo "$as_me: error:
22622 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
22623    { (exit 1); exit 1; }; }
22624 fi
22625
22626
22627 fi
22628
22629
22630
22631
22632 for ac_func in strerror_r getpwuid_r gethostbyname_r
22633 do
22634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22635 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22636 $as_echo_n "checking for $ac_func... " >&6; }
22637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22638   $as_echo_n "(cached) " >&6
22639 else
22640   cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h.  */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h.  */
22646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22648 #define $ac_func innocuous_$ac_func
22649
22650 /* System header to define __stub macros and hopefully few prototypes,
22651     which can conflict with char $ac_func (); below.
22652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22653     <limits.h> exists even on freestanding compilers.  */
22654
22655 #ifdef __STDC__
22656 # include <limits.h>
22657 #else
22658 # include <assert.h>
22659 #endif
22660
22661 #undef $ac_func
22662
22663 /* Override any GCC internal prototype to avoid an error.
22664    Use char because int might match the return type of a GCC
22665    builtin and then its argument prototype would still apply.  */
22666 #ifdef __cplusplus
22667 extern "C"
22668 #endif
22669 char $ac_func ();
22670 /* The GNU C library defines this for functions which it implements
22671     to always fail with ENOSYS.  Some functions are actually named
22672     something starting with __ and the normal name is an alias.  */
22673 #if defined __stub_$ac_func || defined __stub___$ac_func
22674 choke me
22675 #endif
22676
22677 int
22678 main ()
22679 {
22680 return $ac_func ();
22681   ;
22682   return 0;
22683 }
22684 _ACEOF
22685 rm -f conftest.$ac_objext conftest$ac_exeext
22686 if { (ac_try="$ac_link"
22687 case "(($ac_try" in
22688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22689   *) ac_try_echo=$ac_try;;
22690 esac
22691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22692 $as_echo "$ac_try_echo") >&5
22693   (eval "$ac_link") 2>conftest.er1
22694   ac_status=$?
22695   grep -v '^ *+' conftest.er1 >conftest.err
22696   rm -f conftest.er1
22697   cat conftest.err >&5
22698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); } && {
22700          test -z "$ac_c_werror_flag" ||
22701          test ! -s conftest.err
22702        } && test -s conftest$ac_exeext && {
22703          test "$cross_compiling" = yes ||
22704          $as_test_x conftest$ac_exeext
22705        }; then
22706   eval "$as_ac_var=yes"
22707 else
22708   $as_echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22710
22711         eval "$as_ac_var=no"
22712 fi
22713
22714 rm -rf conftest.dSYM
22715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22716       conftest$ac_exeext conftest.$ac_ext
22717 fi
22718 ac_res=`eval 'as_val=${'$as_ac_var'}
22719                  $as_echo "$as_val"'`
22720                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22721 $as_echo "$ac_res" >&6; }
22722 as_val=`eval 'as_val=${'$as_ac_var'}
22723                  $as_echo "$as_val"'`
22724    if test "x$as_val" = x""yes; then
22725   cat >>confdefs.h <<_ACEOF
22726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22727 _ACEOF
22728
22729 fi
22730 done
22731
22732
22733 # Do test here with the proper thread flags
22734 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
22735 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
22736 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
22737   $as_echo_n "(cached) " >&6
22738 else
22739   cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h.  */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h.  */
22745 #include <sys/types.h>
22746 #include <pwd.h>
22747 int
22748 main ()
22749 {
22750 uid_t uid;
22751 struct passwd *space;
22752 char *buf;
22753 size_t bufsize;
22754 struct passwd **result;
22755 getpwuid_r(uid, space, buf, bufsize, result);
22756   ;
22757   return 0;
22758 }
22759 _ACEOF
22760 rm -f conftest.$ac_objext
22761 if { (ac_try="$ac_compile"
22762 case "(($ac_try" in
22763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764   *) ac_try_echo=$ac_try;;
22765 esac
22766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22767 $as_echo "$ac_try_echo") >&5
22768   (eval "$ac_compile") 2>conftest.er1
22769   ac_status=$?
22770   grep -v '^ *+' conftest.er1 >conftest.err
22771   rm -f conftest.er1
22772   cat conftest.err >&5
22773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); } && {
22775          test -z "$ac_c_werror_flag" ||
22776          test ! -s conftest.err
22777        } && test -s conftest.$ac_objext; then
22778   pgac_cv_func_getpwuid_r_5arg=yes
22779 else
22780   $as_echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22782
22783         pgac_cv_func_getpwuid_r_5arg=no
22784 fi
22785
22786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22787 fi
22788 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
22789 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
22790 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
22791
22792 cat >>confdefs.h <<\_ACEOF
22793 #define GETPWUID_R_5ARG /**/
22794 _ACEOF
22795
22796 fi
22797
22798 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
22799 $as_echo_n "checking whether strerror_r returns int... " >&6; }
22800 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
22801   $as_echo_n "(cached) " >&6
22802 else
22803   cat >conftest.$ac_ext <<_ACEOF
22804 /* confdefs.h.  */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h.  */
22809 #include <string.h>
22810 int
22811 main ()
22812 {
22813 #ifndef _AIX
22814 int strerror_r(int, char *, size_t);
22815 #else
22816 /* Older AIX has 'int' for the third argument so we don't test the args. */
22817 int strerror_r();
22818 #endif
22819   ;
22820   return 0;
22821 }
22822 _ACEOF
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827   *) ac_try_echo=$ac_try;;
22828 esac
22829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22830 $as_echo "$ac_try_echo") >&5
22831   (eval "$ac_compile") 2>conftest.er1
22832   ac_status=$?
22833   grep -v '^ *+' conftest.er1 >conftest.err
22834   rm -f conftest.er1
22835   cat conftest.err >&5
22836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837   (exit $ac_status); } && {
22838          test -z "$ac_c_werror_flag" ||
22839          test ! -s conftest.err
22840        } && test -s conftest.$ac_objext; then
22841   pgac_cv_func_strerror_r_int=yes
22842 else
22843   $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22845
22846         pgac_cv_func_strerror_r_int=no
22847 fi
22848
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22850 fi
22851 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
22852 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
22853 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
22854
22855 cat >>confdefs.h <<\_ACEOF
22856 #define STRERROR_R_INT /**/
22857 _ACEOF
22858
22859 fi
22860
22861
22862 CFLAGS="$_CFLAGS"
22863 LIBS="$_LIBS"
22864
22865 else
22866 # do not use values from template file
22867 PTHREAD_CFLAGS=
22868 PTHREAD_LIBS=
22869 fi
22870
22871
22872
22873
22874
22875 # We can test for libldap_r only after we know PTHREAD_LIBS
22876 if test "$with_ldap" = yes ; then
22877   _LIBS="$LIBS"
22878   if test "$PORTNAME" != "win32"; then
22879
22880 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
22881 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
22882 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
22883   $as_echo_n "(cached) " >&6
22884 else
22885   ac_check_lib_save_LIBS=$LIBS
22886 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
22887 cat >conftest.$ac_ext <<_ACEOF
22888 /* confdefs.h.  */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h.  */
22893
22894 /* Override any GCC internal prototype to avoid an error.
22895    Use char because int might match the return type of a GCC
22896    builtin and then its argument prototype would still apply.  */
22897 #ifdef __cplusplus
22898 extern "C"
22899 #endif
22900 char ldap_bind ();
22901 int
22902 main ()
22903 {
22904 return ldap_bind ();
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   ac_cv_lib_ldap_ldap_bind=yes
22931 else
22932   $as_echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935         ac_cv_lib_ldap_ldap_bind=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 LIBS=$ac_check_lib_save_LIBS
22942 fi
22943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
22944 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
22945 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
22946   cat >>confdefs.h <<_ACEOF
22947 #define HAVE_LIBLDAP 1
22948 _ACEOF
22949
22950   LIBS="-lldap $LIBS"
22951
22952 else
22953   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
22954 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
22955    { (exit 1); exit 1; }; }
22956 fi
22957
22958     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
22959     if test "$enable_thread_safety" = yes; then
22960       # on some platforms ldap_r fails to link without PTHREAD_LIBS
22961
22962 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
22963 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
22964 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
22965   $as_echo_n "(cached) " >&6
22966 else
22967   ac_check_lib_save_LIBS=$LIBS
22968 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
22969 cat >conftest.$ac_ext <<_ACEOF
22970 /* confdefs.h.  */
22971 _ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h.  */
22975
22976 /* Override any GCC internal prototype to avoid an error.
22977    Use char because int might match the return type of a GCC
22978    builtin and then its argument prototype would still apply.  */
22979 #ifdef __cplusplus
22980 extern "C"
22981 #endif
22982 char ldap_simple_bind ();
22983 int
22984 main ()
22985 {
22986 return ldap_simple_bind ();
22987   ;
22988   return 0;
22989 }
22990 _ACEOF
22991 rm -f conftest.$ac_objext conftest$ac_exeext
22992 if { (ac_try="$ac_link"
22993 case "(($ac_try" in
22994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995   *) ac_try_echo=$ac_try;;
22996 esac
22997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22998 $as_echo "$ac_try_echo") >&5
22999   (eval "$ac_link") 2>conftest.er1
23000   ac_status=$?
23001   grep -v '^ *+' conftest.er1 >conftest.err
23002   rm -f conftest.er1
23003   cat conftest.err >&5
23004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005   (exit $ac_status); } && {
23006          test -z "$ac_c_werror_flag" ||
23007          test ! -s conftest.err
23008        } && test -s conftest$ac_exeext && {
23009          test "$cross_compiling" = yes ||
23010          $as_test_x conftest$ac_exeext
23011        }; then
23012   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23013 else
23014   $as_echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23016
23017         ac_cv_lib_ldap_r_ldap_simple_bind=no
23018 fi
23019
23020 rm -rf conftest.dSYM
23021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23022       conftest$ac_exeext conftest.$ac_ext
23023 LIBS=$ac_check_lib_save_LIBS
23024 fi
23025 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23026 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23027 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23028   cat >>confdefs.h <<_ACEOF
23029 #define HAVE_LIBLDAP_R 1
23030 _ACEOF
23031
23032   LIBS="-lldap_r $LIBS"
23033
23034 else
23035   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23036 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23037    { (exit 1); exit 1; }; }
23038 fi
23039
23040       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23041     else
23042       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23043     fi
23044   else
23045
23046 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23047 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23048 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23049   $as_echo_n "(cached) " >&6
23050 else
23051   ac_check_lib_save_LIBS=$LIBS
23052 LIBS="-lwldap32  $LIBS"
23053 cat >conftest.$ac_ext <<_ACEOF
23054 /* confdefs.h.  */
23055 _ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h.  */
23059
23060 /* Override any GCC internal prototype to avoid an error.
23061    Use char because int might match the return type of a GCC
23062    builtin and then its argument prototype would still apply.  */
23063 #ifdef __cplusplus
23064 extern "C"
23065 #endif
23066 char ldap_bind ();
23067 int
23068 main ()
23069 {
23070 return ldap_bind ();
23071   ;
23072   return 0;
23073 }
23074 _ACEOF
23075 rm -f conftest.$ac_objext conftest$ac_exeext
23076 if { (ac_try="$ac_link"
23077 case "(($ac_try" in
23078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079   *) ac_try_echo=$ac_try;;
23080 esac
23081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23082 $as_echo "$ac_try_echo") >&5
23083   (eval "$ac_link") 2>conftest.er1
23084   ac_status=$?
23085   grep -v '^ *+' conftest.er1 >conftest.err
23086   rm -f conftest.er1
23087   cat conftest.err >&5
23088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); } && {
23090          test -z "$ac_c_werror_flag" ||
23091          test ! -s conftest.err
23092        } && test -s conftest$ac_exeext && {
23093          test "$cross_compiling" = yes ||
23094          $as_test_x conftest$ac_exeext
23095        }; then
23096   ac_cv_lib_wldap32_ldap_bind=yes
23097 else
23098   $as_echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23100
23101         ac_cv_lib_wldap32_ldap_bind=no
23102 fi
23103
23104 rm -rf conftest.dSYM
23105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23106       conftest$ac_exeext conftest.$ac_ext
23107 LIBS=$ac_check_lib_save_LIBS
23108 fi
23109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23110 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23111 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23112   cat >>confdefs.h <<_ACEOF
23113 #define HAVE_LIBWLDAP32 1
23114 _ACEOF
23115
23116   LIBS="-lwldap32 $LIBS"
23117
23118 else
23119   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23120 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23121    { (exit 1); exit 1; }; }
23122 fi
23123
23124     LDAP_LIBS_FE="-lwldap32"
23125     LDAP_LIBS_BE="-lwldap32"
23126   fi
23127   LIBS="$_LIBS"
23128 fi
23129
23130
23131
23132
23133 # This test makes sure that run tests work at all.  Sometimes a shared
23134 # library is found by the linker, but the runtime linker can't find it.
23135 # This check should come after all modifications of compiler or linker
23136 # variables, and before any other run tests.
23137 { $as_echo "$as_me:$LINENO: checking test program" >&5
23138 $as_echo_n "checking test program... " >&6; }
23139 if test "$cross_compiling" = yes; then
23140   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23141 $as_echo "cross-compiling" >&6; }
23142 else
23143   cat >conftest.$ac_ext <<_ACEOF
23144 /* confdefs.h.  */
23145 _ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h.  */
23149 int main() { return 0; }
23150 _ACEOF
23151 rm -f conftest$ac_exeext
23152 if { (ac_try="$ac_link"
23153 case "(($ac_try" in
23154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23155   *) ac_try_echo=$ac_try;;
23156 esac
23157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23158 $as_echo "$ac_try_echo") >&5
23159   (eval "$ac_link") 2>&5
23160   ac_status=$?
23161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23163   { (case "(($ac_try" in
23164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165   *) ac_try_echo=$ac_try;;
23166 esac
23167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23168 $as_echo "$ac_try_echo") >&5
23169   (eval "$ac_try") 2>&5
23170   ac_status=$?
23171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172   (exit $ac_status); }; }; then
23173   { $as_echo "$as_me:$LINENO: result: ok" >&5
23174 $as_echo "ok" >&6; }
23175 else
23176   $as_echo "$as_me: program exited with status $ac_status" >&5
23177 $as_echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23179
23180 ( exit $ac_status )
23181 { $as_echo "$as_me:$LINENO: result: failed" >&5
23182 $as_echo "failed" >&6; }
23183 { { $as_echo "$as_me:$LINENO: error:
23184 Could not execute a simple test program.  This may be a problem
23185 related to locating shared libraries.  Check the file 'config.log'
23186 for the exact reason." >&5
23187 $as_echo "$as_me: error:
23188 Could not execute a simple test program.  This may be a problem
23189 related to locating shared libraries.  Check the file 'config.log'
23190 for the exact reason." >&2;}
23191    { (exit 1); exit 1; }; }
23192 fi
23193 rm -rf conftest.dSYM
23194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23195 fi
23196
23197
23198
23199 # --------------------
23200 # Run tests below here
23201 # --------------------
23202
23203 # Force use of our snprintf if system's doesn't do arg control
23204 # See comment above at snprintf test for details.
23205 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23206   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23207 $as_echo_n "checking whether printf supports argument control... " >&6; }
23208 if test "${pgac_cv_printf_arg_control+set}" = set; then
23209   $as_echo_n "(cached) " >&6
23210 else
23211   if test "$cross_compiling" = yes; then
23212   pgac_cv_printf_arg_control=cross
23213 else
23214   cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h.  */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h.  */
23220 #include <stdio.h>
23221 #include <string.h>
23222
23223 int main()
23224 {
23225   char buf[100];
23226
23227   /* can it swap arguments? */
23228   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23229   if (strcmp(buf, "4 3") != 0)
23230     return 1;
23231   return 0;
23232 }
23233 _ACEOF
23234 rm -f conftest$ac_exeext
23235 if { (ac_try="$ac_link"
23236 case "(($ac_try" in
23237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238   *) ac_try_echo=$ac_try;;
23239 esac
23240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23241 $as_echo "$ac_try_echo") >&5
23242   (eval "$ac_link") 2>&5
23243   ac_status=$?
23244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23246   { (case "(($ac_try" in
23247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248   *) ac_try_echo=$ac_try;;
23249 esac
23250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23251 $as_echo "$ac_try_echo") >&5
23252   (eval "$ac_try") 2>&5
23253   ac_status=$?
23254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255   (exit $ac_status); }; }; then
23256   pgac_cv_printf_arg_control=yes
23257 else
23258   $as_echo "$as_me: program exited with status $ac_status" >&5
23259 $as_echo "$as_me: failed program was:" >&5
23260 sed 's/^/| /' conftest.$ac_ext >&5
23261
23262 ( exit $ac_status )
23263 pgac_cv_printf_arg_control=no
23264 fi
23265 rm -rf conftest.dSYM
23266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23267 fi
23268
23269
23270
23271 fi
23272 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23273 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23274
23275   if test $pgac_cv_printf_arg_control != yes ; then
23276     pgac_need_repl_snprintf=yes
23277   fi
23278 fi
23279
23280
23281
23282
23283 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23284 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23285 if test "${pgac_cv_type_long_int_64+set}" = set; then
23286   $as_echo_n "(cached) " >&6
23287 else
23288   if test "$cross_compiling" = yes; then
23289   # If cross-compiling, check the size reported by the compiler and
23290 # trust that the arithmetic works.
23291 cat >conftest.$ac_ext <<_ACEOF
23292 /* confdefs.h.  */
23293 _ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h.  */
23297
23298 int
23299 main ()
23300 {
23301 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23302 test_array [0] = 0
23303
23304   ;
23305   return 0;
23306 }
23307 _ACEOF
23308 rm -f conftest.$ac_objext
23309 if { (ac_try="$ac_compile"
23310 case "(($ac_try" in
23311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312   *) ac_try_echo=$ac_try;;
23313 esac
23314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23315 $as_echo "$ac_try_echo") >&5
23316   (eval "$ac_compile") 2>conftest.er1
23317   ac_status=$?
23318   grep -v '^ *+' conftest.er1 >conftest.err
23319   rm -f conftest.er1
23320   cat conftest.err >&5
23321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322   (exit $ac_status); } && {
23323          test -z "$ac_c_werror_flag" ||
23324          test ! -s conftest.err
23325        } && test -s conftest.$ac_objext; then
23326   pgac_cv_type_long_int_64=yes
23327 else
23328   $as_echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331         pgac_cv_type_long_int_64=no
23332 fi
23333
23334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23335 else
23336   cat >conftest.$ac_ext <<_ACEOF
23337 /* confdefs.h.  */
23338 _ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h.  */
23342 typedef long int ac_int64;
23343
23344 /*
23345  * These are globals to discourage the compiler from folding all the
23346  * arithmetic tests down to compile-time constants.
23347  */
23348 ac_int64 a = 20000001;
23349 ac_int64 b = 40000005;
23350
23351 int does_int64_work()
23352 {
23353   ac_int64 c,d;
23354
23355   if (sizeof(ac_int64) != 8)
23356     return 0;                   /* definitely not the right size */
23357
23358   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23359   c = a * b;
23360   d = (c + b) / b;
23361   if (d != a+1)
23362     return 0;
23363   return 1;
23364 }
23365 main() {
23366   exit(! does_int64_work());
23367 }
23368 _ACEOF
23369 rm -f conftest$ac_exeext
23370 if { (ac_try="$ac_link"
23371 case "(($ac_try" in
23372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373   *) ac_try_echo=$ac_try;;
23374 esac
23375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23376 $as_echo "$ac_try_echo") >&5
23377   (eval "$ac_link") 2>&5
23378   ac_status=$?
23379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23381   { (case "(($ac_try" in
23382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383   *) ac_try_echo=$ac_try;;
23384 esac
23385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23386 $as_echo "$ac_try_echo") >&5
23387   (eval "$ac_try") 2>&5
23388   ac_status=$?
23389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); }; }; then
23391   pgac_cv_type_long_int_64=yes
23392 else
23393   $as_echo "$as_me: program exited with status $ac_status" >&5
23394 $as_echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23396
23397 ( exit $ac_status )
23398 pgac_cv_type_long_int_64=no
23399 fi
23400 rm -rf conftest.dSYM
23401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23402 fi
23403
23404
23405 fi
23406 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23407 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23408
23409 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23410 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23411
23412 cat >>confdefs.h <<\_ACEOF
23413 #define HAVE_LONG_INT_64 1
23414 _ACEOF
23415
23416 fi
23417
23418
23419 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23420   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23421 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23422 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23423   $as_echo_n "(cached) " >&6
23424 else
23425   if test "$cross_compiling" = yes; then
23426   # If cross-compiling, check the size reported by the compiler and
23427 # trust that the arithmetic works.
23428 cat >conftest.$ac_ext <<_ACEOF
23429 /* confdefs.h.  */
23430 _ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h.  */
23434
23435 int
23436 main ()
23437 {
23438 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23439 test_array [0] = 0
23440
23441   ;
23442   return 0;
23443 }
23444 _ACEOF
23445 rm -f conftest.$ac_objext
23446 if { (ac_try="$ac_compile"
23447 case "(($ac_try" in
23448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449   *) ac_try_echo=$ac_try;;
23450 esac
23451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23452 $as_echo "$ac_try_echo") >&5
23453   (eval "$ac_compile") 2>conftest.er1
23454   ac_status=$?
23455   grep -v '^ *+' conftest.er1 >conftest.err
23456   rm -f conftest.er1
23457   cat conftest.err >&5
23458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); } && {
23460          test -z "$ac_c_werror_flag" ||
23461          test ! -s conftest.err
23462        } && test -s conftest.$ac_objext; then
23463   pgac_cv_type_long_long_int_64=yes
23464 else
23465   $as_echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468         pgac_cv_type_long_long_int_64=no
23469 fi
23470
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472 else
23473   cat >conftest.$ac_ext <<_ACEOF
23474 /* confdefs.h.  */
23475 _ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h.  */
23479 typedef long long int ac_int64;
23480
23481 /*
23482  * These are globals to discourage the compiler from folding all the
23483  * arithmetic tests down to compile-time constants.
23484  */
23485 ac_int64 a = 20000001;
23486 ac_int64 b = 40000005;
23487
23488 int does_int64_work()
23489 {
23490   ac_int64 c,d;
23491
23492   if (sizeof(ac_int64) != 8)
23493     return 0;                   /* definitely not the right size */
23494
23495   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23496   c = a * b;
23497   d = (c + b) / b;
23498   if (d != a+1)
23499     return 0;
23500   return 1;
23501 }
23502 main() {
23503   exit(! does_int64_work());
23504 }
23505 _ACEOF
23506 rm -f conftest$ac_exeext
23507 if { (ac_try="$ac_link"
23508 case "(($ac_try" in
23509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510   *) ac_try_echo=$ac_try;;
23511 esac
23512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23513 $as_echo "$ac_try_echo") >&5
23514   (eval "$ac_link") 2>&5
23515   ac_status=$?
23516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23518   { (case "(($ac_try" in
23519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23520   *) ac_try_echo=$ac_try;;
23521 esac
23522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23523 $as_echo "$ac_try_echo") >&5
23524   (eval "$ac_try") 2>&5
23525   ac_status=$?
23526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); }; }; then
23528   pgac_cv_type_long_long_int_64=yes
23529 else
23530   $as_echo "$as_me: program exited with status $ac_status" >&5
23531 $as_echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23533
23534 ( exit $ac_status )
23535 pgac_cv_type_long_long_int_64=no
23536 fi
23537 rm -rf conftest.dSYM
23538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23539 fi
23540
23541
23542 fi
23543 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
23544 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23545
23546 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23547 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23548
23549 cat >>confdefs.h <<\_ACEOF
23550 #define HAVE_LONG_LONG_INT_64 1
23551 _ACEOF
23552
23553 fi
23554
23555   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
23556     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
23557 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
23558    { (exit 1); exit 1; }; }
23559   fi
23560 fi
23561
23562
23563
23564 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23565   cat >conftest.$ac_ext <<_ACEOF
23566 /* confdefs.h.  */
23567 _ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h.  */
23571
23572 #define INT64CONST(x)  x##LL
23573 long long int foo = INT64CONST(0x1234567890123456);
23574
23575 int
23576 main ()
23577 {
23578
23579   ;
23580   return 0;
23581 }
23582 _ACEOF
23583 rm -f conftest.$ac_objext
23584 if { (ac_try="$ac_compile"
23585 case "(($ac_try" in
23586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587   *) ac_try_echo=$ac_try;;
23588 esac
23589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23590 $as_echo "$ac_try_echo") >&5
23591   (eval "$ac_compile") 2>conftest.er1
23592   ac_status=$?
23593   grep -v '^ *+' conftest.er1 >conftest.err
23594   rm -f conftest.er1
23595   cat conftest.err >&5
23596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); } && {
23598          test -z "$ac_c_werror_flag" ||
23599          test ! -s conftest.err
23600        } && test -s conftest.$ac_objext; then
23601
23602 cat >>confdefs.h <<\_ACEOF
23603 #define HAVE_LL_CONSTANTS 1
23604 _ACEOF
23605
23606 else
23607   $as_echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23609
23610
23611 fi
23612
23613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23614 fi
23615
23616
23617 # If we found "long int" is 64 bits, assume snprintf handles it.  If
23618 # we found we need to use "long long int", better check.  We cope with
23619 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
23620 # work, fall back to our own snprintf emulation (which we know uses %lld).
23621
23622 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23623   if test $pgac_need_repl_snprintf = no; then
23624     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
23625 $as_echo_n "checking snprintf format for long long int... " >&6; }
23626 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23627   $as_echo_n "(cached) " >&6
23628 else
23629   for pgac_format in '%lld' '%qd' '%I64d'; do
23630 if test "$cross_compiling" = yes; then
23631   pgac_cv_snprintf_long_long_int_format=cross; break
23632 else
23633   cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h.  */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h.  */
23639 #include <stdio.h>
23640 typedef long long int ac_int64;
23641 #define INT64_FORMAT "$pgac_format"
23642
23643 ac_int64 a = 20000001;
23644 ac_int64 b = 40000005;
23645
23646 int does_int64_snprintf_work()
23647 {
23648   ac_int64 c;
23649   char buf[100];
23650
23651   if (sizeof(ac_int64) != 8)
23652     return 0;                   /* doesn't look like the right size */
23653
23654   c = a * b;
23655   snprintf(buf, 100, INT64_FORMAT, c);
23656   if (strcmp(buf, "800000140000005") != 0)
23657     return 0;                   /* either multiply or snprintf is busted */
23658   return 1;
23659 }
23660 main() {
23661   exit(! does_int64_snprintf_work());
23662 }
23663 _ACEOF
23664 rm -f conftest$ac_exeext
23665 if { (ac_try="$ac_link"
23666 case "(($ac_try" in
23667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668   *) ac_try_echo=$ac_try;;
23669 esac
23670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23671 $as_echo "$ac_try_echo") >&5
23672   (eval "$ac_link") 2>&5
23673   ac_status=$?
23674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23676   { (case "(($ac_try" in
23677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678   *) ac_try_echo=$ac_try;;
23679 esac
23680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23681 $as_echo "$ac_try_echo") >&5
23682   (eval "$ac_try") 2>&5
23683   ac_status=$?
23684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685   (exit $ac_status); }; }; then
23686   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23687 else
23688   $as_echo "$as_me: program exited with status $ac_status" >&5
23689 $as_echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23691
23692 fi
23693 rm -rf conftest.dSYM
23694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23695 fi
23696
23697
23698 done
23699 fi
23700
23701 LONG_LONG_INT_FORMAT=''
23702
23703 case $pgac_cv_snprintf_long_long_int_format in
23704   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
23705 $as_echo "cannot test (not on host machine)" >&6; };;
23706   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
23707 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
23708          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
23709   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
23710 $as_echo "none" >&6; };;
23711 esac
23712     if test "$LONG_LONG_INT_FORMAT" = ""; then
23713       # Force usage of our own snprintf, since system snprintf is broken
23714       pgac_need_repl_snprintf=yes
23715       LONG_LONG_INT_FORMAT='%lld'
23716     fi
23717   else
23718     # Here if we previously decided we needed to use our own snprintf
23719     LONG_LONG_INT_FORMAT='%lld'
23720   fi
23721   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
23722   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
23723   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
23724 else
23725   # Here if we are not using 'long long int' at all
23726   INT64_FORMAT='"%ld"'
23727   UINT64_FORMAT='"%lu"'
23728 fi
23729
23730
23731 cat >>confdefs.h <<_ACEOF
23732 #define INT64_FORMAT $INT64_FORMAT
23733 _ACEOF
23734
23735
23736
23737 cat >>confdefs.h <<_ACEOF
23738 #define UINT64_FORMAT $UINT64_FORMAT
23739 _ACEOF
23740
23741
23742 # Now we have checked all the reasons to replace snprintf
23743 if test $pgac_need_repl_snprintf = yes; then
23744
23745 cat >>confdefs.h <<\_ACEOF
23746 #define USE_REPL_SNPRINTF 1
23747 _ACEOF
23748
23749   case " $LIBOBJS " in
23750   *" snprintf.$ac_objext "* ) ;;
23751   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
23752  ;;
23753 esac
23754
23755 fi
23756
23757 # Check size of void *, size_t (enables tweaks for > 32bit address space)
23758 # The cast to long int works around a bug in the HP C Compiler
23759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23761 # This bug is HP SR number 8606223364.
23762 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
23763 $as_echo_n "checking size of void *... " >&6; }
23764 if test "${ac_cv_sizeof_void_p+set}" = set; then
23765   $as_echo_n "(cached) " >&6
23766 else
23767   if test "$cross_compiling" = yes; then
23768   # Depending upon the size, compute the lo and hi bounds.
23769 cat >conftest.$ac_ext <<_ACEOF
23770 /* confdefs.h.  */
23771 _ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h.  */
23775 $ac_includes_default
23776 int
23777 main ()
23778 {
23779 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
23780 test_array [0] = 0
23781
23782   ;
23783   return 0;
23784 }
23785 _ACEOF
23786 rm -f conftest.$ac_objext
23787 if { (ac_try="$ac_compile"
23788 case "(($ac_try" in
23789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790   *) ac_try_echo=$ac_try;;
23791 esac
23792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23793 $as_echo "$ac_try_echo") >&5
23794   (eval "$ac_compile") 2>conftest.er1
23795   ac_status=$?
23796   grep -v '^ *+' conftest.er1 >conftest.err
23797   rm -f conftest.er1
23798   cat conftest.err >&5
23799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800   (exit $ac_status); } && {
23801          test -z "$ac_c_werror_flag" ||
23802          test ! -s conftest.err
23803        } && test -s conftest.$ac_objext; then
23804   ac_lo=0 ac_mid=0
23805   while :; do
23806     cat >conftest.$ac_ext <<_ACEOF
23807 /* confdefs.h.  */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h.  */
23812 $ac_includes_default
23813 int
23814 main ()
23815 {
23816 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23817 test_array [0] = 0
23818
23819   ;
23820   return 0;
23821 }
23822 _ACEOF
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827   *) ac_try_echo=$ac_try;;
23828 esac
23829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23830 $as_echo "$ac_try_echo") >&5
23831   (eval "$ac_compile") 2>conftest.er1
23832   ac_status=$?
23833   grep -v '^ *+' conftest.er1 >conftest.err
23834   rm -f conftest.er1
23835   cat conftest.err >&5
23836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837   (exit $ac_status); } && {
23838          test -z "$ac_c_werror_flag" ||
23839          test ! -s conftest.err
23840        } && test -s conftest.$ac_objext; then
23841   ac_hi=$ac_mid; break
23842 else
23843   $as_echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23845
23846         ac_lo=`expr $ac_mid + 1`
23847                         if test $ac_lo -le $ac_mid; then
23848                           ac_lo= ac_hi=
23849                           break
23850                         fi
23851                         ac_mid=`expr 2 '*' $ac_mid + 1`
23852 fi
23853
23854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855   done
23856 else
23857   $as_echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23859
23860         cat >conftest.$ac_ext <<_ACEOF
23861 /* confdefs.h.  */
23862 _ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h.  */
23866 $ac_includes_default
23867 int
23868 main ()
23869 {
23870 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23871 test_array [0] = 0
23872
23873   ;
23874   return 0;
23875 }
23876 _ACEOF
23877 rm -f conftest.$ac_objext
23878 if { (ac_try="$ac_compile"
23879 case "(($ac_try" in
23880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881   *) ac_try_echo=$ac_try;;
23882 esac
23883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23884 $as_echo "$ac_try_echo") >&5
23885   (eval "$ac_compile") 2>conftest.er1
23886   ac_status=$?
23887   grep -v '^ *+' conftest.er1 >conftest.err
23888   rm -f conftest.er1
23889   cat conftest.err >&5
23890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); } && {
23892          test -z "$ac_c_werror_flag" ||
23893          test ! -s conftest.err
23894        } && test -s conftest.$ac_objext; then
23895   ac_hi=-1 ac_mid=-1
23896   while :; do
23897     cat >conftest.$ac_ext <<_ACEOF
23898 /* confdefs.h.  */
23899 _ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h.  */
23903 $ac_includes_default
23904 int
23905 main ()
23906 {
23907 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
23908 test_array [0] = 0
23909
23910   ;
23911   return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext
23915 if { (ac_try="$ac_compile"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23921 $as_echo "$ac_try_echo") >&5
23922   (eval "$ac_compile") 2>conftest.er1
23923   ac_status=$?
23924   grep -v '^ *+' conftest.er1 >conftest.err
23925   rm -f conftest.er1
23926   cat conftest.err >&5
23927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); } && {
23929          test -z "$ac_c_werror_flag" ||
23930          test ! -s conftest.err
23931        } && test -s conftest.$ac_objext; then
23932   ac_lo=$ac_mid; break
23933 else
23934   $as_echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23936
23937         ac_hi=`expr '(' $ac_mid ')' - 1`
23938                         if test $ac_mid -le $ac_hi; then
23939                           ac_lo= ac_hi=
23940                           break
23941                         fi
23942                         ac_mid=`expr 2 '*' $ac_mid`
23943 fi
23944
23945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23946   done
23947 else
23948   $as_echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23950
23951         ac_lo= ac_hi=
23952 fi
23953
23954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23955 fi
23956
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 # Binary search between lo and hi bounds.
23959 while test "x$ac_lo" != "x$ac_hi"; do
23960   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23961   cat >conftest.$ac_ext <<_ACEOF
23962 /* confdefs.h.  */
23963 _ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h.  */
23967 $ac_includes_default
23968 int
23969 main ()
23970 {
23971 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23972 test_array [0] = 0
23973
23974   ;
23975   return 0;
23976 }
23977 _ACEOF
23978 rm -f conftest.$ac_objext
23979 if { (ac_try="$ac_compile"
23980 case "(($ac_try" in
23981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982   *) ac_try_echo=$ac_try;;
23983 esac
23984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23985 $as_echo "$ac_try_echo") >&5
23986   (eval "$ac_compile") 2>conftest.er1
23987   ac_status=$?
23988   grep -v '^ *+' conftest.er1 >conftest.err
23989   rm -f conftest.er1
23990   cat conftest.err >&5
23991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992   (exit $ac_status); } && {
23993          test -z "$ac_c_werror_flag" ||
23994          test ! -s conftest.err
23995        } && test -s conftest.$ac_objext; then
23996   ac_hi=$ac_mid
23997 else
23998   $as_echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24000
24001         ac_lo=`expr '(' $ac_mid ')' + 1`
24002 fi
24003
24004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24005 done
24006 case $ac_lo in
24007 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24008 '') if test "$ac_cv_type_void_p" = yes; then
24009      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24011 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24012 See \`config.log' for more details." >&5
24013 $as_echo "$as_me: error: cannot compute sizeof (void *)
24014 See \`config.log' for more details." >&2;}
24015    { (exit 77); exit 77; }; }; }
24016    else
24017      ac_cv_sizeof_void_p=0
24018    fi ;;
24019 esac
24020 else
24021   cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h.  */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h.  */
24027 $ac_includes_default
24028 static long int longval () { return (long int) (sizeof (void *)); }
24029 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24030 #include <stdio.h>
24031 #include <stdlib.h>
24032 int
24033 main ()
24034 {
24035
24036   FILE *f = fopen ("conftest.val", "w");
24037   if (! f)
24038     return 1;
24039   if (((long int) (sizeof (void *))) < 0)
24040     {
24041       long int i = longval ();
24042       if (i != ((long int) (sizeof (void *))))
24043         return 1;
24044       fprintf (f, "%ld", i);
24045     }
24046   else
24047     {
24048       unsigned long int i = ulongval ();
24049       if (i != ((long int) (sizeof (void *))))
24050         return 1;
24051       fprintf (f, "%lu", i);
24052     }
24053   /* Do not output a trailing newline, as this causes \r\n confusion
24054      on some platforms.  */
24055   return ferror (f) || fclose (f) != 0;
24056
24057   ;
24058   return 0;
24059 }
24060 _ACEOF
24061 rm -f conftest$ac_exeext
24062 if { (ac_try="$ac_link"
24063 case "(($ac_try" in
24064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065   *) ac_try_echo=$ac_try;;
24066 esac
24067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24068 $as_echo "$ac_try_echo") >&5
24069   (eval "$ac_link") 2>&5
24070   ac_status=$?
24071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24073   { (case "(($ac_try" in
24074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24075   *) ac_try_echo=$ac_try;;
24076 esac
24077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24078 $as_echo "$ac_try_echo") >&5
24079   (eval "$ac_try") 2>&5
24080   ac_status=$?
24081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082   (exit $ac_status); }; }; then
24083   ac_cv_sizeof_void_p=`cat conftest.val`
24084 else
24085   $as_echo "$as_me: program exited with status $ac_status" >&5
24086 $as_echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24088
24089 ( exit $ac_status )
24090 if test "$ac_cv_type_void_p" = yes; then
24091      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24093 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24094 See \`config.log' for more details." >&5
24095 $as_echo "$as_me: error: cannot compute sizeof (void *)
24096 See \`config.log' for more details." >&2;}
24097    { (exit 77); exit 77; }; }; }
24098    else
24099      ac_cv_sizeof_void_p=0
24100    fi
24101 fi
24102 rm -rf conftest.dSYM
24103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24104 fi
24105 rm -f conftest.val
24106 fi
24107 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24108 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24109
24110
24111
24112 cat >>confdefs.h <<_ACEOF
24113 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24114 _ACEOF
24115
24116
24117 # The cast to long int works around a bug in the HP C Compiler
24118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24120 # This bug is HP SR number 8606223364.
24121 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24122 $as_echo_n "checking size of size_t... " >&6; }
24123 if test "${ac_cv_sizeof_size_t+set}" = set; then
24124   $as_echo_n "(cached) " >&6
24125 else
24126   if test "$cross_compiling" = yes; then
24127   # Depending upon the size, compute the lo and hi bounds.
24128 cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h.  */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h.  */
24134 $ac_includes_default
24135 int
24136 main ()
24137 {
24138 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24139 test_array [0] = 0
24140
24141   ;
24142   return 0;
24143 }
24144 _ACEOF
24145 rm -f conftest.$ac_objext
24146 if { (ac_try="$ac_compile"
24147 case "(($ac_try" in
24148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149   *) ac_try_echo=$ac_try;;
24150 esac
24151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24152 $as_echo "$ac_try_echo") >&5
24153   (eval "$ac_compile") 2>conftest.er1
24154   ac_status=$?
24155   grep -v '^ *+' conftest.er1 >conftest.err
24156   rm -f conftest.er1
24157   cat conftest.err >&5
24158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159   (exit $ac_status); } && {
24160          test -z "$ac_c_werror_flag" ||
24161          test ! -s conftest.err
24162        } && test -s conftest.$ac_objext; then
24163   ac_lo=0 ac_mid=0
24164   while :; do
24165     cat >conftest.$ac_ext <<_ACEOF
24166 /* confdefs.h.  */
24167 _ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h.  */
24171 $ac_includes_default
24172 int
24173 main ()
24174 {
24175 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24176 test_array [0] = 0
24177
24178   ;
24179   return 0;
24180 }
24181 _ACEOF
24182 rm -f conftest.$ac_objext
24183 if { (ac_try="$ac_compile"
24184 case "(($ac_try" in
24185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24186   *) ac_try_echo=$ac_try;;
24187 esac
24188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24189 $as_echo "$ac_try_echo") >&5
24190   (eval "$ac_compile") 2>conftest.er1
24191   ac_status=$?
24192   grep -v '^ *+' conftest.er1 >conftest.err
24193   rm -f conftest.er1
24194   cat conftest.err >&5
24195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196   (exit $ac_status); } && {
24197          test -z "$ac_c_werror_flag" ||
24198          test ! -s conftest.err
24199        } && test -s conftest.$ac_objext; then
24200   ac_hi=$ac_mid; break
24201 else
24202   $as_echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24204
24205         ac_lo=`expr $ac_mid + 1`
24206                         if test $ac_lo -le $ac_mid; then
24207                           ac_lo= ac_hi=
24208                           break
24209                         fi
24210                         ac_mid=`expr 2 '*' $ac_mid + 1`
24211 fi
24212
24213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24214   done
24215 else
24216   $as_echo "$as_me: failed program was:" >&5
24217 sed 's/^/| /' conftest.$ac_ext >&5
24218
24219         cat >conftest.$ac_ext <<_ACEOF
24220 /* confdefs.h.  */
24221 _ACEOF
24222 cat confdefs.h >>conftest.$ac_ext
24223 cat >>conftest.$ac_ext <<_ACEOF
24224 /* end confdefs.h.  */
24225 $ac_includes_default
24226 int
24227 main ()
24228 {
24229 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24230 test_array [0] = 0
24231
24232   ;
24233   return 0;
24234 }
24235 _ACEOF
24236 rm -f conftest.$ac_objext
24237 if { (ac_try="$ac_compile"
24238 case "(($ac_try" in
24239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24240   *) ac_try_echo=$ac_try;;
24241 esac
24242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24243 $as_echo "$ac_try_echo") >&5
24244   (eval "$ac_compile") 2>conftest.er1
24245   ac_status=$?
24246   grep -v '^ *+' conftest.er1 >conftest.err
24247   rm -f conftest.er1
24248   cat conftest.err >&5
24249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250   (exit $ac_status); } && {
24251          test -z "$ac_c_werror_flag" ||
24252          test ! -s conftest.err
24253        } && test -s conftest.$ac_objext; then
24254   ac_hi=-1 ac_mid=-1
24255   while :; do
24256     cat >conftest.$ac_ext <<_ACEOF
24257 /* confdefs.h.  */
24258 _ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h.  */
24262 $ac_includes_default
24263 int
24264 main ()
24265 {
24266 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24267 test_array [0] = 0
24268
24269   ;
24270   return 0;
24271 }
24272 _ACEOF
24273 rm -f conftest.$ac_objext
24274 if { (ac_try="$ac_compile"
24275 case "(($ac_try" in
24276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277   *) ac_try_echo=$ac_try;;
24278 esac
24279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24280 $as_echo "$ac_try_echo") >&5
24281   (eval "$ac_compile") 2>conftest.er1
24282   ac_status=$?
24283   grep -v '^ *+' conftest.er1 >conftest.err
24284   rm -f conftest.er1
24285   cat conftest.err >&5
24286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } && {
24288          test -z "$ac_c_werror_flag" ||
24289          test ! -s conftest.err
24290        } && test -s conftest.$ac_objext; then
24291   ac_lo=$ac_mid; break
24292 else
24293   $as_echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24295
24296         ac_hi=`expr '(' $ac_mid ')' - 1`
24297                         if test $ac_mid -le $ac_hi; then
24298                           ac_lo= ac_hi=
24299                           break
24300                         fi
24301                         ac_mid=`expr 2 '*' $ac_mid`
24302 fi
24303
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24305   done
24306 else
24307   $as_echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24309
24310         ac_lo= ac_hi=
24311 fi
24312
24313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24314 fi
24315
24316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317 # Binary search between lo and hi bounds.
24318 while test "x$ac_lo" != "x$ac_hi"; do
24319   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24320   cat >conftest.$ac_ext <<_ACEOF
24321 /* confdefs.h.  */
24322 _ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h.  */
24326 $ac_includes_default
24327 int
24328 main ()
24329 {
24330 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24331 test_array [0] = 0
24332
24333   ;
24334   return 0;
24335 }
24336 _ACEOF
24337 rm -f conftest.$ac_objext
24338 if { (ac_try="$ac_compile"
24339 case "(($ac_try" in
24340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341   *) ac_try_echo=$ac_try;;
24342 esac
24343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24344 $as_echo "$ac_try_echo") >&5
24345   (eval "$ac_compile") 2>conftest.er1
24346   ac_status=$?
24347   grep -v '^ *+' conftest.er1 >conftest.err
24348   rm -f conftest.er1
24349   cat conftest.err >&5
24350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); } && {
24352          test -z "$ac_c_werror_flag" ||
24353          test ! -s conftest.err
24354        } && test -s conftest.$ac_objext; then
24355   ac_hi=$ac_mid
24356 else
24357   $as_echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24359
24360         ac_lo=`expr '(' $ac_mid ')' + 1`
24361 fi
24362
24363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24364 done
24365 case $ac_lo in
24366 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24367 '') if test "$ac_cv_type_size_t" = yes; then
24368      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24370 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24371 See \`config.log' for more details." >&5
24372 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24373 See \`config.log' for more details." >&2;}
24374    { (exit 77); exit 77; }; }; }
24375    else
24376      ac_cv_sizeof_size_t=0
24377    fi ;;
24378 esac
24379 else
24380   cat >conftest.$ac_ext <<_ACEOF
24381 /* confdefs.h.  */
24382 _ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h.  */
24386 $ac_includes_default
24387 static long int longval () { return (long int) (sizeof (size_t)); }
24388 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24389 #include <stdio.h>
24390 #include <stdlib.h>
24391 int
24392 main ()
24393 {
24394
24395   FILE *f = fopen ("conftest.val", "w");
24396   if (! f)
24397     return 1;
24398   if (((long int) (sizeof (size_t))) < 0)
24399     {
24400       long int i = longval ();
24401       if (i != ((long int) (sizeof (size_t))))
24402         return 1;
24403       fprintf (f, "%ld", i);
24404     }
24405   else
24406     {
24407       unsigned long int i = ulongval ();
24408       if (i != ((long int) (sizeof (size_t))))
24409         return 1;
24410       fprintf (f, "%lu", i);
24411     }
24412   /* Do not output a trailing newline, as this causes \r\n confusion
24413      on some platforms.  */
24414   return ferror (f) || fclose (f) != 0;
24415
24416   ;
24417   return 0;
24418 }
24419 _ACEOF
24420 rm -f conftest$ac_exeext
24421 if { (ac_try="$ac_link"
24422 case "(($ac_try" in
24423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24424   *) ac_try_echo=$ac_try;;
24425 esac
24426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24427 $as_echo "$ac_try_echo") >&5
24428   (eval "$ac_link") 2>&5
24429   ac_status=$?
24430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24432   { (case "(($ac_try" in
24433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434   *) ac_try_echo=$ac_try;;
24435 esac
24436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24437 $as_echo "$ac_try_echo") >&5
24438   (eval "$ac_try") 2>&5
24439   ac_status=$?
24440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441   (exit $ac_status); }; }; then
24442   ac_cv_sizeof_size_t=`cat conftest.val`
24443 else
24444   $as_echo "$as_me: program exited with status $ac_status" >&5
24445 $as_echo "$as_me: failed program was:" >&5
24446 sed 's/^/| /' conftest.$ac_ext >&5
24447
24448 ( exit $ac_status )
24449 if test "$ac_cv_type_size_t" = yes; then
24450      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24452 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24453 See \`config.log' for more details." >&5
24454 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24455 See \`config.log' for more details." >&2;}
24456    { (exit 77); exit 77; }; }; }
24457    else
24458      ac_cv_sizeof_size_t=0
24459    fi
24460 fi
24461 rm -rf conftest.dSYM
24462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24463 fi
24464 rm -f conftest.val
24465 fi
24466 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24467 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24468
24469
24470
24471 cat >>confdefs.h <<_ACEOF
24472 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24473 _ACEOF
24474
24475
24476 # The cast to long int works around a bug in the HP C Compiler
24477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24479 # This bug is HP SR number 8606223364.
24480 { $as_echo "$as_me:$LINENO: checking size of long" >&5
24481 $as_echo_n "checking size of long... " >&6; }
24482 if test "${ac_cv_sizeof_long+set}" = set; then
24483   $as_echo_n "(cached) " >&6
24484 else
24485   if test "$cross_compiling" = yes; then
24486   # Depending upon the size, compute the lo and hi bounds.
24487 cat >conftest.$ac_ext <<_ACEOF
24488 /* confdefs.h.  */
24489 _ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h.  */
24493 $ac_includes_default
24494 int
24495 main ()
24496 {
24497 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24498 test_array [0] = 0
24499
24500   ;
24501   return 0;
24502 }
24503 _ACEOF
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508   *) ac_try_echo=$ac_try;;
24509 esac
24510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24511 $as_echo "$ac_try_echo") >&5
24512   (eval "$ac_compile") 2>conftest.er1
24513   ac_status=$?
24514   grep -v '^ *+' conftest.er1 >conftest.err
24515   rm -f conftest.er1
24516   cat conftest.err >&5
24517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); } && {
24519          test -z "$ac_c_werror_flag" ||
24520          test ! -s conftest.err
24521        } && test -s conftest.$ac_objext; then
24522   ac_lo=0 ac_mid=0
24523   while :; do
24524     cat >conftest.$ac_ext <<_ACEOF
24525 /* confdefs.h.  */
24526 _ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h.  */
24530 $ac_includes_default
24531 int
24532 main ()
24533 {
24534 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24535 test_array [0] = 0
24536
24537   ;
24538   return 0;
24539 }
24540 _ACEOF
24541 rm -f conftest.$ac_objext
24542 if { (ac_try="$ac_compile"
24543 case "(($ac_try" in
24544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545   *) ac_try_echo=$ac_try;;
24546 esac
24547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24548 $as_echo "$ac_try_echo") >&5
24549   (eval "$ac_compile") 2>conftest.er1
24550   ac_status=$?
24551   grep -v '^ *+' conftest.er1 >conftest.err
24552   rm -f conftest.er1
24553   cat conftest.err >&5
24554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555   (exit $ac_status); } && {
24556          test -z "$ac_c_werror_flag" ||
24557          test ! -s conftest.err
24558        } && test -s conftest.$ac_objext; then
24559   ac_hi=$ac_mid; break
24560 else
24561   $as_echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24563
24564         ac_lo=`expr $ac_mid + 1`
24565                         if test $ac_lo -le $ac_mid; then
24566                           ac_lo= ac_hi=
24567                           break
24568                         fi
24569                         ac_mid=`expr 2 '*' $ac_mid + 1`
24570 fi
24571
24572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573   done
24574 else
24575   $as_echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24577
24578         cat >conftest.$ac_ext <<_ACEOF
24579 /* confdefs.h.  */
24580 _ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h.  */
24584 $ac_includes_default
24585 int
24586 main ()
24587 {
24588 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24589 test_array [0] = 0
24590
24591   ;
24592   return 0;
24593 }
24594 _ACEOF
24595 rm -f conftest.$ac_objext
24596 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24604   ac_status=$?
24605   grep -v '^ *+' conftest.er1 >conftest.err
24606   rm -f conftest.er1
24607   cat conftest.err >&5
24608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609   (exit $ac_status); } && {
24610          test -z "$ac_c_werror_flag" ||
24611          test ! -s conftest.err
24612        } && test -s conftest.$ac_objext; then
24613   ac_hi=-1 ac_mid=-1
24614   while :; do
24615     cat >conftest.$ac_ext <<_ACEOF
24616 /* confdefs.h.  */
24617 _ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h.  */
24621 $ac_includes_default
24622 int
24623 main ()
24624 {
24625 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24626 test_array [0] = 0
24627
24628   ;
24629   return 0;
24630 }
24631 _ACEOF
24632 rm -f conftest.$ac_objext
24633 if { (ac_try="$ac_compile"
24634 case "(($ac_try" in
24635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636   *) ac_try_echo=$ac_try;;
24637 esac
24638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24639 $as_echo "$ac_try_echo") >&5
24640   (eval "$ac_compile") 2>conftest.er1
24641   ac_status=$?
24642   grep -v '^ *+' conftest.er1 >conftest.err
24643   rm -f conftest.er1
24644   cat conftest.err >&5
24645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); } && {
24647          test -z "$ac_c_werror_flag" ||
24648          test ! -s conftest.err
24649        } && test -s conftest.$ac_objext; then
24650   ac_lo=$ac_mid; break
24651 else
24652   $as_echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24654
24655         ac_hi=`expr '(' $ac_mid ')' - 1`
24656                         if test $ac_mid -le $ac_hi; then
24657                           ac_lo= ac_hi=
24658                           break
24659                         fi
24660                         ac_mid=`expr 2 '*' $ac_mid`
24661 fi
24662
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24664   done
24665 else
24666   $as_echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24668
24669         ac_lo= ac_hi=
24670 fi
24671
24672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24673 fi
24674
24675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24676 # Binary search between lo and hi bounds.
24677 while test "x$ac_lo" != "x$ac_hi"; do
24678   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24679   cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h.  */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h.  */
24685 $ac_includes_default
24686 int
24687 main ()
24688 {
24689 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24690 test_array [0] = 0
24691
24692   ;
24693   return 0;
24694 }
24695 _ACEOF
24696 rm -f conftest.$ac_objext
24697 if { (ac_try="$ac_compile"
24698 case "(($ac_try" in
24699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700   *) ac_try_echo=$ac_try;;
24701 esac
24702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24703 $as_echo "$ac_try_echo") >&5
24704   (eval "$ac_compile") 2>conftest.er1
24705   ac_status=$?
24706   grep -v '^ *+' conftest.er1 >conftest.err
24707   rm -f conftest.er1
24708   cat conftest.err >&5
24709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } && {
24711          test -z "$ac_c_werror_flag" ||
24712          test ! -s conftest.err
24713        } && test -s conftest.$ac_objext; then
24714   ac_hi=$ac_mid
24715 else
24716   $as_echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24718
24719         ac_lo=`expr '(' $ac_mid ')' + 1`
24720 fi
24721
24722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24723 done
24724 case $ac_lo in
24725 ?*) ac_cv_sizeof_long=$ac_lo;;
24726 '') if test "$ac_cv_type_long" = yes; then
24727      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24729 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24730 See \`config.log' for more details." >&5
24731 $as_echo "$as_me: error: cannot compute sizeof (long)
24732 See \`config.log' for more details." >&2;}
24733    { (exit 77); exit 77; }; }; }
24734    else
24735      ac_cv_sizeof_long=0
24736    fi ;;
24737 esac
24738 else
24739   cat >conftest.$ac_ext <<_ACEOF
24740 /* confdefs.h.  */
24741 _ACEOF
24742 cat confdefs.h >>conftest.$ac_ext
24743 cat >>conftest.$ac_ext <<_ACEOF
24744 /* end confdefs.h.  */
24745 $ac_includes_default
24746 static long int longval () { return (long int) (sizeof (long)); }
24747 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
24748 #include <stdio.h>
24749 #include <stdlib.h>
24750 int
24751 main ()
24752 {
24753
24754   FILE *f = fopen ("conftest.val", "w");
24755   if (! f)
24756     return 1;
24757   if (((long int) (sizeof (long))) < 0)
24758     {
24759       long int i = longval ();
24760       if (i != ((long int) (sizeof (long))))
24761         return 1;
24762       fprintf (f, "%ld", i);
24763     }
24764   else
24765     {
24766       unsigned long int i = ulongval ();
24767       if (i != ((long int) (sizeof (long))))
24768         return 1;
24769       fprintf (f, "%lu", i);
24770     }
24771   /* Do not output a trailing newline, as this causes \r\n confusion
24772      on some platforms.  */
24773   return ferror (f) || fclose (f) != 0;
24774
24775   ;
24776   return 0;
24777 }
24778 _ACEOF
24779 rm -f conftest$ac_exeext
24780 if { (ac_try="$ac_link"
24781 case "(($ac_try" in
24782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24783   *) ac_try_echo=$ac_try;;
24784 esac
24785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24786 $as_echo "$ac_try_echo") >&5
24787   (eval "$ac_link") 2>&5
24788   ac_status=$?
24789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24791   { (case "(($ac_try" in
24792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793   *) ac_try_echo=$ac_try;;
24794 esac
24795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24796 $as_echo "$ac_try_echo") >&5
24797   (eval "$ac_try") 2>&5
24798   ac_status=$?
24799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); }; }; then
24801   ac_cv_sizeof_long=`cat conftest.val`
24802 else
24803   $as_echo "$as_me: program exited with status $ac_status" >&5
24804 $as_echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24806
24807 ( exit $ac_status )
24808 if test "$ac_cv_type_long" = yes; then
24809      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24811 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24812 See \`config.log' for more details." >&5
24813 $as_echo "$as_me: error: cannot compute sizeof (long)
24814 See \`config.log' for more details." >&2;}
24815    { (exit 77); exit 77; }; }; }
24816    else
24817      ac_cv_sizeof_long=0
24818    fi
24819 fi
24820 rm -rf conftest.dSYM
24821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24822 fi
24823 rm -f conftest.val
24824 fi
24825 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24826 $as_echo "$ac_cv_sizeof_long" >&6; }
24827
24828
24829
24830 cat >>confdefs.h <<_ACEOF
24831 #define SIZEOF_LONG $ac_cv_sizeof_long
24832 _ACEOF
24833
24834
24835
24836 # Decide whether float4 is passed by value: user-selectable, enabled by default
24837 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
24838 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
24839
24840
24841 # Check whether --enable-float4-byval was given.
24842 if test "${enable_float4_byval+set}" = set; then
24843   enableval=$enable_float4_byval;
24844   case $enableval in
24845     yes)
24846
24847 cat >>confdefs.h <<\_ACEOF
24848 #define USE_FLOAT4_BYVAL 1
24849 _ACEOF
24850
24851                float4passbyval=true
24852       ;;
24853     no)
24854       float4passbyval=false
24855       ;;
24856     *)
24857       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
24858 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
24859    { (exit 1); exit 1; }; }
24860       ;;
24861   esac
24862
24863 else
24864   enable_float4_byval=yes
24865
24866 cat >>confdefs.h <<\_ACEOF
24867 #define USE_FLOAT4_BYVAL 1
24868 _ACEOF
24869
24870                float4passbyval=true
24871 fi
24872
24873
24874 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
24875 $as_echo "$enable_float4_byval" >&6; }
24876
24877 cat >>confdefs.h <<_ACEOF
24878 #define FLOAT4PASSBYVAL $float4passbyval
24879 _ACEOF
24880
24881
24882 # Decide whether float8 is passed by value.
24883 # Note: this setting also controls int8 and related types such as timestamp.
24884 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
24885 # If not, trying to select it is an error.
24886 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
24887 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
24888 if test $ac_cv_sizeof_void_p -ge 8 ; then
24889
24890
24891 # Check whether --enable-float8-byval was given.
24892 if test "${enable_float8_byval+set}" = set; then
24893   enableval=$enable_float8_byval;
24894   case $enableval in
24895     yes)
24896       :
24897       ;;
24898     no)
24899       :
24900       ;;
24901     *)
24902       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
24903 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
24904    { (exit 1); exit 1; }; }
24905       ;;
24906   esac
24907
24908 else
24909   enable_float8_byval=yes
24910
24911 fi
24912
24913
24914 else
24915
24916
24917 # Check whether --enable-float8-byval was given.
24918 if test "${enable_float8_byval+set}" = set; then
24919   enableval=$enable_float8_byval;
24920   case $enableval in
24921     yes)
24922       :
24923       ;;
24924     no)
24925       :
24926       ;;
24927     *)
24928       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
24929 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
24930    { (exit 1); exit 1; }; }
24931       ;;
24932   esac
24933
24934 else
24935   enable_float8_byval=no
24936
24937 fi
24938
24939
24940   if test "$enable_float8_byval" = yes ; then
24941     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
24942 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
24943    { (exit 1); exit 1; }; }
24944   fi
24945 fi
24946 if test "$enable_float8_byval" = yes ; then
24947
24948 cat >>confdefs.h <<\_ACEOF
24949 #define USE_FLOAT8_BYVAL 1
24950 _ACEOF
24951
24952   float8passbyval=true
24953 else
24954   float8passbyval=false
24955 fi
24956 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
24957 $as_echo "$enable_float8_byval" >&6; }
24958
24959 cat >>confdefs.h <<_ACEOF
24960 #define FLOAT8PASSBYVAL $float8passbyval
24961 _ACEOF
24962
24963
24964 # Determine memory alignment requirements for the basic C data types.
24965
24966 # The cast to long int works around a bug in the HP C Compiler,
24967 # see AC_CHECK_SIZEOF for more information.
24968 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
24969 $as_echo_n "checking alignment of short... " >&6; }
24970 if test "${ac_cv_alignof_short+set}" = set; then
24971   $as_echo_n "(cached) " >&6
24972 else
24973   if test "$cross_compiling" = yes; then
24974   # Depending upon the size, compute the lo and hi bounds.
24975 cat >conftest.$ac_ext <<_ACEOF
24976 /* confdefs.h.  */
24977 _ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h.  */
24981 $ac_includes_default
24982 #ifndef offsetof
24983 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24984 #endif
24985 typedef struct { char x; short y; } ac__type_alignof_;
24986 int
24987 main ()
24988 {
24989 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24990 test_array [0] = 0
24991
24992   ;
24993   return 0;
24994 }
24995 _ACEOF
24996 rm -f conftest.$ac_objext
24997 if { (ac_try="$ac_compile"
24998 case "(($ac_try" in
24999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25000   *) ac_try_echo=$ac_try;;
25001 esac
25002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25003 $as_echo "$ac_try_echo") >&5
25004   (eval "$ac_compile") 2>conftest.er1
25005   ac_status=$?
25006   grep -v '^ *+' conftest.er1 >conftest.err
25007   rm -f conftest.er1
25008   cat conftest.err >&5
25009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); } && {
25011          test -z "$ac_c_werror_flag" ||
25012          test ! -s conftest.err
25013        } && test -s conftest.$ac_objext; then
25014   ac_lo=0 ac_mid=0
25015   while :; do
25016     cat >conftest.$ac_ext <<_ACEOF
25017 /* confdefs.h.  */
25018 _ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h.  */
25022 $ac_includes_default
25023 #ifndef offsetof
25024 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25025 #endif
25026 typedef struct { char x; short y; } ac__type_alignof_;
25027 int
25028 main ()
25029 {
25030 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25031 test_array [0] = 0
25032
25033   ;
25034   return 0;
25035 }
25036 _ACEOF
25037 rm -f conftest.$ac_objext
25038 if { (ac_try="$ac_compile"
25039 case "(($ac_try" in
25040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041   *) ac_try_echo=$ac_try;;
25042 esac
25043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25044 $as_echo "$ac_try_echo") >&5
25045   (eval "$ac_compile") 2>conftest.er1
25046   ac_status=$?
25047   grep -v '^ *+' conftest.er1 >conftest.err
25048   rm -f conftest.er1
25049   cat conftest.err >&5
25050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); } && {
25052          test -z "$ac_c_werror_flag" ||
25053          test ! -s conftest.err
25054        } && test -s conftest.$ac_objext; then
25055   ac_hi=$ac_mid; break
25056 else
25057   $as_echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25059
25060         ac_lo=`expr $ac_mid + 1`
25061                         if test $ac_lo -le $ac_mid; then
25062                           ac_lo= ac_hi=
25063                           break
25064                         fi
25065                         ac_mid=`expr 2 '*' $ac_mid + 1`
25066 fi
25067
25068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25069   done
25070 else
25071   $as_echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25073
25074         cat >conftest.$ac_ext <<_ACEOF
25075 /* confdefs.h.  */
25076 _ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h.  */
25080 $ac_includes_default
25081 #ifndef offsetof
25082 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25083 #endif
25084 typedef struct { char x; short y; } ac__type_alignof_;
25085 int
25086 main ()
25087 {
25088 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25089 test_array [0] = 0
25090
25091   ;
25092   return 0;
25093 }
25094 _ACEOF
25095 rm -f conftest.$ac_objext
25096 if { (ac_try="$ac_compile"
25097 case "(($ac_try" in
25098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099   *) ac_try_echo=$ac_try;;
25100 esac
25101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25102 $as_echo "$ac_try_echo") >&5
25103   (eval "$ac_compile") 2>conftest.er1
25104   ac_status=$?
25105   grep -v '^ *+' conftest.er1 >conftest.err
25106   rm -f conftest.er1
25107   cat conftest.err >&5
25108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); } && {
25110          test -z "$ac_c_werror_flag" ||
25111          test ! -s conftest.err
25112        } && test -s conftest.$ac_objext; then
25113   ac_hi=-1 ac_mid=-1
25114   while :; do
25115     cat >conftest.$ac_ext <<_ACEOF
25116 /* confdefs.h.  */
25117 _ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h.  */
25121 $ac_includes_default
25122 #ifndef offsetof
25123 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25124 #endif
25125 typedef struct { char x; short y; } ac__type_alignof_;
25126 int
25127 main ()
25128 {
25129 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25130 test_array [0] = 0
25131
25132   ;
25133   return 0;
25134 }
25135 _ACEOF
25136 rm -f conftest.$ac_objext
25137 if { (ac_try="$ac_compile"
25138 case "(($ac_try" in
25139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140   *) ac_try_echo=$ac_try;;
25141 esac
25142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25143 $as_echo "$ac_try_echo") >&5
25144   (eval "$ac_compile") 2>conftest.er1
25145   ac_status=$?
25146   grep -v '^ *+' conftest.er1 >conftest.err
25147   rm -f conftest.er1
25148   cat conftest.err >&5
25149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150   (exit $ac_status); } && {
25151          test -z "$ac_c_werror_flag" ||
25152          test ! -s conftest.err
25153        } && test -s conftest.$ac_objext; then
25154   ac_lo=$ac_mid; break
25155 else
25156   $as_echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25158
25159         ac_hi=`expr '(' $ac_mid ')' - 1`
25160                         if test $ac_mid -le $ac_hi; then
25161                           ac_lo= ac_hi=
25162                           break
25163                         fi
25164                         ac_mid=`expr 2 '*' $ac_mid`
25165 fi
25166
25167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25168   done
25169 else
25170   $as_echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25172
25173         ac_lo= ac_hi=
25174 fi
25175
25176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177 fi
25178
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 # Binary search between lo and hi bounds.
25181 while test "x$ac_lo" != "x$ac_hi"; do
25182   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25183   cat >conftest.$ac_ext <<_ACEOF
25184 /* confdefs.h.  */
25185 _ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h.  */
25189 $ac_includes_default
25190 #ifndef offsetof
25191 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25192 #endif
25193 typedef struct { char x; short y; } ac__type_alignof_;
25194 int
25195 main ()
25196 {
25197 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25198 test_array [0] = 0
25199
25200   ;
25201   return 0;
25202 }
25203 _ACEOF
25204 rm -f conftest.$ac_objext
25205 if { (ac_try="$ac_compile"
25206 case "(($ac_try" in
25207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208   *) ac_try_echo=$ac_try;;
25209 esac
25210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25211 $as_echo "$ac_try_echo") >&5
25212   (eval "$ac_compile") 2>conftest.er1
25213   ac_status=$?
25214   grep -v '^ *+' conftest.er1 >conftest.err
25215   rm -f conftest.er1
25216   cat conftest.err >&5
25217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218   (exit $ac_status); } && {
25219          test -z "$ac_c_werror_flag" ||
25220          test ! -s conftest.err
25221        } && test -s conftest.$ac_objext; then
25222   ac_hi=$ac_mid
25223 else
25224   $as_echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25226
25227         ac_lo=`expr '(' $ac_mid ')' + 1`
25228 fi
25229
25230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25231 done
25232 case $ac_lo in
25233 ?*) ac_cv_alignof_short=$ac_lo;;
25234 '') if test "$ac_cv_type_short" = yes; then
25235      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25237 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25238 See \`config.log' for more details." >&5
25239 $as_echo "$as_me: error: cannot compute alignment of short
25240 See \`config.log' for more details." >&2;}
25241    { (exit 77); exit 77; }; }; }
25242    else
25243      ac_cv_alignof_short=0
25244    fi ;;
25245 esac
25246 else
25247   cat >conftest.$ac_ext <<_ACEOF
25248 /* confdefs.h.  */
25249 _ACEOF
25250 cat confdefs.h >>conftest.$ac_ext
25251 cat >>conftest.$ac_ext <<_ACEOF
25252 /* end confdefs.h.  */
25253 $ac_includes_default
25254 #ifndef offsetof
25255 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25256 #endif
25257 typedef struct { char x; short y; } ac__type_alignof_;
25258 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25259 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25260 #include <stdio.h>
25261 #include <stdlib.h>
25262 int
25263 main ()
25264 {
25265
25266   FILE *f = fopen ("conftest.val", "w");
25267   if (! f)
25268     return 1;
25269   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25270     {
25271       long int i = longval ();
25272       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25273         return 1;
25274       fprintf (f, "%ld", i);
25275     }
25276   else
25277     {
25278       unsigned long int i = ulongval ();
25279       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25280         return 1;
25281       fprintf (f, "%lu", i);
25282     }
25283   /* Do not output a trailing newline, as this causes \r\n confusion
25284      on some platforms.  */
25285   return ferror (f) || fclose (f) != 0;
25286
25287   ;
25288   return 0;
25289 }
25290 _ACEOF
25291 rm -f conftest$ac_exeext
25292 if { (ac_try="$ac_link"
25293 case "(($ac_try" in
25294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25295   *) ac_try_echo=$ac_try;;
25296 esac
25297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25298 $as_echo "$ac_try_echo") >&5
25299   (eval "$ac_link") 2>&5
25300   ac_status=$?
25301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25303   { (case "(($ac_try" in
25304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305   *) ac_try_echo=$ac_try;;
25306 esac
25307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25308 $as_echo "$ac_try_echo") >&5
25309   (eval "$ac_try") 2>&5
25310   ac_status=$?
25311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); }; }; then
25313   ac_cv_alignof_short=`cat conftest.val`
25314 else
25315   $as_echo "$as_me: program exited with status $ac_status" >&5
25316 $as_echo "$as_me: failed program was:" >&5
25317 sed 's/^/| /' conftest.$ac_ext >&5
25318
25319 ( exit $ac_status )
25320 if test "$ac_cv_type_short" = yes; then
25321      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25323 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25324 See \`config.log' for more details." >&5
25325 $as_echo "$as_me: error: cannot compute alignment of short
25326 See \`config.log' for more details." >&2;}
25327    { (exit 77); exit 77; }; }; }
25328    else
25329      ac_cv_alignof_short=0
25330    fi
25331 fi
25332 rm -rf conftest.dSYM
25333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25334 fi
25335 rm -f conftest.val
25336 fi
25337 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25338 $as_echo "$ac_cv_alignof_short" >&6; }
25339
25340
25341
25342 cat >>confdefs.h <<_ACEOF
25343 #define ALIGNOF_SHORT $ac_cv_alignof_short
25344 _ACEOF
25345
25346
25347 # The cast to long int works around a bug in the HP C Compiler,
25348 # see AC_CHECK_SIZEOF for more information.
25349 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25350 $as_echo_n "checking alignment of int... " >&6; }
25351 if test "${ac_cv_alignof_int+set}" = set; then
25352   $as_echo_n "(cached) " >&6
25353 else
25354   if test "$cross_compiling" = yes; then
25355   # Depending upon the size, compute the lo and hi bounds.
25356 cat >conftest.$ac_ext <<_ACEOF
25357 /* confdefs.h.  */
25358 _ACEOF
25359 cat confdefs.h >>conftest.$ac_ext
25360 cat >>conftest.$ac_ext <<_ACEOF
25361 /* end confdefs.h.  */
25362 $ac_includes_default
25363 #ifndef offsetof
25364 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25365 #endif
25366 typedef struct { char x; int y; } ac__type_alignof_;
25367 int
25368 main ()
25369 {
25370 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25371 test_array [0] = 0
25372
25373   ;
25374   return 0;
25375 }
25376 _ACEOF
25377 rm -f conftest.$ac_objext
25378 if { (ac_try="$ac_compile"
25379 case "(($ac_try" in
25380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381   *) ac_try_echo=$ac_try;;
25382 esac
25383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25384 $as_echo "$ac_try_echo") >&5
25385   (eval "$ac_compile") 2>conftest.er1
25386   ac_status=$?
25387   grep -v '^ *+' conftest.er1 >conftest.err
25388   rm -f conftest.er1
25389   cat conftest.err >&5
25390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391   (exit $ac_status); } && {
25392          test -z "$ac_c_werror_flag" ||
25393          test ! -s conftest.err
25394        } && test -s conftest.$ac_objext; then
25395   ac_lo=0 ac_mid=0
25396   while :; do
25397     cat >conftest.$ac_ext <<_ACEOF
25398 /* confdefs.h.  */
25399 _ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h.  */
25403 $ac_includes_default
25404 #ifndef offsetof
25405 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25406 #endif
25407 typedef struct { char x; int y; } ac__type_alignof_;
25408 int
25409 main ()
25410 {
25411 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25412 test_array [0] = 0
25413
25414   ;
25415   return 0;
25416 }
25417 _ACEOF
25418 rm -f conftest.$ac_objext
25419 if { (ac_try="$ac_compile"
25420 case "(($ac_try" in
25421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422   *) ac_try_echo=$ac_try;;
25423 esac
25424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25425 $as_echo "$ac_try_echo") >&5
25426   (eval "$ac_compile") 2>conftest.er1
25427   ac_status=$?
25428   grep -v '^ *+' conftest.er1 >conftest.err
25429   rm -f conftest.er1
25430   cat conftest.err >&5
25431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432   (exit $ac_status); } && {
25433          test -z "$ac_c_werror_flag" ||
25434          test ! -s conftest.err
25435        } && test -s conftest.$ac_objext; then
25436   ac_hi=$ac_mid; break
25437 else
25438   $as_echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25440
25441         ac_lo=`expr $ac_mid + 1`
25442                         if test $ac_lo -le $ac_mid; then
25443                           ac_lo= ac_hi=
25444                           break
25445                         fi
25446                         ac_mid=`expr 2 '*' $ac_mid + 1`
25447 fi
25448
25449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25450   done
25451 else
25452   $as_echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25454
25455         cat >conftest.$ac_ext <<_ACEOF
25456 /* confdefs.h.  */
25457 _ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h.  */
25461 $ac_includes_default
25462 #ifndef offsetof
25463 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25464 #endif
25465 typedef struct { char x; int y; } ac__type_alignof_;
25466 int
25467 main ()
25468 {
25469 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25470 test_array [0] = 0
25471
25472   ;
25473   return 0;
25474 }
25475 _ACEOF
25476 rm -f conftest.$ac_objext
25477 if { (ac_try="$ac_compile"
25478 case "(($ac_try" in
25479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480   *) ac_try_echo=$ac_try;;
25481 esac
25482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25483 $as_echo "$ac_try_echo") >&5
25484   (eval "$ac_compile") 2>conftest.er1
25485   ac_status=$?
25486   grep -v '^ *+' conftest.er1 >conftest.err
25487   rm -f conftest.er1
25488   cat conftest.err >&5
25489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } && {
25491          test -z "$ac_c_werror_flag" ||
25492          test ! -s conftest.err
25493        } && test -s conftest.$ac_objext; then
25494   ac_hi=-1 ac_mid=-1
25495   while :; do
25496     cat >conftest.$ac_ext <<_ACEOF
25497 /* confdefs.h.  */
25498 _ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h.  */
25502 $ac_includes_default
25503 #ifndef offsetof
25504 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25505 #endif
25506 typedef struct { char x; int y; } ac__type_alignof_;
25507 int
25508 main ()
25509 {
25510 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25511 test_array [0] = 0
25512
25513   ;
25514   return 0;
25515 }
25516 _ACEOF
25517 rm -f conftest.$ac_objext
25518 if { (ac_try="$ac_compile"
25519 case "(($ac_try" in
25520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521   *) ac_try_echo=$ac_try;;
25522 esac
25523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25524 $as_echo "$ac_try_echo") >&5
25525   (eval "$ac_compile") 2>conftest.er1
25526   ac_status=$?
25527   grep -v '^ *+' conftest.er1 >conftest.err
25528   rm -f conftest.er1
25529   cat conftest.err >&5
25530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); } && {
25532          test -z "$ac_c_werror_flag" ||
25533          test ! -s conftest.err
25534        } && test -s conftest.$ac_objext; then
25535   ac_lo=$ac_mid; break
25536 else
25537   $as_echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25539
25540         ac_hi=`expr '(' $ac_mid ')' - 1`
25541                         if test $ac_mid -le $ac_hi; then
25542                           ac_lo= ac_hi=
25543                           break
25544                         fi
25545                         ac_mid=`expr 2 '*' $ac_mid`
25546 fi
25547
25548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25549   done
25550 else
25551   $as_echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25553
25554         ac_lo= ac_hi=
25555 fi
25556
25557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25558 fi
25559
25560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25561 # Binary search between lo and hi bounds.
25562 while test "x$ac_lo" != "x$ac_hi"; do
25563   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25564   cat >conftest.$ac_ext <<_ACEOF
25565 /* confdefs.h.  */
25566 _ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h.  */
25570 $ac_includes_default
25571 #ifndef offsetof
25572 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25573 #endif
25574 typedef struct { char x; int y; } ac__type_alignof_;
25575 int
25576 main ()
25577 {
25578 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25579 test_array [0] = 0
25580
25581   ;
25582   return 0;
25583 }
25584 _ACEOF
25585 rm -f conftest.$ac_objext
25586 if { (ac_try="$ac_compile"
25587 case "(($ac_try" in
25588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25589   *) ac_try_echo=$ac_try;;
25590 esac
25591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25592 $as_echo "$ac_try_echo") >&5
25593   (eval "$ac_compile") 2>conftest.er1
25594   ac_status=$?
25595   grep -v '^ *+' conftest.er1 >conftest.err
25596   rm -f conftest.er1
25597   cat conftest.err >&5
25598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); } && {
25600          test -z "$ac_c_werror_flag" ||
25601          test ! -s conftest.err
25602        } && test -s conftest.$ac_objext; then
25603   ac_hi=$ac_mid
25604 else
25605   $as_echo "$as_me: failed program was:" >&5
25606 sed 's/^/| /' conftest.$ac_ext >&5
25607
25608         ac_lo=`expr '(' $ac_mid ')' + 1`
25609 fi
25610
25611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25612 done
25613 case $ac_lo in
25614 ?*) ac_cv_alignof_int=$ac_lo;;
25615 '') if test "$ac_cv_type_int" = yes; then
25616      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25618 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25619 See \`config.log' for more details." >&5
25620 $as_echo "$as_me: error: cannot compute alignment of int
25621 See \`config.log' for more details." >&2;}
25622    { (exit 77); exit 77; }; }; }
25623    else
25624      ac_cv_alignof_int=0
25625    fi ;;
25626 esac
25627 else
25628   cat >conftest.$ac_ext <<_ACEOF
25629 /* confdefs.h.  */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h.  */
25634 $ac_includes_default
25635 #ifndef offsetof
25636 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25637 #endif
25638 typedef struct { char x; int y; } ac__type_alignof_;
25639 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25640 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25641 #include <stdio.h>
25642 #include <stdlib.h>
25643 int
25644 main ()
25645 {
25646
25647   FILE *f = fopen ("conftest.val", "w");
25648   if (! f)
25649     return 1;
25650   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25651     {
25652       long int i = longval ();
25653       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25654         return 1;
25655       fprintf (f, "%ld", i);
25656     }
25657   else
25658     {
25659       unsigned long int i = ulongval ();
25660       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25661         return 1;
25662       fprintf (f, "%lu", i);
25663     }
25664   /* Do not output a trailing newline, as this causes \r\n confusion
25665      on some platforms.  */
25666   return ferror (f) || fclose (f) != 0;
25667
25668   ;
25669   return 0;
25670 }
25671 _ACEOF
25672 rm -f conftest$ac_exeext
25673 if { (ac_try="$ac_link"
25674 case "(($ac_try" in
25675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676   *) ac_try_echo=$ac_try;;
25677 esac
25678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25679 $as_echo "$ac_try_echo") >&5
25680   (eval "$ac_link") 2>&5
25681   ac_status=$?
25682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25684   { (case "(($ac_try" in
25685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686   *) ac_try_echo=$ac_try;;
25687 esac
25688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25689 $as_echo "$ac_try_echo") >&5
25690   (eval "$ac_try") 2>&5
25691   ac_status=$?
25692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693   (exit $ac_status); }; }; then
25694   ac_cv_alignof_int=`cat conftest.val`
25695 else
25696   $as_echo "$as_me: program exited with status $ac_status" >&5
25697 $as_echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25699
25700 ( exit $ac_status )
25701 if test "$ac_cv_type_int" = yes; then
25702      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25704 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25705 See \`config.log' for more details." >&5
25706 $as_echo "$as_me: error: cannot compute alignment of int
25707 See \`config.log' for more details." >&2;}
25708    { (exit 77); exit 77; }; }; }
25709    else
25710      ac_cv_alignof_int=0
25711    fi
25712 fi
25713 rm -rf conftest.dSYM
25714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25715 fi
25716 rm -f conftest.val
25717 fi
25718 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
25719 $as_echo "$ac_cv_alignof_int" >&6; }
25720
25721
25722
25723 cat >>confdefs.h <<_ACEOF
25724 #define ALIGNOF_INT $ac_cv_alignof_int
25725 _ACEOF
25726
25727
25728 # The cast to long int works around a bug in the HP C Compiler,
25729 # see AC_CHECK_SIZEOF for more information.
25730 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
25731 $as_echo_n "checking alignment of long... " >&6; }
25732 if test "${ac_cv_alignof_long+set}" = set; then
25733   $as_echo_n "(cached) " >&6
25734 else
25735   if test "$cross_compiling" = yes; then
25736   # Depending upon the size, compute the lo and hi bounds.
25737 cat >conftest.$ac_ext <<_ACEOF
25738 /* confdefs.h.  */
25739 _ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h.  */
25743 $ac_includes_default
25744 #ifndef offsetof
25745 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25746 #endif
25747 typedef struct { char x; long y; } ac__type_alignof_;
25748 int
25749 main ()
25750 {
25751 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25752 test_array [0] = 0
25753
25754   ;
25755   return 0;
25756 }
25757 _ACEOF
25758 rm -f conftest.$ac_objext
25759 if { (ac_try="$ac_compile"
25760 case "(($ac_try" in
25761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25762   *) ac_try_echo=$ac_try;;
25763 esac
25764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25765 $as_echo "$ac_try_echo") >&5
25766   (eval "$ac_compile") 2>conftest.er1
25767   ac_status=$?
25768   grep -v '^ *+' conftest.er1 >conftest.err
25769   rm -f conftest.er1
25770   cat conftest.err >&5
25771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772   (exit $ac_status); } && {
25773          test -z "$ac_c_werror_flag" ||
25774          test ! -s conftest.err
25775        } && test -s conftest.$ac_objext; then
25776   ac_lo=0 ac_mid=0
25777   while :; do
25778     cat >conftest.$ac_ext <<_ACEOF
25779 /* confdefs.h.  */
25780 _ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h.  */
25784 $ac_includes_default
25785 #ifndef offsetof
25786 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25787 #endif
25788 typedef struct { char x; long y; } ac__type_alignof_;
25789 int
25790 main ()
25791 {
25792 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25793 test_array [0] = 0
25794
25795   ;
25796   return 0;
25797 }
25798 _ACEOF
25799 rm -f conftest.$ac_objext
25800 if { (ac_try="$ac_compile"
25801 case "(($ac_try" in
25802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25803   *) ac_try_echo=$ac_try;;
25804 esac
25805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25806 $as_echo "$ac_try_echo") >&5
25807   (eval "$ac_compile") 2>conftest.er1
25808   ac_status=$?
25809   grep -v '^ *+' conftest.er1 >conftest.err
25810   rm -f conftest.er1
25811   cat conftest.err >&5
25812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); } && {
25814          test -z "$ac_c_werror_flag" ||
25815          test ! -s conftest.err
25816        } && test -s conftest.$ac_objext; then
25817   ac_hi=$ac_mid; break
25818 else
25819   $as_echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25821
25822         ac_lo=`expr $ac_mid + 1`
25823                         if test $ac_lo -le $ac_mid; then
25824                           ac_lo= ac_hi=
25825                           break
25826                         fi
25827                         ac_mid=`expr 2 '*' $ac_mid + 1`
25828 fi
25829
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831   done
25832 else
25833   $as_echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25835
25836         cat >conftest.$ac_ext <<_ACEOF
25837 /* confdefs.h.  */
25838 _ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h.  */
25842 $ac_includes_default
25843 #ifndef offsetof
25844 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25845 #endif
25846 typedef struct { char x; long y; } ac__type_alignof_;
25847 int
25848 main ()
25849 {
25850 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
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_hi=-1 ac_mid=-1
25876   while :; do
25877     cat >conftest.$ac_ext <<_ACEOF
25878 /* confdefs.h.  */
25879 _ACEOF
25880 cat confdefs.h >>conftest.$ac_ext
25881 cat >>conftest.$ac_ext <<_ACEOF
25882 /* end confdefs.h.  */
25883 $ac_includes_default
25884 #ifndef offsetof
25885 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25886 #endif
25887 typedef struct { char x; long y; } ac__type_alignof_;
25888 int
25889 main ()
25890 {
25891 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25892 test_array [0] = 0
25893
25894   ;
25895   return 0;
25896 }
25897 _ACEOF
25898 rm -f conftest.$ac_objext
25899 if { (ac_try="$ac_compile"
25900 case "(($ac_try" in
25901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25902   *) ac_try_echo=$ac_try;;
25903 esac
25904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25905 $as_echo "$ac_try_echo") >&5
25906   (eval "$ac_compile") 2>conftest.er1
25907   ac_status=$?
25908   grep -v '^ *+' conftest.er1 >conftest.err
25909   rm -f conftest.er1
25910   cat conftest.err >&5
25911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912   (exit $ac_status); } && {
25913          test -z "$ac_c_werror_flag" ||
25914          test ! -s conftest.err
25915        } && test -s conftest.$ac_objext; then
25916   ac_lo=$ac_mid; break
25917 else
25918   $as_echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25920
25921         ac_hi=`expr '(' $ac_mid ')' - 1`
25922                         if test $ac_mid -le $ac_hi; then
25923                           ac_lo= ac_hi=
25924                           break
25925                         fi
25926                         ac_mid=`expr 2 '*' $ac_mid`
25927 fi
25928
25929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25930   done
25931 else
25932   $as_echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25934
25935         ac_lo= ac_hi=
25936 fi
25937
25938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25939 fi
25940
25941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25942 # Binary search between lo and hi bounds.
25943 while test "x$ac_lo" != "x$ac_hi"; do
25944   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25945   cat >conftest.$ac_ext <<_ACEOF
25946 /* confdefs.h.  */
25947 _ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h.  */
25951 $ac_includes_default
25952 #ifndef offsetof
25953 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25954 #endif
25955 typedef struct { char x; long y; } ac__type_alignof_;
25956 int
25957 main ()
25958 {
25959 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25960 test_array [0] = 0
25961
25962   ;
25963   return 0;
25964 }
25965 _ACEOF
25966 rm -f conftest.$ac_objext
25967 if { (ac_try="$ac_compile"
25968 case "(($ac_try" in
25969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970   *) ac_try_echo=$ac_try;;
25971 esac
25972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25973 $as_echo "$ac_try_echo") >&5
25974   (eval "$ac_compile") 2>conftest.er1
25975   ac_status=$?
25976   grep -v '^ *+' conftest.er1 >conftest.err
25977   rm -f conftest.er1
25978   cat conftest.err >&5
25979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980   (exit $ac_status); } && {
25981          test -z "$ac_c_werror_flag" ||
25982          test ! -s conftest.err
25983        } && test -s conftest.$ac_objext; then
25984   ac_hi=$ac_mid
25985 else
25986   $as_echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25988
25989         ac_lo=`expr '(' $ac_mid ')' + 1`
25990 fi
25991
25992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993 done
25994 case $ac_lo in
25995 ?*) ac_cv_alignof_long=$ac_lo;;
25996 '') if test "$ac_cv_type_long" = yes; then
25997      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25999 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26000 See \`config.log' for more details." >&5
26001 $as_echo "$as_me: error: cannot compute alignment of long
26002 See \`config.log' for more details." >&2;}
26003    { (exit 77); exit 77; }; }; }
26004    else
26005      ac_cv_alignof_long=0
26006    fi ;;
26007 esac
26008 else
26009   cat >conftest.$ac_ext <<_ACEOF
26010 /* confdefs.h.  */
26011 _ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h.  */
26015 $ac_includes_default
26016 #ifndef offsetof
26017 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26018 #endif
26019 typedef struct { char x; long y; } ac__type_alignof_;
26020 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26021 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26022 #include <stdio.h>
26023 #include <stdlib.h>
26024 int
26025 main ()
26026 {
26027
26028   FILE *f = fopen ("conftest.val", "w");
26029   if (! f)
26030     return 1;
26031   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26032     {
26033       long int i = longval ();
26034       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26035         return 1;
26036       fprintf (f, "%ld", i);
26037     }
26038   else
26039     {
26040       unsigned long int i = ulongval ();
26041       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26042         return 1;
26043       fprintf (f, "%lu", i);
26044     }
26045   /* Do not output a trailing newline, as this causes \r\n confusion
26046      on some platforms.  */
26047   return ferror (f) || fclose (f) != 0;
26048
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 rm -f conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057   *) ac_try_echo=$ac_try;;
26058 esac
26059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26060 $as_echo "$ac_try_echo") >&5
26061   (eval "$ac_link") 2>&5
26062   ac_status=$?
26063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26065   { (case "(($ac_try" in
26066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067   *) ac_try_echo=$ac_try;;
26068 esac
26069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26070 $as_echo "$ac_try_echo") >&5
26071   (eval "$ac_try") 2>&5
26072   ac_status=$?
26073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); }; }; then
26075   ac_cv_alignof_long=`cat conftest.val`
26076 else
26077   $as_echo "$as_me: program exited with status $ac_status" >&5
26078 $as_echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081 ( exit $ac_status )
26082 if test "$ac_cv_type_long" = yes; then
26083      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26085 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26086 See \`config.log' for more details." >&5
26087 $as_echo "$as_me: error: cannot compute alignment of long
26088 See \`config.log' for more details." >&2;}
26089    { (exit 77); exit 77; }; }; }
26090    else
26091      ac_cv_alignof_long=0
26092    fi
26093 fi
26094 rm -rf conftest.dSYM
26095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26096 fi
26097 rm -f conftest.val
26098 fi
26099 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26100 $as_echo "$ac_cv_alignof_long" >&6; }
26101
26102
26103
26104 cat >>confdefs.h <<_ACEOF
26105 #define ALIGNOF_LONG $ac_cv_alignof_long
26106 _ACEOF
26107
26108
26109 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26110   # The cast to long int works around a bug in the HP C Compiler,
26111 # see AC_CHECK_SIZEOF for more information.
26112 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26113 $as_echo_n "checking alignment of long long int... " >&6; }
26114 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26115   $as_echo_n "(cached) " >&6
26116 else
26117   if test "$cross_compiling" = yes; then
26118   # Depending upon the size, compute the lo and hi bounds.
26119 cat >conftest.$ac_ext <<_ACEOF
26120 /* confdefs.h.  */
26121 _ACEOF
26122 cat confdefs.h >>conftest.$ac_ext
26123 cat >>conftest.$ac_ext <<_ACEOF
26124 /* end confdefs.h.  */
26125 $ac_includes_default
26126 #ifndef offsetof
26127 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26128 #endif
26129 typedef struct { char x; long long int y; } ac__type_alignof_;
26130 int
26131 main ()
26132 {
26133 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26134 test_array [0] = 0
26135
26136   ;
26137   return 0;
26138 }
26139 _ACEOF
26140 rm -f conftest.$ac_objext
26141 if { (ac_try="$ac_compile"
26142 case "(($ac_try" in
26143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144   *) ac_try_echo=$ac_try;;
26145 esac
26146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26147 $as_echo "$ac_try_echo") >&5
26148   (eval "$ac_compile") 2>conftest.er1
26149   ac_status=$?
26150   grep -v '^ *+' conftest.er1 >conftest.err
26151   rm -f conftest.er1
26152   cat conftest.err >&5
26153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154   (exit $ac_status); } && {
26155          test -z "$ac_c_werror_flag" ||
26156          test ! -s conftest.err
26157        } && test -s conftest.$ac_objext; then
26158   ac_lo=0 ac_mid=0
26159   while :; do
26160     cat >conftest.$ac_ext <<_ACEOF
26161 /* confdefs.h.  */
26162 _ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h.  */
26166 $ac_includes_default
26167 #ifndef offsetof
26168 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26169 #endif
26170 typedef struct { char x; long long int y; } ac__type_alignof_;
26171 int
26172 main ()
26173 {
26174 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26175 test_array [0] = 0
26176
26177   ;
26178   return 0;
26179 }
26180 _ACEOF
26181 rm -f conftest.$ac_objext
26182 if { (ac_try="$ac_compile"
26183 case "(($ac_try" in
26184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185   *) ac_try_echo=$ac_try;;
26186 esac
26187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26188 $as_echo "$ac_try_echo") >&5
26189   (eval "$ac_compile") 2>conftest.er1
26190   ac_status=$?
26191   grep -v '^ *+' conftest.er1 >conftest.err
26192   rm -f conftest.er1
26193   cat conftest.err >&5
26194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195   (exit $ac_status); } && {
26196          test -z "$ac_c_werror_flag" ||
26197          test ! -s conftest.err
26198        } && test -s conftest.$ac_objext; then
26199   ac_hi=$ac_mid; break
26200 else
26201   $as_echo "$as_me: failed program was:" >&5
26202 sed 's/^/| /' conftest.$ac_ext >&5
26203
26204         ac_lo=`expr $ac_mid + 1`
26205                         if test $ac_lo -le $ac_mid; then
26206                           ac_lo= ac_hi=
26207                           break
26208                         fi
26209                         ac_mid=`expr 2 '*' $ac_mid + 1`
26210 fi
26211
26212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26213   done
26214 else
26215   $as_echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26217
26218         cat >conftest.$ac_ext <<_ACEOF
26219 /* confdefs.h.  */
26220 _ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h.  */
26224 $ac_includes_default
26225 #ifndef offsetof
26226 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26227 #endif
26228 typedef struct { char x; long long int y; } ac__type_alignof_;
26229 int
26230 main ()
26231 {
26232 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26233 test_array [0] = 0
26234
26235   ;
26236   return 0;
26237 }
26238 _ACEOF
26239 rm -f conftest.$ac_objext
26240 if { (ac_try="$ac_compile"
26241 case "(($ac_try" in
26242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26243   *) ac_try_echo=$ac_try;;
26244 esac
26245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26246 $as_echo "$ac_try_echo") >&5
26247   (eval "$ac_compile") 2>conftest.er1
26248   ac_status=$?
26249   grep -v '^ *+' conftest.er1 >conftest.err
26250   rm -f conftest.er1
26251   cat conftest.err >&5
26252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253   (exit $ac_status); } && {
26254          test -z "$ac_c_werror_flag" ||
26255          test ! -s conftest.err
26256        } && test -s conftest.$ac_objext; then
26257   ac_hi=-1 ac_mid=-1
26258   while :; do
26259     cat >conftest.$ac_ext <<_ACEOF
26260 /* confdefs.h.  */
26261 _ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h.  */
26265 $ac_includes_default
26266 #ifndef offsetof
26267 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26268 #endif
26269 typedef struct { char x; long long int y; } ac__type_alignof_;
26270 int
26271 main ()
26272 {
26273 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26274 test_array [0] = 0
26275
26276   ;
26277   return 0;
26278 }
26279 _ACEOF
26280 rm -f conftest.$ac_objext
26281 if { (ac_try="$ac_compile"
26282 case "(($ac_try" in
26283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26284   *) ac_try_echo=$ac_try;;
26285 esac
26286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26287 $as_echo "$ac_try_echo") >&5
26288   (eval "$ac_compile") 2>conftest.er1
26289   ac_status=$?
26290   grep -v '^ *+' conftest.er1 >conftest.err
26291   rm -f conftest.er1
26292   cat conftest.err >&5
26293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); } && {
26295          test -z "$ac_c_werror_flag" ||
26296          test ! -s conftest.err
26297        } && test -s conftest.$ac_objext; then
26298   ac_lo=$ac_mid; break
26299 else
26300   $as_echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26302
26303         ac_hi=`expr '(' $ac_mid ')' - 1`
26304                         if test $ac_mid -le $ac_hi; then
26305                           ac_lo= ac_hi=
26306                           break
26307                         fi
26308                         ac_mid=`expr 2 '*' $ac_mid`
26309 fi
26310
26311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26312   done
26313 else
26314   $as_echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26316
26317         ac_lo= ac_hi=
26318 fi
26319
26320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26321 fi
26322
26323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 # Binary search between lo and hi bounds.
26325 while test "x$ac_lo" != "x$ac_hi"; do
26326   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26327   cat >conftest.$ac_ext <<_ACEOF
26328 /* confdefs.h.  */
26329 _ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h.  */
26333 $ac_includes_default
26334 #ifndef offsetof
26335 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26336 #endif
26337 typedef struct { char x; long long int y; } ac__type_alignof_;
26338 int
26339 main ()
26340 {
26341 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26342 test_array [0] = 0
26343
26344   ;
26345   return 0;
26346 }
26347 _ACEOF
26348 rm -f conftest.$ac_objext
26349 if { (ac_try="$ac_compile"
26350 case "(($ac_try" in
26351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26352   *) ac_try_echo=$ac_try;;
26353 esac
26354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26355 $as_echo "$ac_try_echo") >&5
26356   (eval "$ac_compile") 2>conftest.er1
26357   ac_status=$?
26358   grep -v '^ *+' conftest.er1 >conftest.err
26359   rm -f conftest.er1
26360   cat conftest.err >&5
26361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); } && {
26363          test -z "$ac_c_werror_flag" ||
26364          test ! -s conftest.err
26365        } && test -s conftest.$ac_objext; then
26366   ac_hi=$ac_mid
26367 else
26368   $as_echo "$as_me: failed program was:" >&5
26369 sed 's/^/| /' conftest.$ac_ext >&5
26370
26371         ac_lo=`expr '(' $ac_mid ')' + 1`
26372 fi
26373
26374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26375 done
26376 case $ac_lo in
26377 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26378 '') if test "$ac_cv_type_long_long_int" = yes; then
26379      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26381 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26382 See \`config.log' for more details." >&5
26383 $as_echo "$as_me: error: cannot compute alignment of long long int
26384 See \`config.log' for more details." >&2;}
26385    { (exit 77); exit 77; }; }; }
26386    else
26387      ac_cv_alignof_long_long_int=0
26388    fi ;;
26389 esac
26390 else
26391   cat >conftest.$ac_ext <<_ACEOF
26392 /* confdefs.h.  */
26393 _ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h.  */
26397 $ac_includes_default
26398 #ifndef offsetof
26399 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26400 #endif
26401 typedef struct { char x; long long int y; } ac__type_alignof_;
26402 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26403 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26404 #include <stdio.h>
26405 #include <stdlib.h>
26406 int
26407 main ()
26408 {
26409
26410   FILE *f = fopen ("conftest.val", "w");
26411   if (! f)
26412     return 1;
26413   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26414     {
26415       long int i = longval ();
26416       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26417         return 1;
26418       fprintf (f, "%ld", i);
26419     }
26420   else
26421     {
26422       unsigned long int i = ulongval ();
26423       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26424         return 1;
26425       fprintf (f, "%lu", i);
26426     }
26427   /* Do not output a trailing newline, as this causes \r\n confusion
26428      on some platforms.  */
26429   return ferror (f) || fclose (f) != 0;
26430
26431   ;
26432   return 0;
26433 }
26434 _ACEOF
26435 rm -f conftest$ac_exeext
26436 if { (ac_try="$ac_link"
26437 case "(($ac_try" in
26438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439   *) ac_try_echo=$ac_try;;
26440 esac
26441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26442 $as_echo "$ac_try_echo") >&5
26443   (eval "$ac_link") 2>&5
26444   ac_status=$?
26445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26447   { (case "(($ac_try" in
26448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449   *) ac_try_echo=$ac_try;;
26450 esac
26451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26452 $as_echo "$ac_try_echo") >&5
26453   (eval "$ac_try") 2>&5
26454   ac_status=$?
26455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); }; }; then
26457   ac_cv_alignof_long_long_int=`cat conftest.val`
26458 else
26459   $as_echo "$as_me: program exited with status $ac_status" >&5
26460 $as_echo "$as_me: failed program was:" >&5
26461 sed 's/^/| /' conftest.$ac_ext >&5
26462
26463 ( exit $ac_status )
26464 if test "$ac_cv_type_long_long_int" = yes; then
26465      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26467 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26468 See \`config.log' for more details." >&5
26469 $as_echo "$as_me: error: cannot compute alignment of long long int
26470 See \`config.log' for more details." >&2;}
26471    { (exit 77); exit 77; }; }; }
26472    else
26473      ac_cv_alignof_long_long_int=0
26474    fi
26475 fi
26476 rm -rf conftest.dSYM
26477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26478 fi
26479 rm -f conftest.val
26480 fi
26481 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26482 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26483
26484
26485
26486 cat >>confdefs.h <<_ACEOF
26487 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26488 _ACEOF
26489
26490
26491 fi
26492 # The cast to long int works around a bug in the HP C Compiler,
26493 # see AC_CHECK_SIZEOF for more information.
26494 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26495 $as_echo_n "checking alignment of double... " >&6; }
26496 if test "${ac_cv_alignof_double+set}" = set; then
26497   $as_echo_n "(cached) " >&6
26498 else
26499   if test "$cross_compiling" = yes; then
26500   # Depending upon the size, compute the lo and hi bounds.
26501 cat >conftest.$ac_ext <<_ACEOF
26502 /* confdefs.h.  */
26503 _ACEOF
26504 cat confdefs.h >>conftest.$ac_ext
26505 cat >>conftest.$ac_ext <<_ACEOF
26506 /* end confdefs.h.  */
26507 $ac_includes_default
26508 #ifndef offsetof
26509 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26510 #endif
26511 typedef struct { char x; double y; } ac__type_alignof_;
26512 int
26513 main ()
26514 {
26515 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26516 test_array [0] = 0
26517
26518   ;
26519   return 0;
26520 }
26521 _ACEOF
26522 rm -f conftest.$ac_objext
26523 if { (ac_try="$ac_compile"
26524 case "(($ac_try" in
26525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26526   *) ac_try_echo=$ac_try;;
26527 esac
26528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26529 $as_echo "$ac_try_echo") >&5
26530   (eval "$ac_compile") 2>conftest.er1
26531   ac_status=$?
26532   grep -v '^ *+' conftest.er1 >conftest.err
26533   rm -f conftest.er1
26534   cat conftest.err >&5
26535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536   (exit $ac_status); } && {
26537          test -z "$ac_c_werror_flag" ||
26538          test ! -s conftest.err
26539        } && test -s conftest.$ac_objext; then
26540   ac_lo=0 ac_mid=0
26541   while :; do
26542     cat >conftest.$ac_ext <<_ACEOF
26543 /* confdefs.h.  */
26544 _ACEOF
26545 cat confdefs.h >>conftest.$ac_ext
26546 cat >>conftest.$ac_ext <<_ACEOF
26547 /* end confdefs.h.  */
26548 $ac_includes_default
26549 #ifndef offsetof
26550 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26551 #endif
26552 typedef struct { char x; double y; } ac__type_alignof_;
26553 int
26554 main ()
26555 {
26556 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26557 test_array [0] = 0
26558
26559   ;
26560   return 0;
26561 }
26562 _ACEOF
26563 rm -f conftest.$ac_objext
26564 if { (ac_try="$ac_compile"
26565 case "(($ac_try" in
26566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567   *) ac_try_echo=$ac_try;;
26568 esac
26569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26570 $as_echo "$ac_try_echo") >&5
26571   (eval "$ac_compile") 2>conftest.er1
26572   ac_status=$?
26573   grep -v '^ *+' conftest.er1 >conftest.err
26574   rm -f conftest.er1
26575   cat conftest.err >&5
26576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577   (exit $ac_status); } && {
26578          test -z "$ac_c_werror_flag" ||
26579          test ! -s conftest.err
26580        } && test -s conftest.$ac_objext; then
26581   ac_hi=$ac_mid; break
26582 else
26583   $as_echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26585
26586         ac_lo=`expr $ac_mid + 1`
26587                         if test $ac_lo -le $ac_mid; then
26588                           ac_lo= ac_hi=
26589                           break
26590                         fi
26591                         ac_mid=`expr 2 '*' $ac_mid + 1`
26592 fi
26593
26594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26595   done
26596 else
26597   $as_echo "$as_me: failed program was:" >&5
26598 sed 's/^/| /' conftest.$ac_ext >&5
26599
26600         cat >conftest.$ac_ext <<_ACEOF
26601 /* confdefs.h.  */
26602 _ACEOF
26603 cat confdefs.h >>conftest.$ac_ext
26604 cat >>conftest.$ac_ext <<_ACEOF
26605 /* end confdefs.h.  */
26606 $ac_includes_default
26607 #ifndef offsetof
26608 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26609 #endif
26610 typedef struct { char x; double y; } ac__type_alignof_;
26611 int
26612 main ()
26613 {
26614 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26615 test_array [0] = 0
26616
26617   ;
26618   return 0;
26619 }
26620 _ACEOF
26621 rm -f conftest.$ac_objext
26622 if { (ac_try="$ac_compile"
26623 case "(($ac_try" in
26624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26625   *) ac_try_echo=$ac_try;;
26626 esac
26627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26628 $as_echo "$ac_try_echo") >&5
26629   (eval "$ac_compile") 2>conftest.er1
26630   ac_status=$?
26631   grep -v '^ *+' conftest.er1 >conftest.err
26632   rm -f conftest.er1
26633   cat conftest.err >&5
26634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635   (exit $ac_status); } && {
26636          test -z "$ac_c_werror_flag" ||
26637          test ! -s conftest.err
26638        } && test -s conftest.$ac_objext; then
26639   ac_hi=-1 ac_mid=-1
26640   while :; do
26641     cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647 $ac_includes_default
26648 #ifndef offsetof
26649 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26650 #endif
26651 typedef struct { char x; double y; } ac__type_alignof_;
26652 int
26653 main ()
26654 {
26655 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26656 test_array [0] = 0
26657
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 rm -f conftest.$ac_objext
26663 if { (ac_try="$ac_compile"
26664 case "(($ac_try" in
26665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26666   *) ac_try_echo=$ac_try;;
26667 esac
26668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26669 $as_echo "$ac_try_echo") >&5
26670   (eval "$ac_compile") 2>conftest.er1
26671   ac_status=$?
26672   grep -v '^ *+' conftest.er1 >conftest.err
26673   rm -f conftest.er1
26674   cat conftest.err >&5
26675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676   (exit $ac_status); } && {
26677          test -z "$ac_c_werror_flag" ||
26678          test ! -s conftest.err
26679        } && test -s conftest.$ac_objext; then
26680   ac_lo=$ac_mid; break
26681 else
26682   $as_echo "$as_me: failed program was:" >&5
26683 sed 's/^/| /' conftest.$ac_ext >&5
26684
26685         ac_hi=`expr '(' $ac_mid ')' - 1`
26686                         if test $ac_mid -le $ac_hi; then
26687                           ac_lo= ac_hi=
26688                           break
26689                         fi
26690                         ac_mid=`expr 2 '*' $ac_mid`
26691 fi
26692
26693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26694   done
26695 else
26696   $as_echo "$as_me: failed program was:" >&5
26697 sed 's/^/| /' conftest.$ac_ext >&5
26698
26699         ac_lo= ac_hi=
26700 fi
26701
26702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26703 fi
26704
26705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26706 # Binary search between lo and hi bounds.
26707 while test "x$ac_lo" != "x$ac_hi"; do
26708   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26709   cat >conftest.$ac_ext <<_ACEOF
26710 /* confdefs.h.  */
26711 _ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h.  */
26715 $ac_includes_default
26716 #ifndef offsetof
26717 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26718 #endif
26719 typedef struct { char x; double y; } ac__type_alignof_;
26720 int
26721 main ()
26722 {
26723 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26724 test_array [0] = 0
26725
26726   ;
26727   return 0;
26728 }
26729 _ACEOF
26730 rm -f conftest.$ac_objext
26731 if { (ac_try="$ac_compile"
26732 case "(($ac_try" in
26733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734   *) ac_try_echo=$ac_try;;
26735 esac
26736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26737 $as_echo "$ac_try_echo") >&5
26738   (eval "$ac_compile") 2>conftest.er1
26739   ac_status=$?
26740   grep -v '^ *+' conftest.er1 >conftest.err
26741   rm -f conftest.er1
26742   cat conftest.err >&5
26743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); } && {
26745          test -z "$ac_c_werror_flag" ||
26746          test ! -s conftest.err
26747        } && test -s conftest.$ac_objext; then
26748   ac_hi=$ac_mid
26749 else
26750   $as_echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.$ac_ext >&5
26752
26753         ac_lo=`expr '(' $ac_mid ')' + 1`
26754 fi
26755
26756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26757 done
26758 case $ac_lo in
26759 ?*) ac_cv_alignof_double=$ac_lo;;
26760 '') if test "$ac_cv_type_double" = yes; then
26761      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26763 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26764 See \`config.log' for more details." >&5
26765 $as_echo "$as_me: error: cannot compute alignment of double
26766 See \`config.log' for more details." >&2;}
26767    { (exit 77); exit 77; }; }; }
26768    else
26769      ac_cv_alignof_double=0
26770    fi ;;
26771 esac
26772 else
26773   cat >conftest.$ac_ext <<_ACEOF
26774 /* confdefs.h.  */
26775 _ACEOF
26776 cat confdefs.h >>conftest.$ac_ext
26777 cat >>conftest.$ac_ext <<_ACEOF
26778 /* end confdefs.h.  */
26779 $ac_includes_default
26780 #ifndef offsetof
26781 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26782 #endif
26783 typedef struct { char x; double y; } ac__type_alignof_;
26784 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26785 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26786 #include <stdio.h>
26787 #include <stdlib.h>
26788 int
26789 main ()
26790 {
26791
26792   FILE *f = fopen ("conftest.val", "w");
26793   if (! f)
26794     return 1;
26795   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26796     {
26797       long int i = longval ();
26798       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26799         return 1;
26800       fprintf (f, "%ld", i);
26801     }
26802   else
26803     {
26804       unsigned long int i = ulongval ();
26805       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26806         return 1;
26807       fprintf (f, "%lu", i);
26808     }
26809   /* Do not output a trailing newline, as this causes \r\n confusion
26810      on some platforms.  */
26811   return ferror (f) || fclose (f) != 0;
26812
26813   ;
26814   return 0;
26815 }
26816 _ACEOF
26817 rm -f conftest$ac_exeext
26818 if { (ac_try="$ac_link"
26819 case "(($ac_try" in
26820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821   *) ac_try_echo=$ac_try;;
26822 esac
26823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26824 $as_echo "$ac_try_echo") >&5
26825   (eval "$ac_link") 2>&5
26826   ac_status=$?
26827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26829   { (case "(($ac_try" in
26830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26831   *) ac_try_echo=$ac_try;;
26832 esac
26833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26834 $as_echo "$ac_try_echo") >&5
26835   (eval "$ac_try") 2>&5
26836   ac_status=$?
26837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838   (exit $ac_status); }; }; then
26839   ac_cv_alignof_double=`cat conftest.val`
26840 else
26841   $as_echo "$as_me: program exited with status $ac_status" >&5
26842 $as_echo "$as_me: failed program was:" >&5
26843 sed 's/^/| /' conftest.$ac_ext >&5
26844
26845 ( exit $ac_status )
26846 if test "$ac_cv_type_double" = yes; then
26847      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26849 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26850 See \`config.log' for more details." >&5
26851 $as_echo "$as_me: error: cannot compute alignment of double
26852 See \`config.log' for more details." >&2;}
26853    { (exit 77); exit 77; }; }; }
26854    else
26855      ac_cv_alignof_double=0
26856    fi
26857 fi
26858 rm -rf conftest.dSYM
26859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26860 fi
26861 rm -f conftest.val
26862 fi
26863 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
26864 $as_echo "$ac_cv_alignof_double" >&6; }
26865
26866
26867
26868 cat >>confdefs.h <<_ACEOF
26869 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
26870 _ACEOF
26871
26872
26873
26874 # Compute maximum alignment of any basic type.
26875 # We assume long's alignment is at least as strong as char, short, or int;
26876 # but we must check long long (if it exists) and double.
26877
26878 MAX_ALIGNOF=$ac_cv_alignof_long
26879 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
26880   MAX_ALIGNOF=$ac_cv_alignof_double
26881 fi
26882 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
26883   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
26884 fi
26885
26886 cat >>confdefs.h <<_ACEOF
26887 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
26888 _ACEOF
26889
26890
26891
26892 # Some platforms predefine the types int8, int16, etc.  Only check
26893 # a (hopefully) representative subset.
26894 { $as_echo "$as_me:$LINENO: checking for int8" >&5
26895 $as_echo_n "checking for int8... " >&6; }
26896 if test "${ac_cv_type_int8+set}" = set; then
26897   $as_echo_n "(cached) " >&6
26898 else
26899   ac_cv_type_int8=no
26900 cat >conftest.$ac_ext <<_ACEOF
26901 /* confdefs.h.  */
26902 _ACEOF
26903 cat confdefs.h >>conftest.$ac_ext
26904 cat >>conftest.$ac_ext <<_ACEOF
26905 /* end confdefs.h.  */
26906 #include <stdio.h>
26907 #ifdef HAVE_SUPPORTDEFS_H
26908 #include <SupportDefs.h>
26909 #endif
26910
26911 int
26912 main ()
26913 {
26914 if (sizeof (int8))
26915        return 0;
26916   ;
26917   return 0;
26918 }
26919 _ACEOF
26920 rm -f conftest.$ac_objext
26921 if { (ac_try="$ac_compile"
26922 case "(($ac_try" in
26923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924   *) ac_try_echo=$ac_try;;
26925 esac
26926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26927 $as_echo "$ac_try_echo") >&5
26928   (eval "$ac_compile") 2>conftest.er1
26929   ac_status=$?
26930   grep -v '^ *+' conftest.er1 >conftest.err
26931   rm -f conftest.er1
26932   cat conftest.err >&5
26933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); } && {
26935          test -z "$ac_c_werror_flag" ||
26936          test ! -s conftest.err
26937        } && test -s conftest.$ac_objext; then
26938   cat >conftest.$ac_ext <<_ACEOF
26939 /* confdefs.h.  */
26940 _ACEOF
26941 cat confdefs.h >>conftest.$ac_ext
26942 cat >>conftest.$ac_ext <<_ACEOF
26943 /* end confdefs.h.  */
26944 #include <stdio.h>
26945 #ifdef HAVE_SUPPORTDEFS_H
26946 #include <SupportDefs.h>
26947 #endif
26948
26949 int
26950 main ()
26951 {
26952 if (sizeof ((int8)))
26953           return 0;
26954   ;
26955   return 0;
26956 }
26957 _ACEOF
26958 rm -f conftest.$ac_objext
26959 if { (ac_try="$ac_compile"
26960 case "(($ac_try" in
26961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26962   *) ac_try_echo=$ac_try;;
26963 esac
26964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26965 $as_echo "$ac_try_echo") >&5
26966   (eval "$ac_compile") 2>conftest.er1
26967   ac_status=$?
26968   grep -v '^ *+' conftest.er1 >conftest.err
26969   rm -f conftest.er1
26970   cat conftest.err >&5
26971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972   (exit $ac_status); } && {
26973          test -z "$ac_c_werror_flag" ||
26974          test ! -s conftest.err
26975        } && test -s conftest.$ac_objext; then
26976   :
26977 else
26978   $as_echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26980
26981         ac_cv_type_int8=yes
26982 fi
26983
26984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26985 else
26986   $as_echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26988
26989
26990 fi
26991
26992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26993 fi
26994 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
26995 $as_echo "$ac_cv_type_int8" >&6; }
26996 if test "x$ac_cv_type_int8" = x""yes; then
26997
26998 cat >>confdefs.h <<_ACEOF
26999 #define HAVE_INT8 1
27000 _ACEOF
27001
27002
27003 fi
27004 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27005 $as_echo_n "checking for uint8... " >&6; }
27006 if test "${ac_cv_type_uint8+set}" = set; then
27007   $as_echo_n "(cached) " >&6
27008 else
27009   ac_cv_type_uint8=no
27010 cat >conftest.$ac_ext <<_ACEOF
27011 /* confdefs.h.  */
27012 _ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h.  */
27016 #include <stdio.h>
27017 #ifdef HAVE_SUPPORTDEFS_H
27018 #include <SupportDefs.h>
27019 #endif
27020
27021 int
27022 main ()
27023 {
27024 if (sizeof (uint8))
27025        return 0;
27026   ;
27027   return 0;
27028 }
27029 _ACEOF
27030 rm -f conftest.$ac_objext
27031 if { (ac_try="$ac_compile"
27032 case "(($ac_try" in
27033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034   *) ac_try_echo=$ac_try;;
27035 esac
27036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27037 $as_echo "$ac_try_echo") >&5
27038   (eval "$ac_compile") 2>conftest.er1
27039   ac_status=$?
27040   grep -v '^ *+' conftest.er1 >conftest.err
27041   rm -f conftest.er1
27042   cat conftest.err >&5
27043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044   (exit $ac_status); } && {
27045          test -z "$ac_c_werror_flag" ||
27046          test ! -s conftest.err
27047        } && test -s conftest.$ac_objext; then
27048   cat >conftest.$ac_ext <<_ACEOF
27049 /* confdefs.h.  */
27050 _ACEOF
27051 cat confdefs.h >>conftest.$ac_ext
27052 cat >>conftest.$ac_ext <<_ACEOF
27053 /* end confdefs.h.  */
27054 #include <stdio.h>
27055 #ifdef HAVE_SUPPORTDEFS_H
27056 #include <SupportDefs.h>
27057 #endif
27058
27059 int
27060 main ()
27061 {
27062 if (sizeof ((uint8)))
27063           return 0;
27064   ;
27065   return 0;
27066 }
27067 _ACEOF
27068 rm -f conftest.$ac_objext
27069 if { (ac_try="$ac_compile"
27070 case "(($ac_try" in
27071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072   *) ac_try_echo=$ac_try;;
27073 esac
27074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27075 $as_echo "$ac_try_echo") >&5
27076   (eval "$ac_compile") 2>conftest.er1
27077   ac_status=$?
27078   grep -v '^ *+' conftest.er1 >conftest.err
27079   rm -f conftest.er1
27080   cat conftest.err >&5
27081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082   (exit $ac_status); } && {
27083          test -z "$ac_c_werror_flag" ||
27084          test ! -s conftest.err
27085        } && test -s conftest.$ac_objext; then
27086   :
27087 else
27088   $as_echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27090
27091         ac_cv_type_uint8=yes
27092 fi
27093
27094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27095 else
27096   $as_echo "$as_me: failed program was:" >&5
27097 sed 's/^/| /' conftest.$ac_ext >&5
27098
27099
27100 fi
27101
27102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27103 fi
27104 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27105 $as_echo "$ac_cv_type_uint8" >&6; }
27106 if test "x$ac_cv_type_uint8" = x""yes; then
27107
27108 cat >>confdefs.h <<_ACEOF
27109 #define HAVE_UINT8 1
27110 _ACEOF
27111
27112
27113 fi
27114 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27115 $as_echo_n "checking for int64... " >&6; }
27116 if test "${ac_cv_type_int64+set}" = set; then
27117   $as_echo_n "(cached) " >&6
27118 else
27119   ac_cv_type_int64=no
27120 cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h.  */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h.  */
27126 #include <stdio.h>
27127 #ifdef HAVE_SUPPORTDEFS_H
27128 #include <SupportDefs.h>
27129 #endif
27130
27131 int
27132 main ()
27133 {
27134 if (sizeof (int64))
27135        return 0;
27136   ;
27137   return 0;
27138 }
27139 _ACEOF
27140 rm -f conftest.$ac_objext
27141 if { (ac_try="$ac_compile"
27142 case "(($ac_try" in
27143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144   *) ac_try_echo=$ac_try;;
27145 esac
27146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27147 $as_echo "$ac_try_echo") >&5
27148   (eval "$ac_compile") 2>conftest.er1
27149   ac_status=$?
27150   grep -v '^ *+' conftest.er1 >conftest.err
27151   rm -f conftest.er1
27152   cat conftest.err >&5
27153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); } && {
27155          test -z "$ac_c_werror_flag" ||
27156          test ! -s conftest.err
27157        } && test -s conftest.$ac_objext; then
27158   cat >conftest.$ac_ext <<_ACEOF
27159 /* confdefs.h.  */
27160 _ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h.  */
27164 #include <stdio.h>
27165 #ifdef HAVE_SUPPORTDEFS_H
27166 #include <SupportDefs.h>
27167 #endif
27168
27169 int
27170 main ()
27171 {
27172 if (sizeof ((int64)))
27173           return 0;
27174   ;
27175   return 0;
27176 }
27177 _ACEOF
27178 rm -f conftest.$ac_objext
27179 if { (ac_try="$ac_compile"
27180 case "(($ac_try" in
27181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27182   *) ac_try_echo=$ac_try;;
27183 esac
27184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27185 $as_echo "$ac_try_echo") >&5
27186   (eval "$ac_compile") 2>conftest.er1
27187   ac_status=$?
27188   grep -v '^ *+' conftest.er1 >conftest.err
27189   rm -f conftest.er1
27190   cat conftest.err >&5
27191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); } && {
27193          test -z "$ac_c_werror_flag" ||
27194          test ! -s conftest.err
27195        } && test -s conftest.$ac_objext; then
27196   :
27197 else
27198   $as_echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27200
27201         ac_cv_type_int64=yes
27202 fi
27203
27204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27205 else
27206   $as_echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27208
27209
27210 fi
27211
27212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27213 fi
27214 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27215 $as_echo "$ac_cv_type_int64" >&6; }
27216 if test "x$ac_cv_type_int64" = x""yes; then
27217
27218 cat >>confdefs.h <<_ACEOF
27219 #define HAVE_INT64 1
27220 _ACEOF
27221
27222
27223 fi
27224 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27225 $as_echo_n "checking for uint64... " >&6; }
27226 if test "${ac_cv_type_uint64+set}" = set; then
27227   $as_echo_n "(cached) " >&6
27228 else
27229   ac_cv_type_uint64=no
27230 cat >conftest.$ac_ext <<_ACEOF
27231 /* confdefs.h.  */
27232 _ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h.  */
27236 #include <stdio.h>
27237 #ifdef HAVE_SUPPORTDEFS_H
27238 #include <SupportDefs.h>
27239 #endif
27240
27241 int
27242 main ()
27243 {
27244 if (sizeof (uint64))
27245        return 0;
27246   ;
27247   return 0;
27248 }
27249 _ACEOF
27250 rm -f conftest.$ac_objext
27251 if { (ac_try="$ac_compile"
27252 case "(($ac_try" in
27253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254   *) ac_try_echo=$ac_try;;
27255 esac
27256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27257 $as_echo "$ac_try_echo") >&5
27258   (eval "$ac_compile") 2>conftest.er1
27259   ac_status=$?
27260   grep -v '^ *+' conftest.er1 >conftest.err
27261   rm -f conftest.er1
27262   cat conftest.err >&5
27263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); } && {
27265          test -z "$ac_c_werror_flag" ||
27266          test ! -s conftest.err
27267        } && test -s conftest.$ac_objext; then
27268   cat >conftest.$ac_ext <<_ACEOF
27269 /* confdefs.h.  */
27270 _ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h.  */
27274 #include <stdio.h>
27275 #ifdef HAVE_SUPPORTDEFS_H
27276 #include <SupportDefs.h>
27277 #endif
27278
27279 int
27280 main ()
27281 {
27282 if (sizeof ((uint64)))
27283           return 0;
27284   ;
27285   return 0;
27286 }
27287 _ACEOF
27288 rm -f conftest.$ac_objext
27289 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27297   ac_status=$?
27298   grep -v '^ *+' conftest.er1 >conftest.err
27299   rm -f conftest.er1
27300   cat conftest.err >&5
27301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302   (exit $ac_status); } && {
27303          test -z "$ac_c_werror_flag" ||
27304          test ! -s conftest.err
27305        } && test -s conftest.$ac_objext; then
27306   :
27307 else
27308   $as_echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27310
27311         ac_cv_type_uint64=yes
27312 fi
27313
27314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27315 else
27316   $as_echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319
27320 fi
27321
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323 fi
27324 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27325 $as_echo "$ac_cv_type_uint64" >&6; }
27326 if test "x$ac_cv_type_uint64" = x""yes; then
27327
27328 cat >>confdefs.h <<_ACEOF
27329 #define HAVE_UINT64 1
27330 _ACEOF
27331
27332
27333 fi
27334
27335
27336 # We also check for sig_atomic_t, which *should* be defined per ANSI
27337 # C, but is missing on some old platforms.
27338 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27339 $as_echo_n "checking for sig_atomic_t... " >&6; }
27340 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27341   $as_echo_n "(cached) " >&6
27342 else
27343   ac_cv_type_sig_atomic_t=no
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 #include <signal.h>
27351
27352 int
27353 main ()
27354 {
27355 if (sizeof (sig_atomic_t))
27356        return 0;
27357   ;
27358   return 0;
27359 }
27360 _ACEOF
27361 rm -f conftest.$ac_objext
27362 if { (ac_try="$ac_compile"
27363 case "(($ac_try" in
27364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27365   *) ac_try_echo=$ac_try;;
27366 esac
27367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27368 $as_echo "$ac_try_echo") >&5
27369   (eval "$ac_compile") 2>conftest.er1
27370   ac_status=$?
27371   grep -v '^ *+' conftest.er1 >conftest.err
27372   rm -f conftest.er1
27373   cat conftest.err >&5
27374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); } && {
27376          test -z "$ac_c_werror_flag" ||
27377          test ! -s conftest.err
27378        } && test -s conftest.$ac_objext; then
27379   cat >conftest.$ac_ext <<_ACEOF
27380 /* confdefs.h.  */
27381 _ACEOF
27382 cat confdefs.h >>conftest.$ac_ext
27383 cat >>conftest.$ac_ext <<_ACEOF
27384 /* end confdefs.h.  */
27385 #include <signal.h>
27386
27387 int
27388 main ()
27389 {
27390 if (sizeof ((sig_atomic_t)))
27391           return 0;
27392   ;
27393   return 0;
27394 }
27395 _ACEOF
27396 rm -f conftest.$ac_objext
27397 if { (ac_try="$ac_compile"
27398 case "(($ac_try" in
27399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400   *) ac_try_echo=$ac_try;;
27401 esac
27402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27403 $as_echo "$ac_try_echo") >&5
27404   (eval "$ac_compile") 2>conftest.er1
27405   ac_status=$?
27406   grep -v '^ *+' conftest.er1 >conftest.err
27407   rm -f conftest.er1
27408   cat conftest.err >&5
27409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410   (exit $ac_status); } && {
27411          test -z "$ac_c_werror_flag" ||
27412          test ! -s conftest.err
27413        } && test -s conftest.$ac_objext; then
27414   :
27415 else
27416   $as_echo "$as_me: failed program was:" >&5
27417 sed 's/^/| /' conftest.$ac_ext >&5
27418
27419         ac_cv_type_sig_atomic_t=yes
27420 fi
27421
27422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27423 else
27424   $as_echo "$as_me: failed program was:" >&5
27425 sed 's/^/| /' conftest.$ac_ext >&5
27426
27427
27428 fi
27429
27430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27431 fi
27432 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27433 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27434 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27435
27436 cat >>confdefs.h <<_ACEOF
27437 #define HAVE_SIG_ATOMIC_T 1
27438 _ACEOF
27439
27440
27441 fi
27442
27443
27444
27445 if test "$PORTNAME" != "win32"
27446 then
27447 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27448 $as_echo_n "checking for POSIX signal interface... " >&6; }
27449 if test "${pgac_cv_func_posix_signals+set}" = set; then
27450   $as_echo_n "(cached) " >&6
27451 else
27452   cat >conftest.$ac_ext <<_ACEOF
27453 /* confdefs.h.  */
27454 _ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h.  */
27458 #include <signal.h>
27459
27460 int
27461 main ()
27462 {
27463 struct sigaction act, oact;
27464 sigemptyset(&act.sa_mask);
27465 act.sa_flags = SA_RESTART;
27466 sigaction(0, &act, &oact);
27467   ;
27468   return 0;
27469 }
27470 _ACEOF
27471 rm -f conftest.$ac_objext conftest$ac_exeext
27472 if { (ac_try="$ac_link"
27473 case "(($ac_try" in
27474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475   *) ac_try_echo=$ac_try;;
27476 esac
27477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27478 $as_echo "$ac_try_echo") >&5
27479   (eval "$ac_link") 2>conftest.er1
27480   ac_status=$?
27481   grep -v '^ *+' conftest.er1 >conftest.err
27482   rm -f conftest.er1
27483   cat conftest.err >&5
27484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485   (exit $ac_status); } && {
27486          test -z "$ac_c_werror_flag" ||
27487          test ! -s conftest.err
27488        } && test -s conftest$ac_exeext && {
27489          test "$cross_compiling" = yes ||
27490          $as_test_x conftest$ac_exeext
27491        }; then
27492   pgac_cv_func_posix_signals=yes
27493 else
27494   $as_echo "$as_me: failed program was:" >&5
27495 sed 's/^/| /' conftest.$ac_ext >&5
27496
27497         pgac_cv_func_posix_signals=no
27498 fi
27499
27500 rm -rf conftest.dSYM
27501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27502       conftest$ac_exeext conftest.$ac_ext
27503 fi
27504 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27505 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27506 if test x"$pgac_cv_func_posix_signals" = xyes ; then
27507
27508 cat >>confdefs.h <<\_ACEOF
27509 #define HAVE_POSIX_SIGNALS /**/
27510 _ACEOF
27511
27512 fi
27513 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
27514
27515 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27516   { { $as_echo "$as_me:$LINENO: error:
27517 Thread-safety requires POSIX signals, which are not supported by this
27518 operating system;  use --disable-thread-safety to disable thread safety." >&5
27519 $as_echo "$as_me: error:
27520 Thread-safety requires POSIX signals, which are not supported by this
27521 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
27522    { (exit 1); exit 1; }; }
27523 fi
27524 fi
27525
27526 # SunOS doesn't handle negative byte comparisons properly with +/- return
27527 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27528 $as_echo_n "checking for working memcmp... " >&6; }
27529 if test "${ac_cv_func_memcmp_working+set}" = set; then
27530   $as_echo_n "(cached) " >&6
27531 else
27532   if test "$cross_compiling" = yes; then
27533   ac_cv_func_memcmp_working=no
27534 else
27535   cat >conftest.$ac_ext <<_ACEOF
27536 /* confdefs.h.  */
27537 _ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h.  */
27541 $ac_includes_default
27542 int
27543 main ()
27544 {
27545
27546   /* Some versions of memcmp are not 8-bit clean.  */
27547   char c0 = '\100', c1 = '\200', c2 = '\201';
27548   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27549     return 1;
27550
27551   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27552      or more and with at least one buffer not starting on a 4-byte boundary.
27553      William Lewis provided this test program.   */
27554   {
27555     char foo[21];
27556     char bar[21];
27557     int i;
27558     for (i = 0; i < 4; i++)
27559       {
27560         char *a = foo + i;
27561         char *b = bar + i;
27562         strcpy (a, "--------01111111");
27563         strcpy (b, "--------10000000");
27564         if (memcmp (a, b, 16) >= 0)
27565           return 1;
27566       }
27567     return 0;
27568   }
27569
27570   ;
27571   return 0;
27572 }
27573 _ACEOF
27574 rm -f conftest$ac_exeext
27575 if { (ac_try="$ac_link"
27576 case "(($ac_try" in
27577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578   *) ac_try_echo=$ac_try;;
27579 esac
27580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27581 $as_echo "$ac_try_echo") >&5
27582   (eval "$ac_link") 2>&5
27583   ac_status=$?
27584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27586   { (case "(($ac_try" in
27587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588   *) ac_try_echo=$ac_try;;
27589 esac
27590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27591 $as_echo "$ac_try_echo") >&5
27592   (eval "$ac_try") 2>&5
27593   ac_status=$?
27594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); }; }; then
27596   ac_cv_func_memcmp_working=yes
27597 else
27598   $as_echo "$as_me: program exited with status $ac_status" >&5
27599 $as_echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27601
27602 ( exit $ac_status )
27603 ac_cv_func_memcmp_working=no
27604 fi
27605 rm -rf conftest.dSYM
27606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27607 fi
27608
27609
27610 fi
27611 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27612 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27613 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27614   *" memcmp.$ac_objext "* ) ;;
27615   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27616  ;;
27617 esac
27618
27619
27620
27621
27622 # Select semaphore implementation type.
27623 if test "$PORTNAME" != "win32"; then
27624   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27625
27626 cat >>confdefs.h <<\_ACEOF
27627 #define USE_NAMED_POSIX_SEMAPHORES 1
27628 _ACEOF
27629
27630     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27631   else
27632     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27633
27634 cat >>confdefs.h <<\_ACEOF
27635 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27636 _ACEOF
27637
27638       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27639     else
27640
27641 cat >>confdefs.h <<\_ACEOF
27642 #define USE_SYSV_SEMAPHORES 1
27643 _ACEOF
27644
27645       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27646     fi
27647   fi
27648 else
27649
27650 cat >>confdefs.h <<\_ACEOF
27651 #define USE_WIN32_SEMAPHORES 1
27652 _ACEOF
27653
27654   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27655 fi
27656
27657
27658 # Select shared-memory implementation type.
27659 if test "$PORTNAME" != "win32"; then
27660
27661 cat >>confdefs.h <<\_ACEOF
27662 #define USE_SYSV_SHARED_MEMORY 1
27663 _ACEOF
27664
27665   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27666 else
27667
27668 cat >>confdefs.h <<\_ACEOF
27669 #define USE_WIN32_SHARED_MEMORY 1
27670 _ACEOF
27671
27672   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27673 fi
27674
27675 # If not set in template file, set bytes to use libc memset()
27676 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27677   MEMSET_LOOP_LIMIT=1024
27678 fi
27679
27680 cat >>confdefs.h <<_ACEOF
27681 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27682 _ACEOF
27683
27684
27685
27686 if test "$enable_nls" = yes ; then
27687
27688   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27689 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27690 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27691   $as_echo_n "(cached) " >&6
27692 else
27693   ac_func_search_save_LIBS=$LIBS
27694 cat >conftest.$ac_ext <<_ACEOF
27695 /* confdefs.h.  */
27696 _ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h.  */
27700
27701 /* Override any GCC internal prototype to avoid an error.
27702    Use char because int might match the return type of a GCC
27703    builtin and then its argument prototype would still apply.  */
27704 #ifdef __cplusplus
27705 extern "C"
27706 #endif
27707 char bind_textdomain_codeset ();
27708 int
27709 main ()
27710 {
27711 return bind_textdomain_codeset ();
27712   ;
27713   return 0;
27714 }
27715 _ACEOF
27716 for ac_lib in '' intl; do
27717   if test -z "$ac_lib"; then
27718     ac_res="none required"
27719   else
27720     ac_res=-l$ac_lib
27721     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27722   fi
27723   rm -f conftest.$ac_objext conftest$ac_exeext
27724 if { (ac_try="$ac_link"
27725 case "(($ac_try" in
27726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727   *) ac_try_echo=$ac_try;;
27728 esac
27729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27730 $as_echo "$ac_try_echo") >&5
27731   (eval "$ac_link") 2>conftest.er1
27732   ac_status=$?
27733   grep -v '^ *+' conftest.er1 >conftest.err
27734   rm -f conftest.er1
27735   cat conftest.err >&5
27736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737   (exit $ac_status); } && {
27738          test -z "$ac_c_werror_flag" ||
27739          test ! -s conftest.err
27740        } && test -s conftest$ac_exeext && {
27741          test "$cross_compiling" = yes ||
27742          $as_test_x conftest$ac_exeext
27743        }; then
27744   ac_cv_search_bind_textdomain_codeset=$ac_res
27745 else
27746   $as_echo "$as_me: failed program was:" >&5
27747 sed 's/^/| /' conftest.$ac_ext >&5
27748
27749
27750 fi
27751
27752 rm -rf conftest.dSYM
27753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27754       conftest$ac_exeext
27755   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27756   break
27757 fi
27758 done
27759 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27760   :
27761 else
27762   ac_cv_search_bind_textdomain_codeset=no
27763 fi
27764 rm conftest.$ac_ext
27765 LIBS=$ac_func_search_save_LIBS
27766 fi
27767 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27768 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27769 ac_res=$ac_cv_search_bind_textdomain_codeset
27770 if test "$ac_res" != no; then
27771   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27772
27773 else
27774   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27775 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27776    { (exit 1); exit 1; }; }
27777 fi
27778
27779   if test "${ac_cv_header_libintl_h+set}" = set; then
27780   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27781 $as_echo_n "checking for libintl.h... " >&6; }
27782 if test "${ac_cv_header_libintl_h+set}" = set; then
27783   $as_echo_n "(cached) " >&6
27784 fi
27785 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27786 $as_echo "$ac_cv_header_libintl_h" >&6; }
27787 else
27788   # Is the header compilable?
27789 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27790 $as_echo_n "checking libintl.h usability... " >&6; }
27791 cat >conftest.$ac_ext <<_ACEOF
27792 /* confdefs.h.  */
27793 _ACEOF
27794 cat confdefs.h >>conftest.$ac_ext
27795 cat >>conftest.$ac_ext <<_ACEOF
27796 /* end confdefs.h.  */
27797 $ac_includes_default
27798 #include <libintl.h>
27799 _ACEOF
27800 rm -f conftest.$ac_objext
27801 if { (ac_try="$ac_compile"
27802 case "(($ac_try" in
27803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804   *) ac_try_echo=$ac_try;;
27805 esac
27806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27807 $as_echo "$ac_try_echo") >&5
27808   (eval "$ac_compile") 2>conftest.er1
27809   ac_status=$?
27810   grep -v '^ *+' conftest.er1 >conftest.err
27811   rm -f conftest.er1
27812   cat conftest.err >&5
27813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814   (exit $ac_status); } && {
27815          test -z "$ac_c_werror_flag" ||
27816          test ! -s conftest.err
27817        } && test -s conftest.$ac_objext; then
27818   ac_header_compiler=yes
27819 else
27820   $as_echo "$as_me: failed program was:" >&5
27821 sed 's/^/| /' conftest.$ac_ext >&5
27822
27823         ac_header_compiler=no
27824 fi
27825
27826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27828 $as_echo "$ac_header_compiler" >&6; }
27829
27830 # Is the header present?
27831 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27832 $as_echo_n "checking libintl.h presence... " >&6; }
27833 cat >conftest.$ac_ext <<_ACEOF
27834 /* confdefs.h.  */
27835 _ACEOF
27836 cat confdefs.h >>conftest.$ac_ext
27837 cat >>conftest.$ac_ext <<_ACEOF
27838 /* end confdefs.h.  */
27839 #include <libintl.h>
27840 _ACEOF
27841 if { (ac_try="$ac_cpp conftest.$ac_ext"
27842 case "(($ac_try" in
27843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844   *) ac_try_echo=$ac_try;;
27845 esac
27846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27847 $as_echo "$ac_try_echo") >&5
27848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27849   ac_status=$?
27850   grep -v '^ *+' conftest.er1 >conftest.err
27851   rm -f conftest.er1
27852   cat conftest.err >&5
27853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); } >/dev/null && {
27855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27856          test ! -s conftest.err
27857        }; then
27858   ac_header_preproc=yes
27859 else
27860   $as_echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27862
27863   ac_header_preproc=no
27864 fi
27865
27866 rm -f conftest.err conftest.$ac_ext
27867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27868 $as_echo "$ac_header_preproc" >&6; }
27869
27870 # So?  What about this header?
27871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27872   yes:no: )
27873     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27874 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27875     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27876 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27877     ac_header_preproc=yes
27878     ;;
27879   no:yes:* )
27880     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27881 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27882     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
27883 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
27884     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27885 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27886     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
27887 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27888     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27889 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27890     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27891 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27892     ( cat <<\_ASBOX
27893 ## ---------------------------------------- ##
27894 ## Report this to pgsql-bugs@postgresql.org ##
27895 ## ---------------------------------------- ##
27896 _ASBOX
27897      ) | sed "s/^/$as_me: WARNING:     /" >&2
27898     ;;
27899 esac
27900 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27901 $as_echo_n "checking for libintl.h... " >&6; }
27902 if test "${ac_cv_header_libintl_h+set}" = set; then
27903   $as_echo_n "(cached) " >&6
27904 else
27905   ac_cv_header_libintl_h=$ac_header_preproc
27906 fi
27907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27908 $as_echo "$ac_cv_header_libintl_h" >&6; }
27909
27910 fi
27911 if test "x$ac_cv_header_libintl_h" = x""yes; then
27912   :
27913 else
27914   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27915 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27916    { (exit 1); exit 1; }; }
27917 fi
27918
27919
27920   for ac_prog in msgfmt
27921 do
27922   # Extract the first word of "$ac_prog", so it can be a program name with args.
27923 set dummy $ac_prog; ac_word=$2
27924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27925 $as_echo_n "checking for $ac_word... " >&6; }
27926 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27927   $as_echo_n "(cached) " >&6
27928 else
27929   if test -n "$MSGFMT"; then
27930   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
27931 else
27932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27933 for as_dir in $PATH
27934 do
27935   IFS=$as_save_IFS
27936   test -z "$as_dir" && as_dir=.
27937   for ac_exec_ext in '' $ac_executable_extensions; do
27938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27939     ac_cv_prog_MSGFMT="$ac_prog"
27940     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27941     break 2
27942   fi
27943 done
27944 done
27945 IFS=$as_save_IFS
27946
27947 fi
27948 fi
27949 MSGFMT=$ac_cv_prog_MSGFMT
27950 if test -n "$MSGFMT"; then
27951   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27952 $as_echo "$MSGFMT" >&6; }
27953 else
27954   { $as_echo "$as_me:$LINENO: result: no" >&5
27955 $as_echo "no" >&6; }
27956 fi
27957
27958
27959   test -n "$MSGFMT" && break
27960 done
27961
27962   if test -z "$MSGFMT"; then
27963     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27964 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27965    { (exit 1); exit 1; }; }
27966   fi
27967   for ac_prog in msgmerge
27968 do
27969   # Extract the first word of "$ac_prog", so it can be a program name with args.
27970 set dummy $ac_prog; ac_word=$2
27971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27972 $as_echo_n "checking for $ac_word... " >&6; }
27973 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27974   $as_echo_n "(cached) " >&6
27975 else
27976   if test -n "$MSGMERGE"; then
27977   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
27978 else
27979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27980 for as_dir in $PATH
27981 do
27982   IFS=$as_save_IFS
27983   test -z "$as_dir" && as_dir=.
27984   for ac_exec_ext in '' $ac_executable_extensions; do
27985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27986     ac_cv_prog_MSGMERGE="$ac_prog"
27987     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27988     break 2
27989   fi
27990 done
27991 done
27992 IFS=$as_save_IFS
27993
27994 fi
27995 fi
27996 MSGMERGE=$ac_cv_prog_MSGMERGE
27997 if test -n "$MSGMERGE"; then
27998   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27999 $as_echo "$MSGMERGE" >&6; }
28000 else
28001   { $as_echo "$as_me:$LINENO: result: no" >&5
28002 $as_echo "no" >&6; }
28003 fi
28004
28005
28006   test -n "$MSGMERGE" && break
28007 done
28008
28009   for ac_prog in xgettext
28010 do
28011   # Extract the first word of "$ac_prog", so it can be a program name with args.
28012 set dummy $ac_prog; ac_word=$2
28013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28014 $as_echo_n "checking for $ac_word... " >&6; }
28015 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28016   $as_echo_n "(cached) " >&6
28017 else
28018   if test -n "$XGETTEXT"; then
28019   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28020 else
28021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28022 for as_dir in $PATH
28023 do
28024   IFS=$as_save_IFS
28025   test -z "$as_dir" && as_dir=.
28026   for ac_exec_ext in '' $ac_executable_extensions; do
28027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28028     ac_cv_prog_XGETTEXT="$ac_prog"
28029     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28030     break 2
28031   fi
28032 done
28033 done
28034 IFS=$as_save_IFS
28035
28036 fi
28037 fi
28038 XGETTEXT=$ac_cv_prog_XGETTEXT
28039 if test -n "$XGETTEXT"; then
28040   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28041 $as_echo "$XGETTEXT" >&6; }
28042 else
28043   { $as_echo "$as_me:$LINENO: result: no" >&5
28044 $as_echo "no" >&6; }
28045 fi
28046
28047
28048   test -n "$XGETTEXT" && break
28049 done
28050
28051
28052 fi
28053
28054 # Check for Tcl configuration script tclConfig.sh
28055 if test "$with_tcl" = yes; then
28056     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28057 do
28058   # Extract the first word of "$ac_prog", so it can be a program name with args.
28059 set dummy $ac_prog; ac_word=$2
28060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28061 $as_echo_n "checking for $ac_word... " >&6; }
28062 if test "${ac_cv_path_TCLSH+set}" = set; then
28063   $as_echo_n "(cached) " >&6
28064 else
28065   case $TCLSH in
28066   [\\/]* | ?:[\\/]*)
28067   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28068   ;;
28069   *)
28070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28071 for as_dir in $PATH
28072 do
28073   IFS=$as_save_IFS
28074   test -z "$as_dir" && as_dir=.
28075   for ac_exec_ext in '' $ac_executable_extensions; do
28076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28077     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28078     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28079     break 2
28080   fi
28081 done
28082 done
28083 IFS=$as_save_IFS
28084
28085   ;;
28086 esac
28087 fi
28088 TCLSH=$ac_cv_path_TCLSH
28089 if test -n "$TCLSH"; then
28090   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28091 $as_echo "$TCLSH" >&6; }
28092 else
28093   { $as_echo "$as_me:$LINENO: result: no" >&5
28094 $as_echo "no" >&6; }
28095 fi
28096
28097
28098   test -n "$TCLSH" && break
28099 done
28100
28101 if test x"$TCLSH" = x""; then
28102   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28103 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28104    { (exit 1); exit 1; }; }
28105 fi
28106
28107 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28108 $as_echo_n "checking for tclConfig.sh... " >&6; }
28109 # Let user override test
28110 if test -z "$TCL_CONFIG_SH"; then
28111     pgac_test_dirs="$with_tclconfig"
28112
28113     set X $pgac_test_dirs; shift
28114     if test $# -eq 0; then
28115         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28116 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28117    { (exit 1); exit 1; }; }
28118         set X `echo 'puts $auto_path' | $TCLSH`; shift
28119     fi
28120
28121     for pgac_dir do
28122         if test -r "$pgac_dir/tclConfig.sh"; then
28123             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28124             break
28125         fi
28126     done
28127 fi
28128
28129 if test -z "$TCL_CONFIG_SH"; then
28130     { $as_echo "$as_me:$LINENO: result: no" >&5
28131 $as_echo "no" >&6; }
28132     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28133 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28134    { (exit 1); exit 1; }; }
28135 else
28136     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28137 $as_echo "$TCL_CONFIG_SH" >&6; }
28138 fi
28139
28140
28141
28142     . "$TCL_CONFIG_SH"
28143 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28144 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28145 eval TCL_LIBS=\"$TCL_LIBS\"
28146 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28147 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28148
28149         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28150     ac_save_CPPFLAGS=$CPPFLAGS
28151     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28152     if test "${ac_cv_header_tcl_h+set}" = set; then
28153   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28154 $as_echo_n "checking for tcl.h... " >&6; }
28155 if test "${ac_cv_header_tcl_h+set}" = set; then
28156   $as_echo_n "(cached) " >&6
28157 fi
28158 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28159 $as_echo "$ac_cv_header_tcl_h" >&6; }
28160 else
28161   # Is the header compilable?
28162 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28163 $as_echo_n "checking tcl.h usability... " >&6; }
28164 cat >conftest.$ac_ext <<_ACEOF
28165 /* confdefs.h.  */
28166 _ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h.  */
28170 $ac_includes_default
28171 #include <tcl.h>
28172 _ACEOF
28173 rm -f conftest.$ac_objext
28174 if { (ac_try="$ac_compile"
28175 case "(($ac_try" in
28176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28177   *) ac_try_echo=$ac_try;;
28178 esac
28179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28180 $as_echo "$ac_try_echo") >&5
28181   (eval "$ac_compile") 2>conftest.er1
28182   ac_status=$?
28183   grep -v '^ *+' conftest.er1 >conftest.err
28184   rm -f conftest.er1
28185   cat conftest.err >&5
28186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187   (exit $ac_status); } && {
28188          test -z "$ac_c_werror_flag" ||
28189          test ! -s conftest.err
28190        } && test -s conftest.$ac_objext; then
28191   ac_header_compiler=yes
28192 else
28193   $as_echo "$as_me: failed program was:" >&5
28194 sed 's/^/| /' conftest.$ac_ext >&5
28195
28196         ac_header_compiler=no
28197 fi
28198
28199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28200 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28201 $as_echo "$ac_header_compiler" >&6; }
28202
28203 # Is the header present?
28204 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28205 $as_echo_n "checking tcl.h presence... " >&6; }
28206 cat >conftest.$ac_ext <<_ACEOF
28207 /* confdefs.h.  */
28208 _ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h.  */
28212 #include <tcl.h>
28213 _ACEOF
28214 if { (ac_try="$ac_cpp conftest.$ac_ext"
28215 case "(($ac_try" in
28216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217   *) ac_try_echo=$ac_try;;
28218 esac
28219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28220 $as_echo "$ac_try_echo") >&5
28221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28222   ac_status=$?
28223   grep -v '^ *+' conftest.er1 >conftest.err
28224   rm -f conftest.er1
28225   cat conftest.err >&5
28226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); } >/dev/null && {
28228          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28229          test ! -s conftest.err
28230        }; then
28231   ac_header_preproc=yes
28232 else
28233   $as_echo "$as_me: failed program was:" >&5
28234 sed 's/^/| /' conftest.$ac_ext >&5
28235
28236   ac_header_preproc=no
28237 fi
28238
28239 rm -f conftest.err conftest.$ac_ext
28240 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28241 $as_echo "$ac_header_preproc" >&6; }
28242
28243 # So?  What about this header?
28244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28245   yes:no: )
28246     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28247 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28248     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28249 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28250     ac_header_preproc=yes
28251     ;;
28252   no:yes:* )
28253     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28254 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28255     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28256 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28257     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28258 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28259     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28260 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28261     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28262 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28263     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28264 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28265     ( cat <<\_ASBOX
28266 ## ---------------------------------------- ##
28267 ## Report this to pgsql-bugs@postgresql.org ##
28268 ## ---------------------------------------- ##
28269 _ASBOX
28270      ) | sed "s/^/$as_me: WARNING:     /" >&2
28271     ;;
28272 esac
28273 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28274 $as_echo_n "checking for tcl.h... " >&6; }
28275 if test "${ac_cv_header_tcl_h+set}" = set; then
28276   $as_echo_n "(cached) " >&6
28277 else
28278   ac_cv_header_tcl_h=$ac_header_preproc
28279 fi
28280 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28281 $as_echo "$ac_cv_header_tcl_h" >&6; }
28282
28283 fi
28284 if test "x$ac_cv_header_tcl_h" = x""yes; then
28285   :
28286 else
28287   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28288 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28289    { (exit 1); exit 1; }; }
28290 fi
28291
28292
28293     CPPFLAGS=$ac_save_CPPFLAGS
28294 fi
28295
28296 #
28297 # Check for DocBook and tools
28298 #
28299 for ac_prog in onsgmls nsgmls
28300 do
28301   # Extract the first word of "$ac_prog", so it can be a program name with args.
28302 set dummy $ac_prog; ac_word=$2
28303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28304 $as_echo_n "checking for $ac_word... " >&6; }
28305 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28306   $as_echo_n "(cached) " >&6
28307 else
28308   if test -n "$NSGMLS"; then
28309   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28310 else
28311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28312 for as_dir in $PATH
28313 do
28314   IFS=$as_save_IFS
28315   test -z "$as_dir" && as_dir=.
28316   for ac_exec_ext in '' $ac_executable_extensions; do
28317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28318     ac_cv_prog_NSGMLS="$ac_prog"
28319     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28320     break 2
28321   fi
28322 done
28323 done
28324 IFS=$as_save_IFS
28325
28326 fi
28327 fi
28328 NSGMLS=$ac_cv_prog_NSGMLS
28329 if test -n "$NSGMLS"; then
28330   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28331 $as_echo "$NSGMLS" >&6; }
28332 else
28333   { $as_echo "$as_me:$LINENO: result: no" >&5
28334 $as_echo "no" >&6; }
28335 fi
28336
28337
28338   test -n "$NSGMLS" && break
28339 done
28340
28341 for ac_prog in openjade jade
28342 do
28343   # Extract the first word of "$ac_prog", so it can be a program name with args.
28344 set dummy $ac_prog; ac_word=$2
28345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28346 $as_echo_n "checking for $ac_word... " >&6; }
28347 if test "${ac_cv_prog_JADE+set}" = set; then
28348   $as_echo_n "(cached) " >&6
28349 else
28350   if test -n "$JADE"; then
28351   ac_cv_prog_JADE="$JADE" # Let the user override the test.
28352 else
28353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28354 for as_dir in $PATH
28355 do
28356   IFS=$as_save_IFS
28357   test -z "$as_dir" && as_dir=.
28358   for ac_exec_ext in '' $ac_executable_extensions; do
28359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28360     ac_cv_prog_JADE="$ac_prog"
28361     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28362     break 2
28363   fi
28364 done
28365 done
28366 IFS=$as_save_IFS
28367
28368 fi
28369 fi
28370 JADE=$ac_cv_prog_JADE
28371 if test -n "$JADE"; then
28372   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28373 $as_echo "$JADE" >&6; }
28374 else
28375   { $as_echo "$as_me:$LINENO: result: no" >&5
28376 $as_echo "no" >&6; }
28377 fi
28378
28379
28380   test -n "$JADE" && break
28381 done
28382
28383
28384 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28385 $as_echo_n "checking for DocBook V4.2... " >&6; }
28386 if test "${pgac_cv_check_docbook+set}" = set; then
28387   $as_echo_n "(cached) " >&6
28388 else
28389   cat >conftest.sgml <<EOF
28390 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28391 <book>
28392  <title>test</title>
28393  <chapter>
28394   <title>random</title>
28395    <sect1>
28396     <title>testsect</title>
28397     <para>text</para>
28398   </sect1>
28399  </chapter>
28400 </book>
28401 EOF
28402
28403 pgac_cv_check_docbook=no
28404
28405 if test -n "$NSGMLS"; then
28406   $NSGMLS -s conftest.sgml 1>&5 2>&1
28407   if test $? -eq 0; then
28408     pgac_cv_check_docbook=yes
28409   fi
28410 fi
28411 rm -f conftest.sgml
28412 fi
28413 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28414 $as_echo "$pgac_cv_check_docbook" >&6; }
28415
28416 have_docbook=$pgac_cv_check_docbook
28417
28418
28419 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28420 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28421 if test "${pgac_cv_path_stylesheets+set}" = set; then
28422   $as_echo_n "(cached) " >&6
28423 else
28424   if test -n "$DOCBOOKSTYLE"; then
28425   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28426 else
28427   for pgac_prefix in /usr /usr/local /opt /sw; do
28428     for pgac_infix in share lib; do
28429       for pgac_postfix in \
28430         sgml/stylesheets/nwalsh-modular \
28431         sgml/stylesheets/docbook \
28432         sgml/stylesheets/dsssl/docbook \
28433         sgml/docbook-dsssl \
28434         sgml/docbook/dsssl/modular \
28435         sgml/docbook/stylesheet/dsssl/modular \
28436         sgml/docbook/dsssl-stylesheets \
28437         sgml/dsssl/docbook-dsssl-nwalsh
28438       do
28439         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28440         if test -r "$pgac_candidate/html/docbook.dsl" \
28441            && test -r "$pgac_candidate/print/docbook.dsl"
28442         then
28443           pgac_cv_path_stylesheets=$pgac_candidate
28444           break 3
28445         fi
28446       done
28447     done
28448   done
28449 fi
28450 fi
28451
28452 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28453
28454 if test -n "$DOCBOOKSTYLE"; then
28455   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28456 $as_echo "$DOCBOOKSTYLE" >&6; }
28457 else
28458   { $as_echo "$as_me:$LINENO: result: no" >&5
28459 $as_echo "no" >&6; }
28460 fi
28461 if test -n "$DOCBOOKSTYLE"; then
28462   for ac_prog in collateindex.pl
28463 do
28464   # Extract the first word of "$ac_prog", so it can be a program name with args.
28465 set dummy $ac_prog; ac_word=$2
28466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28467 $as_echo_n "checking for $ac_word... " >&6; }
28468 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28469   $as_echo_n "(cached) " >&6
28470 else
28471   case $COLLATEINDEX in
28472   [\\/]* | ?:[\\/]*)
28473   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28474   ;;
28475   *)
28476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28477 for as_dir in $DOCBOOKSTYLE/bin $PATH
28478 do
28479   IFS=$as_save_IFS
28480   test -z "$as_dir" && as_dir=.
28481   for ac_exec_ext in '' $ac_executable_extensions; do
28482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28483     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28484     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28485     break 2
28486   fi
28487 done
28488 done
28489 IFS=$as_save_IFS
28490
28491   ;;
28492 esac
28493 fi
28494 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28495 if test -n "$COLLATEINDEX"; then
28496   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28497 $as_echo "$COLLATEINDEX" >&6; }
28498 else
28499   { $as_echo "$as_me:$LINENO: result: no" >&5
28500 $as_echo "no" >&6; }
28501 fi
28502
28503
28504   test -n "$COLLATEINDEX" && break
28505 done
28506
28507 else
28508   for ac_prog in collateindex.pl
28509 do
28510   # Extract the first word of "$ac_prog", so it can be a program name with args.
28511 set dummy $ac_prog; ac_word=$2
28512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28513 $as_echo_n "checking for $ac_word... " >&6; }
28514 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28515   $as_echo_n "(cached) " >&6
28516 else
28517   case $COLLATEINDEX in
28518   [\\/]* | ?:[\\/]*)
28519   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28520   ;;
28521   *)
28522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28523 for as_dir in $PATH
28524 do
28525   IFS=$as_save_IFS
28526   test -z "$as_dir" && as_dir=.
28527   for ac_exec_ext in '' $ac_executable_extensions; do
28528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28529     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28530     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28531     break 2
28532   fi
28533 done
28534 done
28535 IFS=$as_save_IFS
28536
28537   ;;
28538 esac
28539 fi
28540 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28541 if test -n "$COLLATEINDEX"; then
28542   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28543 $as_echo "$COLLATEINDEX" >&6; }
28544 else
28545   { $as_echo "$as_me:$LINENO: result: no" >&5
28546 $as_echo "no" >&6; }
28547 fi
28548
28549
28550   test -n "$COLLATEINDEX" && break
28551 done
28552
28553 fi
28554 for ac_prog in xsltproc
28555 do
28556   # Extract the first word of "$ac_prog", so it can be a program name with args.
28557 set dummy $ac_prog; ac_word=$2
28558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28559 $as_echo_n "checking for $ac_word... " >&6; }
28560 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28561   $as_echo_n "(cached) " >&6
28562 else
28563   if test -n "$XSLTPROC"; then
28564   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28565 else
28566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28567 for as_dir in $PATH
28568 do
28569   IFS=$as_save_IFS
28570   test -z "$as_dir" && as_dir=.
28571   for ac_exec_ext in '' $ac_executable_extensions; do
28572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28573     ac_cv_prog_XSLTPROC="$ac_prog"
28574     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28575     break 2
28576   fi
28577 done
28578 done
28579 IFS=$as_save_IFS
28580
28581 fi
28582 fi
28583 XSLTPROC=$ac_cv_prog_XSLTPROC
28584 if test -n "$XSLTPROC"; then
28585   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28586 $as_echo "$XSLTPROC" >&6; }
28587 else
28588   { $as_echo "$as_me:$LINENO: result: no" >&5
28589 $as_echo "no" >&6; }
28590 fi
28591
28592
28593   test -n "$XSLTPROC" && break
28594 done
28595
28596 for ac_prog in osx sgml2xml sx
28597 do
28598   # Extract the first word of "$ac_prog", so it can be a program name with args.
28599 set dummy $ac_prog; ac_word=$2
28600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28601 $as_echo_n "checking for $ac_word... " >&6; }
28602 if test "${ac_cv_prog_OSX+set}" = set; then
28603   $as_echo_n "(cached) " >&6
28604 else
28605   if test -n "$OSX"; then
28606   ac_cv_prog_OSX="$OSX" # Let the user override the test.
28607 else
28608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28609 for as_dir in $PATH
28610 do
28611   IFS=$as_save_IFS
28612   test -z "$as_dir" && as_dir=.
28613   for ac_exec_ext in '' $ac_executable_extensions; do
28614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28615     ac_cv_prog_OSX="$ac_prog"
28616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28617     break 2
28618   fi
28619 done
28620 done
28621 IFS=$as_save_IFS
28622
28623 fi
28624 fi
28625 OSX=$ac_cv_prog_OSX
28626 if test -n "$OSX"; then
28627   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28628 $as_echo "$OSX" >&6; }
28629 else
28630   { $as_echo "$as_me:$LINENO: result: no" >&5
28631 $as_echo "no" >&6; }
28632 fi
28633
28634
28635   test -n "$OSX" && break
28636 done
28637
28638
28639 # Thread testing
28640
28641 # We have to run the thread test near the end so we have all our symbols
28642 # defined.  Cross compiling throws a warning.
28643 #
28644 if test "$enable_thread_safety" = yes; then
28645 if test "$PORTNAME" != "win32"
28646 then
28647 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28648 $as_echo_n "checking thread safety of required library functions... " >&6; }
28649
28650 _CFLAGS="$CFLAGS"
28651 _LIBS="$LIBS"
28652 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28653 LIBS="$LIBS $PTHREAD_LIBS"
28654 if test "$cross_compiling" = yes; then
28655   { $as_echo "$as_me:$LINENO: result: maybe" >&5
28656 $as_echo "maybe" >&6; }
28657   { $as_echo "$as_me:$LINENO: WARNING:
28658 *** Skipping thread test program because of cross-compile build.
28659 *** Run the program in src/test/thread on the target machine.
28660 " >&5
28661 $as_echo "$as_me: WARNING:
28662 *** Skipping thread test program because of cross-compile build.
28663 *** Run the program in src/test/thread on the target machine.
28664 " >&2;}
28665 else
28666   cat >conftest.$ac_ext <<_ACEOF
28667 /* confdefs.h.  */
28668 _ACEOF
28669 cat confdefs.h >>conftest.$ac_ext
28670 cat >>conftest.$ac_ext <<_ACEOF
28671 /* end confdefs.h.  */
28672 #include "$srcdir/src/test/thread/thread_test.c"
28673 _ACEOF
28674 rm -f conftest$ac_exeext
28675 if { (ac_try="$ac_link"
28676 case "(($ac_try" in
28677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678   *) ac_try_echo=$ac_try;;
28679 esac
28680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28681 $as_echo "$ac_try_echo") >&5
28682   (eval "$ac_link") 2>&5
28683   ac_status=$?
28684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28686   { (case "(($ac_try" in
28687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688   *) ac_try_echo=$ac_try;;
28689 esac
28690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28691 $as_echo "$ac_try_echo") >&5
28692   (eval "$ac_try") 2>&5
28693   ac_status=$?
28694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695   (exit $ac_status); }; }; then
28696   { $as_echo "$as_me:$LINENO: result: yes" >&5
28697 $as_echo "yes" >&6; }
28698 else
28699   $as_echo "$as_me: program exited with status $ac_status" >&5
28700 $as_echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28702
28703 ( exit $ac_status )
28704 { $as_echo "$as_me:$LINENO: result: no" >&5
28705 $as_echo "no" >&6; }
28706   { { $as_echo "$as_me:$LINENO: error: thread test program failed
28707 This platform is not thread-safe.  Check the file 'config.log' or compile
28708 and run src/test/thread/thread_test for the exact reason.
28709 Use --disable-thread-safety to disable thread safety." >&5
28710 $as_echo "$as_me: error: thread test program failed
28711 This platform is not thread-safe.  Check the file 'config.log' or compile
28712 and run src/test/thread/thread_test for the exact reason.
28713 Use --disable-thread-safety to disable thread safety." >&2;}
28714    { (exit 1); exit 1; }; }
28715 fi
28716 rm -rf conftest.dSYM
28717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28718 fi
28719
28720
28721 CFLAGS="$_CFLAGS"
28722 LIBS="$_LIBS"
28723 else
28724 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28725 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28726 fi
28727 fi
28728
28729 # If compiler will take -Wl,--as-needed (or various platform-specific
28730 # spellings thereof) then add that to LDFLAGS.  This is much easier than
28731 # trying to filter LIBS to the minimum for each executable.
28732 # (Note that shared library links won't use this switch, though.)
28733 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28734 # libreadline; therefore we postpone testing it until we know what library
28735 # dependencies readline has.  The test code will try to link with $LIBS.
28736 if test "$with_readline" = yes; then
28737   link_test_func=readline
28738 else
28739   link_test_func=exit
28740 fi
28741
28742 if test "$PORTNAME" = "darwin"; then
28743   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28744 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28745 pgac_save_LDFLAGS=$LDFLAGS
28746 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28747 if test "$cross_compiling" = yes; then
28748   LDFLAGS="$pgac_save_LDFLAGS"
28749                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28750 $as_echo "assuming no" >&6; }
28751 else
28752   cat >conftest.$ac_ext <<_ACEOF
28753 /* confdefs.h.  */
28754 _ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h.  */
28758 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28759 int
28760 main ()
28761 {
28762
28763   ;
28764   return 0;
28765 }
28766 _ACEOF
28767 rm -f conftest$ac_exeext
28768 if { (ac_try="$ac_link"
28769 case "(($ac_try" in
28770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771   *) ac_try_echo=$ac_try;;
28772 esac
28773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28774 $as_echo "$ac_try_echo") >&5
28775   (eval "$ac_link") 2>&5
28776   ac_status=$?
28777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28779   { (case "(($ac_try" in
28780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781   *) ac_try_echo=$ac_try;;
28782 esac
28783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28784 $as_echo "$ac_try_echo") >&5
28785   (eval "$ac_try") 2>&5
28786   ac_status=$?
28787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788   (exit $ac_status); }; }; then
28789   { $as_echo "$as_me:$LINENO: result: yes" >&5
28790 $as_echo "yes" >&6; }
28791 else
28792   $as_echo "$as_me: program exited with status $ac_status" >&5
28793 $as_echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28795
28796 ( exit $ac_status )
28797 LDFLAGS="$pgac_save_LDFLAGS"
28798                { $as_echo "$as_me:$LINENO: result: no" >&5
28799 $as_echo "no" >&6; }
28800 fi
28801 rm -rf conftest.dSYM
28802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28803 fi
28804
28805
28806
28807 elif test "$PORTNAME" = "openbsd"; then
28808   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28809 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28810 pgac_save_LDFLAGS=$LDFLAGS
28811 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28812 if test "$cross_compiling" = yes; then
28813   LDFLAGS="$pgac_save_LDFLAGS"
28814                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28815 $as_echo "assuming no" >&6; }
28816 else
28817   cat >conftest.$ac_ext <<_ACEOF
28818 /* confdefs.h.  */
28819 _ACEOF
28820 cat confdefs.h >>conftest.$ac_ext
28821 cat >>conftest.$ac_ext <<_ACEOF
28822 /* end confdefs.h.  */
28823 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28824 int
28825 main ()
28826 {
28827
28828   ;
28829   return 0;
28830 }
28831 _ACEOF
28832 rm -f conftest$ac_exeext
28833 if { (ac_try="$ac_link"
28834 case "(($ac_try" in
28835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836   *) ac_try_echo=$ac_try;;
28837 esac
28838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28839 $as_echo "$ac_try_echo") >&5
28840   (eval "$ac_link") 2>&5
28841   ac_status=$?
28842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28844   { (case "(($ac_try" in
28845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846   *) ac_try_echo=$ac_try;;
28847 esac
28848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28849 $as_echo "$ac_try_echo") >&5
28850   (eval "$ac_try") 2>&5
28851   ac_status=$?
28852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); }; }; then
28854   { $as_echo "$as_me:$LINENO: result: yes" >&5
28855 $as_echo "yes" >&6; }
28856 else
28857   $as_echo "$as_me: program exited with status $ac_status" >&5
28858 $as_echo "$as_me: failed program was:" >&5
28859 sed 's/^/| /' conftest.$ac_ext >&5
28860
28861 ( exit $ac_status )
28862 LDFLAGS="$pgac_save_LDFLAGS"
28863                { $as_echo "$as_me:$LINENO: result: no" >&5
28864 $as_echo "no" >&6; }
28865 fi
28866 rm -rf conftest.dSYM
28867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28868 fi
28869
28870
28871
28872 else
28873   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28874 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28875 pgac_save_LDFLAGS=$LDFLAGS
28876 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28877 if test "$cross_compiling" = yes; then
28878   LDFLAGS="$pgac_save_LDFLAGS"
28879                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28880 $as_echo "assuming no" >&6; }
28881 else
28882   cat >conftest.$ac_ext <<_ACEOF
28883 /* confdefs.h.  */
28884 _ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h.  */
28888 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28889 int
28890 main ()
28891 {
28892
28893   ;
28894   return 0;
28895 }
28896 _ACEOF
28897 rm -f conftest$ac_exeext
28898 if { (ac_try="$ac_link"
28899 case "(($ac_try" in
28900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901   *) ac_try_echo=$ac_try;;
28902 esac
28903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28904 $as_echo "$ac_try_echo") >&5
28905   (eval "$ac_link") 2>&5
28906   ac_status=$?
28907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28909   { (case "(($ac_try" in
28910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911   *) ac_try_echo=$ac_try;;
28912 esac
28913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28914 $as_echo "$ac_try_echo") >&5
28915   (eval "$ac_try") 2>&5
28916   ac_status=$?
28917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918   (exit $ac_status); }; }; then
28919   { $as_echo "$as_me:$LINENO: result: yes" >&5
28920 $as_echo "yes" >&6; }
28921 else
28922   $as_echo "$as_me: program exited with status $ac_status" >&5
28923 $as_echo "$as_me: failed program was:" >&5
28924 sed 's/^/| /' conftest.$ac_ext >&5
28925
28926 ( exit $ac_status )
28927 LDFLAGS="$pgac_save_LDFLAGS"
28928                { $as_echo "$as_me:$LINENO: result: no" >&5
28929 $as_echo "no" >&6; }
28930 fi
28931 rm -rf conftest.dSYM
28932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28933 fi
28934
28935
28936
28937 fi
28938
28939
28940 # Begin output steps
28941
28942 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28943 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28944 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28945 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28946 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28947 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28948
28949 # Create compiler version string
28950 if test x"$GCC" = x"yes" ; then
28951   cc_string="GCC `${CC} --version | sed q`"
28952 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
28953   cc_string=`${CC} -V 2>&1 | sed q`
28954 else
28955   cc_string=$CC
28956 fi
28957
28958
28959 cat >>confdefs.h <<_ACEOF
28960 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28961 _ACEOF
28962
28963
28964 # Supply a numeric version string for use by 3rd party add-ons
28965 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28966 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28967 tr '.' '        ' |
28968 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
28969
28970 cat >>confdefs.h <<_ACEOF
28971 #define PG_VERSION_NUM $PG_VERSION_NUM
28972 _ACEOF
28973
28974
28975
28976 # prepare build tree if outside source tree
28977 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28978 # Note 2: /bin/pwd might be better than shell's built-in at getting
28979 #         a symlink-free name.
28980 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28981   vpath_build=no
28982 else
28983   vpath_build=yes
28984   if test "$no_create" != yes; then
28985     $as_echo_n "preparing build tree... " >&6
28986     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
28987     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28988       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
28989 $as_echo "$as_me: error: failed" >&2;}
28990    { (exit 1); exit 1; }; }
28991     { $as_echo "$as_me:$LINENO: result: done" >&5
28992 $as_echo "done" >&6; }
28993   fi
28994 fi
28995
28996
28997
28998 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
28999
29000
29001 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
29002
29003
29004 if test "$PORTNAME" = "win32"; then
29005 ac_config_commands="$ac_config_commands check_win32_symlinks"
29006
29007 fi
29008
29009 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29010
29011
29012 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29013
29014
29015 cat >confcache <<\_ACEOF
29016 # This file is a shell script that caches the results of configure
29017 # tests run on this system so they can be shared between configure
29018 # scripts and configure runs, see configure's option --config-cache.
29019 # It is not useful on other systems.  If it contains results you don't
29020 # want to keep, you may remove or edit it.
29021 #
29022 # config.status only pays attention to the cache file if you give it
29023 # the --recheck option to rerun configure.
29024 #
29025 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29026 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29027 # following values.
29028
29029 _ACEOF
29030
29031 # The following way of writing the cache mishandles newlines in values,
29032 # but we know of no workaround that is simple, portable, and efficient.
29033 # So, we kill variables containing newlines.
29034 # Ultrix sh set writes to stderr and can't be redirected directly,
29035 # and sets the high bit in the cache file unless we assign to the vars.
29036 (
29037   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29038     eval ac_val=\$$ac_var
29039     case $ac_val in #(
29040     *${as_nl}*)
29041       case $ac_var in #(
29042       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29044       esac
29045       case $ac_var in #(
29046       _ | IFS | as_nl) ;; #(
29047       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29048       *) $as_unset $ac_var ;;
29049       esac ;;
29050     esac
29051   done
29052
29053   (set) 2>&1 |
29054     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29055     *${as_nl}ac_space=\ *)
29056       # `set' does not quote correctly, so add quotes (double-quote
29057       # substitution turns \\\\ into \\, and sed turns \\ into \).
29058       sed -n \
29059         "s/'/'\\\\''/g;
29060           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29061       ;; #(
29062     *)
29063       # `set' quotes correctly as required by POSIX, so do not add quotes.
29064       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29065       ;;
29066     esac |
29067     sort
29068 ) |
29069   sed '
29070      /^ac_cv_env_/b end
29071      t clear
29072      :clear
29073      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29074      t end
29075      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29076      :end' >>confcache
29077 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29078   if test -w "$cache_file"; then
29079     test "x$cache_file" != "x/dev/null" &&
29080       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29081 $as_echo "$as_me: updating cache $cache_file" >&6;}
29082     cat confcache >$cache_file
29083   else
29084     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29085 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29086   fi
29087 fi
29088 rm -f confcache
29089
29090 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29091 # Let make expand exec_prefix.
29092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29093
29094 DEFS=-DHAVE_CONFIG_H
29095
29096 ac_libobjs=
29097 ac_ltlibobjs=
29098 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29099   # 1. Remove the extension, and $U if already installed.
29100   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29101   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29102   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29103   #    will be set to the directory where LIBOBJS objects are built.
29104   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29105   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29106 done
29107 LIBOBJS=$ac_libobjs
29108
29109 LTLIBOBJS=$ac_ltlibobjs
29110
29111
29112
29113
29114 : ${CONFIG_STATUS=./config.status}
29115 ac_write_fail=0
29116 ac_clean_files_save=$ac_clean_files
29117 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29118 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29119 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29120 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29121 #! $SHELL
29122 # Generated by $as_me.
29123 # Run this file to recreate the current configuration.
29124 # Compiler output produced by configure, useful for debugging
29125 # configure, is in config.log if it exists.
29126
29127 debug=false
29128 ac_cs_recheck=false
29129 ac_cs_silent=false
29130 SHELL=\${CONFIG_SHELL-$SHELL}
29131 _ACEOF
29132
29133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29134 ## --------------------- ##
29135 ## M4sh Initialization.  ##
29136 ## --------------------- ##
29137
29138 # Be more Bourne compatible
29139 DUALCASE=1; export DUALCASE # for MKS sh
29140 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29141   emulate sh
29142   NULLCMD=:
29143   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29144   # is contrary to our usage.  Disable this feature.
29145   alias -g '${1+"$@"}'='"$@"'
29146   setopt NO_GLOB_SUBST
29147 else
29148   case `(set -o) 2>/dev/null` in
29149   *posix*) set -o posix ;;
29150 esac
29151
29152 fi
29153
29154
29155
29156
29157 # PATH needs CR
29158 # Avoid depending upon Character Ranges.
29159 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29160 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29161 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29162 as_cr_digits='0123456789'
29163 as_cr_alnum=$as_cr_Letters$as_cr_digits
29164
29165 as_nl='
29166 '
29167 export as_nl
29168 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29169 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29172 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29173   as_echo='printf %s\n'
29174   as_echo_n='printf %s'
29175 else
29176   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29177     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29178     as_echo_n='/usr/ucb/echo -n'
29179   else
29180     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29181     as_echo_n_body='eval
29182       arg=$1;
29183       case $arg in
29184       *"$as_nl"*)
29185         expr "X$arg" : "X\\(.*\\)$as_nl";
29186         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29187       esac;
29188       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29189     '
29190     export as_echo_n_body
29191     as_echo_n='sh -c $as_echo_n_body as_echo'
29192   fi
29193   export as_echo_body
29194   as_echo='sh -c $as_echo_body as_echo'
29195 fi
29196
29197 # The user is always right.
29198 if test "${PATH_SEPARATOR+set}" != set; then
29199   PATH_SEPARATOR=:
29200   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29201     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29202       PATH_SEPARATOR=';'
29203   }
29204 fi
29205
29206 # Support unset when possible.
29207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29208   as_unset=unset
29209 else
29210   as_unset=false
29211 fi
29212
29213
29214 # IFS
29215 # We need space, tab and new line, in precisely that order.  Quoting is
29216 # there to prevent editors from complaining about space-tab.
29217 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29218 # splitting by setting IFS to empty value.)
29219 IFS=" ""        $as_nl"
29220
29221 # Find who we are.  Look in the path if we contain no directory separator.
29222 case $0 in
29223   *[\\/]* ) as_myself=$0 ;;
29224   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29225 for as_dir in $PATH
29226 do
29227   IFS=$as_save_IFS
29228   test -z "$as_dir" && as_dir=.
29229   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29230 done
29231 IFS=$as_save_IFS
29232
29233      ;;
29234 esac
29235 # We did not find ourselves, most probably we were run as `sh COMMAND'
29236 # in which case we are not to be found in the path.
29237 if test "x$as_myself" = x; then
29238   as_myself=$0
29239 fi
29240 if test ! -f "$as_myself"; then
29241   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29242   { (exit 1); exit 1; }
29243 fi
29244
29245 # Work around bugs in pre-3.0 UWIN ksh.
29246 for as_var in ENV MAIL MAILPATH
29247 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29248 done
29249 PS1='$ '
29250 PS2='> '
29251 PS4='+ '
29252
29253 # NLS nuisances.
29254 LC_ALL=C
29255 export LC_ALL
29256 LANGUAGE=C
29257 export LANGUAGE
29258
29259 # Required to use basename.
29260 if expr a : '\(a\)' >/dev/null 2>&1 &&
29261    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29262   as_expr=expr
29263 else
29264   as_expr=false
29265 fi
29266
29267 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29268   as_basename=basename
29269 else
29270   as_basename=false
29271 fi
29272
29273
29274 # Name of the executable.
29275 as_me=`$as_basename -- "$0" ||
29276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29277          X"$0" : 'X\(//\)$' \| \
29278          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29279 $as_echo X/"$0" |
29280     sed '/^.*\/\([^/][^/]*\)\/*$/{
29281             s//\1/
29282             q
29283           }
29284           /^X\/\(\/\/\)$/{
29285             s//\1/
29286             q
29287           }
29288           /^X\/\(\/\).*/{
29289             s//\1/
29290             q
29291           }
29292           s/.*/./; q'`
29293
29294 # CDPATH.
29295 $as_unset CDPATH
29296
29297
29298
29299   as_lineno_1=$LINENO
29300   as_lineno_2=$LINENO
29301   test "x$as_lineno_1" != "x$as_lineno_2" &&
29302   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29303
29304   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29305   # uniformly replaced by the line number.  The first 'sed' inserts a
29306   # line-number line after each line using $LINENO; the second 'sed'
29307   # does the real work.  The second script uses 'N' to pair each
29308   # line-number line with the line containing $LINENO, and appends
29309   # trailing '-' during substitution so that $LINENO is not a special
29310   # case at line end.
29311   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29312   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29313   # E. McMahon (1931-1989) for sed's syntax.  :-)
29314   sed -n '
29315     p
29316     /[$]LINENO/=
29317   ' <$as_myself |
29318     sed '
29319       s/[$]LINENO.*/&-/
29320       t lineno
29321       b
29322       :lineno
29323       N
29324       :loop
29325       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29326       t loop
29327       s/-\n.*//
29328     ' >$as_me.lineno &&
29329   chmod +x "$as_me.lineno" ||
29330     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29331    { (exit 1); exit 1; }; }
29332
29333   # Don't try to exec as it changes $[0], causing all sort of problems
29334   # (the dirname of $[0] is not the place where we might find the
29335   # original and so on.  Autoconf is especially sensitive to this).
29336   . "./$as_me.lineno"
29337   # Exit status is that of the last command.
29338   exit
29339 }
29340
29341
29342 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29343   as_dirname=dirname
29344 else
29345   as_dirname=false
29346 fi
29347
29348 ECHO_C= ECHO_N= ECHO_T=
29349 case `echo -n x` in
29350 -n*)
29351   case `echo 'x\c'` in
29352   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29353   *)   ECHO_C='\c';;
29354   esac;;
29355 *)
29356   ECHO_N='-n';;
29357 esac
29358 if expr a : '\(a\)' >/dev/null 2>&1 &&
29359    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29360   as_expr=expr
29361 else
29362   as_expr=false
29363 fi
29364
29365 rm -f conf$$ conf$$.exe conf$$.file
29366 if test -d conf$$.dir; then
29367   rm -f conf$$.dir/conf$$.file
29368 else
29369   rm -f conf$$.dir
29370   mkdir conf$$.dir 2>/dev/null
29371 fi
29372 if (echo >conf$$.file) 2>/dev/null; then
29373   if ln -s conf$$.file conf$$ 2>/dev/null; then
29374     as_ln_s='ln -s'
29375     # ... but there are two gotchas:
29376     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29377     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29378     # In both cases, we have to default to `cp -p'.
29379     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29380       as_ln_s='cp -p'
29381   elif ln conf$$.file conf$$ 2>/dev/null; then
29382     as_ln_s=ln
29383   else
29384     as_ln_s='cp -p'
29385   fi
29386 else
29387   as_ln_s='cp -p'
29388 fi
29389 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29390 rmdir conf$$.dir 2>/dev/null
29391
29392 if mkdir -p . 2>/dev/null; then
29393   as_mkdir_p=:
29394 else
29395   test -d ./-p && rmdir ./-p
29396   as_mkdir_p=false
29397 fi
29398
29399 if test -x / >/dev/null 2>&1; then
29400   as_test_x='test -x'
29401 else
29402   if ls -dL / >/dev/null 2>&1; then
29403     as_ls_L_option=L
29404   else
29405     as_ls_L_option=
29406   fi
29407   as_test_x='
29408     eval sh -c '\''
29409       if test -d "$1"; then
29410         test -d "$1/.";
29411       else
29412         case $1 in
29413         -*)set "./$1";;
29414         esac;
29415         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29416         ???[sx]*):;;*)false;;esac;fi
29417     '\'' sh
29418   '
29419 fi
29420 as_executable_p=$as_test_x
29421
29422 # Sed expression to map a string onto a valid CPP name.
29423 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29424
29425 # Sed expression to map a string onto a valid variable name.
29426 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29427
29428
29429 exec 6>&1
29430
29431 # Save the log message, to keep $[0] and so on meaningful, and to
29432 # report actual input values of CONFIG_FILES etc. instead of their
29433 # values after options handling.
29434 ac_log="
29435 This file was extended by PostgreSQL $as_me 9.0beta1, which was
29436 generated by GNU Autoconf 2.63.  Invocation command line was
29437
29438   CONFIG_FILES    = $CONFIG_FILES
29439   CONFIG_HEADERS  = $CONFIG_HEADERS
29440   CONFIG_LINKS    = $CONFIG_LINKS
29441   CONFIG_COMMANDS = $CONFIG_COMMANDS
29442   $ $0 $@
29443
29444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29445 "
29446
29447 _ACEOF
29448
29449 case $ac_config_files in *"
29450 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29451 esac
29452
29453 case $ac_config_headers in *"
29454 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29455 esac
29456
29457
29458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29459 # Files that config.status was made for.
29460 config_files="$ac_config_files"
29461 config_headers="$ac_config_headers"
29462 config_links="$ac_config_links"
29463 config_commands="$ac_config_commands"
29464
29465 _ACEOF
29466
29467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29468 ac_cs_usage="\
29469 \`$as_me' instantiates files from templates according to the
29470 current configuration.
29471
29472 Usage: $0 [OPTION]... [FILE]...
29473
29474   -h, --help       print this help, then exit
29475   -V, --version    print version number and configuration settings, then exit
29476   -q, --quiet, --silent
29477                    do not print progress messages
29478   -d, --debug      don't remove temporary files
29479       --recheck    update $as_me by reconfiguring in the same conditions
29480       --file=FILE[:TEMPLATE]
29481                    instantiate the configuration file FILE
29482       --header=FILE[:TEMPLATE]
29483                    instantiate the configuration header FILE
29484
29485 Configuration files:
29486 $config_files
29487
29488 Configuration headers:
29489 $config_headers
29490
29491 Configuration links:
29492 $config_links
29493
29494 Configuration commands:
29495 $config_commands
29496
29497 Report bugs to <bug-autoconf@gnu.org>."
29498
29499 _ACEOF
29500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29501 ac_cs_version="\\
29502 PostgreSQL config.status 9.0beta1
29503 configured by $0, generated by GNU Autoconf 2.63,
29504   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29505
29506 Copyright (C) 2008 Free Software Foundation, Inc.
29507 This config.status script is free software; the Free Software Foundation
29508 gives unlimited permission to copy, distribute and modify it."
29509
29510 ac_pwd='$ac_pwd'
29511 srcdir='$srcdir'
29512 MKDIR_P='$MKDIR_P'
29513 AWK='$AWK'
29514 test -n "\$AWK" || AWK=awk
29515 _ACEOF
29516
29517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29518 # The default lists apply if the user does not specify any file.
29519 ac_need_defaults=:
29520 while test $# != 0
29521 do
29522   case $1 in
29523   --*=*)
29524     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29525     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29526     ac_shift=:
29527     ;;
29528   *)
29529     ac_option=$1
29530     ac_optarg=$2
29531     ac_shift=shift
29532     ;;
29533   esac
29534
29535   case $ac_option in
29536   # Handling of the options.
29537   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29538     ac_cs_recheck=: ;;
29539   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29540     $as_echo "$ac_cs_version"; exit ;;
29541   --debug | --debu | --deb | --de | --d | -d )
29542     debug=: ;;
29543   --file | --fil | --fi | --f )
29544     $ac_shift
29545     case $ac_optarg in
29546     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29547     esac
29548     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29549     ac_need_defaults=false;;
29550   --header | --heade | --head | --hea )
29551     $ac_shift
29552     case $ac_optarg in
29553     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29554     esac
29555     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29556     ac_need_defaults=false;;
29557   --he | --h)
29558     # Conflict between --help and --header
29559     { $as_echo "$as_me: error: ambiguous option: $1
29560 Try \`$0 --help' for more information." >&2
29561    { (exit 1); exit 1; }; };;
29562   --help | --hel | -h )
29563     $as_echo "$ac_cs_usage"; exit ;;
29564   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29565   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29566     ac_cs_silent=: ;;
29567
29568   # This is an error.
29569   -*) { $as_echo "$as_me: error: unrecognized option: $1
29570 Try \`$0 --help' for more information." >&2
29571    { (exit 1); exit 1; }; } ;;
29572
29573   *) ac_config_targets="$ac_config_targets $1"
29574      ac_need_defaults=false ;;
29575
29576   esac
29577   shift
29578 done
29579
29580 ac_configure_extra_args=
29581
29582 if $ac_cs_silent; then
29583   exec 6>/dev/null
29584   ac_configure_extra_args="$ac_configure_extra_args --silent"
29585 fi
29586
29587 _ACEOF
29588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29589 if \$ac_cs_recheck; then
29590   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29591   shift
29592   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29593   CONFIG_SHELL='$SHELL'
29594   export CONFIG_SHELL
29595   exec "\$@"
29596 fi
29597
29598 _ACEOF
29599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29600 exec 5>>config.log
29601 {
29602   echo
29603   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29604 ## Running $as_me. ##
29605 _ASBOX
29606   $as_echo "$ac_log"
29607 } >&5
29608
29609 _ACEOF
29610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29611 _ACEOF
29612
29613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29614
29615 # Handling of arguments.
29616 for ac_config_target in $ac_config_targets
29617 do
29618   case $ac_config_target in
29619     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29620     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29621     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29622     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29623     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29624     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29625     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29626     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29627     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29628     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29629     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29630     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29631
29632   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29633 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29634    { (exit 1); exit 1; }; };;
29635   esac
29636 done
29637
29638
29639 # If the user did not use the arguments to specify the items to instantiate,
29640 # then the envvar interface is used.  Set only those that are not.
29641 # We use the long form for the default assignment because of an extremely
29642 # bizarre bug on SunOS 4.1.3.
29643 if $ac_need_defaults; then
29644   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29645   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29646   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29647   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29648 fi
29649
29650 # Have a temporary directory for convenience.  Make it in the build tree
29651 # simply because there is no reason against having it here, and in addition,
29652 # creating and moving files from /tmp can sometimes cause problems.
29653 # Hook for its removal unless debugging.
29654 # Note that there is a small window in which the directory will not be cleaned:
29655 # after its creation but before its name has been assigned to `$tmp'.
29656 $debug ||
29657 {
29658   tmp=
29659   trap 'exit_status=$?
29660   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29661 ' 0
29662   trap '{ (exit 1); exit 1; }' 1 2 13 15
29663 }
29664 # Create a (secure) tmp directory for tmp files.
29665
29666 {
29667   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29668   test -n "$tmp" && test -d "$tmp"
29669 }  ||
29670 {
29671   tmp=./conf$$-$RANDOM
29672   (umask 077 && mkdir "$tmp")
29673 } ||
29674 {
29675    $as_echo "$as_me: cannot create a temporary directory in ." >&2
29676    { (exit 1); exit 1; }
29677 }
29678
29679 # Set up the scripts for CONFIG_FILES section.
29680 # No need to generate them if there are no CONFIG_FILES.
29681 # This happens for instance with `./config.status config.h'.
29682 if test -n "$CONFIG_FILES"; then
29683
29684
29685 ac_cr='\r'
29686 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29687 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29688   ac_cs_awk_cr='\\r'
29689 else
29690   ac_cs_awk_cr=$ac_cr
29691 fi
29692
29693 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29694 _ACEOF
29695
29696
29697 {
29698   echo "cat >conf$$subs.awk <<_ACEOF" &&
29699   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29700   echo "_ACEOF"
29701 } >conf$$subs.sh ||
29702   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29703 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29704    { (exit 1); exit 1; }; }
29705 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29706 ac_delim='%!_!# '
29707 for ac_last_try in false false false false false :; do
29708   . ./conf$$subs.sh ||
29709     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29710 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29711    { (exit 1); exit 1; }; }
29712
29713   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29714   if test $ac_delim_n = $ac_delim_num; then
29715     break
29716   elif $ac_last_try; then
29717     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29718 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29719    { (exit 1); exit 1; }; }
29720   else
29721     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29722   fi
29723 done
29724 rm -f conf$$subs.sh
29725
29726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29727 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29728 _ACEOF
29729 sed -n '
29730 h
29731 s/^/S["/; s/!.*/"]=/
29732 p
29733 g
29734 s/^[^!]*!//
29735 :repl
29736 t repl
29737 s/'"$ac_delim"'$//
29738 t delim
29739 :nl
29740 h
29741 s/\(.\{148\}\).*/\1/
29742 t more1
29743 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29744 p
29745 n
29746 b repl
29747 :more1
29748 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29749 p
29750 g
29751 s/.\{148\}//
29752 t nl
29753 :delim
29754 h
29755 s/\(.\{148\}\).*/\1/
29756 t more2
29757 s/["\\]/\\&/g; s/^/"/; s/$/"/
29758 p
29759 b
29760 :more2
29761 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29762 p
29763 g
29764 s/.\{148\}//
29765 t delim
29766 ' <conf$$subs.awk | sed '
29767 /^[^""]/{
29768   N
29769   s/\n//
29770 }
29771 ' >>$CONFIG_STATUS || ac_write_fail=1
29772 rm -f conf$$subs.awk
29773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29774 _ACAWK
29775 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29776   for (key in S) S_is_set[key] = 1
29777   FS = "\a"
29778
29779 }
29780 {
29781   line = $ 0
29782   nfields = split(line, field, "@")
29783   substed = 0
29784   len = length(field[1])
29785   for (i = 2; i < nfields; i++) {
29786     key = field[i]
29787     keylen = length(key)
29788     if (S_is_set[key]) {
29789       value = S[key]
29790       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29791       len += length(value) + length(field[++i])
29792       substed = 1
29793     } else
29794       len += 1 + keylen
29795   }
29796
29797   print line
29798 }
29799
29800 _ACAWK
29801 _ACEOF
29802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29803 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29804   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29805 else
29806   cat
29807 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29808   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29809 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29810    { (exit 1); exit 1; }; }
29811 _ACEOF
29812
29813 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29814 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29815 # trailing colons and then remove the whole line if VPATH becomes empty
29816 # (actually we leave an empty line to preserve line numbers).
29817 if test "x$srcdir" = x.; then
29818   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29819 s/:*\$(srcdir):*/:/
29820 s/:*\${srcdir}:*/:/
29821 s/:*@srcdir@:*/:/
29822 s/^\([^=]*=[     ]*\):*/\1/
29823 s/:*$//
29824 s/^[^=]*=[       ]*$//
29825 }'
29826 fi
29827
29828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29829 fi # test -n "$CONFIG_FILES"
29830
29831 # Set up the scripts for CONFIG_HEADERS section.
29832 # No need to generate them if there are no CONFIG_HEADERS.
29833 # This happens for instance with `./config.status Makefile'.
29834 if test -n "$CONFIG_HEADERS"; then
29835 cat >"$tmp/defines.awk" <<\_ACAWK ||
29836 BEGIN {
29837 _ACEOF
29838
29839 # Transform confdefs.h into an awk script `defines.awk', embedded as
29840 # here-document in config.status, that substitutes the proper values into
29841 # config.h.in to produce config.h.
29842
29843 # Create a delimiter string that does not exist in confdefs.h, to ease
29844 # handling of long lines.
29845 ac_delim='%!_!# '
29846 for ac_last_try in false false :; do
29847   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29848   if test -z "$ac_t"; then
29849     break
29850   elif $ac_last_try; then
29851     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29852 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29853    { (exit 1); exit 1; }; }
29854   else
29855     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29856   fi
29857 done
29858
29859 # For the awk script, D is an array of macro values keyed by name,
29860 # likewise P contains macro parameters if any.  Preserve backslash
29861 # newline sequences.
29862
29863 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29864 sed -n '
29865 s/.\{148\}/&'"$ac_delim"'/g
29866 t rset
29867 :rset
29868 s/^[     ]*#[    ]*define[       ][      ]*/ /
29869 t def
29870 d
29871 :def
29872 s/\\$//
29873 t bsnl
29874 s/["\\]/\\&/g
29875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29876 D["\1"]=" \3"/p
29877 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
29878 d
29879 :bsnl
29880 s/["\\]/\\&/g
29881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
29882 D["\1"]=" \3\\\\\\n"\\/p
29883 t cont
29884 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29885 t cont
29886 d
29887 :cont
29888 n
29889 s/.\{148\}/&'"$ac_delim"'/g
29890 t clear
29891 :clear
29892 s/\\$//
29893 t bsnlc
29894 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29895 d
29896 :bsnlc
29897 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29898 b cont
29899 ' <confdefs.h | sed '
29900 s/'"$ac_delim"'/"\\\
29901 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29902
29903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29904   for (key in D) D_is_set[key] = 1
29905   FS = "\a"
29906 }
29907 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29908   line = \$ 0
29909   split(line, arg, " ")
29910   if (arg[1] == "#") {
29911     defundef = arg[2]
29912     mac1 = arg[3]
29913   } else {
29914     defundef = substr(arg[1], 2)
29915     mac1 = arg[2]
29916   }
29917   split(mac1, mac2, "(") #)
29918   macro = mac2[1]
29919   prefix = substr(line, 1, index(line, defundef) - 1)
29920   if (D_is_set[macro]) {
29921     # Preserve the white space surrounding the "#".
29922     print prefix "define", macro P[macro] D[macro]
29923     next
29924   } else {
29925     # Replace #undef with comments.  This is necessary, for example,
29926     # in the case of _POSIX_SOURCE, which is predefined and required
29927     # on some systems where configure will not decide to define it.
29928     if (defundef == "undef") {
29929       print "/*", prefix defundef, macro, "*/"
29930       next
29931     }
29932   }
29933 }
29934 { print }
29935 _ACAWK
29936 _ACEOF
29937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29938   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29939 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29940    { (exit 1); exit 1; }; }
29941 fi # test -n "$CONFIG_HEADERS"
29942
29943
29944 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
29945 shift
29946 for ac_tag
29947 do
29948   case $ac_tag in
29949   :[FHLC]) ac_mode=$ac_tag; continue;;
29950   esac
29951   case $ac_mode$ac_tag in
29952   :[FHL]*:*);;
29953   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29954 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29955    { (exit 1); exit 1; }; };;
29956   :[FH]-) ac_tag=-:-;;
29957   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29958   esac
29959   ac_save_IFS=$IFS
29960   IFS=:
29961   set x $ac_tag
29962   IFS=$ac_save_IFS
29963   shift
29964   ac_file=$1
29965   shift
29966
29967   case $ac_mode in
29968   :L) ac_source=$1;;
29969   :[FH])
29970     ac_file_inputs=
29971     for ac_f
29972     do
29973       case $ac_f in
29974       -) ac_f="$tmp/stdin";;
29975       *) # Look for the file first in the build tree, then in the source tree
29976          # (if the path is not absolute).  The absolute path cannot be DOS-style,
29977          # because $ac_f cannot contain `:'.
29978          test -f "$ac_f" ||
29979            case $ac_f in
29980            [\\/$]*) false;;
29981            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29982            esac ||
29983            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29984 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29985    { (exit 1); exit 1; }; };;
29986       esac
29987       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29988       ac_file_inputs="$ac_file_inputs '$ac_f'"
29989     done
29990
29991     # Let's still pretend it is `configure' which instantiates (i.e., don't
29992     # use $as_me), people would be surprised to read:
29993     #    /* config.h.  Generated by config.status.  */
29994     configure_input='Generated from '`
29995           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29996         `' by configure.'
29997     if test x"$ac_file" != x-; then
29998       configure_input="$ac_file.  $configure_input"
29999       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30000 $as_echo "$as_me: creating $ac_file" >&6;}
30001     fi
30002     # Neutralize special characters interpreted by sed in replacement strings.
30003     case $configure_input in #(
30004     *\&* | *\|* | *\\* )
30005        ac_sed_conf_input=`$as_echo "$configure_input" |
30006        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30007     *) ac_sed_conf_input=$configure_input;;
30008     esac
30009
30010     case $ac_tag in
30011     *:-:* | *:-) cat >"$tmp/stdin" \
30012       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30013 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30014    { (exit 1); exit 1; }; } ;;
30015     esac
30016     ;;
30017   esac
30018
30019   ac_dir=`$as_dirname -- "$ac_file" ||
30020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30021          X"$ac_file" : 'X\(//\)[^/]' \| \
30022          X"$ac_file" : 'X\(//\)$' \| \
30023          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30024 $as_echo X"$ac_file" |
30025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30026             s//\1/
30027             q
30028           }
30029           /^X\(\/\/\)[^/].*/{
30030             s//\1/
30031             q
30032           }
30033           /^X\(\/\/\)$/{
30034             s//\1/
30035             q
30036           }
30037           /^X\(\/\).*/{
30038             s//\1/
30039             q
30040           }
30041           s/.*/./; q'`
30042   { as_dir="$ac_dir"
30043   case $as_dir in #(
30044   -*) as_dir=./$as_dir;;
30045   esac
30046   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30047     as_dirs=
30048     while :; do
30049       case $as_dir in #(
30050       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30051       *) as_qdir=$as_dir;;
30052       esac
30053       as_dirs="'$as_qdir' $as_dirs"
30054       as_dir=`$as_dirname -- "$as_dir" ||
30055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30056          X"$as_dir" : 'X\(//\)[^/]' \| \
30057          X"$as_dir" : 'X\(//\)$' \| \
30058          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30059 $as_echo X"$as_dir" |
30060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30061             s//\1/
30062             q
30063           }
30064           /^X\(\/\/\)[^/].*/{
30065             s//\1/
30066             q
30067           }
30068           /^X\(\/\/\)$/{
30069             s//\1/
30070             q
30071           }
30072           /^X\(\/\).*/{
30073             s//\1/
30074             q
30075           }
30076           s/.*/./; q'`
30077       test -d "$as_dir" && break
30078     done
30079     test -z "$as_dirs" || eval "mkdir $as_dirs"
30080   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30081 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30082    { (exit 1); exit 1; }; }; }
30083   ac_builddir=.
30084
30085 case "$ac_dir" in
30086 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30087 *)
30088   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30089   # A ".." for each directory in $ac_dir_suffix.
30090   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30091   case $ac_top_builddir_sub in
30092   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30093   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30094   esac ;;
30095 esac
30096 ac_abs_top_builddir=$ac_pwd
30097 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30098 # for backward compatibility:
30099 ac_top_builddir=$ac_top_build_prefix
30100
30101 case $srcdir in
30102   .)  # We are building in place.
30103     ac_srcdir=.
30104     ac_top_srcdir=$ac_top_builddir_sub
30105     ac_abs_top_srcdir=$ac_pwd ;;
30106   [\\/]* | ?:[\\/]* )  # Absolute name.
30107     ac_srcdir=$srcdir$ac_dir_suffix;
30108     ac_top_srcdir=$srcdir
30109     ac_abs_top_srcdir=$srcdir ;;
30110   *) # Relative name.
30111     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30112     ac_top_srcdir=$ac_top_build_prefix$srcdir
30113     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30114 esac
30115 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30116
30117
30118   case $ac_mode in
30119   :F)
30120   #
30121   # CONFIG_FILE
30122   #
30123
30124   ac_MKDIR_P=$MKDIR_P
30125   case $MKDIR_P in
30126   [\\/$]* | ?:[\\/]* ) ;;
30127   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30128   esac
30129 _ACEOF
30130
30131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30132 # If the template does not know about datarootdir, expand it.
30133 # FIXME: This hack should be removed a few years after 2.60.
30134 ac_datarootdir_hack=; ac_datarootdir_seen=
30135
30136 ac_sed_dataroot='
30137 /datarootdir/ {
30138   p
30139   q
30140 }
30141 /@datadir@/p
30142 /@docdir@/p
30143 /@infodir@/p
30144 /@localedir@/p
30145 /@mandir@/p
30146 '
30147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30148 *datarootdir*) ac_datarootdir_seen=yes;;
30149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30150   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30152 _ACEOF
30153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30154   ac_datarootdir_hack='
30155   s&@datadir@&$datadir&g
30156   s&@docdir@&$docdir&g
30157   s&@infodir@&$infodir&g
30158   s&@localedir@&$localedir&g
30159   s&@mandir@&$mandir&g
30160     s&\\\${datarootdir}&$datarootdir&g' ;;
30161 esac
30162 _ACEOF
30163
30164 # Neutralize VPATH when `$srcdir' = `.'.
30165 # Shell code in configure.ac might set extrasub.
30166 # FIXME: do we really want to maintain this feature?
30167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30168 ac_sed_extra="$ac_vpsub
30169 $extrasub
30170 _ACEOF
30171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30172 :t
30173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30174 s|@configure_input@|$ac_sed_conf_input|;t t
30175 s&@top_builddir@&$ac_top_builddir_sub&;t t
30176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30177 s&@srcdir@&$ac_srcdir&;t t
30178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30179 s&@top_srcdir@&$ac_top_srcdir&;t t
30180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30181 s&@builddir@&$ac_builddir&;t t
30182 s&@abs_builddir@&$ac_abs_builddir&;t t
30183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30184 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30185 $ac_datarootdir_hack
30186 "
30187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30188   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30189 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30190    { (exit 1); exit 1; }; }
30191
30192 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30193   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30194   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30195   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30196 which seems to be undefined.  Please make sure it is defined." >&5
30197 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30198 which seems to be undefined.  Please make sure it is defined." >&2;}
30199
30200   rm -f "$tmp/stdin"
30201   case $ac_file in
30202   -) cat "$tmp/out" && rm -f "$tmp/out";;
30203   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30204   esac \
30205   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30206 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30207    { (exit 1); exit 1; }; }
30208  ;;
30209   :H)
30210   #
30211   # CONFIG_HEADER
30212   #
30213   if test x"$ac_file" != x-; then
30214     {
30215       $as_echo "/* $configure_input  */" \
30216       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30217     } >"$tmp/config.h" \
30218       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30219 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30220    { (exit 1); exit 1; }; }
30221     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30222       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30223 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30224     else
30225       rm -f "$ac_file"
30226       mv "$tmp/config.h" "$ac_file" \
30227         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30228 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30229    { (exit 1); exit 1; }; }
30230     fi
30231   else
30232     $as_echo "/* $configure_input  */" \
30233       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30234       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30235 $as_echo "$as_me: error: could not create -" >&2;}
30236    { (exit 1); exit 1; }; }
30237   fi
30238  ;;
30239   :L)
30240   #
30241   # CONFIG_LINK
30242   #
30243
30244   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30245     :
30246   else
30247     # Prefer the file from the source tree if names are identical.
30248     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30249       ac_source=$srcdir/$ac_source
30250     fi
30251
30252     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30253 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30254
30255     if test ! -r "$ac_source"; then
30256       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30257 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30258    { (exit 1); exit 1; }; }
30259     fi
30260     rm -f "$ac_file"
30261
30262     # Try a relative symlink, then a hard link, then a copy.
30263     case $srcdir in
30264     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30265         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30266     esac
30267     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30268       ln "$ac_source" "$ac_file" 2>/dev/null ||
30269       cp -p "$ac_source" "$ac_file" ||
30270       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30271 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30272    { (exit 1); exit 1; }; }
30273   fi
30274  ;;
30275   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30276 $as_echo "$as_me: executing $ac_file commands" >&6;}
30277  ;;
30278   esac
30279
30280
30281   case $ac_file$ac_mode in
30282     "check_win32_symlinks":C)
30283 # Links sometimes fail undetected on Mingw -
30284 # so here we detect it and warn the user
30285 for FILE in $CONFIG_LINKS
30286  do
30287         # test -e works for symlinks in the MinGW console
30288         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30289 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30290  done
30291  ;;
30292     "src/include/pg_config.h":H)
30293 # Update timestamp for pg_config.h (see Makefile.global)
30294 echo >src/include/stamp-h
30295  ;;
30296     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30297
30298   esac
30299 done # for ac_tag
30300
30301
30302 { (exit 0); exit 0; }
30303 _ACEOF
30304 chmod +x $CONFIG_STATUS
30305 ac_clean_files=$ac_clean_files_save
30306
30307 test $ac_write_fail = 0 ||
30308   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30309 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30310    { (exit 1); exit 1; }; }
30311
30312
30313 # configure is writing to config.log, and then calls config.status.
30314 # config.status does its own redirection, appending to config.log.
30315 # Unfortunately, on DOS this fails, as config.log is still kept open
30316 # by configure, so config.status won't be able to write to it; its
30317 # output is simply discarded.  So we exec the FD to /dev/null,
30318 # effectively closing config.log, so it can be properly (re)opened and
30319 # appended to by config.status.  When coming back to configure, we
30320 # need to make the FD available again.
30321 if test "$no_create" != yes; then
30322   ac_cs_success=:
30323   ac_config_status_args=
30324   test "$silent" = yes &&
30325     ac_config_status_args="$ac_config_status_args --quiet"
30326   exec 5>/dev/null
30327   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30328   exec 5>>config.log
30329   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30330   # would make configure fail if this is the last instruction.
30331   $ac_cs_success || { (exit 1); exit 1; }
30332 fi
30333 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30334   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30335 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30336 fi
30337