OSDN Git Service

b6f46f5b22fc7e29a13308859ba348fad361edb1
[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.0.4.
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.0.4'
602 PACKAGE_STRING='PostgreSQL 9.0.4'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT
663 HAVE_POSIX_SIGNALS
664 LDAP_LIBS_BE
665 LDAP_LIBS_FE
666 PTHREAD_CFLAGS
667 PTHREAD_LIBS
668 PTHREAD_CC
669 acx_pthread_config
670 HAVE_IPV6
671 LIBOBJS
672 OSSP_UUID_LIBS
673 ZIC
674 python_additional_libs
675 python_libspec
676 python_libdir
677 python_includespec
678 python_configdir
679 python_version
680 python_majorversion
681 PYTHON
682 perl_embed_ldflags
683 perl_useshrplib
684 perl_privlibexp
685 perl_archlibexp
686 PERL
687 FLEXFLAGS
688 FLEX
689 BISONFLAGS
690 BISON
691 MKDIR_P
692 AWK
693 LN_S
694 TAR
695 WINDRES
696 DLLWRAP
697 DLLTOOL
698 AR
699 STRIP_SHARED_LIB
700 STRIP_STATIC_LIB
701 STRIP
702 RANLIB
703 ld_R_works
704 with_gnu_ld
705 LD
706 LDFLAGS_SL
707 LDFLAGS_EX
708 ELF_SYS
709 EGREP
710 GREP
711 with_zlib
712 with_system_tzdata
713 with_libxslt
714 with_libxml
715 XML2_CONFIG
716 with_ossp_uuid
717 with_openssl
718 with_bonjour
719 with_ldap
720 with_pam
721 krb_srvtab
722 with_krb5
723 with_gssapi
724 with_python
725 with_perl
726 with_tcl
727 enable_thread_safety
728 INCLUDES
729 autodepend
730 TAS
731 GCC
732 CPP
733 SUN_STUDIO_CC
734 OBJEXT
735 EXEEXT
736 ac_ct_CC
737 CPPFLAGS
738 LDFLAGS
739 CFLAGS
740 CC
741 enable_dtrace
742 DTRACEFLAGS
743 DTRACE
744 enable_coverage
745 GENHTML
746 LCOV
747 GCOV
748 enable_profiling
749 enable_debug
750 enable_rpath
751 enable_shared
752 default_port
753 WANTED_LANGUAGES
754 enable_nls
755 PORTNAME
756 host_os
757 host_vendor
758 host_cpu
759 host
760 build_os
761 build_vendor
762 build_cpu
763 build
764 PG_MAJORVERSION
765 configure_args
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files=''
804 ac_user_opts='
805 enable_option_checking
806 with_template
807 with_includes
808 with_libraries
809 with_libs
810 enable_integer_datetimes
811 enable_nls
812 with_pgport
813 enable_shared
814 enable_rpath
815 enable_spinlocks
816 enable_debug
817 enable_profiling
818 enable_coverage
819 enable_dtrace
820 with_blocksize
821 with_segsize
822 with_wal_blocksize
823 with_wal_segsize
824 with_CC
825 enable_depend
826 enable_cassert
827 enable_thread_safety
828 with_tcl
829 with_tclconfig
830 with_perl
831 with_python
832 with_gssapi
833 with_krb5
834 with_krb_srvnam
835 with_pam
836 with_ldap
837 with_bonjour
838 with_openssl
839 with_readline
840 with_libedit_preferred
841 with_ossp_uuid
842 with_libxml
843 with_libxslt
844 with_system_tzdata
845 with_zlib
846 with_gnu_ld
847 enable_largefile
848 enable_float4_byval
849 enable_float8_byval
850 '
851       ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CPP
860 LDFLAGS_EX
861 LDFLAGS_SL
862 DOCBOOKSTYLE'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
912
913 ac_prev=
914 ac_dashdash=
915 for ac_option
916 do
917   # If the previous option needs an argument, assign it.
918   if test -n "$ac_prev"; then
919     eval $ac_prev=\$ac_option
920     ac_prev=
921     continue
922   fi
923
924   case $ac_option in
925   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926   *)    ac_optarg=yes ;;
927   esac
928
929   # Accept the important Cygnus configure options, so we can diagnose typos.
930
931   case $ac_dashdash$ac_option in
932   --)
933     ac_dashdash=yes ;;
934
935   -bindir | --bindir | --bindi | --bind | --bin | --bi)
936     ac_prev=bindir ;;
937   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938     bindir=$ac_optarg ;;
939
940   -build | --build | --buil | --bui | --bu)
941     ac_prev=build_alias ;;
942   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943     build_alias=$ac_optarg ;;
944
945   -cache-file | --cache-file | --cache-fil | --cache-fi \
946   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947     ac_prev=cache_file ;;
948   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950     cache_file=$ac_optarg ;;
951
952   --config-cache | -C)
953     cache_file=config.cache ;;
954
955   -datadir | --datadir | --datadi | --datad)
956     ac_prev=datadir ;;
957   -datadir=* | --datadir=* | --datadi=* | --datad=*)
958     datadir=$ac_optarg ;;
959
960   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961   | --dataroo | --dataro | --datar)
962     ac_prev=datarootdir ;;
963   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965     datarootdir=$ac_optarg ;;
966
967   -disable-* | --disable-*)
968     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969     # Reject names that are not valid shell variable names.
970     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972    { (exit 1); exit 1; }; }
973     ac_useropt_orig=$ac_useropt
974     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975     case $ac_user_opts in
976       *"
977 "enable_$ac_useropt"
978 "*) ;;
979       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980          ac_unrecognized_sep=', ';;
981     esac
982     eval enable_$ac_useropt=no ;;
983
984   -docdir | --docdir | --docdi | --doc | --do)
985     ac_prev=docdir ;;
986   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987     docdir=$ac_optarg ;;
988
989   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990     ac_prev=dvidir ;;
991   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992     dvidir=$ac_optarg ;;
993
994   -enable-* | --enable-*)
995     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996     # Reject names that are not valid shell variable names.
997     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
999    { (exit 1); exit 1; }; }
1000     ac_useropt_orig=$ac_useropt
1001     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002     case $ac_user_opts in
1003       *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007          ac_unrecognized_sep=', ';;
1008     esac
1009     eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013   | --exec | --exe | --ex)
1014     ac_prev=exec_prefix ;;
1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017   | --exec=* | --exe=* | --ex=*)
1018     exec_prefix=$ac_optarg ;;
1019
1020   -gas | --gas | --ga | --g)
1021     # Obsolete; use --with-gas.
1022     with_gas=yes ;;
1023
1024   -help | --help | --hel | --he | -h)
1025     ac_init_help=long ;;
1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027     ac_init_help=recursive ;;
1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029     ac_init_help=short ;;
1030
1031   -host | --host | --hos | --ho)
1032     ac_prev=host_alias ;;
1033   -host=* | --host=* | --hos=* | --ho=*)
1034     host_alias=$ac_optarg ;;
1035
1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037     ac_prev=htmldir ;;
1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039   | --ht=*)
1040     htmldir=$ac_optarg ;;
1041
1042   -includedir | --includedir | --includedi | --included | --include \
1043   | --includ | --inclu | --incl | --inc)
1044     ac_prev=includedir ;;
1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
1047     includedir=$ac_optarg ;;
1048
1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
1050     ac_prev=infodir ;;
1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052     infodir=$ac_optarg ;;
1053
1054   -libdir | --libdir | --libdi | --libd)
1055     ac_prev=libdir ;;
1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057     libdir=$ac_optarg ;;
1058
1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060   | --libexe | --libex | --libe)
1061     ac_prev=libexecdir ;;
1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063   | --libexe=* | --libex=* | --libe=*)
1064     libexecdir=$ac_optarg ;;
1065
1066   -localedir | --localedir | --localedi | --localed | --locale)
1067     ac_prev=localedir ;;
1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069     localedir=$ac_optarg ;;
1070
1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
1072   | --localstate | --localstat | --localsta | --localst | --locals)
1073     ac_prev=localstatedir ;;
1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076     localstatedir=$ac_optarg ;;
1077
1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079     ac_prev=mandir ;;
1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081     mandir=$ac_optarg ;;
1082
1083   -nfp | --nfp | --nf)
1084     # Obsolete; use --without-fp.
1085     with_fp=no ;;
1086
1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088   | --no-cr | --no-c | -n)
1089     no_create=yes ;;
1090
1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093     no_recursion=yes ;;
1094
1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097   | --oldin | --oldi | --old | --ol | --o)
1098     ac_prev=oldincludedir ;;
1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102     oldincludedir=$ac_optarg ;;
1103
1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105     ac_prev=prefix ;;
1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107     prefix=$ac_optarg ;;
1108
1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110   | --program-pre | --program-pr | --program-p)
1111     ac_prev=program_prefix ;;
1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114     program_prefix=$ac_optarg ;;
1115
1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117   | --program-suf | --program-su | --program-s)
1118     ac_prev=program_suffix ;;
1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121     program_suffix=$ac_optarg ;;
1122
1123   -program-transform-name | --program-transform-name \
1124   | --program-transform-nam | --program-transform-na \
1125   | --program-transform-n | --program-transform- \
1126   | --program-transform | --program-transfor \
1127   | --program-transfo | --program-transf \
1128   | --program-trans | --program-tran \
1129   | --progr-tra | --program-tr | --program-t)
1130     ac_prev=program_transform_name ;;
1131   -program-transform-name=* | --program-transform-name=* \
1132   | --program-transform-nam=* | --program-transform-na=* \
1133   | --program-transform-n=* | --program-transform-=* \
1134   | --program-transform=* | --program-transfor=* \
1135   | --program-transfo=* | --program-transf=* \
1136   | --program-trans=* | --program-tran=* \
1137   | --progr-tra=* | --program-tr=* | --program-t=*)
1138     program_transform_name=$ac_optarg ;;
1139
1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141     ac_prev=pdfdir ;;
1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143     pdfdir=$ac_optarg ;;
1144
1145   -psdir | --psdir | --psdi | --psd | --ps)
1146     ac_prev=psdir ;;
1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148     psdir=$ac_optarg ;;
1149
1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151   | -silent | --silent | --silen | --sile | --sil)
1152     silent=yes ;;
1153
1154   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155     ac_prev=sbindir ;;
1156   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157   | --sbi=* | --sb=*)
1158     sbindir=$ac_optarg ;;
1159
1160   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162   | --sharedst | --shareds | --shared | --share | --shar \
1163   | --sha | --sh)
1164     ac_prev=sharedstatedir ;;
1165   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168   | --sha=* | --sh=*)
1169     sharedstatedir=$ac_optarg ;;
1170
1171   -site | --site | --sit)
1172     ac_prev=site ;;
1173   -site=* | --site=* | --sit=*)
1174     site=$ac_optarg ;;
1175
1176   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177     ac_prev=srcdir ;;
1178   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179     srcdir=$ac_optarg ;;
1180
1181   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182   | --syscon | --sysco | --sysc | --sys | --sy)
1183     ac_prev=sysconfdir ;;
1184   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186     sysconfdir=$ac_optarg ;;
1187
1188   -target | --target | --targe | --targ | --tar | --ta | --t)
1189     ac_prev=target_alias ;;
1190   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191     target_alias=$ac_optarg ;;
1192
1193   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194     verbose=yes ;;
1195
1196   -version | --version | --versio | --versi | --vers | -V)
1197     ac_init_version=: ;;
1198
1199   -with-* | --with-*)
1200     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_useropt_orig=$ac_useropt
1206     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207     case $ac_user_opts in
1208       *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212          ac_unrecognized_sep=', ';;
1213     esac
1214     eval with_$ac_useropt=\$ac_optarg ;;
1215
1216   -without-* | --without-*)
1217     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1221    { (exit 1); exit 1; }; }
1222     ac_useropt_orig=$ac_useropt
1223     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224     case $ac_user_opts in
1225       *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229          ac_unrecognized_sep=', ';;
1230     esac
1231     eval with_$ac_useropt=no ;;
1232
1233   --x)
1234     # Obsolete; use --with-x.
1235     with_x=yes ;;
1236
1237   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238   | --x-incl | --x-inc | --x-in | --x-i)
1239     ac_prev=x_includes ;;
1240   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242     x_includes=$ac_optarg ;;
1243
1244   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246     ac_prev=x_libraries ;;
1247   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249     x_libraries=$ac_optarg ;;
1250
1251   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253    { (exit 1); exit 1; }; }
1254     ;;
1255
1256   *=*)
1257     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261    { (exit 1); exit 1; }; }
1262     eval $ac_envvar=\$ac_optarg
1263     export $ac_envvar ;;
1264
1265   *)
1266     # FIXME: should be removed in autoconf 3.0.
1267     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271     ;;
1272
1273   esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1279    { (exit 1); exit 1; }; }
1280 fi
1281
1282 if test -n "$ac_unrecognized_opts"; then
1283   case $enable_option_checking in
1284     no) ;;
1285     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1286    { (exit 1); exit 1; }; } ;;
1287     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288   esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                 datadir sysconfdir sharedstatedir localstatedir includedir \
1294                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                 libdir localedir mandir
1296 do
1297   eval ac_val=\$$ac_var
1298   # Remove trailing slashes.
1299   case $ac_val in
1300     */ )
1301       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302       eval $ac_var=\$ac_val;;
1303   esac
1304   # Be sure to have absolute directory names.
1305   case $ac_val in
1306     [\\/$]* | ?:[\\/]* )  continue;;
1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308   esac
1309   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310    { (exit 1); exit 1; }; }
1311 done
1312
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1319
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322   if test "x$build_alias" = x; then
1323     cross_compiling=maybe
1324     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325     If a cross compiler is detected then cross compile mode will be used." >&2
1326   elif test "x$build_alias" != "x$host_alias"; then
1327     cross_compiling=yes
1328   fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1341    { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1344    { (exit 1); exit 1; }; }
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349   ac_srcdir_defaulted=yes
1350   # Try the directory containing this script, then the parent directory.
1351   ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353          X"$as_myself" : 'X\(//\)[^/]' \| \
1354          X"$as_myself" : 'X\(//\)$' \| \
1355          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)[^/].*/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\).*/{
1370             s//\1/
1371             q
1372           }
1373           s/.*/./; q'`
1374   srcdir=$ac_confdir
1375   if test ! -r "$srcdir/$ac_unique_file"; then
1376     srcdir=..
1377   fi
1378 else
1379   ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384    { (exit 1); exit 1; }; }
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1389    { (exit 1); exit 1; }; }
1390         pwd)`
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393   srcdir=.
1394 fi
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1398 case $srcdir in
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 esac
1401 for ac_var in $ac_precious_vars; do
1402   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403   eval ac_env_${ac_var}_value=\$${ac_var}
1404   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 done
1407
1408 #
1409 # Report the --help message.
1410 #
1411 if test "$ac_init_help" = "long"; then
1412   # Omit some internal or obsolete options to make the list less imposing.
1413   # This message is too long to be a string in the A/UX 3.1 sh.
1414   cat <<_ACEOF
1415 \`configure' configures PostgreSQL 9.0.4 to adapt to many kinds of systems.
1416
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1418
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE.  See below for descriptions of some of the useful variables.
1421
1422 Defaults for the options are specified in brackets.
1423
1424 Configuration:
1425   -h, --help              display this help and exit
1426       --help=short        display options specific to this package
1427       --help=recursive    display the short help of all the included packages
1428   -V, --version           display version information and exit
1429   -q, --quiet, --silent   do not print \`checking...' messages
1430       --cache-file=FILE   cache test results in FILE [disabled]
1431   -C, --config-cache      alias for \`--cache-file=config.cache'
1432   -n, --no-create         do not create output files
1433       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1434
1435 Installation directories:
1436   --prefix=PREFIX         install architecture-independent files in PREFIX
1437                           [$ac_default_prefix]
1438   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1439                           [PREFIX]
1440
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1445
1446 For better control, use the options below.
1447
1448 Fine tuning of the installation directories:
1449   --bindir=DIR            user executables [EPREFIX/bin]
1450   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1451   --libexecdir=DIR        program executables [EPREFIX/libexec]
1452   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1453   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1454   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1455   --libdir=DIR            object code libraries [EPREFIX/lib]
1456   --includedir=DIR        C header files [PREFIX/include]
1457   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1458   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1459   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1460   --infodir=DIR           info documentation [DATAROOTDIR/info]
1461   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1462   --mandir=DIR            man documentation [DATAROOTDIR/man]
1463   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1464   --htmldir=DIR           html documentation [DOCDIR]
1465   --dvidir=DIR            dvi documentation [DOCDIR]
1466   --pdfdir=DIR            pdf documentation [DOCDIR]
1467   --psdir=DIR             ps documentation [DOCDIR]
1468 _ACEOF
1469
1470   cat <<\_ACEOF
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479   case $ac_init_help in
1480      short | recursive ) echo "Configuration of PostgreSQL 9.0.4:";;
1481    esac
1482   cat <<\_ACEOF
1483
1484 Optional Features:
1485   --disable-option-checking  ignore unrecognized --enable/--with options
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --disable-integer-datetimes
1489                           disable 64-bit integer date/time support
1490   --enable-nls[=LANGUAGES]
1491                           enable Native Language Support
1492   --disable-shared        do not build shared libraries
1493   --disable-rpath         do not embed shared library search path in
1494                           executables
1495   --disable-spinlocks     do not use spinlocks
1496   --enable-debug          build with debugging symbols (-g)
1497   --enable-profiling      build with profiling enabled
1498   --enable-coverage       build with coverage testing instrumentation
1499   --enable-dtrace         build with DTrace support
1500   --enable-depend         turn on automatic dependency tracking
1501   --enable-cassert        enable assertion checks (for debugging)
1502   --disable-thread-safety disable thread-safety in client libraries
1503   --disable-largefile     omit support for large files
1504   --disable-float4-byval  disable float4 passed by value
1505   --disable-float8-byval  disable float8 passed by value
1506
1507 Optional Packages:
1508   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1509   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1510   --with-template=NAME    override operating system template
1511   --with-includes=DIRS    look for additional header files in DIRS
1512   --with-libraries=DIRS   look for additional libraries in DIRS
1513   --with-libs=DIRS        alternative spelling of --with-libraries
1514   --with-pgport=PORTNUM   set default port number [5432]
1515   --with-blocksize=BLOCKSIZE
1516                           set table block size in kB [8]
1517   --with-segsize=SEGSIZE  set table segment size in GB [1]
1518   --with-wal-blocksize=BLOCKSIZE
1519                           set WAL block size in kB [8]
1520   --with-wal-segsize=SEGSIZE
1521                           set WAL segment size in MB [16]
1522   --with-CC=CMD           set compiler (deprecated)
1523   --with-tcl              build Tcl modules (PL/Tcl)
1524   --with-tclconfig=DIR    tclConfig.sh is in DIR
1525   --with-perl             build Perl modules (PL/Perl)
1526   --with-python           build Python modules (PL/Python)
1527   --with-gssapi           build with GSSAPI support
1528   --with-krb5             build with Kerberos 5 support
1529   --with-krb-srvnam=NAME  default service principal name in Kerberos
1530                           [postgres]
1531   --with-pam              build with PAM support
1532   --with-ldap             build with LDAP support
1533   --with-bonjour          build with Bonjour support
1534   --with-openssl          build with OpenSSL support
1535   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1536   --with-libedit-preferred
1537                           prefer BSD Libedit over GNU Readline
1538   --with-ossp-uuid        use OSSP UUID library when building
1539                           contrib/uuid-ossp
1540   --with-libxml           build with XML support
1541   --with-libxslt          use XSLT support when building contrib/xml2
1542   --with-system-tzdata=DIR
1543                           use system time zone data in DIR
1544   --without-zlib          do not use Zlib
1545   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546
1547 Some influential environment variables:
1548   CC          C compiler command
1549   CFLAGS      C compiler flags
1550   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551               nonstandard directory <lib dir>
1552   LIBS        libraries to pass to the linker, e.g. -l<library>
1553   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554               you have headers in a nonstandard directory <include dir>
1555   CPP         C preprocessor
1556   LDFLAGS_EX  extra linker flags for linking executables only
1557   LDFLAGS_SL  extra linker flags for linking shared libraries only
1558   DOCBOOKSTYLE
1559               location of DocBook stylesheets
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to <pgsql-bugs@postgresql.org>.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570   # If there are subdirs, report their specific --help.
1571   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572     test -d "$ac_dir" ||
1573       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574       continue
1575     ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581   # A ".." for each directory in $ac_dir_suffix.
1582   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583   case $ac_top_builddir_sub in
1584   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586   esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594   .)  # We are building in place.
1595     ac_srcdir=.
1596     ac_top_srcdir=$ac_top_builddir_sub
1597     ac_abs_top_srcdir=$ac_pwd ;;
1598   [\\/]* | ?:[\\/]* )  # Absolute name.
1599     ac_srcdir=$srcdir$ac_dir_suffix;
1600     ac_top_srcdir=$srcdir
1601     ac_abs_top_srcdir=$srcdir ;;
1602   *) # Relative name.
1603     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604     ac_top_srcdir=$ac_top_build_prefix$srcdir
1605     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609     cd "$ac_dir" || { ac_status=$?; continue; }
1610     # Check for guested configure.
1611     if test -f "$ac_srcdir/configure.gnu"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614     elif test -f "$ac_srcdir/configure"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure" --help=recursive
1617     else
1618       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619     fi || ac_status=$?
1620     cd "$ac_pwd" || { ac_status=$?; break; }
1621   done
1622 fi
1623
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626   cat <<\_ACEOF
1627 PostgreSQL configure 9.0.4
1628 generated by GNU Autoconf 2.63
1629
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634
1635 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1636 _ACEOF
1637   exit
1638 fi
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1642
1643 It was created by PostgreSQL $as_me 9.0.4, which was
1644 generated by GNU Autoconf 2.63.  Invocation command line was
1645
1646   $ $0 $@
1647
1648 _ACEOF
1649 exec 5>>config.log
1650 {
1651 cat <<_ASUNAME
1652 ## --------- ##
1653 ## Platform. ##
1654 ## --------- ##
1655
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1661
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1664
1665 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1666 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1669 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1670 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1671 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1672
1673 _ASUNAME
1674
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   $as_echo "PATH: $as_dir"
1681 done
1682 IFS=$as_save_IFS
1683
1684 } >&5
1685
1686 cat >&5 <<_ACEOF
1687
1688
1689 ## ----------- ##
1690 ## Core tests. ##
1691 ## ----------- ##
1692
1693 _ACEOF
1694
1695
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_configure_args=
1702 ac_configure_args0=
1703 ac_configure_args1=
1704 ac_must_keep_next=false
1705 for ac_pass in 1 2
1706 do
1707   for ac_arg
1708   do
1709     case $ac_arg in
1710     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712     | -silent | --silent | --silen | --sile | --sil)
1713       continue ;;
1714     *\'*)
1715       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716     esac
1717     case $ac_pass in
1718     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1719     2)
1720       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721       if test $ac_must_keep_next = true; then
1722         ac_must_keep_next=false # Got value, back to normal.
1723       else
1724         case $ac_arg in
1725           *=* | --config-cache | -C | -disable-* | --disable-* \
1726           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728           | -with-* | --with-* | -without-* | --without-* | --x)
1729             case "$ac_configure_args0 " in
1730               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731             esac
1732             ;;
1733           -* ) ac_must_keep_next=true ;;
1734         esac
1735       fi
1736       ac_configure_args="$ac_configure_args '$ac_arg'"
1737       ;;
1738     esac
1739   done
1740 done
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1743
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log.  We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750   # Save into config.log some information that might help in debugging.
1751   {
1752     echo
1753
1754     cat <<\_ASBOX
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1758 _ASBOX
1759     echo
1760     # The following way of writing the cache mishandles newlines in values,
1761 (
1762   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763     eval ac_val=\$$ac_var
1764     case $ac_val in #(
1765     *${as_nl}*)
1766       case $ac_var in #(
1767       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769       esac
1770       case $ac_var in #(
1771       _ | IFS | as_nl) ;; #(
1772       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773       *) $as_unset $ac_var ;;
1774       esac ;;
1775     esac
1776   done
1777   (set) 2>&1 |
1778     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779     *${as_nl}ac_space=\ *)
1780       sed -n \
1781         "s/'\''/'\''\\\\'\'''\''/g;
1782           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783       ;; #(
1784     *)
1785       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786       ;;
1787     esac |
1788     sort
1789 )
1790     echo
1791
1792     cat <<\_ASBOX
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1796 _ASBOX
1797     echo
1798     for ac_var in $ac_subst_vars
1799     do
1800       eval ac_val=\$$ac_var
1801       case $ac_val in
1802       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803       esac
1804       $as_echo "$ac_var='\''$ac_val'\''"
1805     done | sort
1806     echo
1807
1808     if test -n "$ac_subst_files"; then
1809       cat <<\_ASBOX
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1813 _ASBOX
1814       echo
1815       for ac_var in $ac_subst_files
1816       do
1817         eval ac_val=\$$ac_var
1818         case $ac_val in
1819         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820         esac
1821         $as_echo "$ac_var='\''$ac_val'\''"
1822       done | sort
1823       echo
1824     fi
1825
1826     if test -s confdefs.h; then
1827       cat <<\_ASBOX
1828 ## ----------- ##
1829 ## confdefs.h. ##
1830 ## ----------- ##
1831 _ASBOX
1832       echo
1833       cat confdefs.h
1834       echo
1835     fi
1836     test "$ac_signal" != 0 &&
1837       $as_echo "$as_me: caught signal $ac_signal"
1838     $as_echo "$as_me: exit $exit_status"
1839   } >&5
1840   rm -f core *.core core.conftest.* &&
1841     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842     exit $exit_status
1843 ' 0
1844 for ac_signal in 1 2 13 15; do
1845   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1846 done
1847 ac_signal=0
1848
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1851
1852 # Predefined preprocessor variables.
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1856 _ACEOF
1857
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1871 _ACEOF
1872
1873
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1876 _ACEOF
1877
1878
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer an explicitly selected file to automatically selected ones.
1881 ac_site_file1=NONE
1882 ac_site_file2=NONE
1883 if test -n "$CONFIG_SITE"; then
1884   ac_site_file1=$CONFIG_SITE
1885 elif test "x$prefix" != xNONE; then
1886   ac_site_file1=$prefix/share/config.site
1887   ac_site_file2=$prefix/etc/config.site
1888 else
1889   ac_site_file1=$ac_default_prefix/share/config.site
1890   ac_site_file2=$ac_default_prefix/etc/config.site
1891 fi
1892 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1893 do
1894   test "x$ac_site_file" = xNONE && continue
1895   if test -r "$ac_site_file"; then
1896     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1898     sed 's/^/| /' "$ac_site_file" >&5
1899     . "$ac_site_file"
1900   fi
1901 done
1902
1903 if test -r "$cache_file"; then
1904   # Some versions of bash will fail to source /dev/null (special
1905   # files actually), so we avoid doing that.
1906   if test -f "$cache_file"; then
1907     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 $as_echo "$as_me: loading cache $cache_file" >&6;}
1909     case $cache_file in
1910       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911       *)                      . "./$cache_file";;
1912     esac
1913   fi
1914 else
1915   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 $as_echo "$as_me: creating cache $cache_file" >&6;}
1917   >$cache_file
1918 fi
1919
1920 # Check that the precious variables saved in the cache have kept the same
1921 # value.
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925   eval ac_new_set=\$ac_env_${ac_var}_set
1926   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927   eval ac_new_val=\$ac_env_${ac_var}_value
1928   case $ac_old_set,$ac_new_set in
1929     set,)
1930       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932       ac_cache_corrupted=: ;;
1933     ,set)
1934       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936       ac_cache_corrupted=: ;;
1937     ,);;
1938     *)
1939       if test "x$ac_old_val" != "x$ac_new_val"; then
1940         # differences in whitespace do not lead to failure.
1941         ac_old_val_w=`echo x $ac_old_val`
1942         ac_new_val_w=`echo x $ac_new_val`
1943         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1944           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946           ac_cache_corrupted=:
1947         else
1948           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1949 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1950           eval $ac_var=\$ac_old_val
1951         fi
1952         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1953 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1954         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1955 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1956       fi;;
1957   esac
1958   # Pass precious variables to config.status.
1959   if test "$ac_new_set" = set; then
1960     case $ac_new_val in
1961     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962     *) ac_arg=$ac_var=$ac_new_val ;;
1963     esac
1964     case " $ac_configure_args " in
1965       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1966       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967     esac
1968   fi
1969 done
1970 if $ac_cache_corrupted; then
1971   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977    { (exit 1); exit 1; }; }
1978 fi
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009
2010
2011
2012
2013
2014
2015 ac_aux_dir=
2016 for ac_dir in config "$srcdir"/config; do
2017   if test -f "$ac_dir/install-sh"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/install-sh -c"
2020     break
2021   elif test -f "$ac_dir/install.sh"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/install.sh -c"
2024     break
2025   elif test -f "$ac_dir/shtool"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/shtool install -c"
2028     break
2029   fi
2030 done
2031 if test -z "$ac_aux_dir"; then
2032   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2033 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2034    { (exit 1); exit 1; }; }
2035 fi
2036
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2044
2045
2046
2047 configure_args=$ac_configure_args
2048
2049
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PG_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2054
2055 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2056
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2060 _ACEOF
2061
2062
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067    { (exit 1); exit 1; }; }
2068
2069 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2070 $as_echo_n "checking build system type... " >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072   $as_echo_n "(cached) " >&6
2073 else
2074   ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080    { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 fi
2087 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 $as_echo "$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2090 *-*-*) ;;
2091 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2093    { (exit 1); exit 1; }; };;
2094 esac
2095 build=$ac_cv_build
2096 ac_save_IFS=$IFS; IFS='-'
2097 set x $ac_cv_build
2098 shift
2099 build_cpu=$1
2100 build_vendor=$2
2101 shift; shift
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2104 build_os=$*
2105 IFS=$ac_save_IFS
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2107
2108
2109 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2110 $as_echo_n "checking host system type... " >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112   $as_echo_n "(cached) " >&6
2113 else
2114   if test "x$host_alias" = x; then
2115   ac_cv_host=$ac_cv_build
2116 else
2117   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123 fi
2124 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 $as_echo "$ac_cv_host" >&6; }
2126 case $ac_cv_host in
2127 *-*-*) ;;
2128 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2130    { (exit 1); exit 1; }; };;
2131 esac
2132 host=$ac_cv_host
2133 ac_save_IFS=$IFS; IFS='-'
2134 set x $ac_cv_host
2135 shift
2136 host_cpu=$1
2137 host_vendor=$2
2138 shift; shift
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2141 host_os=$*
2142 IFS=$ac_save_IFS
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2144
2145
2146
2147 template=
2148 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2149 $as_echo_n "checking which template to use... " >&6; }
2150
2151
2152
2153
2154 # Check whether --with-template was given.
2155 if test "${with_template+set}" = set; then
2156   withval=$with_template;
2157   case $withval in
2158     yes)
2159       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2160 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2161    { (exit 1); exit 1; }; }
2162       ;;
2163     no)
2164       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2165 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2166    { (exit 1); exit 1; }; }
2167       ;;
2168     *)
2169
2170   case $withval in
2171     list)   echo; ls "$srcdir/src/template"; exit;;
2172     *)      if test -f "$srcdir/src/template/$with_template" ; then
2173               template=$withval
2174             else
2175               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2176 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2177    { (exit 1); exit 1; }; }
2178             fi;;
2179   esac
2180
2181       ;;
2182   esac
2183
2184 else
2185
2186 # --with-template not given
2187
2188 case $host_os in
2189      aix*) template=aix ;;
2190     bsdi*) template=bsdi ;;
2191   cygwin*) template=cygwin ;;
2192   darwin*) template=darwin ;;
2193     dgux*) template=dgux ;;
2194  freebsd*) template=freebsd ;;
2195     hpux*) template=hpux ;;
2196     irix*) template=irix ;;
2197  linux*|gnu*|k*bsd*-gnu)
2198            template=linux ;;
2199    mingw*) template=win32 ;;
2200   netbsd*) template=netbsd ;;
2201 nextstep*) template=nextstep ;;
2202  openbsd*) template=openbsd ;;
2203      osf*) template=osf ;;
2204      sco*) template=sco ;;
2205  solaris*) template=solaris ;;
2206    sunos*) template=sunos4 ;;
2207  sysv4.2*)
2208         case $host_vendor in
2209           univel) template=univel ;;
2210         esac ;;
2211    sysv4*) template=svr4 ;;
2212    sysv5*) template=unixware ;;
2213   ultrix*) template=ultrix4 ;;
2214 esac
2215
2216   if test x"$template" = x"" ; then
2217     { { $as_echo "$as_me:$LINENO: error:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration, look into the src/template directory
2221 for a similar platform and use the '--with-template=' option.
2222
2223 Please also contact <pgsql-bugs@postgresql.org> to see about
2224 rectifying this.  Include the above 'checking host system type...'
2225 line.
2226 *******************************************************************
2227 " >&5
2228 $as_echo "$as_me: error:
2229 *******************************************************************
2230 PostgreSQL has apparently not been ported to your platform yet.
2231 To try a manual configuration, look into the src/template directory
2232 for a similar platform and use the '--with-template=' option.
2233
2234 Please also contact <pgsql-bugs@postgresql.org> to see about
2235 rectifying this.  Include the above 'checking host system type...'
2236 line.
2237 *******************************************************************
2238 " >&2;}
2239    { (exit 1); exit 1; }; }
2240   fi
2241
2242
2243 fi
2244
2245
2246
2247 { $as_echo "$as_me:$LINENO: result: $template" >&5
2248 $as_echo "$template" >&6; }
2249
2250 PORTNAME=$template
2251
2252
2253 # Initialize default assumption that we do not need separate assembly code
2254 # for TAS (test-and-set).  This can be overridden by the template file
2255 # when it's executed.
2256 need_tas=no
2257 tas_file=dummy.s
2258
2259
2260
2261 ##
2262 ## Command line options
2263 ##
2264
2265 #
2266 # Add non-standard directories to the include path
2267 #
2268
2269
2270
2271 # Check whether --with-includes was given.
2272 if test "${with_includes+set}" = set; then
2273   withval=$with_includes;
2274   case $withval in
2275     yes)
2276       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2277 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2278    { (exit 1); exit 1; }; }
2279       ;;
2280     no)
2281       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2282 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2283    { (exit 1); exit 1; }; }
2284       ;;
2285     *)
2286
2287       ;;
2288   esac
2289
2290 fi
2291
2292
2293
2294
2295 #
2296 # Add non-standard directories to the library search path
2297 #
2298
2299
2300
2301 # Check whether --with-libraries was given.
2302 if test "${with_libraries+set}" = set; then
2303   withval=$with_libraries;
2304   case $withval in
2305     yes)
2306       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2307 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2308    { (exit 1); exit 1; }; }
2309       ;;
2310     no)
2311       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2312 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2313    { (exit 1); exit 1; }; }
2314       ;;
2315     *)
2316       LIBRARY_DIRS=$withval
2317       ;;
2318   esac
2319
2320 fi
2321
2322
2323
2324
2325
2326
2327 # Check whether --with-libs was given.
2328 if test "${with_libs+set}" = set; then
2329   withval=$with_libs;
2330   case $withval in
2331     yes)
2332       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2333 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2334    { (exit 1); exit 1; }; }
2335       ;;
2336     no)
2337       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2338 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2339    { (exit 1); exit 1; }; }
2340       ;;
2341     *)
2342       LIBRARY_DIRS=$withval
2343       ;;
2344   esac
2345
2346 fi
2347
2348
2349
2350
2351 #
2352 # 64-bit integer date/time storage: enabled by default.
2353 #
2354 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2355 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2356
2357
2358 # Check whether --enable-integer-datetimes was given.
2359 if test "${enable_integer_datetimes+set}" = set; then
2360   enableval=$enable_integer_datetimes;
2361   case $enableval in
2362     yes)
2363
2364 cat >>confdefs.h <<\_ACEOF
2365 #define USE_INTEGER_DATETIMES 1
2366 _ACEOF
2367
2368       ;;
2369     no)
2370       :
2371       ;;
2372     *)
2373       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2374 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2375    { (exit 1); exit 1; }; }
2376       ;;
2377   esac
2378
2379 else
2380   enable_integer_datetimes=yes
2381
2382 cat >>confdefs.h <<\_ACEOF
2383 #define USE_INTEGER_DATETIMES 1
2384 _ACEOF
2385
2386 fi
2387
2388
2389 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2390 $as_echo "$enable_integer_datetimes" >&6; }
2391
2392
2393 #
2394 # NLS
2395 #
2396 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2397 $as_echo_n "checking whether NLS is wanted... " >&6; }
2398
2399
2400 # Check whether --enable-nls was given.
2401 if test "${enable_nls+set}" = set; then
2402   enableval=$enable_nls;
2403   case $enableval in
2404     yes)
2405       :
2406       ;;
2407     no)
2408       :
2409       ;;
2410     *)
2411       enable_nls=yes
2412 WANTED_LANGUAGES=$enableval
2413       ;;
2414   esac
2415
2416 else
2417   enable_nls=no
2418 fi
2419
2420
2421
2422 if test "$enable_nls" = yes; then
2423
2424 cat >>confdefs.h <<\_ACEOF
2425 #define ENABLE_NLS 1
2426 _ACEOF
2427
2428 fi
2429
2430 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2431 $as_echo "$enable_nls" >&6; }
2432
2433
2434
2435 #
2436 # Default port number (--with-pgport), default 5432
2437 #
2438 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2439 $as_echo_n "checking for default port number... " >&6; }
2440
2441
2442
2443 # Check whether --with-pgport was given.
2444 if test "${with_pgport+set}" = set; then
2445   withval=$with_pgport;
2446   case $withval in
2447     yes)
2448       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2449 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2450    { (exit 1); exit 1; }; }
2451       ;;
2452     no)
2453       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2454 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2455    { (exit 1); exit 1; }; }
2456       ;;
2457     *)
2458       default_port=$withval
2459       ;;
2460   esac
2461
2462 else
2463   default_port=5432
2464 fi
2465
2466
2467 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2468 $as_echo "$default_port" >&6; }
2469 # Need both of these because some places want an integer and some a string
2470
2471 cat >>confdefs.h <<_ACEOF
2472 #define DEF_PGPORT ${default_port}
2473 _ACEOF
2474
2475
2476 cat >>confdefs.h <<_ACEOF
2477 #define DEF_PGPORT_STR "${default_port}"
2478 _ACEOF
2479
2480
2481
2482 #
2483 # Option to disable shared libraries
2484 #
2485
2486
2487 # Check whether --enable-shared was given.
2488 if test "${enable_shared+set}" = set; then
2489   enableval=$enable_shared;
2490   case $enableval in
2491     yes)
2492       :
2493       ;;
2494     no)
2495       :
2496       ;;
2497     *)
2498       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2499 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2500    { (exit 1); exit 1; }; }
2501       ;;
2502   esac
2503
2504 else
2505   enable_shared=yes
2506
2507 fi
2508
2509
2510
2511
2512 #
2513 # '-rpath'-like feature can be disabled
2514 #
2515
2516
2517 # Check whether --enable-rpath was given.
2518 if test "${enable_rpath+set}" = set; then
2519   enableval=$enable_rpath;
2520   case $enableval in
2521     yes)
2522       :
2523       ;;
2524     no)
2525       :
2526       ;;
2527     *)
2528       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2529 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2530    { (exit 1); exit 1; }; }
2531       ;;
2532   esac
2533
2534 else
2535   enable_rpath=yes
2536
2537 fi
2538
2539
2540
2541
2542 #
2543 # Spinlocks
2544 #
2545
2546
2547 # Check whether --enable-spinlocks was given.
2548 if test "${enable_spinlocks+set}" = set; then
2549   enableval=$enable_spinlocks;
2550   case $enableval in
2551     yes)
2552       :
2553       ;;
2554     no)
2555       :
2556       ;;
2557     *)
2558       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2559 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2560    { (exit 1); exit 1; }; }
2561       ;;
2562   esac
2563
2564 else
2565   enable_spinlocks=yes
2566
2567 fi
2568
2569
2570
2571 #
2572 # --enable-debug adds -g to compiler flags
2573 #
2574
2575
2576 # Check whether --enable-debug was given.
2577 if test "${enable_debug+set}" = set; then
2578   enableval=$enable_debug;
2579   case $enableval in
2580     yes)
2581       :
2582       ;;
2583     no)
2584       :
2585       ;;
2586     *)
2587       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2588 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2589    { (exit 1); exit 1; }; }
2590       ;;
2591   esac
2592
2593 else
2594   enable_debug=no
2595
2596 fi
2597
2598
2599
2600
2601 #
2602 # --enable-profiling enables gcc profiling
2603 #
2604
2605
2606 # Check whether --enable-profiling was given.
2607 if test "${enable_profiling+set}" = set; then
2608   enableval=$enable_profiling;
2609   case $enableval in
2610     yes)
2611       :
2612       ;;
2613     no)
2614       :
2615       ;;
2616     *)
2617       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2618 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2619    { (exit 1); exit 1; }; }
2620       ;;
2621   esac
2622
2623 else
2624   enable_profiling=no
2625
2626 fi
2627
2628
2629
2630
2631 #
2632 # --enable-coverage enables generation of code coverage metrics with gcov
2633 #
2634
2635
2636 # Check whether --enable-coverage was given.
2637 if test "${enable_coverage+set}" = set; then
2638   enableval=$enable_coverage;
2639   case $enableval in
2640     yes)
2641       for ac_prog in gcov
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_GCOV+set}" = set; then
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$GCOV"; then
2651   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658   for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_GCOV="$ac_prog"
2661     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 GCOV=$ac_cv_prog_GCOV
2671 if test -n "$GCOV"; then
2672   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2673 $as_echo "$GCOV" >&6; }
2674 else
2675   { $as_echo "$as_me:$LINENO: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680   test -n "$GCOV" && break
2681 done
2682
2683 if test -z "$GCOV"; then
2684   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2685 $as_echo "$as_me: error: gcov not found" >&2;}
2686    { (exit 1); exit 1; }; }
2687 fi
2688 for ac_prog in lcov
2689 do
2690   # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_LCOV+set}" = set; then
2695   $as_echo_n "(cached) " >&6
2696 else
2697   if test -n "$LCOV"; then
2698   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705   for ac_exec_ext in '' $ac_executable_extensions; do
2706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707     ac_cv_prog_LCOV="$ac_prog"
2708     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709     break 2
2710   fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 LCOV=$ac_cv_prog_LCOV
2718 if test -n "$LCOV"; then
2719   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2720 $as_echo "$LCOV" >&6; }
2721 else
2722   { $as_echo "$as_me:$LINENO: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727   test -n "$LCOV" && break
2728 done
2729
2730 if test -z "$LCOV"; then
2731   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2732 $as_echo "$as_me: error: lcov not found" >&2;}
2733    { (exit 1); exit 1; }; }
2734 fi
2735 for ac_prog in genhtml
2736 do
2737   # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_GENHTML+set}" = set; then
2742   $as_echo_n "(cached) " >&6
2743 else
2744   if test -n "$GENHTML"; then
2745   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752   for ac_exec_ext in '' $ac_executable_extensions; do
2753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754     ac_cv_prog_GENHTML="$ac_prog"
2755     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756     break 2
2757   fi
2758 done
2759 done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 GENHTML=$ac_cv_prog_GENHTML
2765 if test -n "$GENHTML"; then
2766   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2767 $as_echo "$GENHTML" >&6; }
2768 else
2769   { $as_echo "$as_me:$LINENO: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774   test -n "$GENHTML" && break
2775 done
2776
2777 if test -z "$GENHTML"; then
2778   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2779 $as_echo "$as_me: error: genhtml not found" >&2;}
2780    { (exit 1); exit 1; }; }
2781 fi
2782       ;;
2783     no)
2784       :
2785       ;;
2786     *)
2787       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2788 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2789    { (exit 1); exit 1; }; }
2790       ;;
2791   esac
2792
2793 else
2794   enable_coverage=no
2795
2796 fi
2797
2798
2799
2800
2801 #
2802 # DTrace
2803 #
2804
2805
2806 # Check whether --enable-dtrace was given.
2807 if test "${enable_dtrace+set}" = set; then
2808   enableval=$enable_dtrace;
2809   case $enableval in
2810     yes)
2811
2812 cat >>confdefs.h <<\_ACEOF
2813 #define ENABLE_DTRACE 1
2814 _ACEOF
2815
2816 for ac_prog in dtrace
2817 do
2818   # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_DTRACE+set}" = set; then
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$DTRACE"; then
2826   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833   for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_DTRACE="$ac_prog"
2836     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 DTRACE=$ac_cv_prog_DTRACE
2846 if test -n "$DTRACE"; then
2847   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2848 $as_echo "$DTRACE" >&6; }
2849 else
2850   { $as_echo "$as_me:$LINENO: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855   test -n "$DTRACE" && break
2856 done
2857
2858 if test -z "$DTRACE"; then
2859   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2860 $as_echo "$as_me: error: dtrace not found" >&2;}
2861    { (exit 1); exit 1; }; }
2862 fi
2863
2864       ;;
2865     no)
2866       :
2867       ;;
2868     *)
2869       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2870 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2871    { (exit 1); exit 1; }; }
2872       ;;
2873   esac
2874
2875 else
2876   enable_dtrace=no
2877
2878 fi
2879
2880
2881
2882
2883 #
2884 # Block size
2885 #
2886 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2887 $as_echo_n "checking for block size... " >&6; }
2888
2889
2890
2891 # Check whether --with-blocksize was given.
2892 if test "${with_blocksize+set}" = set; then
2893   withval=$with_blocksize;
2894   case $withval in
2895     yes)
2896       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2897 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2898    { (exit 1); exit 1; }; }
2899       ;;
2900     no)
2901       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2902 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2903    { (exit 1); exit 1; }; }
2904       ;;
2905     *)
2906       blocksize=$withval
2907       ;;
2908   esac
2909
2910 else
2911   blocksize=8
2912 fi
2913
2914
2915 case ${blocksize} in
2916   1) BLCKSZ=1024;;
2917   2) BLCKSZ=2048;;
2918   4) BLCKSZ=4096;;
2919   8) BLCKSZ=8192;;
2920  16) BLCKSZ=16384;;
2921  32) BLCKSZ=32768;;
2922   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2923 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2924    { (exit 1); exit 1; }; }
2925 esac
2926 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2927 $as_echo "${blocksize}kB" >&6; }
2928
2929
2930 cat >>confdefs.h <<_ACEOF
2931 #define BLCKSZ ${BLCKSZ}
2932 _ACEOF
2933
2934
2935 #
2936 # Relation segment size
2937 #
2938 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2939 $as_echo_n "checking for segment size... " >&6; }
2940
2941
2942
2943 # Check whether --with-segsize was given.
2944 if test "${with_segsize+set}" = set; then
2945   withval=$with_segsize;
2946   case $withval in
2947     yes)
2948       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2949 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2950    { (exit 1); exit 1; }; }
2951       ;;
2952     no)
2953       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2954 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2955    { (exit 1); exit 1; }; }
2956       ;;
2957     *)
2958       segsize=$withval
2959       ;;
2960   esac
2961
2962 else
2963   segsize=1
2964 fi
2965
2966
2967 # this expression is set up to avoid unnecessary integer overflow
2968 # blocksize is already guaranteed to be a factor of 1024
2969 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2970 test $? -eq 0 || exit 1
2971 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2972 $as_echo "${segsize}GB" >&6; }
2973
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define RELSEG_SIZE ${RELSEG_SIZE}
2977 _ACEOF
2978
2979
2980 #
2981 # WAL block size
2982 #
2983 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2984 $as_echo_n "checking for WAL block size... " >&6; }
2985
2986
2987
2988 # Check whether --with-wal-blocksize was given.
2989 if test "${with_wal_blocksize+set}" = set; then
2990   withval=$with_wal_blocksize;
2991   case $withval in
2992     yes)
2993       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2994 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2995    { (exit 1); exit 1; }; }
2996       ;;
2997     no)
2998       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2999 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
3000    { (exit 1); exit 1; }; }
3001       ;;
3002     *)
3003       wal_blocksize=$withval
3004       ;;
3005   esac
3006
3007 else
3008   wal_blocksize=8
3009 fi
3010
3011
3012 case ${wal_blocksize} in
3013   1) XLOG_BLCKSZ=1024;;
3014   2) XLOG_BLCKSZ=2048;;
3015   4) XLOG_BLCKSZ=4096;;
3016   8) XLOG_BLCKSZ=8192;;
3017  16) XLOG_BLCKSZ=16384;;
3018  32) XLOG_BLCKSZ=32768;;
3019  64) XLOG_BLCKSZ=65536;;
3020   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3021 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3022    { (exit 1); exit 1; }; }
3023 esac
3024 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3025 $as_echo "${wal_blocksize}kB" >&6; }
3026
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3030 _ACEOF
3031
3032
3033 #
3034 # WAL segment size
3035 #
3036 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3037 $as_echo_n "checking for WAL segment size... " >&6; }
3038
3039
3040
3041 # Check whether --with-wal-segsize was given.
3042 if test "${with_wal_segsize+set}" = set; then
3043   withval=$with_wal_segsize;
3044   case $withval in
3045     yes)
3046       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3047 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3048    { (exit 1); exit 1; }; }
3049       ;;
3050     no)
3051       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3052 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3053    { (exit 1); exit 1; }; }
3054       ;;
3055     *)
3056       wal_segsize=$withval
3057       ;;
3058   esac
3059
3060 else
3061   wal_segsize=16
3062 fi
3063
3064
3065 case ${wal_segsize} in
3066   1) ;;
3067   2) ;;
3068   4) ;;
3069   8) ;;
3070  16) ;;
3071  32) ;;
3072  64) ;;
3073   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3074 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3075    { (exit 1); exit 1; }; }
3076 esac
3077 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3078 $as_echo "${wal_segsize}MB" >&6; }
3079
3080
3081 cat >>confdefs.h <<_ACEOF
3082 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3083 _ACEOF
3084
3085
3086 #
3087 # C compiler
3088 #
3089
3090 # For historical reasons you can also use --with-CC to specify the C compiler
3091 # to use, although the standard way to do this is to set the CC environment
3092 # variable.
3093
3094
3095
3096 # Check whether --with-CC was given.
3097 if test "${with_CC+set}" = set; then
3098   withval=$with_CC;
3099   case $withval in
3100     yes)
3101       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3102 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3103    { (exit 1); exit 1; }; }
3104       ;;
3105     no)
3106       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3107 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3108    { (exit 1); exit 1; }; }
3109       ;;
3110     *)
3111       CC=$with_CC
3112       ;;
3113   esac
3114
3115 fi
3116
3117
3118
3119 case $template in
3120   aix) pgac_cc_list="gcc xlc";;
3121  irix) pgac_cc_list="cc";; # no gcc
3122     *) pgac_cc_list="gcc cc";;
3123 esac
3124
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131   for ac_prog in $pgac_cc_list
3132   do
3133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test -n "$CC"; then
3141   ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148   for ac_exec_ext in '' $ac_executable_extensions; do
3149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155 done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165   { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169
3170     test -n "$CC" && break
3171   done
3172 fi
3173 if test -z "$CC"; then
3174   ac_ct_CC=$CC
3175   for ac_prog in $pgac_cc_list
3176 do
3177   # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3182   $as_echo_n "(cached) " >&6
3183 else
3184   if test -n "$ac_ct_CC"; then
3185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194     ac_cv_prog_ac_ct_CC="$ac_prog"
3195     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3208 else
3209   { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213
3214   test -n "$ac_ct_CC" && break
3215 done
3216
3217   if test "x$ac_ct_CC" = x; then
3218     CC=""
3219   else
3220     case $cross_compiling:$ac_tool_warned in
3221 yes:)
3222 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 ac_tool_warned=yes ;;
3225 esac
3226     CC=$ac_ct_CC
3227   fi
3228 fi
3229
3230
3231 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&5
3235 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details." >&2;}
3237    { (exit 1); exit 1; }; }; }
3238
3239 # Provide some information about the compiler.
3240 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3241 set X $ac_compile
3242 ac_compiler=$2
3243 { (ac_try="$ac_compiler --version >&5"
3244 case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250   (eval "$ac_compiler --version >&5") 2>&5
3251   ac_status=$?
3252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }
3254 { (ac_try="$ac_compiler -v >&5"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261   (eval "$ac_compiler -v >&5") 2>&5
3262   ac_status=$?
3263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264   (exit $ac_status); }
3265 { (ac_try="$ac_compiler -V >&5"
3266 case "(($ac_try" in
3267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268   *) ac_try_echo=$ac_try;;
3269 esac
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272   (eval "$ac_compiler -V >&5") 2>&5
3273   ac_status=$?
3274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }
3276
3277 cat >conftest.$ac_ext <<_ACEOF
3278 /* confdefs.h.  */
3279 _ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3296 # of exeext.
3297 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3303
3304 ac_rmfiles=
3305 for ac_file in $ac_files
3306 do
3307   case $ac_file in
3308     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3310   esac
3311 done
3312 rm -f $ac_rmfiles
3313
3314 if { (ac_try="$ac_link_default"
3315 case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321   (eval "$ac_link_default") 2>&5
3322   ac_status=$?
3323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; then
3325   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3329 # Autoconf.
3330 for ac_file in $ac_files ''
3331 do
3332   test -f "$ac_file" || continue
3333   case $ac_file in
3334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3335         ;;
3336     [ab].out )
3337         # We found the default executable, but exeext='' is most
3338         # certainly right.
3339         break;;
3340     *.* )
3341         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3342         then :; else
3343            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344         fi
3345         # We set ac_cv_exeext here because the later test for it is not
3346         # safe: cross compilers may not add the suffix if given an `-o'
3347         # argument, so we may need to know it at that point already.
3348         # Even if this section looks crufty: it has the advantage of
3349         # actually working.
3350         break;;
3351     * )
3352         break;;
3353   esac
3354 done
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3356
3357 else
3358   ac_file=''
3359 fi
3360
3361 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3362 $as_echo "$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364   $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&5
3371 $as_echo "$as_me: error: C compiler cannot create executables
3372 See \`config.log' for more details." >&2;}
3373    { (exit 77); exit 77; }; }; }
3374 fi
3375
3376 ac_exeext=$ac_cv_exeext
3377
3378 # Check that the compiler produces executables we can run.  If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383 # If not cross compiling, check that we can run a simple program.
3384 if test "$cross_compiling" != yes; then
3385   if { ac_try='./$ac_file'
3386   { (case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392   (eval "$ac_try") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; }; then
3396     cross_compiling=no
3397   else
3398     if test "$cross_compiling" = maybe; then
3399         cross_compiling=yes
3400     else
3401         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." >&2;}
3409    { (exit 1); exit 1; }; }; }
3410     fi
3411   fi
3412 fi
3413 { $as_echo "$as_me:$LINENO: result: yes" >&5
3414 $as_echo "yes" >&6; }
3415
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 # Check that the compiler produces executables we can run.  If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3421 $as_echo_n "checking whether we are cross compiling... " >&6; }
3422 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3424
3425 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { (ac_try="$ac_link"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434   (eval "$ac_link") 2>&5
3435   ac_status=$?
3436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); }; then
3438   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 # `rm'.
3442 for ac_file in conftest.exe conftest conftest.*; do
3443   test -f "$ac_file" || continue
3444   case $ac_file in
3445     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3447           break;;
3448     * ) break;;
3449   esac
3450 done
3451 else
3452   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&5
3456 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details." >&2;}
3458    { (exit 1); exit 1; }; }; }
3459 fi
3460
3461 rm -f conftest$ac_cv_exeext
3462 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3463 $as_echo "$ac_cv_exeext" >&6; }
3464
3465 rm -f conftest.$ac_ext
3466 EXEEXT=$ac_cv_exeext
3467 ac_exeext=$EXEEXT
3468 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if test "${ac_cv_objext+set}" = set; then
3471   $as_echo_n "(cached) " >&6
3472 else
3473   cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h.  */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h.  */
3479
3480 int
3481 main ()
3482 {
3483
3484   ;
3485   return 0;
3486 }
3487 _ACEOF
3488 rm -f conftest.o conftest.obj
3489 if { (ac_try="$ac_compile"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496   (eval "$ac_compile") 2>&5
3497   ac_status=$?
3498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); }; then
3500   for ac_file in conftest.o conftest.obj conftest.*; do
3501   test -f "$ac_file" || continue;
3502   case $ac_file in
3503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505        break;;
3506   esac
3507 done
3508 else
3509   $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details." >&2;}
3518    { (exit 1); exit 1; }; }; }
3519 fi
3520
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3522 fi
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3526 ac_objext=$OBJEXT
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530   $as_echo_n "(cached) " >&6
3531 else
3532   cat >conftest.$ac_ext <<_ACEOF
3533 /* confdefs.h.  */
3534 _ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h.  */
3538
3539 int
3540 main ()
3541 {
3542 #ifndef __GNUC__
3543        choke me
3544 #endif
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3552 case "(($ac_try" in
3553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554   *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558   (eval "$ac_compile") 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } && {
3565          test -z "$ac_c_werror_flag" ||
3566          test ! -s conftest.err
3567        } && test -s conftest.$ac_objext; then
3568   ac_compiler_gnu=yes
3569 else
3570   $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3572
3573         ac_compiler_gnu=no
3574 fi
3575
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3578
3579 fi
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3583   GCC=yes
3584 else
3585   GCC=
3586 fi
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592   $as_echo_n "(cached) " >&6
3593 else
3594   ac_save_c_werror_flag=$ac_c_werror_flag
3595    ac_c_werror_flag=yes
3596    ac_cv_prog_cc_g=no
3597    CFLAGS="-g"
3598    cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604
3605 int
3606 main ()
3607 {
3608
3609   ;
3610   return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621   (eval "$ac_compile") 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } && {
3628          test -z "$ac_c_werror_flag" ||
3629          test ! -s conftest.err
3630        } && test -s conftest.$ac_objext; then
3631   ac_cv_prog_cc_g=yes
3632 else
3633   $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636         CFLAGS=""
3637       cat >conftest.$ac_ext <<_ACEOF
3638 /* confdefs.h.  */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h.  */
3643
3644 int
3645 main ()
3646 {
3647
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660   (eval "$ac_compile") 2>conftest.er1
3661   ac_status=$?
3662   grep -v '^ *+' conftest.er1 >conftest.err
3663   rm -f conftest.er1
3664   cat conftest.err >&5
3665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } && {
3667          test -z "$ac_c_werror_flag" ||
3668          test ! -s conftest.err
3669        } && test -s conftest.$ac_objext; then
3670   :
3671 else
3672   $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675         ac_c_werror_flag=$ac_save_c_werror_flag
3676          CFLAGS="-g"
3677          cat >conftest.$ac_ext <<_ACEOF
3678 /* confdefs.h.  */
3679 _ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h.  */
3683
3684 int
3685 main ()
3686 {
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700   (eval "$ac_compile") 2>conftest.er1
3701   ac_status=$?
3702   grep -v '^ *+' conftest.er1 >conftest.err
3703   rm -f conftest.er1
3704   cat conftest.err >&5
3705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); } && {
3707          test -z "$ac_c_werror_flag" ||
3708          test ! -s conftest.err
3709        } && test -s conftest.$ac_objext; then
3710   ac_cv_prog_cc_g=yes
3711 else
3712   $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715
3716 fi
3717
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725    ac_c_werror_flag=$ac_save_c_werror_flag
3726 fi
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730   CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732   if test "$GCC" = yes; then
3733     CFLAGS="-g -O2"
3734   else
3735     CFLAGS="-g"
3736   fi
3737 else
3738   if test "$GCC" = yes; then
3739     CFLAGS="-O2"
3740   else
3741     CFLAGS=
3742   fi
3743 fi
3744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747   $as_echo_n "(cached) " >&6
3748 else
3749   ac_cv_prog_cc_c89=no
3750 ac_save_CC=$CC
3751 cat >conftest.$ac_ext <<_ACEOF
3752 /* confdefs.h.  */
3753 _ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h.  */
3757 #include <stdarg.h>
3758 #include <stdio.h>
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3765      char **p;
3766      int i;
3767 {
3768   return p[i];
3769 }
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3771 {
3772   char *s;
3773   va_list v;
3774   va_start (v,p);
3775   s = g (p, va_arg (v,int));
3776   va_end (v);
3777   return s;
3778 }
3779
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3781    function prototypes and stuff, but not '\xHH' hex character constants.
3782    These don't provoke an error unfortunately, instead are silently treated
3783    as 'x'.  The following induces an error, until -std is added to get
3784    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3785    array size at least.  It's necessary to write '\x00'==0 to get something
3786    that's true only with -std.  */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3788
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790    inside strings and character constants.  */
3791 #define FOO(x) 'x'
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3793
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3798 int argc;
3799 char **argv;
3800 int
3801 main ()
3802 {
3803 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3810 do
3811   CC="$ac_save_CC $ac_arg"
3812   rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3814 case "(($ac_try" in
3815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816   *) ac_try_echo=$ac_try;;
3817 esac
3818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820   (eval "$ac_compile") 2>conftest.er1
3821   ac_status=$?
3822   grep -v '^ *+' conftest.er1 >conftest.err
3823   rm -f conftest.er1
3824   cat conftest.err >&5
3825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); } && {
3827          test -z "$ac_c_werror_flag" ||
3828          test ! -s conftest.err
3829        } && test -s conftest.$ac_objext; then
3830   ac_cv_prog_cc_c89=$ac_arg
3831 else
3832   $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3834
3835
3836 fi
3837
3838 rm -f core conftest.err conftest.$ac_objext
3839   test "x$ac_cv_prog_cc_c89" != "xno" && break
3840 done
3841 rm -f conftest.$ac_ext
3842 CC=$ac_save_CC
3843
3844 fi
3845 # AC_CACHE_VAL
3846 case "x$ac_cv_prog_cc_c89" in
3847   x)
3848     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3850   xno)
3851     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3853   *)
3854     CC="$CC $ac_cv_prog_cc_c89"
3855     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3857 esac
3858
3859
3860 ac_ext=c
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3865
3866
3867 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3868 # but has idiosyncrasies of its own.  We assume icc will define
3869 # __INTEL_COMPILER regardless of CFLAGS.
3870
3871 cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881 #ifndef __INTEL_COMPILER
3882 choke me
3883 #endif
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3890 case "(($ac_try" in
3891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892   *) ac_try_echo=$ac_try;;
3893 esac
3894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896   (eval "$ac_compile") 2>conftest.er1
3897   ac_status=$?
3898   grep -v '^ *+' conftest.er1 >conftest.err
3899   rm -f conftest.er1
3900   cat conftest.err >&5
3901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } && {
3903          test -z "$ac_c_werror_flag" ||
3904          test ! -s conftest.err
3905        } && test -s conftest.$ac_objext; then
3906   ICC=yes
3907 else
3908   $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911         ICC=no
3912 fi
3913
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915
3916 # Check if it's Sun Studio compiler. We assume that
3917 # __SUNPRO_C will be defined for Sun Studio compilers
3918 cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924
3925 int
3926 main ()
3927 {
3928 #ifndef __SUNPRO_C
3929 choke me
3930 #endif
3931   ;
3932   return 0;
3933 }
3934 _ACEOF
3935 rm -f conftest.$ac_objext
3936 if { (ac_try="$ac_compile"
3937 case "(($ac_try" in
3938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939   *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943   (eval "$ac_compile") 2>conftest.er1
3944   ac_status=$?
3945   grep -v '^ *+' conftest.er1 >conftest.err
3946   rm -f conftest.er1
3947   cat conftest.err >&5
3948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } && {
3950          test -z "$ac_c_werror_flag" ||
3951          test ! -s conftest.err
3952        } && test -s conftest.$ac_objext; then
3953   SUN_STUDIO_CC=yes
3954 else
3955   $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958         SUN_STUDIO_CC=no
3959 fi
3960
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962
3963
3964
3965 unset CFLAGS
3966
3967 #
3968 # Read the template
3969 #
3970 . "$srcdir/src/template/$template" || exit
3971
3972 # CFLAGS are selected so:
3973 # If the user specifies something in the environment, that is used.
3974 # else:  If the template file set something, that is used.
3975 # else:  If coverage was enabled, don't set anything.
3976 # else:  If the compiler is GCC, then we use -O2.
3977 # else:  If the compiler is something else, then we use -O, unless debugging.
3978
3979 if test "$ac_env_CFLAGS_set" = set; then
3980   CFLAGS=$ac_env_CFLAGS_value
3981 elif test "${CFLAGS+set}" = set; then
3982   : # (keep what template set)
3983 elif test "$enable_coverage" = yes; then
3984   : # no optimization by default
3985 elif test "$GCC" = yes; then
3986   CFLAGS="-O2"
3987 else
3988   # if the user selected debug mode, don't use -O
3989   if test "$enable_debug" != yes; then
3990     CFLAGS="-O"
3991   fi
3992 fi
3993
3994 # Some versions of GCC support some additional useful warning flags.
3995 # Check whether they are supported, and add them to CFLAGS if so.
3996 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3997 # but has its own.  Also check other compiler-specific flags here.
3998
3999 if test "$GCC" = yes -a "$ICC" = no; then
4000   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4001   # These work in some but not all gcc versions
4002   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4003 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4004 pgac_save_CFLAGS=$CFLAGS
4005 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4006 cat >conftest.$ac_ext <<_ACEOF
4007 /* confdefs.h.  */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h.  */
4012
4013 int
4014 main ()
4015 {
4016
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4023 case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029   (eval "$ac_compile") 2>conftest.er1
4030   ac_status=$?
4031   grep -v '^ *+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } && {
4036          test -z "$ac_c_werror_flag" ||
4037          test ! -s conftest.err
4038        } && test -s conftest.$ac_objext; then
4039   { $as_echo "$as_me:$LINENO: result: yes" >&5
4040 $as_echo "yes" >&6; }
4041 else
4042   $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4044
4045         CFLAGS="$pgac_save_CFLAGS"
4046                     { $as_echo "$as_me:$LINENO: result: no" >&5
4047 $as_echo "no" >&6; }
4048 fi
4049
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051
4052   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4053 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4054 pgac_save_CFLAGS=$CFLAGS
4055 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4056 cat >conftest.$ac_ext <<_ACEOF
4057 /* confdefs.h.  */
4058 _ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h.  */
4062
4063 int
4064 main ()
4065 {
4066
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 rm -f conftest.$ac_objext
4072 if { (ac_try="$ac_compile"
4073 case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079   (eval "$ac_compile") 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } && {
4086          test -z "$ac_c_werror_flag" ||
4087          test ! -s conftest.err
4088        } && test -s conftest.$ac_objext; then
4089   { $as_echo "$as_me:$LINENO: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 else
4092   $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095         CFLAGS="$pgac_save_CFLAGS"
4096                     { $as_echo "$as_me:$LINENO: result: no" >&5
4097 $as_echo "no" >&6; }
4098 fi
4099
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101
4102   # Disable strict-aliasing rules; needed for gcc 3.3+
4103   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4104 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4105 pgac_save_CFLAGS=$CFLAGS
4106 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4107 cat >conftest.$ac_ext <<_ACEOF
4108 /* confdefs.h.  */
4109 _ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h.  */
4113
4114 int
4115 main ()
4116 {
4117
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122 rm -f conftest.$ac_objext
4123 if { (ac_try="$ac_compile"
4124 case "(($ac_try" in
4125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126   *) ac_try_echo=$ac_try;;
4127 esac
4128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4129 $as_echo "$ac_try_echo") >&5
4130   (eval "$ac_compile") 2>conftest.er1
4131   ac_status=$?
4132   grep -v '^ *+' conftest.er1 >conftest.err
4133   rm -f conftest.er1
4134   cat conftest.err >&5
4135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); } && {
4137          test -z "$ac_c_werror_flag" ||
4138          test ! -s conftest.err
4139        } && test -s conftest.$ac_objext; then
4140   { $as_echo "$as_me:$LINENO: result: yes" >&5
4141 $as_echo "yes" >&6; }
4142 else
4143   $as_echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.$ac_ext >&5
4145
4146         CFLAGS="$pgac_save_CFLAGS"
4147                     { $as_echo "$as_me:$LINENO: result: no" >&5
4148 $as_echo "no" >&6; }
4149 fi
4150
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152
4153   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4154   { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4155 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4156 pgac_save_CFLAGS=$CFLAGS
4157 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4158 cat >conftest.$ac_ext <<_ACEOF
4159 /* confdefs.h.  */
4160 _ACEOF
4161 cat confdefs.h >>conftest.$ac_ext
4162 cat >>conftest.$ac_ext <<_ACEOF
4163 /* end confdefs.h.  */
4164
4165 int
4166 main ()
4167 {
4168
4169   ;
4170   return 0;
4171 }
4172 _ACEOF
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4175 case "(($ac_try" in
4176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177   *) ac_try_echo=$ac_try;;
4178 esac
4179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4180 $as_echo "$ac_try_echo") >&5
4181   (eval "$ac_compile") 2>conftest.er1
4182   ac_status=$?
4183   grep -v '^ *+' conftest.er1 >conftest.err
4184   rm -f conftest.er1
4185   cat conftest.err >&5
4186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187   (exit $ac_status); } && {
4188          test -z "$ac_c_werror_flag" ||
4189          test ! -s conftest.err
4190        } && test -s conftest.$ac_objext; then
4191   { $as_echo "$as_me:$LINENO: result: yes" >&5
4192 $as_echo "yes" >&6; }
4193 else
4194   $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4196
4197         CFLAGS="$pgac_save_CFLAGS"
4198                     { $as_echo "$as_me:$LINENO: result: no" >&5
4199 $as_echo "no" >&6; }
4200 fi
4201
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203
4204 elif test "$ICC" = yes; then
4205   # Intel's compiler has a bug/misoptimization in checking for
4206   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4207   { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4208 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4209 pgac_save_CFLAGS=$CFLAGS
4210 CFLAGS="$pgac_save_CFLAGS -mp1"
4211 cat >conftest.$ac_ext <<_ACEOF
4212 /* confdefs.h.  */
4213 _ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h.  */
4217
4218 int
4219 main ()
4220 {
4221
4222   ;
4223   return 0;
4224 }
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (ac_try="$ac_compile"
4228 case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4233 $as_echo "$ac_try_echo") >&5
4234   (eval "$ac_compile") 2>conftest.er1
4235   ac_status=$?
4236   grep -v '^ *+' conftest.er1 >conftest.err
4237   rm -f conftest.er1
4238   cat conftest.err >&5
4239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); } && {
4241          test -z "$ac_c_werror_flag" ||
4242          test ! -s conftest.err
4243        } && test -s conftest.$ac_objext; then
4244   { $as_echo "$as_me:$LINENO: result: yes" >&5
4245 $as_echo "yes" >&6; }
4246 else
4247   $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4249
4250         CFLAGS="$pgac_save_CFLAGS"
4251                     { $as_echo "$as_me:$LINENO: result: no" >&5
4252 $as_echo "no" >&6; }
4253 fi
4254
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256
4257   # Make sure strict aliasing is off (though this is said to be the default)
4258   { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4259 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4260 pgac_save_CFLAGS=$CFLAGS
4261 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4262 cat >conftest.$ac_ext <<_ACEOF
4263 /* confdefs.h.  */
4264 _ACEOF
4265 cat confdefs.h >>conftest.$ac_ext
4266 cat >>conftest.$ac_ext <<_ACEOF
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 rm -f conftest.$ac_objext
4278 if { (ac_try="$ac_compile"
4279 case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4284 $as_echo "$ac_try_echo") >&5
4285   (eval "$ac_compile") 2>conftest.er1
4286   ac_status=$?
4287   grep -v '^ *+' conftest.er1 >conftest.err
4288   rm -f conftest.er1
4289   cat conftest.err >&5
4290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } && {
4292          test -z "$ac_c_werror_flag" ||
4293          test ! -s conftest.err
4294        } && test -s conftest.$ac_objext; then
4295   { $as_echo "$as_me:$LINENO: result: yes" >&5
4296 $as_echo "yes" >&6; }
4297 else
4298   $as_echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301         CFLAGS="$pgac_save_CFLAGS"
4302                     { $as_echo "$as_me:$LINENO: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307
4308 elif test "$PORTNAME" = "aix"; then
4309   # AIX's xlc has to have strict aliasing turned off too
4310   { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4311 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4312 pgac_save_CFLAGS=$CFLAGS
4313 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320
4321 int
4322 main ()
4323 {
4324
4325   ;
4326   return 0;
4327 }
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (ac_try="$ac_compile"
4331 case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4336 $as_echo "$ac_try_echo") >&5
4337   (eval "$ac_compile") 2>conftest.er1
4338   ac_status=$?
4339   grep -v '^ *+' conftest.er1 >conftest.err
4340   rm -f conftest.er1
4341   cat conftest.err >&5
4342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } && {
4344          test -z "$ac_c_werror_flag" ||
4345          test ! -s conftest.err
4346        } && test -s conftest.$ac_objext; then
4347   { $as_echo "$as_me:$LINENO: result: yes" >&5
4348 $as_echo "yes" >&6; }
4349 else
4350   $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353         CFLAGS="$pgac_save_CFLAGS"
4354                     { $as_echo "$as_me:$LINENO: result: no" >&5
4355 $as_echo "no" >&6; }
4356 fi
4357
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359
4360 fi
4361
4362 # supply -g if --enable-debug
4363 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4364   CFLAGS="$CFLAGS -g"
4365 fi
4366
4367 # enable code coverage if --enable-coverage
4368 if test "$enable_coverage" = yes; then
4369   if test "$GCC" = yes; then
4370     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4371   else
4372     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4373 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4374    { (exit 1); exit 1; }; }
4375   fi
4376 fi
4377
4378 # enable profiling if --enable-profiling
4379 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4380   if test "$GCC" = yes; then
4381
4382 cat >>confdefs.h <<\_ACEOF
4383 #define PROFILE_PID_DIR 1
4384 _ACEOF
4385
4386     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4387   else
4388     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4389 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4390    { (exit 1); exit 1; }; }
4391   fi
4392 fi
4393
4394 # We already have this in Makefile.win32, but configure needs it too
4395 if test "$PORTNAME" = "win32"; then
4396   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4397 fi
4398
4399 # Check if the compiler still works with the template settings
4400 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4401 $as_echo_n "checking whether the C compiler still works... " >&6; }
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h.  */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h.  */
4408
4409 int
4410 main ()
4411 {
4412 return 0;
4413   ;
4414   return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.$ac_objext conftest$ac_exeext
4418 if { (ac_try="$ac_link"
4419 case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4424 $as_echo "$ac_try_echo") >&5
4425   (eval "$ac_link") 2>conftest.er1
4426   ac_status=$?
4427   grep -v '^ *+' conftest.er1 >conftest.err
4428   rm -f conftest.er1
4429   cat conftest.err >&5
4430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431   (exit $ac_status); } && {
4432          test -z "$ac_c_werror_flag" ||
4433          test ! -s conftest.err
4434        } && test -s conftest$ac_exeext && {
4435          test "$cross_compiling" = yes ||
4436          $as_test_x conftest$ac_exeext
4437        }; then
4438   { $as_echo "$as_me:$LINENO: result: yes" >&5
4439 $as_echo "yes" >&6; }
4440 else
4441   $as_echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4443
4444         { $as_echo "$as_me:$LINENO: result: no" >&5
4445 $as_echo "no" >&6; }
4446    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4447 $as_echo "$as_me: error: cannot proceed" >&2;}
4448    { (exit 1); exit 1; }; }
4449 fi
4450
4451 rm -rf conftest.dSYM
4452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4453       conftest$ac_exeext conftest.$ac_ext
4454
4455 # Defend against gcc -ffast-math
4456 if test "$GCC" = yes; then
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h.  */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h.  */
4463
4464 int
4465 main ()
4466 {
4467 #ifdef __FAST_MATH__
4468 choke me
4469 #endif
4470   ;
4471   return 0;
4472 }
4473 _ACEOF
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4476 case "(($ac_try" in
4477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478   *) ac_try_echo=$ac_try;;
4479 esac
4480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4481 $as_echo "$ac_try_echo") >&5
4482   (eval "$ac_compile") 2>conftest.er1
4483   ac_status=$?
4484   grep -v '^ *+' conftest.er1 >conftest.err
4485   rm -f conftest.er1
4486   cat conftest.err >&5
4487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); } && {
4489          test -z "$ac_c_werror_flag" ||
4490          test ! -s conftest.err
4491        } && test -s conftest.$ac_objext; then
4492   :
4493 else
4494   $as_echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4496
4497         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4498 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4499    { (exit 1); exit 1; }; }
4500 fi
4501
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 fi
4504
4505 ac_ext=c
4506 ac_cpp='$CPP $CPPFLAGS'
4507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4511 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4512 # On Suns, sometimes $CPP names a directory.
4513 if test -n "$CPP" && test -d "$CPP"; then
4514   CPP=
4515 fi
4516 if test -z "$CPP"; then
4517   if test "${ac_cv_prog_CPP+set}" = set; then
4518   $as_echo_n "(cached) " >&6
4519 else
4520       # Double quotes because CPP needs to be expanded
4521     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4522     do
4523       ac_preproc_ok=false
4524 for ac_c_preproc_warn_flag in '' yes
4525 do
4526   # Use a header file that comes with gcc, so configuring glibc
4527   # with a fresh cross-compiler works.
4528   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4529   # <limits.h> exists even on freestanding compilers.
4530   # On the NeXT, cc -E runs the code through the compiler's parser,
4531   # not just through cpp. "Syntax error" is here to catch this case.
4532   cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h.  */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h.  */
4538 #ifdef __STDC__
4539 # include <limits.h>
4540 #else
4541 # include <assert.h>
4542 #endif
4543                      Syntax error
4544 _ACEOF
4545 if { (ac_try="$ac_cpp conftest.$ac_ext"
4546 case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4553   ac_status=$?
4554   grep -v '^ *+' conftest.er1 >conftest.err
4555   rm -f conftest.er1
4556   cat conftest.err >&5
4557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); } >/dev/null && {
4559          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4560          test ! -s conftest.err
4561        }; then
4562   :
4563 else
4564   $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567   # Broken: fails on valid input.
4568 continue
4569 fi
4570
4571 rm -f conftest.err conftest.$ac_ext
4572
4573   # OK, works on sane cases.  Now check whether nonexistent headers
4574   # can be detected and how.
4575   cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h.  */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h.  */
4581 #include <ac_nonexistent.h>
4582 _ACEOF
4583 if { (ac_try="$ac_cpp conftest.$ac_ext"
4584 case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4591   ac_status=$?
4592   grep -v '^ *+' conftest.er1 >conftest.err
4593   rm -f conftest.er1
4594   cat conftest.err >&5
4595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); } >/dev/null && {
4597          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4598          test ! -s conftest.err
4599        }; then
4600   # Broken: success on invalid input.
4601 continue
4602 else
4603   $as_echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606   # Passes both tests.
4607 ac_preproc_ok=:
4608 break
4609 fi
4610
4611 rm -f conftest.err conftest.$ac_ext
4612
4613 done
4614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4615 rm -f conftest.err conftest.$ac_ext
4616 if $ac_preproc_ok; then
4617   break
4618 fi
4619
4620     done
4621     ac_cv_prog_CPP=$CPP
4622
4623 fi
4624   CPP=$ac_cv_prog_CPP
4625 else
4626   ac_cv_prog_CPP=$CPP
4627 fi
4628 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4629 $as_echo "$CPP" >&6; }
4630 ac_preproc_ok=false
4631 for ac_c_preproc_warn_flag in '' yes
4632 do
4633   # Use a header file that comes with gcc, so configuring glibc
4634   # with a fresh cross-compiler works.
4635   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636   # <limits.h> exists even on freestanding compilers.
4637   # On the NeXT, cc -E runs the code through the compiler's parser,
4638   # not just through cpp. "Syntax error" is here to catch this case.
4639   cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h.  */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h.  */
4645 #ifdef __STDC__
4646 # include <limits.h>
4647 #else
4648 # include <assert.h>
4649 #endif
4650                      Syntax error
4651 _ACEOF
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4653 case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4660   ac_status=$?
4661   grep -v '^ *+' conftest.er1 >conftest.err
4662   rm -f conftest.er1
4663   cat conftest.err >&5
4664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } >/dev/null && {
4666          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4667          test ! -s conftest.err
4668        }; then
4669   :
4670 else
4671   $as_echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4673
4674   # Broken: fails on valid input.
4675 continue
4676 fi
4677
4678 rm -f conftest.err conftest.$ac_ext
4679
4680   # OK, works on sane cases.  Now check whether nonexistent headers
4681   # can be detected and how.
4682   cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688 #include <ac_nonexistent.h>
4689 _ACEOF
4690 if { (ac_try="$ac_cpp conftest.$ac_ext"
4691 case "(($ac_try" in
4692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693   *) ac_try_echo=$ac_try;;
4694 esac
4695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4696 $as_echo "$ac_try_echo") >&5
4697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4698   ac_status=$?
4699   grep -v '^ *+' conftest.er1 >conftest.err
4700   rm -f conftest.er1
4701   cat conftest.err >&5
4702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); } >/dev/null && {
4704          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4705          test ! -s conftest.err
4706        }; then
4707   # Broken: success on invalid input.
4708 continue
4709 else
4710   $as_echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4712
4713   # Passes both tests.
4714 ac_preproc_ok=:
4715 break
4716 fi
4717
4718 rm -f conftest.err conftest.$ac_ext
4719
4720 done
4721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4722 rm -f conftest.err conftest.$ac_ext
4723 if $ac_preproc_ok; then
4724   :
4725 else
4726   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4728 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4729 See \`config.log' for more details." >&5
4730 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4731 See \`config.log' for more details." >&2;}
4732    { (exit 1); exit 1; }; }; }
4733 fi
4734
4735 ac_ext=c
4736 ac_cpp='$CPP $CPPFLAGS'
4737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740
4741
4742
4743
4744 #
4745 # Set up TAS assembly code if needed; the template file has now had its
4746 # chance to request this.
4747 #
4748 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4749
4750
4751 if test "$need_tas" = yes ; then
4752   TAS=tas.o
4753 else
4754   TAS=""
4755 fi
4756
4757
4758
4759 #
4760 # Automatic dependency tracking
4761 #
4762
4763
4764 # Check whether --enable-depend was given.
4765 if test "${enable_depend+set}" = set; then
4766   enableval=$enable_depend;
4767   case $enableval in
4768     yes)
4769       autodepend=yes
4770       ;;
4771     no)
4772       :
4773       ;;
4774     *)
4775       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4776 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4777    { (exit 1); exit 1; }; }
4778       ;;
4779   esac
4780
4781 else
4782   enable_depend=no
4783
4784 fi
4785
4786
4787
4788
4789
4790 #
4791 # Enable assert checks
4792 #
4793
4794
4795 # Check whether --enable-cassert was given.
4796 if test "${enable_cassert+set}" = set; then
4797   enableval=$enable_cassert;
4798   case $enableval in
4799     yes)
4800
4801 cat >>confdefs.h <<\_ACEOF
4802 #define USE_ASSERT_CHECKING 1
4803 _ACEOF
4804
4805       ;;
4806     no)
4807       :
4808       ;;
4809     *)
4810       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4811 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4812    { (exit 1); exit 1; }; }
4813       ;;
4814   esac
4815
4816 else
4817   enable_cassert=no
4818
4819 fi
4820
4821
4822
4823
4824 #
4825 # Include directories
4826 #
4827 ac_save_IFS=$IFS
4828 IFS="${IFS}${PATH_SEPARATOR}"
4829 # SRCH_INC comes from the template file
4830 for dir in $with_includes $SRCH_INC; do
4831   if test -d "$dir"; then
4832     INCLUDES="$INCLUDES -I$dir"
4833   else
4834     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4835 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4836   fi
4837 done
4838 IFS=$ac_save_IFS
4839
4840
4841
4842 #
4843 # Library directories
4844 #
4845 ac_save_IFS=$IFS
4846 IFS="${IFS}${PATH_SEPARATOR}"
4847 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4848 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4849   if test -d "$dir"; then
4850     LIBDIRS="$LIBDIRS -L$dir"
4851   else
4852     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4853 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4854   fi
4855 done
4856 IFS=$ac_save_IFS
4857
4858 #
4859 # Enable thread-safe client libraries
4860 #
4861 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4862 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4863
4864
4865 # Check whether --enable-thread-safety was given.
4866 if test "${enable_thread_safety+set}" = set; then
4867   enableval=$enable_thread_safety;
4868   case $enableval in
4869     yes)
4870       :
4871       ;;
4872     no)
4873       :
4874       ;;
4875     *)
4876       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4877 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4878    { (exit 1); exit 1; }; }
4879       ;;
4880   esac
4881
4882 else
4883   enable_thread_safety=yes
4884
4885 fi
4886
4887
4888 if test "$enable_thread_safety" = yes; then
4889
4890 cat >>confdefs.h <<\_ACEOF
4891 #define ENABLE_THREAD_SAFETY 1
4892 _ACEOF
4893
4894 fi
4895 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4896 $as_echo "$enable_thread_safety" >&6; }
4897
4898
4899 #
4900 # Optionally build Tcl modules (PL/Tcl)
4901 #
4902 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4903 $as_echo_n "checking whether to build with Tcl... " >&6; }
4904
4905
4906
4907 # Check whether --with-tcl was given.
4908 if test "${with_tcl+set}" = set; then
4909   withval=$with_tcl;
4910   case $withval in
4911     yes)
4912       :
4913       ;;
4914     no)
4915       :
4916       ;;
4917     *)
4918       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4919 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4920    { (exit 1); exit 1; }; }
4921       ;;
4922   esac
4923
4924 else
4925   with_tcl=no
4926
4927 fi
4928
4929
4930 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4931 $as_echo "$with_tcl" >&6; }
4932
4933
4934 # We see if the path to the Tcl/Tk configuration scripts is specified.
4935 # This will override the use of tclsh to find the paths to search.
4936
4937
4938
4939
4940 # Check whether --with-tclconfig was given.
4941 if test "${with_tclconfig+set}" = set; then
4942   withval=$with_tclconfig;
4943   case $withval in
4944     yes)
4945       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4946 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4947    { (exit 1); exit 1; }; }
4948       ;;
4949     no)
4950       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4951 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4952    { (exit 1); exit 1; }; }
4953       ;;
4954     *)
4955
4956       ;;
4957   esac
4958
4959 fi
4960
4961
4962
4963 #
4964 # Optionally build Perl modules (PL/Perl)
4965 #
4966 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4967 $as_echo_n "checking whether to build Perl modules... " >&6; }
4968
4969
4970
4971 # Check whether --with-perl was given.
4972 if test "${with_perl+set}" = set; then
4973   withval=$with_perl;
4974   case $withval in
4975     yes)
4976       :
4977       ;;
4978     no)
4979       :
4980       ;;
4981     *)
4982       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4983 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4984    { (exit 1); exit 1; }; }
4985       ;;
4986   esac
4987
4988 else
4989   with_perl=no
4990
4991 fi
4992
4993
4994 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4995 $as_echo "$with_perl" >&6; }
4996
4997
4998 #
4999 # Optionally build Python modules (PL/Python)
5000 #
5001 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5002 $as_echo_n "checking whether to build Python modules... " >&6; }
5003
5004
5005
5006 # Check whether --with-python was given.
5007 if test "${with_python+set}" = set; then
5008   withval=$with_python;
5009   case $withval in
5010     yes)
5011       :
5012       ;;
5013     no)
5014       :
5015       ;;
5016     *)
5017       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5018 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5019    { (exit 1); exit 1; }; }
5020       ;;
5021   esac
5022
5023 else
5024   with_python=no
5025
5026 fi
5027
5028
5029 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5030 $as_echo "$with_python" >&6; }
5031
5032
5033 #
5034 # GSSAPI
5035 #
5036 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5037 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5038
5039
5040
5041 # Check whether --with-gssapi was given.
5042 if test "${with_gssapi+set}" = set; then
5043   withval=$with_gssapi;
5044   case $withval in
5045     yes)
5046
5047
5048 cat >>confdefs.h <<\_ACEOF
5049 #define ENABLE_GSS 1
5050 _ACEOF
5051
5052   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5053
5054       ;;
5055     no)
5056       :
5057       ;;
5058     *)
5059       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5060 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5061    { (exit 1); exit 1; }; }
5062       ;;
5063   esac
5064
5065 else
5066   with_gssapi=no
5067
5068 fi
5069
5070
5071 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5072 $as_echo "$with_gssapi" >&6; }
5073
5074
5075 #
5076 # Kerberos 5
5077 #
5078 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5079 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5080
5081
5082
5083 # Check whether --with-krb5 was given.
5084 if test "${with_krb5+set}" = set; then
5085   withval=$with_krb5;
5086   case $withval in
5087     yes)
5088
5089
5090 cat >>confdefs.h <<\_ACEOF
5091 #define KRB5 1
5092 _ACEOF
5093
5094   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5095
5096       ;;
5097     no)
5098       :
5099       ;;
5100     *)
5101       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5102 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5103    { (exit 1); exit 1; }; }
5104       ;;
5105   esac
5106
5107 else
5108   with_krb5=no
5109
5110 fi
5111
5112
5113 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5114 $as_echo "$with_krb5" >&6; }
5115
5116
5117
5118
5119
5120
5121 #
5122 # Kerberos configuration parameters
5123 #
5124
5125
5126
5127 # Check whether --with-krb-srvnam was given.
5128 if test "${with_krb_srvnam+set}" = set; then
5129   withval=$with_krb_srvnam;
5130   case $withval in
5131     yes)
5132       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5133 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5134    { (exit 1); exit 1; }; }
5135       ;;
5136     no)
5137       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5138 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5139    { (exit 1); exit 1; }; }
5140       ;;
5141     *)
5142
5143       ;;
5144   esac
5145
5146 else
5147   with_krb_srvnam="postgres"
5148 fi
5149
5150
5151
5152 cat >>confdefs.h <<_ACEOF
5153 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5154 _ACEOF
5155
5156
5157
5158 #
5159 # PAM
5160 #
5161 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5162 $as_echo_n "checking whether to build with PAM support... " >&6; }
5163
5164
5165
5166 # Check whether --with-pam was given.
5167 if test "${with_pam+set}" = set; then
5168   withval=$with_pam;
5169   case $withval in
5170     yes)
5171
5172 cat >>confdefs.h <<\_ACEOF
5173 #define USE_PAM 1
5174 _ACEOF
5175
5176       ;;
5177     no)
5178       :
5179       ;;
5180     *)
5181       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5182 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5183    { (exit 1); exit 1; }; }
5184       ;;
5185   esac
5186
5187 else
5188   with_pam=no
5189
5190 fi
5191
5192
5193 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5194 $as_echo "$with_pam" >&6; }
5195
5196
5197
5198 #
5199 # LDAP
5200 #
5201 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5202 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5203
5204
5205
5206 # Check whether --with-ldap was given.
5207 if test "${with_ldap+set}" = set; then
5208   withval=$with_ldap;
5209   case $withval in
5210     yes)
5211
5212 cat >>confdefs.h <<\_ACEOF
5213 #define USE_LDAP 1
5214 _ACEOF
5215
5216       ;;
5217     no)
5218       :
5219       ;;
5220     *)
5221       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5222 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5223    { (exit 1); exit 1; }; }
5224       ;;
5225   esac
5226
5227 else
5228   with_ldap=no
5229
5230 fi
5231
5232
5233 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5234 $as_echo "$with_ldap" >&6; }
5235
5236
5237
5238 #
5239 # Bonjour
5240 #
5241 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5242 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5243
5244
5245
5246 # Check whether --with-bonjour was given.
5247 if test "${with_bonjour+set}" = set; then
5248   withval=$with_bonjour;
5249   case $withval in
5250     yes)
5251
5252 cat >>confdefs.h <<\_ACEOF
5253 #define USE_BONJOUR 1
5254 _ACEOF
5255
5256       ;;
5257     no)
5258       :
5259       ;;
5260     *)
5261       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5262 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5263    { (exit 1); exit 1; }; }
5264       ;;
5265   esac
5266
5267 else
5268   with_bonjour=no
5269
5270 fi
5271
5272
5273 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5274 $as_echo "$with_bonjour" >&6; }
5275
5276
5277
5278 #
5279 # OpenSSL
5280 #
5281 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5282 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5283
5284
5285
5286 # Check whether --with-openssl was given.
5287 if test "${with_openssl+set}" = set; then
5288   withval=$with_openssl;
5289   case $withval in
5290     yes)
5291
5292 cat >>confdefs.h <<\_ACEOF
5293 #define USE_SSL 1
5294 _ACEOF
5295
5296       ;;
5297     no)
5298       :
5299       ;;
5300     *)
5301       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5302 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5303    { (exit 1); exit 1; }; }
5304       ;;
5305   esac
5306
5307 else
5308   with_openssl=no
5309
5310 fi
5311
5312
5313 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5314 $as_echo "$with_openssl" >&6; }
5315
5316
5317
5318 #
5319 # Readline
5320 #
5321
5322
5323
5324 # Check whether --with-readline was given.
5325 if test "${with_readline+set}" = set; then
5326   withval=$with_readline;
5327   case $withval in
5328     yes)
5329       :
5330       ;;
5331     no)
5332       :
5333       ;;
5334     *)
5335       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5336 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5337    { (exit 1); exit 1; }; }
5338       ;;
5339   esac
5340
5341 else
5342   with_readline=yes
5343
5344 fi
5345
5346
5347 # readline on MinGW has problems with backslashes in psql and other bugs.
5348 # This is particularly a problem with non-US code pages.
5349 # Therefore disable its use until we understand the cause. 2004-07-20
5350 if test "$PORTNAME" = "win32"; then
5351   if test "$with_readline" = yes; then
5352     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5353 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5354     with_readline=no
5355   fi
5356 fi
5357
5358
5359 #
5360 # Prefer libedit
5361 #
5362
5363
5364
5365 # Check whether --with-libedit-preferred was given.
5366 if test "${with_libedit_preferred+set}" = set; then
5367   withval=$with_libedit_preferred;
5368   case $withval in
5369     yes)
5370       :
5371       ;;
5372     no)
5373       :
5374       ;;
5375     *)
5376       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5377 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5378    { (exit 1); exit 1; }; }
5379       ;;
5380   esac
5381
5382 else
5383   with_libedit_preferred=no
5384
5385 fi
5386
5387
5388
5389
5390 #
5391 # OSSP UUID library
5392 #
5393
5394
5395
5396 # Check whether --with-ossp-uuid was given.
5397 if test "${with_ossp_uuid+set}" = set; then
5398   withval=$with_ossp_uuid;
5399   case $withval in
5400     yes)
5401       :
5402       ;;
5403     no)
5404       :
5405       ;;
5406     *)
5407       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5408 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5409    { (exit 1); exit 1; }; }
5410       ;;
5411   esac
5412
5413 else
5414   with_ossp_uuid=no
5415
5416 fi
5417
5418
5419
5420
5421
5422 #
5423 # XML
5424 #
5425
5426
5427
5428 # Check whether --with-libxml was given.
5429 if test "${with_libxml+set}" = set; then
5430   withval=$with_libxml;
5431   case $withval in
5432     yes)
5433
5434 cat >>confdefs.h <<\_ACEOF
5435 #define USE_LIBXML 1
5436 _ACEOF
5437
5438       ;;
5439     no)
5440       :
5441       ;;
5442     *)
5443       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5444 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5445    { (exit 1); exit 1; }; }
5446       ;;
5447   esac
5448
5449 else
5450   with_libxml=no
5451
5452 fi
5453
5454
5455
5456 if test "$with_libxml" = yes ; then
5457   for ac_prog in xml2-config
5458 do
5459   # Extract the first word of "$ac_prog", so it can be a program name with args.
5460 set dummy $ac_prog; ac_word=$2
5461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5464   $as_echo_n "(cached) " >&6
5465 else
5466   if test -n "$XML2_CONFIG"; then
5467   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474   for ac_exec_ext in '' $ac_executable_extensions; do
5475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476     ac_cv_prog_XML2_CONFIG="$ac_prog"
5477     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481 done
5482 IFS=$as_save_IFS
5483
5484 fi
5485 fi
5486 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5487 if test -n "$XML2_CONFIG"; then
5488   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5489 $as_echo "$XML2_CONFIG" >&6; }
5490 else
5491   { $as_echo "$as_me:$LINENO: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5494
5495
5496   test -n "$XML2_CONFIG" && break
5497 done
5498
5499   if test -n "$XML2_CONFIG"; then
5500     for pgac_option in `$XML2_CONFIG --cflags`; do
5501       case $pgac_option in
5502         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5503       esac
5504     done
5505     for pgac_option in `$XML2_CONFIG --libs`; do
5506       case $pgac_option in
5507         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5508       esac
5509     done
5510   fi
5511 fi
5512
5513
5514
5515 #
5516 # XSLT
5517 #
5518
5519
5520
5521 # Check whether --with-libxslt was given.
5522 if test "${with_libxslt+set}" = set; then
5523   withval=$with_libxslt;
5524   case $withval in
5525     yes)
5526
5527 cat >>confdefs.h <<\_ACEOF
5528 #define USE_LIBXSLT 1
5529 _ACEOF
5530
5531       ;;
5532     no)
5533       :
5534       ;;
5535     *)
5536       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5537 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5538    { (exit 1); exit 1; }; }
5539       ;;
5540   esac
5541
5542 else
5543   with_libxslt=no
5544
5545 fi
5546
5547
5548
5549
5550
5551
5552 #
5553 # tzdata
5554 #
5555
5556
5557
5558 # Check whether --with-system-tzdata was given.
5559 if test "${with_system_tzdata+set}" = set; then
5560   withval=$with_system_tzdata;
5561   case $withval in
5562     yes)
5563       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5564 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5565    { (exit 1); exit 1; }; }
5566       ;;
5567     no)
5568       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5569 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5570    { (exit 1); exit 1; }; }
5571       ;;
5572     *)
5573
5574       ;;
5575   esac
5576
5577 fi
5578
5579
5580
5581
5582 #
5583 # Zlib
5584 #
5585
5586
5587
5588 # Check whether --with-zlib was given.
5589 if test "${with_zlib+set}" = set; then
5590   withval=$with_zlib;
5591   case $withval in
5592     yes)
5593       :
5594       ;;
5595     no)
5596       :
5597       ;;
5598     *)
5599       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5600 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5601    { (exit 1); exit 1; }; }
5602       ;;
5603   esac
5604
5605 else
5606   with_zlib=yes
5607
5608 fi
5609
5610
5611
5612
5613 #
5614 # Elf
5615 #
5616
5617 # Assume system is ELF if it predefines __ELF__ as 1,
5618 # otherwise believe host_os based default.
5619 case $host_os in
5620     freebsd1*|freebsd2*) elf=no;;
5621     freebsd3*|freebsd4*) elf=yes;;
5622 esac
5623
5624
5625 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5626 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5627 if test "${ac_cv_path_GREP+set}" = set; then
5628   $as_echo_n "(cached) " >&6
5629 else
5630   if test -z "$GREP"; then
5631   ac_path_GREP_found=false
5632   # Loop through the user's path and test for each of PROGNAME-LIST
5633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638   for ac_prog in grep ggrep; do
5639     for ac_exec_ext in '' $ac_executable_extensions; do
5640       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5641       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5642 # Check for GNU ac_path_GREP and select it if it is found.
5643   # Check for GNU $ac_path_GREP
5644 case `"$ac_path_GREP" --version 2>&1` in
5645 *GNU*)
5646   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5647 *)
5648   ac_count=0
5649   $as_echo_n 0123456789 >"conftest.in"
5650   while :
5651   do
5652     cat "conftest.in" "conftest.in" >"conftest.tmp"
5653     mv "conftest.tmp" "conftest.in"
5654     cp "conftest.in" "conftest.nl"
5655     $as_echo 'GREP' >> "conftest.nl"
5656     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5658     ac_count=`expr $ac_count + 1`
5659     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5660       # Best one so far, save it but keep looking for a better one
5661       ac_cv_path_GREP="$ac_path_GREP"
5662       ac_path_GREP_max=$ac_count
5663     fi
5664     # 10*(2^10) chars as input seems more than enough
5665     test $ac_count -gt 10 && break
5666   done
5667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5668 esac
5669
5670       $ac_path_GREP_found && break 3
5671     done
5672   done
5673 done
5674 IFS=$as_save_IFS
5675   if test -z "$ac_cv_path_GREP"; then
5676     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5677 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5678    { (exit 1); exit 1; }; }
5679   fi
5680 else
5681   ac_cv_path_GREP=$GREP
5682 fi
5683
5684 fi
5685 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5686 $as_echo "$ac_cv_path_GREP" >&6; }
5687  GREP="$ac_cv_path_GREP"
5688
5689
5690 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5691 $as_echo_n "checking for egrep... " >&6; }
5692 if test "${ac_cv_path_EGREP+set}" = set; then
5693   $as_echo_n "(cached) " >&6
5694 else
5695   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5696    then ac_cv_path_EGREP="$GREP -E"
5697    else
5698      if test -z "$EGREP"; then
5699   ac_path_EGREP_found=false
5700   # Loop through the user's path and test for each of PROGNAME-LIST
5701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706   for ac_prog in egrep; do
5707     for ac_exec_ext in '' $ac_executable_extensions; do
5708       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5709       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5710 # Check for GNU ac_path_EGREP and select it if it is found.
5711   # Check for GNU $ac_path_EGREP
5712 case `"$ac_path_EGREP" --version 2>&1` in
5713 *GNU*)
5714   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5715 *)
5716   ac_count=0
5717   $as_echo_n 0123456789 >"conftest.in"
5718   while :
5719   do
5720     cat "conftest.in" "conftest.in" >"conftest.tmp"
5721     mv "conftest.tmp" "conftest.in"
5722     cp "conftest.in" "conftest.nl"
5723     $as_echo 'EGREP' >> "conftest.nl"
5724     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726     ac_count=`expr $ac_count + 1`
5727     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5728       # Best one so far, save it but keep looking for a better one
5729       ac_cv_path_EGREP="$ac_path_EGREP"
5730       ac_path_EGREP_max=$ac_count
5731     fi
5732     # 10*(2^10) chars as input seems more than enough
5733     test $ac_count -gt 10 && break
5734   done
5735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5736 esac
5737
5738       $ac_path_EGREP_found && break 3
5739     done
5740   done
5741 done
5742 IFS=$as_save_IFS
5743   if test -z "$ac_cv_path_EGREP"; then
5744     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5745 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5746    { (exit 1); exit 1; }; }
5747   fi
5748 else
5749   ac_cv_path_EGREP=$EGREP
5750 fi
5751
5752    fi
5753 fi
5754 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5755 $as_echo "$ac_cv_path_EGREP" >&6; }
5756  EGREP="$ac_cv_path_EGREP"
5757
5758
5759 cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h.  */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h.  */
5765 #if __ELF__
5766   yes
5767 #endif
5768
5769 _ACEOF
5770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5771   $EGREP "yes" >/dev/null 2>&1; then
5772   ELF_SYS=true
5773 else
5774   if test "X$elf" = "Xyes" ; then
5775   ELF_SYS=true
5776 else
5777   ELF_SYS=
5778 fi
5779 fi
5780 rm -f conftest*
5781
5782
5783
5784 #
5785 # Assignments
5786 #
5787
5788 CPPFLAGS="$CPPFLAGS $INCLUDES"
5789 LDFLAGS="$LDFLAGS $LIBDIRS"
5790
5791
5792
5793
5794
5795 # Check whether --with-gnu-ld was given.
5796 if test "${with_gnu_ld+set}" = set; then
5797   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5798 else
5799   with_gnu_ld=no
5800 fi
5801
5802 ac_prog=ld
5803 if test "$GCC" = yes; then
5804   # Check if gcc -print-prog-name=ld gives a path.
5805   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5806 $as_echo_n "checking for ld used by GCC... " >&6; }
5807   case $host in
5808   *-*-mingw*)
5809     # gcc leaves a trailing carriage return which upsets mingw
5810     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5811   *)
5812     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5813   esac
5814   case "$ac_prog" in
5815     # Accept absolute paths.
5816     [\\/]* | [A-Za-z]:[\\/]*)
5817       re_direlt='/[^/][^/]*/\.\./'
5818       # Canonicalize the path of ld
5819       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5820       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5821         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5822       done
5823       test -z "$LD" && LD="$ac_prog"
5824       ;;
5825   "")
5826     # If it fails, then pretend we aren't using GCC.
5827     ac_prog=ld
5828     ;;
5829   *)
5830     # If it is relative, then search for the first ld in PATH.
5831     with_gnu_ld=unknown
5832     ;;
5833   esac
5834 elif test "$with_gnu_ld" = yes; then
5835   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5836 $as_echo_n "checking for GNU ld... " >&6; }
5837 else
5838   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5839 $as_echo_n "checking for non-GNU ld... " >&6; }
5840 fi
5841 if test "${ac_cv_path_LD+set}" = set; then
5842   $as_echo_n "(cached) " >&6
5843 else
5844   if test -z "$LD"; then
5845   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5846   for ac_dir in $PATH; do
5847     test -z "$ac_dir" && ac_dir=.
5848     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5849       ac_cv_path_LD="$ac_dir/$ac_prog"
5850       # Check to see if the program is GNU ld.  I'd rather use --version,
5851       # but apparently some GNU ld's only accept -v.
5852       # Break only if it was the GNU/non-GNU ld that we prefer.
5853       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5854         test "$with_gnu_ld" != no && break
5855       else
5856         test "$with_gnu_ld" != yes && break
5857       fi
5858     fi
5859   done
5860   IFS="$ac_save_ifs"
5861 else
5862   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5863 fi
5864 fi
5865
5866 LD="$ac_cv_path_LD"
5867 if test -n "$LD"; then
5868   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5869 $as_echo "$LD" >&6; }
5870 else
5871   { $as_echo "$as_me:$LINENO: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5875 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5876    { (exit 1); exit 1; }; }
5877 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5879 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5880   $as_echo_n "(cached) " >&6
5881 else
5882   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5883 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5884   ac_cv_prog_gnu_ld=yes
5885 else
5886   ac_cv_prog_gnu_ld=no
5887 fi
5888 fi
5889 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5890 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5891 with_gnu_ld=$ac_cv_prog_gnu_ld
5892
5893
5894
5895
5896 case $host_os in sysv5*)
5897   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5898 $as_echo_n "checking whether ld -R works... " >&6; }
5899 if test "${pgac_cv_prog_ld_R+set}" = set; then
5900   $as_echo_n "(cached) " >&6
5901 else
5902
5903     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5904     cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910
5911 int
5912 main ()
5913 {
5914
5915   ;
5916   return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (ac_try="$ac_link"
5921 case "(($ac_try" in
5922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923   *) ac_try_echo=$ac_try;;
5924 esac
5925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927   (eval "$ac_link") 2>conftest.er1
5928   ac_status=$?
5929   grep -v '^ *+' conftest.er1 >conftest.err
5930   rm -f conftest.er1
5931   cat conftest.err >&5
5932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } && {
5934          test -z "$ac_c_werror_flag" ||
5935          test ! -s conftest.err
5936        } && test -s conftest$ac_exeext && {
5937          test "$cross_compiling" = yes ||
5938          $as_test_x conftest$ac_exeext
5939        }; then
5940   pgac_cv_prog_ld_R=yes
5941 else
5942   $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945         pgac_cv_prog_ld_R=no
5946 fi
5947
5948 rm -rf conftest.dSYM
5949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5950       conftest$ac_exeext conftest.$ac_ext
5951     LDFLAGS=$pgac_save_LDFLAGS
5952
5953 fi
5954 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5955 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5956   ld_R_works=$pgac_cv_prog_ld_R
5957
5958 esac
5959 if test -n "$ac_tool_prefix"; then
5960   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_RANLIB+set}" = set; then
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if test -n "$RANLIB"; then
5968   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973   IFS=$as_save_IFS
5974   test -z "$as_dir" && as_dir=.
5975   for ac_exec_ext in '' $ac_executable_extensions; do
5976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5978     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979     break 2
5980   fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 RANLIB=$ac_cv_prog_RANLIB
5988 if test -n "$RANLIB"; then
5989   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5990 $as_echo "$RANLIB" >&6; }
5991 else
5992   { $as_echo "$as_me:$LINENO: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996
5997 fi
5998 if test -z "$ac_cv_prog_RANLIB"; then
5999   ac_ct_RANLIB=$RANLIB
6000   # Extract the first word of "ranlib", so it can be a program name with args.
6001 set dummy ranlib; ac_word=$2
6002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6005   $as_echo_n "(cached) " >&6
6006 else
6007   if test -n "$ac_ct_RANLIB"; then
6008   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013   IFS=$as_save_IFS
6014   test -z "$as_dir" && as_dir=.
6015   for ac_exec_ext in '' $ac_executable_extensions; do
6016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017     ac_cv_prog_ac_ct_RANLIB="ranlib"
6018     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019     break 2
6020   fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028 if test -n "$ac_ct_RANLIB"; then
6029   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6030 $as_echo "$ac_ct_RANLIB" >&6; }
6031 else
6032   { $as_echo "$as_me:$LINENO: result: no" >&5
6033 $as_echo "no" >&6; }
6034 fi
6035
6036   if test "x$ac_ct_RANLIB" = x; then
6037     RANLIB=":"
6038   else
6039     case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6044 esac
6045     RANLIB=$ac_ct_RANLIB
6046   fi
6047 else
6048   RANLIB="$ac_cv_prog_RANLIB"
6049 fi
6050
6051
6052   if test -n "$ac_tool_prefix"; then
6053   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6054 set dummy ${ac_tool_prefix}strip; ac_word=$2
6055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if test "${ac_cv_prog_STRIP+set}" = set; then
6058   $as_echo_n "(cached) " >&6
6059 else
6060   if test -n "$STRIP"; then
6061   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066   IFS=$as_save_IFS
6067   test -z "$as_dir" && as_dir=.
6068   for ac_exec_ext in '' $ac_executable_extensions; do
6069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6071     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072     break 2
6073   fi
6074 done
6075 done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 STRIP=$ac_cv_prog_STRIP
6081 if test -n "$STRIP"; then
6082   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6083 $as_echo "$STRIP" >&6; }
6084 else
6085   { $as_echo "$as_me:$LINENO: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089
6090 fi
6091 if test -z "$ac_cv_prog_STRIP"; then
6092   ac_ct_STRIP=$STRIP
6093   # Extract the first word of "strip", so it can be a program name with args.
6094 set dummy strip; ac_word=$2
6095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6098   $as_echo_n "(cached) " >&6
6099 else
6100   if test -n "$ac_ct_STRIP"; then
6101   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6102 else
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108   for ac_exec_ext in '' $ac_executable_extensions; do
6109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110     ac_cv_prog_ac_ct_STRIP="strip"
6111     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112     break 2
6113   fi
6114 done
6115 done
6116 IFS=$as_save_IFS
6117
6118 fi
6119 fi
6120 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6121 if test -n "$ac_ct_STRIP"; then
6122   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6123 $as_echo "$ac_ct_STRIP" >&6; }
6124 else
6125   { $as_echo "$as_me:$LINENO: result: no" >&5
6126 $as_echo "no" >&6; }
6127 fi
6128
6129   if test "x$ac_ct_STRIP" = x; then
6130     STRIP=":"
6131   else
6132     case $cross_compiling:$ac_tool_warned in
6133 yes:)
6134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136 ac_tool_warned=yes ;;
6137 esac
6138     STRIP=$ac_ct_STRIP
6139   fi
6140 else
6141   STRIP="$ac_cv_prog_STRIP"
6142 fi
6143
6144
6145   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6146 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6147   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6148     STRIP_STATIC_LIB="$STRIP -x"
6149     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6150     { $as_echo "$as_me:$LINENO: result: yes" >&5
6151 $as_echo "yes" >&6; }
6152   else
6153     STRIP_STATIC_LIB=:
6154     STRIP_SHARED_LIB=:
6155     { $as_echo "$as_me:$LINENO: result: no" >&5
6156 $as_echo "no" >&6; }
6157   fi
6158
6159
6160
6161 if test -n "$ac_tool_prefix"; then
6162   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ar; ac_word=$2
6164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if test "${ac_cv_prog_AR+set}" = set; then
6167   $as_echo_n "(cached) " >&6
6168 else
6169   if test -n "$AR"; then
6170   ac_cv_prog_AR="$AR" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175   IFS=$as_save_IFS
6176   test -z "$as_dir" && as_dir=.
6177   for ac_exec_ext in '' $ac_executable_extensions; do
6178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179     ac_cv_prog_AR="${ac_tool_prefix}ar"
6180     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181     break 2
6182   fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 AR=$ac_cv_prog_AR
6190 if test -n "$AR"; then
6191   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6192 $as_echo "$AR" >&6; }
6193 else
6194   { $as_echo "$as_me:$LINENO: result: no" >&5
6195 $as_echo "no" >&6; }
6196 fi
6197
6198
6199 fi
6200 if test -z "$ac_cv_prog_AR"; then
6201   ac_ct_AR=$AR
6202   # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy ar; ac_word=$2
6204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6207   $as_echo_n "(cached) " >&6
6208 else
6209   if test -n "$ac_ct_AR"; then
6210   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6214 do
6215   IFS=$as_save_IFS
6216   test -z "$as_dir" && as_dir=.
6217   for ac_exec_ext in '' $ac_executable_extensions; do
6218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219     ac_cv_prog_ac_ct_AR="ar"
6220     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221     break 2
6222   fi
6223 done
6224 done
6225 IFS=$as_save_IFS
6226
6227 fi
6228 fi
6229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6232 $as_echo "$ac_ct_AR" >&6; }
6233 else
6234   { $as_echo "$as_me:$LINENO: result: no" >&5
6235 $as_echo "no" >&6; }
6236 fi
6237
6238   if test "x$ac_ct_AR" = x; then
6239     AR="ar"
6240   else
6241     case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247     AR=$ac_ct_AR
6248   fi
6249 else
6250   AR="$ac_cv_prog_AR"
6251 fi
6252
6253 if test "$PORTNAME" = "win32"; then
6254   if test -n "$ac_tool_prefix"; then
6255   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6260   $as_echo_n "(cached) " >&6
6261 else
6262   if test -n "$DLLTOOL"; then
6263   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6264 else
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 for as_dir in $PATH
6267 do
6268   IFS=$as_save_IFS
6269   test -z "$as_dir" && as_dir=.
6270   for ac_exec_ext in '' $ac_executable_extensions; do
6271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6273     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6274     break 2
6275   fi
6276 done
6277 done
6278 IFS=$as_save_IFS
6279
6280 fi
6281 fi
6282 DLLTOOL=$ac_cv_prog_DLLTOOL
6283 if test -n "$DLLTOOL"; then
6284   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6285 $as_echo "$DLLTOOL" >&6; }
6286 else
6287   { $as_echo "$as_me:$LINENO: result: no" >&5
6288 $as_echo "no" >&6; }
6289 fi
6290
6291
6292 fi
6293 if test -z "$ac_cv_prog_DLLTOOL"; then
6294   ac_ct_DLLTOOL=$DLLTOOL
6295   # Extract the first word of "dlltool", so it can be a program name with args.
6296 set dummy dlltool; ac_word=$2
6297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6300   $as_echo_n "(cached) " >&6
6301 else
6302   if test -n "$ac_ct_DLLTOOL"; then
6303   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310   for ac_exec_ext in '' $ac_executable_extensions; do
6311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6313     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317 done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6323 if test -n "$ac_ct_DLLTOOL"; then
6324   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6325 $as_echo "$ac_ct_DLLTOOL" >&6; }
6326 else
6327   { $as_echo "$as_me:$LINENO: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330
6331   if test "x$ac_ct_DLLTOOL" = x; then
6332     DLLTOOL="dlltool"
6333   else
6334     case $cross_compiling:$ac_tool_warned in
6335 yes:)
6336 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338 ac_tool_warned=yes ;;
6339 esac
6340     DLLTOOL=$ac_ct_DLLTOOL
6341   fi
6342 else
6343   DLLTOOL="$ac_cv_prog_DLLTOOL"
6344 fi
6345
6346   if test -n "$ac_tool_prefix"; then
6347   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6352   $as_echo_n "(cached) " >&6
6353 else
6354   if test -n "$DLLWRAP"; then
6355   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360   IFS=$as_save_IFS
6361   test -z "$as_dir" && as_dir=.
6362   for ac_exec_ext in '' $ac_executable_extensions; do
6363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6365     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366     break 2
6367   fi
6368 done
6369 done
6370 IFS=$as_save_IFS
6371
6372 fi
6373 fi
6374 DLLWRAP=$ac_cv_prog_DLLWRAP
6375 if test -n "$DLLWRAP"; then
6376   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6377 $as_echo "$DLLWRAP" >&6; }
6378 else
6379   { $as_echo "$as_me:$LINENO: result: no" >&5
6380 $as_echo "no" >&6; }
6381 fi
6382
6383
6384 fi
6385 if test -z "$ac_cv_prog_DLLWRAP"; then
6386   ac_ct_DLLWRAP=$DLLWRAP
6387   # Extract the first word of "dllwrap", so it can be a program name with args.
6388 set dummy dllwrap; ac_word=$2
6389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6392   $as_echo_n "(cached) " >&6
6393 else
6394   if test -n "$ac_ct_DLLWRAP"; then
6395   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402   for ac_exec_ext in '' $ac_executable_extensions; do
6403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6405     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409 done
6410 IFS=$as_save_IFS
6411
6412 fi
6413 fi
6414 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6415 if test -n "$ac_ct_DLLWRAP"; then
6416   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6417 $as_echo "$ac_ct_DLLWRAP" >&6; }
6418 else
6419   { $as_echo "$as_me:$LINENO: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422
6423   if test "x$ac_ct_DLLWRAP" = x; then
6424     DLLWRAP="dllwrap"
6425   else
6426     case $cross_compiling:$ac_tool_warned in
6427 yes:)
6428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6431 esac
6432     DLLWRAP=$ac_ct_DLLWRAP
6433   fi
6434 else
6435   DLLWRAP="$ac_cv_prog_DLLWRAP"
6436 fi
6437
6438   if test -n "$ac_tool_prefix"; then
6439   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}windres; ac_word=$2
6441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_WINDRES+set}" = set; then
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$WINDRES"; then
6447   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454   for ac_exec_ext in '' $ac_executable_extensions; do
6455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6457     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 WINDRES=$ac_cv_prog_WINDRES
6467 if test -n "$WINDRES"; then
6468   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6469 $as_echo "$WINDRES" >&6; }
6470 else
6471   { $as_echo "$as_me:$LINENO: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476 fi
6477 if test -z "$ac_cv_prog_WINDRES"; then
6478   ac_ct_WINDRES=$WINDRES
6479   # Extract the first word of "windres", so it can be a program name with args.
6480 set dummy windres; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6484   $as_echo_n "(cached) " >&6
6485 else
6486   if test -n "$ac_ct_WINDRES"; then
6487   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494   for ac_exec_ext in '' $ac_executable_extensions; do
6495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496     ac_cv_prog_ac_ct_WINDRES="windres"
6497     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501 done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6507 if test -n "$ac_ct_WINDRES"; then
6508   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6509 $as_echo "$ac_ct_WINDRES" >&6; }
6510 else
6511   { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515   if test "x$ac_ct_WINDRES" = x; then
6516     WINDRES="windres"
6517   else
6518     case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524     WINDRES=$ac_ct_WINDRES
6525   fi
6526 else
6527   WINDRES="$ac_cv_prog_WINDRES"
6528 fi
6529
6530 fi
6531
6532 # Extract the first word of "tar", so it can be a program name with args.
6533 set dummy tar; ac_word=$2
6534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_path_TAR+set}" = set; then
6537   $as_echo_n "(cached) " >&6
6538 else
6539   case $TAR in
6540   [\\/]* | ?:[\\/]*)
6541   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6542   ;;
6543   *)
6544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547   IFS=$as_save_IFS
6548   test -z "$as_dir" && as_dir=.
6549   for ac_exec_ext in '' $ac_executable_extensions; do
6550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6552     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553     break 2
6554   fi
6555 done
6556 done
6557 IFS=$as_save_IFS
6558
6559   ;;
6560 esac
6561 fi
6562 TAR=$ac_cv_path_TAR
6563 if test -n "$TAR"; then
6564   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6565 $as_echo "$TAR" >&6; }
6566 else
6567   { $as_echo "$as_me:$LINENO: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570
6571
6572 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6573 $as_echo_n "checking whether ln -s works... " >&6; }
6574 LN_S=$as_ln_s
6575 if test "$LN_S" = "ln -s"; then
6576   { $as_echo "$as_me:$LINENO: result: yes" >&5
6577 $as_echo "yes" >&6; }
6578 else
6579   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6580 $as_echo "no, using $LN_S" >&6; }
6581 fi
6582
6583 for ac_prog in gawk mawk nawk awk
6584 do
6585   # Extract the first word of "$ac_prog", so it can be a program name with args.
6586 set dummy $ac_prog; ac_word=$2
6587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_AWK+set}" = set; then
6590   $as_echo_n "(cached) " >&6
6591 else
6592   if test -n "$AWK"; then
6593   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600   for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_prog_AWK="$ac_prog"
6603     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 AWK=$ac_cv_prog_AWK
6613 if test -n "$AWK"; then
6614   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6615 $as_echo "$AWK" >&6; }
6616 else
6617   { $as_echo "$as_me:$LINENO: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621
6622   test -n "$AWK" && break
6623 done
6624
6625 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6626 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6627 if test -z "$MKDIR_P"; then
6628   if test "${ac_cv_path_mkdir+set}" = set; then
6629   $as_echo_n "(cached) " >&6
6630 else
6631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6633 do
6634   IFS=$as_save_IFS
6635   test -z "$as_dir" && as_dir=.
6636   for ac_prog in mkdir gmkdir; do
6637          for ac_exec_ext in '' $ac_executable_extensions; do
6638            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6639            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6640              'mkdir (GNU coreutils) '* | \
6641              'mkdir (coreutils) '* | \
6642              'mkdir (fileutils) '4.1*)
6643                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6644                break 3;;
6645            esac
6646          done
6647        done
6648 done
6649 IFS=$as_save_IFS
6650
6651 fi
6652
6653   if test "${ac_cv_path_mkdir+set}" = set; then
6654     MKDIR_P="$ac_cv_path_mkdir -p"
6655   else
6656     # As a last resort, use the slow shell script.  Don't cache a
6657     # value for MKDIR_P within a source directory, because that will
6658     # break other packages using the cache if that directory is
6659     # removed, or if the value is a relative name.
6660     test -d ./--version && rmdir ./--version
6661     MKDIR_P="$ac_install_sh -d"
6662   fi
6663 fi
6664 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6665 $as_echo "$MKDIR_P" >&6; }
6666
6667 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6668 # a relative path to it in each makefile where it subsitutes it. This clashes
6669 # with our Makefile.global concept. This workaround helps.
6670 case $MKDIR_P in
6671   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6672 esac
6673
6674 # Let the user override the search
6675 if test -z "$BISON"; then
6676   for ac_prog in bison
6677 do
6678   # Extract the first word of "$ac_prog", so it can be a program name with args.
6679 set dummy $ac_prog; ac_word=$2
6680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_path_BISON+set}" = set; then
6683   $as_echo_n "(cached) " >&6
6684 else
6685   case $BISON in
6686   [\\/]* | ?:[\\/]*)
6687   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6688   ;;
6689   *)
6690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695   for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6698     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705   ;;
6706 esac
6707 fi
6708 BISON=$ac_cv_path_BISON
6709 if test -n "$BISON"; then
6710   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6711 $as_echo "$BISON" >&6; }
6712 else
6713   { $as_echo "$as_me:$LINENO: result: no" >&5
6714 $as_echo "no" >&6; }
6715 fi
6716
6717
6718   test -n "$BISON" && break
6719 done
6720
6721 fi
6722
6723 if test "$BISON"; then
6724   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6725   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6726 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6727   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6728   then
6729     { $as_echo "$as_me:$LINENO: WARNING:
6730 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6731 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6732 $as_echo "$as_me: WARNING:
6733 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6734 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6735     BISON=""
6736   fi
6737 fi
6738
6739 if test -z "$BISON"; then
6740   { $as_echo "$as_me:$LINENO: WARNING:
6741 *** Without Bison you will not be able to build PostgreSQL from Git nor
6742 *** change any of the parser definition files.  You can obtain Bison from
6743 *** a GNU mirror site.  (If you are using the official distribution of
6744 *** PostgreSQL then you do not need to worry about this, because the Bison
6745 *** output is pre-generated.)" >&5
6746 $as_echo "$as_me: WARNING:
6747 *** Without Bison you will not be able to build PostgreSQL from Git nor
6748 *** change any of the parser definition files.  You can obtain Bison from
6749 *** a GNU mirror site.  (If you are using the official distribution of
6750 *** PostgreSQL then you do not need to worry about this, because the Bison
6751 *** output is pre-generated.)" >&2;}
6752 fi
6753 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6754
6755
6756 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6757 $as_echo_n "checking for flex... " >&6; }
6758 if test "${pgac_cv_path_flex+set}" = set; then
6759   $as_echo_n "(cached) " >&6
6760 else
6761   # Let the user override the test
6762 if test -n "$FLEX"; then
6763   pgac_cv_path_flex=$FLEX
6764 else
6765   pgac_save_IFS=$IFS
6766   IFS=$PATH_SEPARATOR
6767   for pgac_dir in $PATH; do
6768     IFS=$pgac_save_IFS
6769     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6770       pgac_dir=`pwd`
6771     fi
6772     for pgac_prog in flex lex; do
6773       pgac_candidate="$pgac_dir/$pgac_prog"
6774       if test -f "$pgac_candidate" \
6775         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6776       then
6777         echo '%%'  > conftest.l
6778         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6779           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6780           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6781           then
6782             pgac_cv_path_flex=$pgac_candidate
6783             break 2
6784           else
6785             { $as_echo "$as_me:$LINENO: WARNING:
6786 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6787 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6788 $as_echo "$as_me: WARNING:
6789 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6790 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6791           fi
6792         fi
6793       fi
6794     done
6795   done
6796   rm -f conftest.l lex.yy.c
6797   : ${pgac_cv_path_flex=no}
6798 fi
6799
6800 fi
6801 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6802 $as_echo "$pgac_cv_path_flex" >&6; }
6803 if test x"$pgac_cv_path_flex" = x"no"; then
6804   { $as_echo "$as_me:$LINENO: WARNING:
6805 *** Without Flex you will not be able to build PostgreSQL from Git nor
6806 *** change any of the scanner definition files.  You can obtain Flex from
6807 *** a GNU mirror site.  (If you are using the official distribution of
6808 *** PostgreSQL then you do not need to worry about this because the Flex
6809 *** output is pre-generated.)" >&5
6810 $as_echo "$as_me: WARNING:
6811 *** Without Flex you will not be able to build PostgreSQL from Git nor
6812 *** change any of the scanner definition files.  You can obtain Flex from
6813 *** a GNU mirror site.  (If you are using the official distribution of
6814 *** PostgreSQL then you do not need to worry about this because the Flex
6815 *** output is pre-generated.)" >&2;}
6816
6817   FLEX=
6818 else
6819   FLEX=$pgac_cv_path_flex
6820   pgac_flex_version=`$FLEX --version 2>/dev/null`
6821   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6822 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6823 fi
6824
6825
6826
6827
6828
6829 # Let the user override the search
6830 if test -z "$PERL"; then
6831   # Extract the first word of "perl", so it can be a program name with args.
6832 set dummy perl; ac_word=$2
6833 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if test "${ac_cv_path_PERL+set}" = set; then
6836   $as_echo_n "(cached) " >&6
6837 else
6838   case $PERL in
6839   [\\/]* | ?:[\\/]*)
6840   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6841   ;;
6842   *)
6843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848   for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6851     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858   ;;
6859 esac
6860 fi
6861 PERL=$ac_cv_path_PERL
6862 if test -n "$PERL"; then
6863   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6864 $as_echo "$PERL" >&6; }
6865 else
6866   { $as_echo "$as_me:$LINENO: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870
6871 fi
6872
6873 if test "$PERL"; then
6874   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'`
6875   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6876 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6877   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6878     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6879   then
6880     { $as_echo "$as_me:$LINENO: WARNING:
6881 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6882 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6883 $as_echo "$as_me: WARNING:
6884 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6885 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6886     PERL=""
6887   fi
6888 fi
6889
6890 if test -z "$PERL"; then
6891   { $as_echo "$as_me:$LINENO: WARNING:
6892 *** Without Perl you will not be able to build PostgreSQL from Git.
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.)" >&5
6896 $as_echo "$as_me: WARNING:
6897 *** Without Perl you will not be able to build PostgreSQL from Git.
6898 *** You can obtain Perl from any CPAN mirror site.
6899 *** (If you are using the official distribution of PostgreSQL then you do not
6900 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6901 fi
6902
6903 if test "$with_perl" = yes; then
6904   if test -z "$PERL"; then
6905     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6906 $as_echo "$as_me: error: Perl not found" >&2;}
6907    { (exit 1); exit 1; }; }
6908   fi
6909
6910 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6911 $as_echo_n "checking for Perl archlibexp... " >&6; }
6912 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6913 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6914 $as_echo "$perl_archlibexp" >&6; }
6915 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6916 $as_echo_n "checking for Perl privlibexp... " >&6; }
6917 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6918 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6919 $as_echo "$perl_privlibexp" >&6; }
6920 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6921 $as_echo_n "checking for Perl useshrplib... " >&6; }
6922 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6923 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6924 $as_echo "$perl_useshrplib" >&6; }
6925
6926 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6927 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6928 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6929 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6930 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6931 if test -z "$perl_embed_ldflags" ; then
6932         { $as_echo "$as_me:$LINENO: result: no" >&5
6933 $as_echo "no" >&6; }
6934         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6935 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6936 installed." >&5
6937 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6938 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6939 installed." >&2;}
6940    { (exit 1); exit 1; }; }
6941 else
6942         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6943 $as_echo "$perl_embed_ldflags" >&6; }
6944 fi
6945
6946 fi
6947
6948 if test "$with_python" = yes; then
6949   # Extract the first word of "python", so it can be a program name with args.
6950 set dummy python; ac_word=$2
6951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if test "${ac_cv_path_PYTHON+set}" = set; then
6954   $as_echo_n "(cached) " >&6
6955 else
6956   case $PYTHON in
6957   [\\/]* | ?:[\\/]*)
6958   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6959   ;;
6960   *)
6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966   for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6969     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976   ;;
6977 esac
6978 fi
6979 PYTHON=$ac_cv_path_PYTHON
6980 if test -n "$PYTHON"; then
6981   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6982 $as_echo "$PYTHON" >&6; }
6983 else
6984   { $as_echo "$as_me:$LINENO: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987
6988
6989 if test x"$PYTHON" = x""; then
6990   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6991 $as_echo "$as_me: error: Python not found" >&2;}
6992    { (exit 1); exit 1; }; }
6993 fi
6994
6995
6996 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6997 $as_echo_n "checking for Python distutils module... " >&6; }
6998 if "${PYTHON}" -c 'import distutils' 2>&5
6999 then
7000     { $as_echo "$as_me:$LINENO: result: yes" >&5
7001 $as_echo "yes" >&6; }
7002 else
7003     { $as_echo "$as_me:$LINENO: result: no" >&5
7004 $as_echo "no" >&6; }
7005     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7006 $as_echo "$as_me: error: distutils module not found" >&2;}
7007    { (exit 1); exit 1; }; }
7008 fi
7009 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7010 $as_echo_n "checking Python configuration directory... " >&6; }
7011 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7012 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7013 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'))"`
7014 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7015
7016 # This should be enough of a message.
7017 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7018 $as_echo "$python_configdir" >&6; }
7019
7020
7021 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7022 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7023
7024 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7025 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7026 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7027 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7028
7029 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7030 then
7031         # New way: use the official shared library
7032         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7033         python_libspec="-L${python_libdir} -l${ldlibrary}"
7034 else
7035         # Old way: use libpython from python_configdir
7036         python_libdir="${python_configdir}"
7037         python_libspec="-L${python_libdir} -lpython${python_version}"
7038 fi
7039
7040 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7041
7042 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7043 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7044
7045
7046 # threaded python is not supported on bsd's
7047 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7048 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7049 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7050 if test "$pythreads" = "1"; then
7051   { $as_echo "$as_me:$LINENO: result: yes" >&5
7052 $as_echo "yes" >&6; }
7053   case $host_os in
7054   openbsd*|freebsd*)
7055     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7056 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7057    { (exit 1); exit 1; }; }
7058     ;;
7059   esac
7060 else
7061   { $as_echo "$as_me:$LINENO: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065
7066 fi
7067
7068 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7069   # Extract the first word of "zic", so it can be a program name with args.
7070 set dummy zic; ac_word=$2
7071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if test "${ac_cv_path_ZIC+set}" = set; then
7074   $as_echo_n "(cached) " >&6
7075 else
7076   case $ZIC in
7077   [\\/]* | ?:[\\/]*)
7078   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7079   ;;
7080   *)
7081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH
7083 do
7084   IFS=$as_save_IFS
7085   test -z "$as_dir" && as_dir=.
7086   for ac_exec_ext in '' $ac_executable_extensions; do
7087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7089     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090     break 2
7091   fi
7092 done
7093 done
7094 IFS=$as_save_IFS
7095
7096   ;;
7097 esac
7098 fi
7099 ZIC=$ac_cv_path_ZIC
7100 if test -n "$ZIC"; then
7101   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7102 $as_echo "$ZIC" >&6; }
7103 else
7104   { $as_echo "$as_me:$LINENO: result: no" >&5
7105 $as_echo "no" >&6; }
7106 fi
7107
7108
7109   if test -z "$ZIC"; then
7110     { { $as_echo "$as_me:$LINENO: error:
7111 When cross-compiling, either use the option --with-system-tzdata to use
7112 existing time-zone data, or set the environment variable ZIC to a zic
7113 program to use during the build." >&5
7114 $as_echo "$as_me: error:
7115 When cross-compiling, either use the option --with-system-tzdata to use
7116 existing time-zone data, or set the environment variable ZIC to a zic
7117 program to use during the build." >&2;}
7118    { (exit 1); exit 1; }; }
7119   fi
7120 fi
7121
7122
7123 ##
7124 ## Libraries
7125 ##
7126 ## Most libraries are included only if they demonstrably provide a function
7127 ## we need, but libm is an exception: always include it, because there are
7128 ## too many compilers that play cute optimization games that will break
7129 ## probes for standard functions such as pow().
7130 ##
7131
7132
7133 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7134 $as_echo_n "checking for main in -lm... " >&6; }
7135 if test "${ac_cv_lib_m_main+set}" = set; then
7136   $as_echo_n "(cached) " >&6
7137 else
7138   ac_check_lib_save_LIBS=$LIBS
7139 LIBS="-lm  $LIBS"
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146
7147
7148 int
7149 main ()
7150 {
7151 return main ();
7152   ;
7153   return 0;
7154 }
7155 _ACEOF
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (ac_try="$ac_link"
7158 case "(($ac_try" in
7159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7160   *) ac_try_echo=$ac_try;;
7161 esac
7162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7163 $as_echo "$ac_try_echo") >&5
7164   (eval "$ac_link") 2>conftest.er1
7165   ac_status=$?
7166   grep -v '^ *+' conftest.er1 >conftest.err
7167   rm -f conftest.er1
7168   cat conftest.err >&5
7169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); } && {
7171          test -z "$ac_c_werror_flag" ||
7172          test ! -s conftest.err
7173        } && test -s conftest$ac_exeext && {
7174          test "$cross_compiling" = yes ||
7175          $as_test_x conftest$ac_exeext
7176        }; then
7177   ac_cv_lib_m_main=yes
7178 else
7179   $as_echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182         ac_cv_lib_m_main=no
7183 fi
7184
7185 rm -rf conftest.dSYM
7186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7187       conftest$ac_exeext conftest.$ac_ext
7188 LIBS=$ac_check_lib_save_LIBS
7189 fi
7190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7191 $as_echo "$ac_cv_lib_m_main" >&6; }
7192 if test "x$ac_cv_lib_m_main" = x""yes; then
7193   cat >>confdefs.h <<_ACEOF
7194 #define HAVE_LIBM 1
7195 _ACEOF
7196
7197   LIBS="-lm $LIBS"
7198
7199 fi
7200
7201 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7202 $as_echo_n "checking for library containing setproctitle... " >&6; }
7203 if test "${ac_cv_search_setproctitle+set}" = set; then
7204   $as_echo_n "(cached) " >&6
7205 else
7206   ac_func_search_save_LIBS=$LIBS
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h.  */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h.  */
7213
7214 /* Override any GCC internal prototype to avoid an error.
7215    Use char because int might match the return type of a GCC
7216    builtin and then its argument prototype would still apply.  */
7217 #ifdef __cplusplus
7218 extern "C"
7219 #endif
7220 char setproctitle ();
7221 int
7222 main ()
7223 {
7224 return setproctitle ();
7225   ;
7226   return 0;
7227 }
7228 _ACEOF
7229 for ac_lib in '' util; do
7230   if test -z "$ac_lib"; then
7231     ac_res="none required"
7232   else
7233     ac_res=-l$ac_lib
7234     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7235   fi
7236   rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7238 case "(($ac_try" in
7239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240   *) ac_try_echo=$ac_try;;
7241 esac
7242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7243 $as_echo "$ac_try_echo") >&5
7244   (eval "$ac_link") 2>conftest.er1
7245   ac_status=$?
7246   grep -v '^ *+' conftest.er1 >conftest.err
7247   rm -f conftest.er1
7248   cat conftest.err >&5
7249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); } && {
7251          test -z "$ac_c_werror_flag" ||
7252          test ! -s conftest.err
7253        } && test -s conftest$ac_exeext && {
7254          test "$cross_compiling" = yes ||
7255          $as_test_x conftest$ac_exeext
7256        }; then
7257   ac_cv_search_setproctitle=$ac_res
7258 else
7259   $as_echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7261
7262
7263 fi
7264
7265 rm -rf conftest.dSYM
7266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7267       conftest$ac_exeext
7268   if test "${ac_cv_search_setproctitle+set}" = set; then
7269   break
7270 fi
7271 done
7272 if test "${ac_cv_search_setproctitle+set}" = set; then
7273   :
7274 else
7275   ac_cv_search_setproctitle=no
7276 fi
7277 rm conftest.$ac_ext
7278 LIBS=$ac_func_search_save_LIBS
7279 fi
7280 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7281 $as_echo "$ac_cv_search_setproctitle" >&6; }
7282 ac_res=$ac_cv_search_setproctitle
7283 if test "$ac_res" != no; then
7284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7285
7286 fi
7287
7288 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7289 $as_echo_n "checking for library containing dlopen... " >&6; }
7290 if test "${ac_cv_search_dlopen+set}" = set; then
7291   $as_echo_n "(cached) " >&6
7292 else
7293   ac_func_search_save_LIBS=$LIBS
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300
7301 /* Override any GCC internal prototype to avoid an error.
7302    Use char because int might match the return type of a GCC
7303    builtin and then its argument prototype would still apply.  */
7304 #ifdef __cplusplus
7305 extern "C"
7306 #endif
7307 char dlopen ();
7308 int
7309 main ()
7310 {
7311 return dlopen ();
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 for ac_lib in '' dl; do
7317   if test -z "$ac_lib"; then
7318     ac_res="none required"
7319   else
7320     ac_res=-l$ac_lib
7321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7322   fi
7323   rm -f conftest.$ac_objext conftest$ac_exeext
7324 if { (ac_try="$ac_link"
7325 case "(($ac_try" in
7326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327   *) ac_try_echo=$ac_try;;
7328 esac
7329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7330 $as_echo "$ac_try_echo") >&5
7331   (eval "$ac_link") 2>conftest.er1
7332   ac_status=$?
7333   grep -v '^ *+' conftest.er1 >conftest.err
7334   rm -f conftest.er1
7335   cat conftest.err >&5
7336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); } && {
7338          test -z "$ac_c_werror_flag" ||
7339          test ! -s conftest.err
7340        } && test -s conftest$ac_exeext && {
7341          test "$cross_compiling" = yes ||
7342          $as_test_x conftest$ac_exeext
7343        }; then
7344   ac_cv_search_dlopen=$ac_res
7345 else
7346   $as_echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7348
7349
7350 fi
7351
7352 rm -rf conftest.dSYM
7353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7354       conftest$ac_exeext
7355   if test "${ac_cv_search_dlopen+set}" = set; then
7356   break
7357 fi
7358 done
7359 if test "${ac_cv_search_dlopen+set}" = set; then
7360   :
7361 else
7362   ac_cv_search_dlopen=no
7363 fi
7364 rm conftest.$ac_ext
7365 LIBS=$ac_func_search_save_LIBS
7366 fi
7367 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7368 $as_echo "$ac_cv_search_dlopen" >&6; }
7369 ac_res=$ac_cv_search_dlopen
7370 if test "$ac_res" != no; then
7371   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7372
7373 fi
7374
7375 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7376 $as_echo_n "checking for library containing socket... " >&6; }
7377 if test "${ac_cv_search_socket+set}" = set; then
7378   $as_echo_n "(cached) " >&6
7379 else
7380   ac_func_search_save_LIBS=$LIBS
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h.  */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h.  */
7387
7388 /* Override any GCC internal prototype to avoid an error.
7389    Use char because int might match the return type of a GCC
7390    builtin and then its argument prototype would still apply.  */
7391 #ifdef __cplusplus
7392 extern "C"
7393 #endif
7394 char socket ();
7395 int
7396 main ()
7397 {
7398 return socket ();
7399   ;
7400   return 0;
7401 }
7402 _ACEOF
7403 for ac_lib in '' socket wsock32; do
7404   if test -z "$ac_lib"; then
7405     ac_res="none required"
7406   else
7407     ac_res=-l$ac_lib
7408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7409   fi
7410   rm -f conftest.$ac_objext conftest$ac_exeext
7411 if { (ac_try="$ac_link"
7412 case "(($ac_try" in
7413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414   *) ac_try_echo=$ac_try;;
7415 esac
7416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7417 $as_echo "$ac_try_echo") >&5
7418   (eval "$ac_link") 2>conftest.er1
7419   ac_status=$?
7420   grep -v '^ *+' conftest.er1 >conftest.err
7421   rm -f conftest.er1
7422   cat conftest.err >&5
7423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); } && {
7425          test -z "$ac_c_werror_flag" ||
7426          test ! -s conftest.err
7427        } && test -s conftest$ac_exeext && {
7428          test "$cross_compiling" = yes ||
7429          $as_test_x conftest$ac_exeext
7430        }; then
7431   ac_cv_search_socket=$ac_res
7432 else
7433   $as_echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436
7437 fi
7438
7439 rm -rf conftest.dSYM
7440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7441       conftest$ac_exeext
7442   if test "${ac_cv_search_socket+set}" = set; then
7443   break
7444 fi
7445 done
7446 if test "${ac_cv_search_socket+set}" = set; then
7447   :
7448 else
7449   ac_cv_search_socket=no
7450 fi
7451 rm conftest.$ac_ext
7452 LIBS=$ac_func_search_save_LIBS
7453 fi
7454 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7455 $as_echo "$ac_cv_search_socket" >&6; }
7456 ac_res=$ac_cv_search_socket
7457 if test "$ac_res" != no; then
7458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7459
7460 fi
7461
7462 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7463 $as_echo_n "checking for library containing shl_load... " >&6; }
7464 if test "${ac_cv_search_shl_load+set}" = set; then
7465   $as_echo_n "(cached) " >&6
7466 else
7467   ac_func_search_save_LIBS=$LIBS
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h.  */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h.  */
7474
7475 /* Override any GCC internal prototype to avoid an error.
7476    Use char because int might match the return type of a GCC
7477    builtin and then its argument prototype would still apply.  */
7478 #ifdef __cplusplus
7479 extern "C"
7480 #endif
7481 char shl_load ();
7482 int
7483 main ()
7484 {
7485 return shl_load ();
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 for ac_lib in '' dld; do
7491   if test -z "$ac_lib"; then
7492     ac_res="none required"
7493   else
7494     ac_res=-l$ac_lib
7495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7496   fi
7497   rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (ac_try="$ac_link"
7499 case "(($ac_try" in
7500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501   *) ac_try_echo=$ac_try;;
7502 esac
7503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505   (eval "$ac_link") 2>conftest.er1
7506   ac_status=$?
7507   grep -v '^ *+' conftest.er1 >conftest.err
7508   rm -f conftest.er1
7509   cat conftest.err >&5
7510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); } && {
7512          test -z "$ac_c_werror_flag" ||
7513          test ! -s conftest.err
7514        } && test -s conftest$ac_exeext && {
7515          test "$cross_compiling" = yes ||
7516          $as_test_x conftest$ac_exeext
7517        }; then
7518   ac_cv_search_shl_load=$ac_res
7519 else
7520   $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523
7524 fi
7525
7526 rm -rf conftest.dSYM
7527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7528       conftest$ac_exeext
7529   if test "${ac_cv_search_shl_load+set}" = set; then
7530   break
7531 fi
7532 done
7533 if test "${ac_cv_search_shl_load+set}" = set; then
7534   :
7535 else
7536   ac_cv_search_shl_load=no
7537 fi
7538 rm conftest.$ac_ext
7539 LIBS=$ac_func_search_save_LIBS
7540 fi
7541 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7542 $as_echo "$ac_cv_search_shl_load" >&6; }
7543 ac_res=$ac_cv_search_shl_load
7544 if test "$ac_res" != no; then
7545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7546
7547 fi
7548
7549 # We only use libld in port/dynloader/aix.c
7550 case $host_os in
7551      aix*)
7552         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7553 $as_echo_n "checking for library containing ldopen... " >&6; }
7554 if test "${ac_cv_search_ldopen+set}" = set; then
7555   $as_echo_n "(cached) " >&6
7556 else
7557   ac_func_search_save_LIBS=$LIBS
7558 cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564
7565 /* Override any GCC internal prototype to avoid an error.
7566    Use char because int might match the return type of a GCC
7567    builtin and then its argument prototype would still apply.  */
7568 #ifdef __cplusplus
7569 extern "C"
7570 #endif
7571 char ldopen ();
7572 int
7573 main ()
7574 {
7575 return ldopen ();
7576   ;
7577   return 0;
7578 }
7579 _ACEOF
7580 for ac_lib in '' ld; do
7581   if test -z "$ac_lib"; then
7582     ac_res="none required"
7583   else
7584     ac_res=-l$ac_lib
7585     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7586   fi
7587   rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (ac_try="$ac_link"
7589 case "(($ac_try" in
7590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591   *) ac_try_echo=$ac_try;;
7592 esac
7593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7594 $as_echo "$ac_try_echo") >&5
7595   (eval "$ac_link") 2>conftest.er1
7596   ac_status=$?
7597   grep -v '^ *+' conftest.er1 >conftest.err
7598   rm -f conftest.er1
7599   cat conftest.err >&5
7600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); } && {
7602          test -z "$ac_c_werror_flag" ||
7603          test ! -s conftest.err
7604        } && test -s conftest$ac_exeext && {
7605          test "$cross_compiling" = yes ||
7606          $as_test_x conftest$ac_exeext
7607        }; then
7608   ac_cv_search_ldopen=$ac_res
7609 else
7610   $as_echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7612
7613
7614 fi
7615
7616 rm -rf conftest.dSYM
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7618       conftest$ac_exeext
7619   if test "${ac_cv_search_ldopen+set}" = set; then
7620   break
7621 fi
7622 done
7623 if test "${ac_cv_search_ldopen+set}" = set; then
7624   :
7625 else
7626   ac_cv_search_ldopen=no
7627 fi
7628 rm conftest.$ac_ext
7629 LIBS=$ac_func_search_save_LIBS
7630 fi
7631 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7632 $as_echo "$ac_cv_search_ldopen" >&6; }
7633 ac_res=$ac_cv_search_ldopen
7634 if test "$ac_res" != no; then
7635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7636
7637 fi
7638
7639         ;;
7640 esac
7641 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7642 $as_echo_n "checking for library containing getopt_long... " >&6; }
7643 if test "${ac_cv_search_getopt_long+set}" = set; then
7644   $as_echo_n "(cached) " >&6
7645 else
7646   ac_func_search_save_LIBS=$LIBS
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653
7654 /* Override any GCC internal prototype to avoid an error.
7655    Use char because int might match the return type of a GCC
7656    builtin and then its argument prototype would still apply.  */
7657 #ifdef __cplusplus
7658 extern "C"
7659 #endif
7660 char getopt_long ();
7661 int
7662 main ()
7663 {
7664 return getopt_long ();
7665   ;
7666   return 0;
7667 }
7668 _ACEOF
7669 for ac_lib in '' getopt gnugetopt; do
7670   if test -z "$ac_lib"; then
7671     ac_res="none required"
7672   else
7673     ac_res=-l$ac_lib
7674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7675   fi
7676   rm -f conftest.$ac_objext conftest$ac_exeext
7677 if { (ac_try="$ac_link"
7678 case "(($ac_try" in
7679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680   *) ac_try_echo=$ac_try;;
7681 esac
7682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7683 $as_echo "$ac_try_echo") >&5
7684   (eval "$ac_link") 2>conftest.er1
7685   ac_status=$?
7686   grep -v '^ *+' conftest.er1 >conftest.err
7687   rm -f conftest.er1
7688   cat conftest.err >&5
7689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); } && {
7691          test -z "$ac_c_werror_flag" ||
7692          test ! -s conftest.err
7693        } && test -s conftest$ac_exeext && {
7694          test "$cross_compiling" = yes ||
7695          $as_test_x conftest$ac_exeext
7696        }; then
7697   ac_cv_search_getopt_long=$ac_res
7698 else
7699   $as_echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7701
7702
7703 fi
7704
7705 rm -rf conftest.dSYM
7706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7707       conftest$ac_exeext
7708   if test "${ac_cv_search_getopt_long+set}" = set; then
7709   break
7710 fi
7711 done
7712 if test "${ac_cv_search_getopt_long+set}" = set; then
7713   :
7714 else
7715   ac_cv_search_getopt_long=no
7716 fi
7717 rm conftest.$ac_ext
7718 LIBS=$ac_func_search_save_LIBS
7719 fi
7720 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7721 $as_echo "$ac_cv_search_getopt_long" >&6; }
7722 ac_res=$ac_cv_search_getopt_long
7723 if test "$ac_res" != no; then
7724   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7725
7726 fi
7727
7728 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7729 $as_echo_n "checking for library containing crypt... " >&6; }
7730 if test "${ac_cv_search_crypt+set}" = set; then
7731   $as_echo_n "(cached) " >&6
7732 else
7733   ac_func_search_save_LIBS=$LIBS
7734 cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h.  */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h.  */
7740
7741 /* Override any GCC internal prototype to avoid an error.
7742    Use char because int might match the return type of a GCC
7743    builtin and then its argument prototype would still apply.  */
7744 #ifdef __cplusplus
7745 extern "C"
7746 #endif
7747 char crypt ();
7748 int
7749 main ()
7750 {
7751 return crypt ();
7752   ;
7753   return 0;
7754 }
7755 _ACEOF
7756 for ac_lib in '' crypt; do
7757   if test -z "$ac_lib"; then
7758     ac_res="none required"
7759   else
7760     ac_res=-l$ac_lib
7761     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7762   fi
7763   rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (ac_try="$ac_link"
7765 case "(($ac_try" in
7766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767   *) ac_try_echo=$ac_try;;
7768 esac
7769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7770 $as_echo "$ac_try_echo") >&5
7771   (eval "$ac_link") 2>conftest.er1
7772   ac_status=$?
7773   grep -v '^ *+' conftest.er1 >conftest.err
7774   rm -f conftest.er1
7775   cat conftest.err >&5
7776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777   (exit $ac_status); } && {
7778          test -z "$ac_c_werror_flag" ||
7779          test ! -s conftest.err
7780        } && test -s conftest$ac_exeext && {
7781          test "$cross_compiling" = yes ||
7782          $as_test_x conftest$ac_exeext
7783        }; then
7784   ac_cv_search_crypt=$ac_res
7785 else
7786   $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7788
7789
7790 fi
7791
7792 rm -rf conftest.dSYM
7793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7794       conftest$ac_exeext
7795   if test "${ac_cv_search_crypt+set}" = set; then
7796   break
7797 fi
7798 done
7799 if test "${ac_cv_search_crypt+set}" = set; then
7800   :
7801 else
7802   ac_cv_search_crypt=no
7803 fi
7804 rm conftest.$ac_ext
7805 LIBS=$ac_func_search_save_LIBS
7806 fi
7807 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7808 $as_echo "$ac_cv_search_crypt" >&6; }
7809 ac_res=$ac_cv_search_crypt
7810 if test "$ac_res" != no; then
7811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7812
7813 fi
7814
7815 # Solaris:
7816 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7817 $as_echo_n "checking for library containing fdatasync... " >&6; }
7818 if test "${ac_cv_search_fdatasync+set}" = set; then
7819   $as_echo_n "(cached) " >&6
7820 else
7821   ac_func_search_save_LIBS=$LIBS
7822 cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h.  */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h.  */
7828
7829 /* Override any GCC internal prototype to avoid an error.
7830    Use char because int might match the return type of a GCC
7831    builtin and then its argument prototype would still apply.  */
7832 #ifdef __cplusplus
7833 extern "C"
7834 #endif
7835 char fdatasync ();
7836 int
7837 main ()
7838 {
7839 return fdatasync ();
7840   ;
7841   return 0;
7842 }
7843 _ACEOF
7844 for ac_lib in '' rt posix4; do
7845   if test -z "$ac_lib"; then
7846     ac_res="none required"
7847   else
7848     ac_res=-l$ac_lib
7849     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7850   fi
7851   rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7853 case "(($ac_try" in
7854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855   *) ac_try_echo=$ac_try;;
7856 esac
7857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7858 $as_echo "$ac_try_echo") >&5
7859   (eval "$ac_link") 2>conftest.er1
7860   ac_status=$?
7861   grep -v '^ *+' conftest.er1 >conftest.err
7862   rm -f conftest.er1
7863   cat conftest.err >&5
7864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); } && {
7866          test -z "$ac_c_werror_flag" ||
7867          test ! -s conftest.err
7868        } && test -s conftest$ac_exeext && {
7869          test "$cross_compiling" = yes ||
7870          $as_test_x conftest$ac_exeext
7871        }; then
7872   ac_cv_search_fdatasync=$ac_res
7873 else
7874   $as_echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877
7878 fi
7879
7880 rm -rf conftest.dSYM
7881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7882       conftest$ac_exeext
7883   if test "${ac_cv_search_fdatasync+set}" = set; then
7884   break
7885 fi
7886 done
7887 if test "${ac_cv_search_fdatasync+set}" = set; then
7888   :
7889 else
7890   ac_cv_search_fdatasync=no
7891 fi
7892 rm conftest.$ac_ext
7893 LIBS=$ac_func_search_save_LIBS
7894 fi
7895 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7896 $as_echo "$ac_cv_search_fdatasync" >&6; }
7897 ac_res=$ac_cv_search_fdatasync
7898 if test "$ac_res" != no; then
7899   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7900
7901 fi
7902
7903 # Required for thread_test.c on Solaris 2.5:
7904 # Other ports use it too (HP-UX) so test unconditionally
7905 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7906 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7907 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7908   $as_echo_n "(cached) " >&6
7909 else
7910   ac_func_search_save_LIBS=$LIBS
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h.  */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h.  */
7917
7918 /* Override any GCC internal prototype to avoid an error.
7919    Use char because int might match the return type of a GCC
7920    builtin and then its argument prototype would still apply.  */
7921 #ifdef __cplusplus
7922 extern "C"
7923 #endif
7924 char gethostbyname_r ();
7925 int
7926 main ()
7927 {
7928 return gethostbyname_r ();
7929   ;
7930   return 0;
7931 }
7932 _ACEOF
7933 for ac_lib in '' nsl; do
7934   if test -z "$ac_lib"; then
7935     ac_res="none required"
7936   else
7937     ac_res=-l$ac_lib
7938     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7939   fi
7940   rm -f conftest.$ac_objext conftest$ac_exeext
7941 if { (ac_try="$ac_link"
7942 case "(($ac_try" in
7943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944   *) ac_try_echo=$ac_try;;
7945 esac
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948   (eval "$ac_link") 2>conftest.er1
7949   ac_status=$?
7950   grep -v '^ *+' conftest.er1 >conftest.err
7951   rm -f conftest.er1
7952   cat conftest.err >&5
7953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } && {
7955          test -z "$ac_c_werror_flag" ||
7956          test ! -s conftest.err
7957        } && test -s conftest$ac_exeext && {
7958          test "$cross_compiling" = yes ||
7959          $as_test_x conftest$ac_exeext
7960        }; then
7961   ac_cv_search_gethostbyname_r=$ac_res
7962 else
7963   $as_echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966
7967 fi
7968
7969 rm -rf conftest.dSYM
7970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7971       conftest$ac_exeext
7972   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7973   break
7974 fi
7975 done
7976 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7977   :
7978 else
7979   ac_cv_search_gethostbyname_r=no
7980 fi
7981 rm conftest.$ac_ext
7982 LIBS=$ac_func_search_save_LIBS
7983 fi
7984 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7985 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7986 ac_res=$ac_cv_search_gethostbyname_r
7987 if test "$ac_res" != no; then
7988   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7989
7990 fi
7991
7992 # Cygwin:
7993 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7994 $as_echo_n "checking for library containing shmget... " >&6; }
7995 if test "${ac_cv_search_shmget+set}" = set; then
7996   $as_echo_n "(cached) " >&6
7997 else
7998   ac_func_search_save_LIBS=$LIBS
7999 cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005
8006 /* Override any GCC internal prototype to avoid an error.
8007    Use char because int might match the return type of a GCC
8008    builtin and then its argument prototype would still apply.  */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 char shmget ();
8013 int
8014 main ()
8015 {
8016 return shmget ();
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 for ac_lib in '' cygipc; do
8022   if test -z "$ac_lib"; then
8023     ac_res="none required"
8024   else
8025     ac_res=-l$ac_lib
8026     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8027   fi
8028   rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8030 case "(($ac_try" in
8031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032   *) ac_try_echo=$ac_try;;
8033 esac
8034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8035 $as_echo "$ac_try_echo") >&5
8036   (eval "$ac_link") 2>conftest.er1
8037   ac_status=$?
8038   grep -v '^ *+' conftest.er1 >conftest.err
8039   rm -f conftest.er1
8040   cat conftest.err >&5
8041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); } && {
8043          test -z "$ac_c_werror_flag" ||
8044          test ! -s conftest.err
8045        } && test -s conftest$ac_exeext && {
8046          test "$cross_compiling" = yes ||
8047          $as_test_x conftest$ac_exeext
8048        }; then
8049   ac_cv_search_shmget=$ac_res
8050 else
8051   $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054
8055 fi
8056
8057 rm -rf conftest.dSYM
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059       conftest$ac_exeext
8060   if test "${ac_cv_search_shmget+set}" = set; then
8061   break
8062 fi
8063 done
8064 if test "${ac_cv_search_shmget+set}" = set; then
8065   :
8066 else
8067   ac_cv_search_shmget=no
8068 fi
8069 rm conftest.$ac_ext
8070 LIBS=$ac_func_search_save_LIBS
8071 fi
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8073 $as_echo "$ac_cv_search_shmget" >&6; }
8074 ac_res=$ac_cv_search_shmget
8075 if test "$ac_res" != no; then
8076   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8077
8078 fi
8079
8080
8081 if test "$with_readline" = yes; then
8082
8083
8084 if test "${pgac_cv_check_readline+set}" = set; then
8085   $as_echo_n "(cached) " >&6
8086 else
8087   pgac_cv_check_readline=no
8088 pgac_save_LIBS=$LIBS
8089 if test x"$with_libedit_preferred" != x"yes"
8090 then    READLINE_ORDER="-lreadline -ledit"
8091 else    READLINE_ORDER="-ledit -lreadline"
8092 fi
8093 for pgac_rllib in $READLINE_ORDER ; do
8094   { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8095 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8096   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8097     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8098     cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h.  */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h.  */
8104
8105 /* Override any GCC internal prototype to avoid an error.
8106    Use char because int might match the return type of a GCC
8107    builtin and then its argument prototype would still apply.  */
8108 #ifdef __cplusplus
8109 extern "C"
8110 #endif
8111 char readline ();
8112 int
8113 main ()
8114 {
8115 return readline ();
8116   ;
8117   return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (ac_try="$ac_link"
8122 case "(($ac_try" in
8123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124   *) ac_try_echo=$ac_try;;
8125 esac
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128   (eval "$ac_link") 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } && {
8135          test -z "$ac_c_werror_flag" ||
8136          test ! -s conftest.err
8137        } && test -s conftest$ac_exeext && {
8138          test "$cross_compiling" = yes ||
8139          $as_test_x conftest$ac_exeext
8140        }; then
8141
8142       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8143       # recognize dependent libraries; assume curses is needed if we didn't
8144       # find any dependency.
8145       case $host_os in
8146         netbsd* | openbsd* | irix*)
8147           if test x"$pgac_lib" = x"" ; then
8148             pgac_lib=" -lcurses"
8149           fi ;;
8150       esac
8151
8152       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8153       break
8154
8155 else
8156   $as_echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8158
8159
8160 fi
8161
8162 rm -rf conftest.dSYM
8163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8164       conftest$ac_exeext conftest.$ac_ext
8165   done
8166   if test "$pgac_cv_check_readline" != no ; then
8167     { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8168 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8169     break
8170   else
8171     { $as_echo "$as_me:$LINENO: result: no" >&5
8172 $as_echo "no" >&6; }
8173   fi
8174 done
8175 LIBS=$pgac_save_LIBS
8176
8177 fi
8178
8179 if test "$pgac_cv_check_readline" != no ; then
8180   LIBS="$pgac_cv_check_readline $LIBS"
8181
8182 cat >>confdefs.h <<\_ACEOF
8183 #define HAVE_LIBREADLINE 1
8184 _ACEOF
8185
8186 fi
8187
8188
8189   if test x"$pgac_cv_check_readline" = x"no"; then
8190     { { $as_echo "$as_me:$LINENO: error: readline library not found
8191 If you have readline already installed, see config.log for details on the
8192 failure.  It is possible the compiler isn't looking in the proper directory.
8193 Use --without-readline to disable readline support." >&5
8194 $as_echo "$as_me: error: readline library not found
8195 If you have readline already installed, see config.log for details on the
8196 failure.  It is possible the compiler isn't looking in the proper directory.
8197 Use --without-readline to disable readline support." >&2;}
8198    { (exit 1); exit 1; }; }
8199   fi
8200 fi
8201
8202 if test "$with_zlib" = yes; then
8203
8204 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8205 $as_echo_n "checking for inflate in -lz... " >&6; }
8206 if test "${ac_cv_lib_z_inflate+set}" = set; then
8207   $as_echo_n "(cached) " >&6
8208 else
8209   ac_check_lib_save_LIBS=$LIBS
8210 LIBS="-lz  $LIBS"
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 /* Override any GCC internal prototype to avoid an error.
8219    Use char because int might match the return type of a GCC
8220    builtin and then its argument prototype would still apply.  */
8221 #ifdef __cplusplus
8222 extern "C"
8223 #endif
8224 char inflate ();
8225 int
8226 main ()
8227 {
8228 return inflate ();
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8235 case "(($ac_try" in
8236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237   *) ac_try_echo=$ac_try;;
8238 esac
8239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8240 $as_echo "$ac_try_echo") >&5
8241   (eval "$ac_link") 2>conftest.er1
8242   ac_status=$?
8243   grep -v '^ *+' conftest.er1 >conftest.err
8244   rm -f conftest.er1
8245   cat conftest.err >&5
8246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); } && {
8248          test -z "$ac_c_werror_flag" ||
8249          test ! -s conftest.err
8250        } && test -s conftest$ac_exeext && {
8251          test "$cross_compiling" = yes ||
8252          $as_test_x conftest$ac_exeext
8253        }; then
8254   ac_cv_lib_z_inflate=yes
8255 else
8256   $as_echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8258
8259         ac_cv_lib_z_inflate=no
8260 fi
8261
8262 rm -rf conftest.dSYM
8263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8264       conftest$ac_exeext conftest.$ac_ext
8265 LIBS=$ac_check_lib_save_LIBS
8266 fi
8267 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8268 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8269 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8270   cat >>confdefs.h <<_ACEOF
8271 #define HAVE_LIBZ 1
8272 _ACEOF
8273
8274   LIBS="-lz $LIBS"
8275
8276 else
8277   { { $as_echo "$as_me:$LINENO: error: zlib library not found
8278 If you have zlib already installed, see config.log for details on the
8279 failure.  It is possible the compiler isn't looking in the proper directory.
8280 Use --without-zlib to disable zlib support." >&5
8281 $as_echo "$as_me: error: zlib library not found
8282 If you have zlib already installed, see config.log for details on the
8283 failure.  It is possible the compiler isn't looking in the proper directory.
8284 Use --without-zlib to disable zlib support." >&2;}
8285    { (exit 1); exit 1; }; }
8286 fi
8287
8288 fi
8289
8290 if test "$enable_spinlocks" = yes; then
8291
8292 cat >>confdefs.h <<\_ACEOF
8293 #define HAVE_SPINLOCKS 1
8294 _ACEOF
8295
8296 else
8297   { $as_echo "$as_me:$LINENO: WARNING:
8298 *** Not using spinlocks will cause poor performance." >&5
8299 $as_echo "$as_me: WARNING:
8300 *** Not using spinlocks will cause poor performance." >&2;}
8301 fi
8302
8303 if test "$with_gssapi" = yes ; then
8304   if test "$PORTNAME" != "win32"; then
8305     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8306 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8307 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8308   $as_echo_n "(cached) " >&6
8309 else
8310   ac_func_search_save_LIBS=$LIBS
8311 cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h.  */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h.  */
8317
8318 /* Override any GCC internal prototype to avoid an error.
8319    Use char because int might match the return type of a GCC
8320    builtin and then its argument prototype would still apply.  */
8321 #ifdef __cplusplus
8322 extern "C"
8323 #endif
8324 char gss_init_sec_context ();
8325 int
8326 main ()
8327 {
8328 return gss_init_sec_context ();
8329   ;
8330   return 0;
8331 }
8332 _ACEOF
8333 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8334   if test -z "$ac_lib"; then
8335     ac_res="none required"
8336   else
8337     ac_res=-l$ac_lib
8338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8339   fi
8340   rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (ac_try="$ac_link"
8342 case "(($ac_try" in
8343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344   *) ac_try_echo=$ac_try;;
8345 esac
8346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8347 $as_echo "$ac_try_echo") >&5
8348   (eval "$ac_link") 2>conftest.er1
8349   ac_status=$?
8350   grep -v '^ *+' conftest.er1 >conftest.err
8351   rm -f conftest.er1
8352   cat conftest.err >&5
8353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } && {
8355          test -z "$ac_c_werror_flag" ||
8356          test ! -s conftest.err
8357        } && test -s conftest$ac_exeext && {
8358          test "$cross_compiling" = yes ||
8359          $as_test_x conftest$ac_exeext
8360        }; then
8361   ac_cv_search_gss_init_sec_context=$ac_res
8362 else
8363   $as_echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366
8367 fi
8368
8369 rm -rf conftest.dSYM
8370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8371       conftest$ac_exeext
8372   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8373   break
8374 fi
8375 done
8376 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8377   :
8378 else
8379   ac_cv_search_gss_init_sec_context=no
8380 fi
8381 rm conftest.$ac_ext
8382 LIBS=$ac_func_search_save_LIBS
8383 fi
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8385 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8386 ac_res=$ac_cv_search_gss_init_sec_context
8387 if test "$ac_res" != no; then
8388   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8389
8390 else
8391   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8392 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8393    { (exit 1); exit 1; }; }
8394 fi
8395
8396   else
8397     LIBS="$LIBS -lgssapi32"
8398   fi
8399 fi
8400
8401 if test "$with_krb5" = yes ; then
8402   if test "$PORTNAME" != "win32"; then
8403      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8404 $as_echo_n "checking for library containing com_err... " >&6; }
8405 if test "${ac_cv_search_com_err+set}" = set; then
8406   $as_echo_n "(cached) " >&6
8407 else
8408   ac_func_search_save_LIBS=$LIBS
8409 cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415
8416 /* Override any GCC internal prototype to avoid an error.
8417    Use char because int might match the return type of a GCC
8418    builtin and then its argument prototype would still apply.  */
8419 #ifdef __cplusplus
8420 extern "C"
8421 #endif
8422 char com_err ();
8423 int
8424 main ()
8425 {
8426 return com_err ();
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8432   if test -z "$ac_lib"; then
8433     ac_res="none required"
8434   else
8435     ac_res=-l$ac_lib
8436     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8437   fi
8438   rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8440 case "(($ac_try" in
8441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442   *) ac_try_echo=$ac_try;;
8443 esac
8444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8445 $as_echo "$ac_try_echo") >&5
8446   (eval "$ac_link") 2>conftest.er1
8447   ac_status=$?
8448   grep -v '^ *+' conftest.er1 >conftest.err
8449   rm -f conftest.er1
8450   cat conftest.err >&5
8451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } && {
8453          test -z "$ac_c_werror_flag" ||
8454          test ! -s conftest.err
8455        } && test -s conftest$ac_exeext && {
8456          test "$cross_compiling" = yes ||
8457          $as_test_x conftest$ac_exeext
8458        }; then
8459   ac_cv_search_com_err=$ac_res
8460 else
8461   $as_echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464
8465 fi
8466
8467 rm -rf conftest.dSYM
8468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8469       conftest$ac_exeext
8470   if test "${ac_cv_search_com_err+set}" = set; then
8471   break
8472 fi
8473 done
8474 if test "${ac_cv_search_com_err+set}" = set; then
8475   :
8476 else
8477   ac_cv_search_com_err=no
8478 fi
8479 rm conftest.$ac_ext
8480 LIBS=$ac_func_search_save_LIBS
8481 fi
8482 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8483 $as_echo "$ac_cv_search_com_err" >&6; }
8484 ac_res=$ac_cv_search_com_err
8485 if test "$ac_res" != no; then
8486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8487
8488 else
8489   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8490 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8491    { (exit 1); exit 1; }; }
8492 fi
8493
8494      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8495 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8496 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8497   $as_echo_n "(cached) " >&6
8498 else
8499   ac_func_search_save_LIBS=$LIBS
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506
8507 /* Override any GCC internal prototype to avoid an error.
8508    Use char because int might match the return type of a GCC
8509    builtin and then its argument prototype would still apply.  */
8510 #ifdef __cplusplus
8511 extern "C"
8512 #endif
8513 char krb5_sendauth ();
8514 int
8515 main ()
8516 {
8517 return krb5_sendauth ();
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8523   if test -z "$ac_lib"; then
8524     ac_res="none required"
8525   else
8526     ac_res=-l$ac_lib
8527     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8528   fi
8529   rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (ac_try="$ac_link"
8531 case "(($ac_try" in
8532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533   *) ac_try_echo=$ac_try;;
8534 esac
8535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8536 $as_echo "$ac_try_echo") >&5
8537   (eval "$ac_link") 2>conftest.er1
8538   ac_status=$?
8539   grep -v '^ *+' conftest.er1 >conftest.err
8540   rm -f conftest.er1
8541   cat conftest.err >&5
8542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } && {
8544          test -z "$ac_c_werror_flag" ||
8545          test ! -s conftest.err
8546        } && test -s conftest$ac_exeext && {
8547          test "$cross_compiling" = yes ||
8548          $as_test_x conftest$ac_exeext
8549        }; then
8550   ac_cv_search_krb5_sendauth=$ac_res
8551 else
8552   $as_echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8554
8555
8556 fi
8557
8558 rm -rf conftest.dSYM
8559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8560       conftest$ac_exeext
8561   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8562   break
8563 fi
8564 done
8565 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8566   :
8567 else
8568   ac_cv_search_krb5_sendauth=no
8569 fi
8570 rm conftest.$ac_ext
8571 LIBS=$ac_func_search_save_LIBS
8572 fi
8573 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8574 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8575 ac_res=$ac_cv_search_krb5_sendauth
8576 if test "$ac_res" != no; then
8577   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8578
8579 else
8580   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8581 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8582    { (exit 1); exit 1; }; }
8583 fi
8584
8585   else
8586      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8587 $as_echo_n "checking for library containing com_err... " >&6; }
8588 if test "${ac_cv_search_com_err+set}" = set; then
8589   $as_echo_n "(cached) " >&6
8590 else
8591   ac_func_search_save_LIBS=$LIBS
8592 cat >conftest.$ac_ext <<_ACEOF
8593 /* confdefs.h.  */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h.  */
8598
8599 /* Override any GCC internal prototype to avoid an error.
8600    Use char because int might match the return type of a GCC
8601    builtin and then its argument prototype would still apply.  */
8602 #ifdef __cplusplus
8603 extern "C"
8604 #endif
8605 char com_err ();
8606 int
8607 main ()
8608 {
8609 return com_err ();
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8615   if test -z "$ac_lib"; then
8616     ac_res="none required"
8617   else
8618     ac_res=-l$ac_lib
8619     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8620   fi
8621   rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (ac_try="$ac_link"
8623 case "(($ac_try" in
8624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625   *) ac_try_echo=$ac_try;;
8626 esac
8627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8628 $as_echo "$ac_try_echo") >&5
8629   (eval "$ac_link") 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } && {
8636          test -z "$ac_c_werror_flag" ||
8637          test ! -s conftest.err
8638        } && test -s conftest$ac_exeext && {
8639          test "$cross_compiling" = yes ||
8640          $as_test_x conftest$ac_exeext
8641        }; then
8642   ac_cv_search_com_err=$ac_res
8643 else
8644   $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647
8648 fi
8649
8650 rm -rf conftest.dSYM
8651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8652       conftest$ac_exeext
8653   if test "${ac_cv_search_com_err+set}" = set; then
8654   break
8655 fi
8656 done
8657 if test "${ac_cv_search_com_err+set}" = set; then
8658   :
8659 else
8660   ac_cv_search_com_err=no
8661 fi
8662 rm conftest.$ac_ext
8663 LIBS=$ac_func_search_save_LIBS
8664 fi
8665 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8666 $as_echo "$ac_cv_search_com_err" >&6; }
8667 ac_res=$ac_cv_search_com_err
8668 if test "$ac_res" != no; then
8669   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8670
8671 else
8672   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8673 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8674    { (exit 1); exit 1; }; }
8675 fi
8676
8677   fi
8678 fi
8679
8680 if test "$with_openssl" = yes ; then
8681     if test "$PORTNAME" != "win32"; then
8682
8683 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8684 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8685 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8686   $as_echo_n "(cached) " >&6
8687 else
8688   ac_check_lib_save_LIBS=$LIBS
8689 LIBS="-lcrypto  $LIBS"
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h.  */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h.  */
8696
8697 /* Override any GCC internal prototype to avoid an error.
8698    Use char because int might match the return type of a GCC
8699    builtin and then its argument prototype would still apply.  */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 char CRYPTO_new_ex_data ();
8704 int
8705 main ()
8706 {
8707 return CRYPTO_new_ex_data ();
8708   ;
8709   return 0;
8710 }
8711 _ACEOF
8712 rm -f conftest.$ac_objext conftest$ac_exeext
8713 if { (ac_try="$ac_link"
8714 case "(($ac_try" in
8715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716   *) ac_try_echo=$ac_try;;
8717 esac
8718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8719 $as_echo "$ac_try_echo") >&5
8720   (eval "$ac_link") 2>conftest.er1
8721   ac_status=$?
8722   grep -v '^ *+' conftest.er1 >conftest.err
8723   rm -f conftest.er1
8724   cat conftest.err >&5
8725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); } && {
8727          test -z "$ac_c_werror_flag" ||
8728          test ! -s conftest.err
8729        } && test -s conftest$ac_exeext && {
8730          test "$cross_compiling" = yes ||
8731          $as_test_x conftest$ac_exeext
8732        }; then
8733   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8734 else
8735   $as_echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8739 fi
8740
8741 rm -rf conftest.dSYM
8742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8743       conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8745 fi
8746 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8747 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8748 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8749   cat >>confdefs.h <<_ACEOF
8750 #define HAVE_LIBCRYPTO 1
8751 _ACEOF
8752
8753   LIBS="-lcrypto $LIBS"
8754
8755 else
8756   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8757 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8758    { (exit 1); exit 1; }; }
8759 fi
8760
8761
8762 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8763 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8764 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8765   $as_echo_n "(cached) " >&6
8766 else
8767   ac_check_lib_save_LIBS=$LIBS
8768 LIBS="-lssl  $LIBS"
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h.  */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h.  */
8775
8776 /* Override any GCC internal prototype to avoid an error.
8777    Use char because int might match the return type of a GCC
8778    builtin and then its argument prototype would still apply.  */
8779 #ifdef __cplusplus
8780 extern "C"
8781 #endif
8782 char SSL_library_init ();
8783 int
8784 main ()
8785 {
8786 return SSL_library_init ();
8787   ;
8788   return 0;
8789 }
8790 _ACEOF
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792 if { (ac_try="$ac_link"
8793 case "(($ac_try" in
8794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795   *) ac_try_echo=$ac_try;;
8796 esac
8797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8798 $as_echo "$ac_try_echo") >&5
8799   (eval "$ac_link") 2>conftest.er1
8800   ac_status=$?
8801   grep -v '^ *+' conftest.er1 >conftest.err
8802   rm -f conftest.er1
8803   cat conftest.err >&5
8804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); } && {
8806          test -z "$ac_c_werror_flag" ||
8807          test ! -s conftest.err
8808        } && test -s conftest$ac_exeext && {
8809          test "$cross_compiling" = yes ||
8810          $as_test_x conftest$ac_exeext
8811        }; then
8812   ac_cv_lib_ssl_SSL_library_init=yes
8813 else
8814   $as_echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8816
8817         ac_cv_lib_ssl_SSL_library_init=no
8818 fi
8819
8820 rm -rf conftest.dSYM
8821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8822       conftest$ac_exeext conftest.$ac_ext
8823 LIBS=$ac_check_lib_save_LIBS
8824 fi
8825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8826 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8827 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8828   cat >>confdefs.h <<_ACEOF
8829 #define HAVE_LIBSSL 1
8830 _ACEOF
8831
8832   LIBS="-lssl $LIBS"
8833
8834 else
8835   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8836 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8837    { (exit 1); exit 1; }; }
8838 fi
8839
8840   else
8841
8842 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8843 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8844 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8845   $as_echo_n "(cached) " >&6
8846 else
8847   ac_check_lib_save_LIBS=$LIBS
8848 LIBS="-leay32  $LIBS"
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h.  */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h.  */
8855
8856 /* Override any GCC internal prototype to avoid an error.
8857    Use char because int might match the return type of a GCC
8858    builtin and then its argument prototype would still apply.  */
8859 #ifdef __cplusplus
8860 extern "C"
8861 #endif
8862 char CRYPTO_new_ex_data ();
8863 int
8864 main ()
8865 {
8866 return CRYPTO_new_ex_data ();
8867   ;
8868   return 0;
8869 }
8870 _ACEOF
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8873 case "(($ac_try" in
8874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875   *) ac_try_echo=$ac_try;;
8876 esac
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879   (eval "$ac_link") 2>conftest.er1
8880   ac_status=$?
8881   grep -v '^ *+' conftest.er1 >conftest.err
8882   rm -f conftest.er1
8883   cat conftest.err >&5
8884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); } && {
8886          test -z "$ac_c_werror_flag" ||
8887          test ! -s conftest.err
8888        } && test -s conftest$ac_exeext && {
8889          test "$cross_compiling" = yes ||
8890          $as_test_x conftest$ac_exeext
8891        }; then
8892   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8893 else
8894   $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8898 fi
8899
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902       conftest$ac_exeext conftest.$ac_ext
8903 LIBS=$ac_check_lib_save_LIBS
8904 fi
8905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8906 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8907 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8908   cat >>confdefs.h <<_ACEOF
8909 #define HAVE_LIBEAY32 1
8910 _ACEOF
8911
8912   LIBS="-leay32 $LIBS"
8913
8914 else
8915   { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8916 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8917    { (exit 1); exit 1; }; }
8918 fi
8919
8920
8921 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8922 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8923 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8924   $as_echo_n "(cached) " >&6
8925 else
8926   ac_check_lib_save_LIBS=$LIBS
8927 LIBS="-lssleay32  $LIBS"
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934
8935 /* Override any GCC internal prototype to avoid an error.
8936    Use char because int might match the return type of a GCC
8937    builtin and then its argument prototype would still apply.  */
8938 #ifdef __cplusplus
8939 extern "C"
8940 #endif
8941 char SSL_library_init ();
8942 int
8943 main ()
8944 {
8945 return SSL_library_init ();
8946   ;
8947   return 0;
8948 }
8949 _ACEOF
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (ac_try="$ac_link"
8952 case "(($ac_try" in
8953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954   *) ac_try_echo=$ac_try;;
8955 esac
8956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8957 $as_echo "$ac_try_echo") >&5
8958   (eval "$ac_link") 2>conftest.er1
8959   ac_status=$?
8960   grep -v '^ *+' conftest.er1 >conftest.err
8961   rm -f conftest.er1
8962   cat conftest.err >&5
8963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); } && {
8965          test -z "$ac_c_werror_flag" ||
8966          test ! -s conftest.err
8967        } && test -s conftest$ac_exeext && {
8968          test "$cross_compiling" = yes ||
8969          $as_test_x conftest$ac_exeext
8970        }; then
8971   ac_cv_lib_ssleay32_SSL_library_init=yes
8972 else
8973   $as_echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8975
8976         ac_cv_lib_ssleay32_SSL_library_init=no
8977 fi
8978
8979 rm -rf conftest.dSYM
8980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8981       conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8983 fi
8984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8985 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8986 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8987   cat >>confdefs.h <<_ACEOF
8988 #define HAVE_LIBSSLEAY32 1
8989 _ACEOF
8990
8991   LIBS="-lssleay32 $LIBS"
8992
8993 else
8994   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8995 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8996    { (exit 1); exit 1; }; }
8997 fi
8998
8999   fi
9000 fi
9001
9002 if test "$with_pam" = yes ; then
9003
9004 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9005 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9006 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9007   $as_echo_n "(cached) " >&6
9008 else
9009   ac_check_lib_save_LIBS=$LIBS
9010 LIBS="-lpam  $LIBS"
9011 cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h.  */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h.  */
9017
9018 /* Override any GCC internal prototype to avoid an error.
9019    Use char because int might match the return type of a GCC
9020    builtin and then its argument prototype would still apply.  */
9021 #ifdef __cplusplus
9022 extern "C"
9023 #endif
9024 char pam_start ();
9025 int
9026 main ()
9027 {
9028 return pam_start ();
9029   ;
9030   return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (ac_try="$ac_link"
9035 case "(($ac_try" in
9036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037   *) ac_try_echo=$ac_try;;
9038 esac
9039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041   (eval "$ac_link") 2>conftest.er1
9042   ac_status=$?
9043   grep -v '^ *+' conftest.er1 >conftest.err
9044   rm -f conftest.er1
9045   cat conftest.err >&5
9046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); } && {
9048          test -z "$ac_c_werror_flag" ||
9049          test ! -s conftest.err
9050        } && test -s conftest$ac_exeext && {
9051          test "$cross_compiling" = yes ||
9052          $as_test_x conftest$ac_exeext
9053        }; then
9054   ac_cv_lib_pam_pam_start=yes
9055 else
9056   $as_echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059         ac_cv_lib_pam_pam_start=no
9060 fi
9061
9062 rm -rf conftest.dSYM
9063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9064       conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9066 fi
9067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9068 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9069 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9070   cat >>confdefs.h <<_ACEOF
9071 #define HAVE_LIBPAM 1
9072 _ACEOF
9073
9074   LIBS="-lpam $LIBS"
9075
9076 else
9077   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9078 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9079    { (exit 1); exit 1; }; }
9080 fi
9081
9082 fi
9083
9084 if test "$with_libxml" = yes ; then
9085
9086 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9087 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9088 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9089   $as_echo_n "(cached) " >&6
9090 else
9091   ac_check_lib_save_LIBS=$LIBS
9092 LIBS="-lxml2  $LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099
9100 /* Override any GCC internal prototype to avoid an error.
9101    Use char because int might match the return type of a GCC
9102    builtin and then its argument prototype would still apply.  */
9103 #ifdef __cplusplus
9104 extern "C"
9105 #endif
9106 char xmlSaveToBuffer ();
9107 int
9108 main ()
9109 {
9110 return xmlSaveToBuffer ();
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9117 case "(($ac_try" in
9118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119   *) ac_try_echo=$ac_try;;
9120 esac
9121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123   (eval "$ac_link") 2>conftest.er1
9124   ac_status=$?
9125   grep -v '^ *+' conftest.er1 >conftest.err
9126   rm -f conftest.er1
9127   cat conftest.err >&5
9128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } && {
9130          test -z "$ac_c_werror_flag" ||
9131          test ! -s conftest.err
9132        } && test -s conftest$ac_exeext && {
9133          test "$cross_compiling" = yes ||
9134          $as_test_x conftest$ac_exeext
9135        }; then
9136   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9137 else
9138   $as_echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9140
9141         ac_cv_lib_xml2_xmlSaveToBuffer=no
9142 fi
9143
9144 rm -rf conftest.dSYM
9145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9146       conftest$ac_exeext conftest.$ac_ext
9147 LIBS=$ac_check_lib_save_LIBS
9148 fi
9149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9150 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9151 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9152   cat >>confdefs.h <<_ACEOF
9153 #define HAVE_LIBXML2 1
9154 _ACEOF
9155
9156   LIBS="-lxml2 $LIBS"
9157
9158 else
9159   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9160 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9161    { (exit 1); exit 1; }; }
9162 fi
9163
9164 fi
9165
9166 if test "$with_libxslt" = yes ; then
9167
9168 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9169 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9170 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9171   $as_echo_n "(cached) " >&6
9172 else
9173   ac_check_lib_save_LIBS=$LIBS
9174 LIBS="-lxslt  $LIBS"
9175 cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h.  */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h.  */
9181
9182 /* Override any GCC internal prototype to avoid an error.
9183    Use char because int might match the return type of a GCC
9184    builtin and then its argument prototype would still apply.  */
9185 #ifdef __cplusplus
9186 extern "C"
9187 #endif
9188 char xsltCleanupGlobals ();
9189 int
9190 main ()
9191 {
9192 return xsltCleanupGlobals ();
9193   ;
9194   return 0;
9195 }
9196 _ACEOF
9197 rm -f conftest.$ac_objext conftest$ac_exeext
9198 if { (ac_try="$ac_link"
9199 case "(($ac_try" in
9200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201   *) ac_try_echo=$ac_try;;
9202 esac
9203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9204 $as_echo "$ac_try_echo") >&5
9205   (eval "$ac_link") 2>conftest.er1
9206   ac_status=$?
9207   grep -v '^ *+' conftest.er1 >conftest.err
9208   rm -f conftest.er1
9209   cat conftest.err >&5
9210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); } && {
9212          test -z "$ac_c_werror_flag" ||
9213          test ! -s conftest.err
9214        } && test -s conftest$ac_exeext && {
9215          test "$cross_compiling" = yes ||
9216          $as_test_x conftest$ac_exeext
9217        }; then
9218   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9219 else
9220   $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223         ac_cv_lib_xslt_xsltCleanupGlobals=no
9224 fi
9225
9226 rm -rf conftest.dSYM
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9228       conftest$ac_exeext conftest.$ac_ext
9229 LIBS=$ac_check_lib_save_LIBS
9230 fi
9231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9232 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9233 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9234   cat >>confdefs.h <<_ACEOF
9235 #define HAVE_LIBXSLT 1
9236 _ACEOF
9237
9238   LIBS="-lxslt $LIBS"
9239
9240 else
9241   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9242 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9243    { (exit 1); exit 1; }; }
9244 fi
9245
9246 fi
9247
9248 # for contrib/uuid-ossp
9249 if test "$with_ossp_uuid" = yes ; then
9250   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9251 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9252 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9253   $as_echo_n "(cached) " >&6
9254 else
9255   ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lossp-uuid  $LIBS"
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h.  */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h.  */
9263
9264 /* Override any GCC internal prototype to avoid an error.
9265    Use char because int might match the return type of a GCC
9266    builtin and then its argument prototype would still apply.  */
9267 #ifdef __cplusplus
9268 extern "C"
9269 #endif
9270 char uuid_export ();
9271 int
9272 main ()
9273 {
9274 return uuid_export ();
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9281 case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9286 $as_echo "$ac_try_echo") >&5
9287   (eval "$ac_link") 2>conftest.er1
9288   ac_status=$?
9289   grep -v '^ *+' conftest.er1 >conftest.err
9290   rm -f conftest.er1
9291   cat conftest.err >&5
9292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); } && {
9294          test -z "$ac_c_werror_flag" ||
9295          test ! -s conftest.err
9296        } && test -s conftest$ac_exeext && {
9297          test "$cross_compiling" = yes ||
9298          $as_test_x conftest$ac_exeext
9299        }; then
9300   ac_cv_lib_ossp_uuid_uuid_export=yes
9301 else
9302   $as_echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305         ac_cv_lib_ossp_uuid_uuid_export=no
9306 fi
9307
9308 rm -rf conftest.dSYM
9309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9310       conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9312 fi
9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9314 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9315 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9316   OSSP_UUID_LIBS="-lossp-uuid"
9317 else
9318   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9319 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9320 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9321   $as_echo_n "(cached) " >&6
9322 else
9323   ac_check_lib_save_LIBS=$LIBS
9324 LIBS="-luuid  $LIBS"
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331
9332 /* Override any GCC internal prototype to avoid an error.
9333    Use char because int might match the return type of a GCC
9334    builtin and then its argument prototype would still apply.  */
9335 #ifdef __cplusplus
9336 extern "C"
9337 #endif
9338 char uuid_export ();
9339 int
9340 main ()
9341 {
9342 return uuid_export ();
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (ac_try="$ac_link"
9349 case "(($ac_try" in
9350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351   *) ac_try_echo=$ac_try;;
9352 esac
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355   (eval "$ac_link") 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } && {
9362          test -z "$ac_c_werror_flag" ||
9363          test ! -s conftest.err
9364        } && test -s conftest$ac_exeext && {
9365          test "$cross_compiling" = yes ||
9366          $as_test_x conftest$ac_exeext
9367        }; then
9368   ac_cv_lib_uuid_uuid_export=yes
9369 else
9370   $as_echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9372
9373         ac_cv_lib_uuid_uuid_export=no
9374 fi
9375
9376 rm -rf conftest.dSYM
9377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9378       conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9380 fi
9381 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9382 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9383 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9384   OSSP_UUID_LIBS="-luuid"
9385 else
9386   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9387 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9388    { (exit 1); exit 1; }; }
9389 fi
9390
9391 fi
9392
9393 fi
9394
9395
9396
9397 ##
9398 ## Header files
9399 ##
9400
9401 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9402 $as_echo_n "checking for ANSI C header files... " >&6; }
9403 if test "${ac_cv_header_stdc+set}" = set; then
9404   $as_echo_n "(cached) " >&6
9405 else
9406   cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412 #include <stdlib.h>
9413 #include <stdarg.h>
9414 #include <string.h>
9415 #include <float.h>
9416
9417 int
9418 main ()
9419 {
9420
9421   ;
9422   return 0;
9423 }
9424 _ACEOF
9425 rm -f conftest.$ac_objext
9426 if { (ac_try="$ac_compile"
9427 case "(($ac_try" in
9428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429   *) ac_try_echo=$ac_try;;
9430 esac
9431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9432 $as_echo "$ac_try_echo") >&5
9433   (eval "$ac_compile") 2>conftest.er1
9434   ac_status=$?
9435   grep -v '^ *+' conftest.er1 >conftest.err
9436   rm -f conftest.er1
9437   cat conftest.err >&5
9438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); } && {
9440          test -z "$ac_c_werror_flag" ||
9441          test ! -s conftest.err
9442        } && test -s conftest.$ac_objext; then
9443   ac_cv_header_stdc=yes
9444 else
9445   $as_echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.$ac_ext >&5
9447
9448         ac_cv_header_stdc=no
9449 fi
9450
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9452
9453 if test $ac_cv_header_stdc = yes; then
9454   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9455   cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h.  */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h.  */
9461 #include <string.h>
9462
9463 _ACEOF
9464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9465   $EGREP "memchr" >/dev/null 2>&1; then
9466   :
9467 else
9468   ac_cv_header_stdc=no
9469 fi
9470 rm -f conftest*
9471
9472 fi
9473
9474 if test $ac_cv_header_stdc = yes; then
9475   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9476   cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h.  */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h.  */
9482 #include <stdlib.h>
9483
9484 _ACEOF
9485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9486   $EGREP "free" >/dev/null 2>&1; then
9487   :
9488 else
9489   ac_cv_header_stdc=no
9490 fi
9491 rm -f conftest*
9492
9493 fi
9494
9495 if test $ac_cv_header_stdc = yes; then
9496   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9497   if test "$cross_compiling" = yes; then
9498   :
9499 else
9500   cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h.  */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h.  */
9506 #include <ctype.h>
9507 #include <stdlib.h>
9508 #if ((' ' & 0x0FF) == 0x020)
9509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9511 #else
9512 # define ISLOWER(c) \
9513                    (('a' <= (c) && (c) <= 'i') \
9514                      || ('j' <= (c) && (c) <= 'r') \
9515                      || ('s' <= (c) && (c) <= 'z'))
9516 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9517 #endif
9518
9519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9520 int
9521 main ()
9522 {
9523   int i;
9524   for (i = 0; i < 256; i++)
9525     if (XOR (islower (i), ISLOWER (i))
9526         || toupper (i) != TOUPPER (i))
9527       return 2;
9528   return 0;
9529 }
9530 _ACEOF
9531 rm -f conftest$ac_exeext
9532 if { (ac_try="$ac_link"
9533 case "(($ac_try" in
9534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535   *) ac_try_echo=$ac_try;;
9536 esac
9537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9538 $as_echo "$ac_try_echo") >&5
9539   (eval "$ac_link") 2>&5
9540   ac_status=$?
9541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9543   { (case "(($ac_try" in
9544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545   *) ac_try_echo=$ac_try;;
9546 esac
9547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9548 $as_echo "$ac_try_echo") >&5
9549   (eval "$ac_try") 2>&5
9550   ac_status=$?
9551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); }; }; then
9553   :
9554 else
9555   $as_echo "$as_me: program exited with status $ac_status" >&5
9556 $as_echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 ( exit $ac_status )
9560 ac_cv_header_stdc=no
9561 fi
9562 rm -rf conftest.dSYM
9563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9564 fi
9565
9566
9567 fi
9568 fi
9569 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9570 $as_echo "$ac_cv_header_stdc" >&6; }
9571 if test $ac_cv_header_stdc = yes; then
9572
9573 cat >>confdefs.h <<\_ACEOF
9574 #define STDC_HEADERS 1
9575 _ACEOF
9576
9577 fi
9578
9579 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9590                   inttypes.h stdint.h unistd.h
9591 do
9592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 $as_echo_n "checking for $ac_header... " >&6; }
9595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9596   $as_echo_n "(cached) " >&6
9597 else
9598   cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h.  */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h.  */
9604 $ac_includes_default
9605
9606 #include <$ac_header>
9607 _ACEOF
9608 rm -f conftest.$ac_objext
9609 if { (ac_try="$ac_compile"
9610 case "(($ac_try" in
9611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612   *) ac_try_echo=$ac_try;;
9613 esac
9614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9615 $as_echo "$ac_try_echo") >&5
9616   (eval "$ac_compile") 2>conftest.er1
9617   ac_status=$?
9618   grep -v '^ *+' conftest.er1 >conftest.err
9619   rm -f conftest.er1
9620   cat conftest.err >&5
9621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); } && {
9623          test -z "$ac_c_werror_flag" ||
9624          test ! -s conftest.err
9625        } && test -s conftest.$ac_objext; then
9626   eval "$as_ac_Header=yes"
9627 else
9628   $as_echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631         eval "$as_ac_Header=no"
9632 fi
9633
9634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635 fi
9636 ac_res=`eval 'as_val=${'$as_ac_Header'}
9637                  $as_echo "$as_val"'`
9638                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9639 $as_echo "$ac_res" >&6; }
9640 as_val=`eval 'as_val=${'$as_ac_Header'}
9641                  $as_echo "$as_val"'`
9642    if test "x$as_val" = x""yes; then
9643   cat >>confdefs.h <<_ACEOF
9644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9645 _ACEOF
9646
9647 fi
9648
9649 done
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
9678
9679
9680
9681
9682 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
9683 do
9684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 $as_echo_n "checking for $ac_header... " >&6; }
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689   $as_echo_n "(cached) " >&6
9690 fi
9691 ac_res=`eval 'as_val=${'$as_ac_Header'}
9692                  $as_echo "$as_val"'`
9693                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9694 $as_echo "$ac_res" >&6; }
9695 else
9696   # Is the header compilable?
9697 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 $as_echo_n "checking $ac_header usability... " >&6; }
9699 cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705 $ac_includes_default
9706 #include <$ac_header>
9707 _ACEOF
9708 rm -f conftest.$ac_objext
9709 if { (ac_try="$ac_compile"
9710 case "(($ac_try" in
9711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712   *) ac_try_echo=$ac_try;;
9713 esac
9714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715 $as_echo "$ac_try_echo") >&5
9716   (eval "$ac_compile") 2>conftest.er1
9717   ac_status=$?
9718   grep -v '^ *+' conftest.er1 >conftest.err
9719   rm -f conftest.er1
9720   cat conftest.err >&5
9721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); } && {
9723          test -z "$ac_c_werror_flag" ||
9724          test ! -s conftest.err
9725        } && test -s conftest.$ac_objext; then
9726   ac_header_compiler=yes
9727 else
9728   $as_echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731         ac_header_compiler=no
9732 fi
9733
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9736 $as_echo "$ac_header_compiler" >&6; }
9737
9738 # Is the header present?
9739 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9740 $as_echo_n "checking $ac_header presence... " >&6; }
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h.  */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h.  */
9747 #include <$ac_header>
9748 _ACEOF
9749 if { (ac_try="$ac_cpp conftest.$ac_ext"
9750 case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } >/dev/null && {
9763          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764          test ! -s conftest.err
9765        }; then
9766   ac_header_preproc=yes
9767 else
9768   $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771   ac_header_preproc=no
9772 fi
9773
9774 rm -f conftest.err conftest.$ac_ext
9775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9776 $as_echo "$ac_header_preproc" >&6; }
9777
9778 # So?  What about this header?
9779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9780   yes:no: )
9781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9782 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9785     ac_header_preproc=yes
9786     ;;
9787   no:yes:* )
9788     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9789 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9791 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9793 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9795 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9799 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9800     ( cat <<\_ASBOX
9801 ## ---------------------------------------- ##
9802 ## Report this to pgsql-bugs@postgresql.org ##
9803 ## ---------------------------------------- ##
9804 _ASBOX
9805      ) | sed "s/^/$as_me: WARNING:     /" >&2
9806     ;;
9807 esac
9808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 $as_echo_n "checking for $ac_header... " >&6; }
9810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9811   $as_echo_n "(cached) " >&6
9812 else
9813   eval "$as_ac_Header=\$ac_header_preproc"
9814 fi
9815 ac_res=`eval 'as_val=${'$as_ac_Header'}
9816                  $as_echo "$as_val"'`
9817                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9818 $as_echo "$ac_res" >&6; }
9819
9820 fi
9821 as_val=`eval 'as_val=${'$as_ac_Header'}
9822                  $as_echo "$as_val"'`
9823    if test "x$as_val" = x""yes; then
9824   cat >>confdefs.h <<_ACEOF
9825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9826 _ACEOF
9827
9828 fi
9829
9830 done
9831
9832
9833 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9834 # is included first.
9835
9836 for ac_header in net/if.h
9837 do
9838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9840 $as_echo_n "checking for $ac_header... " >&6; }
9841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9842   $as_echo_n "(cached) " >&6
9843 else
9844   cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850 $ac_includes_default
9851 #ifdef HAVE_SYS_SOCKET_H
9852 #include <sys/socket.h>
9853 #endif
9854
9855
9856 #include <$ac_header>
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (ac_try="$ac_compile"
9860 case "(($ac_try" in
9861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862   *) ac_try_echo=$ac_try;;
9863 esac
9864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9865 $as_echo "$ac_try_echo") >&5
9866   (eval "$ac_compile") 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } && {
9873          test -z "$ac_c_werror_flag" ||
9874          test ! -s conftest.err
9875        } && test -s conftest.$ac_objext; then
9876   eval "$as_ac_Header=yes"
9877 else
9878   $as_echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881         eval "$as_ac_Header=no"
9882 fi
9883
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885 fi
9886 ac_res=`eval 'as_val=${'$as_ac_Header'}
9887                  $as_echo "$as_val"'`
9888                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9889 $as_echo "$ac_res" >&6; }
9890 as_val=`eval 'as_val=${'$as_ac_Header'}
9891                  $as_echo "$as_val"'`
9892    if test "x$as_val" = x""yes; then
9893   cat >>confdefs.h <<_ACEOF
9894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9895 _ACEOF
9896
9897 fi
9898
9899 done
9900
9901
9902 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9903 # netinet/in.h is included first.
9904
9905 for ac_header in netinet/in.h
9906 do
9907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9909   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9910 $as_echo_n "checking for $ac_header... " >&6; }
9911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9912   $as_echo_n "(cached) " >&6
9913 fi
9914 ac_res=`eval 'as_val=${'$as_ac_Header'}
9915                  $as_echo "$as_val"'`
9916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9917 $as_echo "$ac_res" >&6; }
9918 else
9919   # Is the header compilable?
9920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9921 $as_echo_n "checking $ac_header usability... " >&6; }
9922 cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928 $ac_includes_default
9929 #include <$ac_header>
9930 _ACEOF
9931 rm -f conftest.$ac_objext
9932 if { (ac_try="$ac_compile"
9933 case "(($ac_try" in
9934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935   *) ac_try_echo=$ac_try;;
9936 esac
9937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9938 $as_echo "$ac_try_echo") >&5
9939   (eval "$ac_compile") 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } && {
9946          test -z "$ac_c_werror_flag" ||
9947          test ! -s conftest.err
9948        } && test -s conftest.$ac_objext; then
9949   ac_header_compiler=yes
9950 else
9951   $as_echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954         ac_header_compiler=no
9955 fi
9956
9957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9959 $as_echo "$ac_header_compiler" >&6; }
9960
9961 # Is the header present?
9962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9963 $as_echo_n "checking $ac_header presence... " >&6; }
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 #include <$ac_header>
9971 _ACEOF
9972 if { (ac_try="$ac_cpp conftest.$ac_ext"
9973 case "(($ac_try" in
9974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975   *) ac_try_echo=$ac_try;;
9976 esac
9977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9978 $as_echo "$ac_try_echo") >&5
9979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9980   ac_status=$?
9981   grep -v '^ *+' conftest.er1 >conftest.err
9982   rm -f conftest.er1
9983   cat conftest.err >&5
9984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); } >/dev/null && {
9986          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9987          test ! -s conftest.err
9988        }; then
9989   ac_header_preproc=yes
9990 else
9991   $as_echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994   ac_header_preproc=no
9995 fi
9996
9997 rm -f conftest.err conftest.$ac_ext
9998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9999 $as_echo "$ac_header_preproc" >&6; }
10000
10001 # So?  What about this header?
10002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10003   yes:no: )
10004     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10008     ac_header_preproc=yes
10009     ;;
10010   no:yes:* )
10011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10014 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10018 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10021     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10023     ( cat <<\_ASBOX
10024 ## ---------------------------------------- ##
10025 ## Report this to pgsql-bugs@postgresql.org ##
10026 ## ---------------------------------------- ##
10027 _ASBOX
10028      ) | sed "s/^/$as_me: WARNING:     /" >&2
10029     ;;
10030 esac
10031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10032 $as_echo_n "checking for $ac_header... " >&6; }
10033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10034   $as_echo_n "(cached) " >&6
10035 else
10036   eval "$as_ac_Header=\$ac_header_preproc"
10037 fi
10038 ac_res=`eval 'as_val=${'$as_ac_Header'}
10039                  $as_echo "$as_val"'`
10040                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10041 $as_echo "$ac_res" >&6; }
10042
10043 fi
10044 as_val=`eval 'as_val=${'$as_ac_Header'}
10045                  $as_echo "$as_val"'`
10046    if test "x$as_val" = x""yes; then
10047   cat >>confdefs.h <<_ACEOF
10048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10049 _ACEOF
10050
10051 fi
10052
10053 done
10054
10055
10056 for ac_header in netinet/tcp.h
10057 do
10058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10060 $as_echo_n "checking for $ac_header... " >&6; }
10061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10062   $as_echo_n "(cached) " >&6
10063 else
10064   cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070 $ac_includes_default
10071 #ifdef HAVE_NETINET_IN_H
10072 #include <netinet/in.h>
10073 #endif
10074
10075
10076 #include <$ac_header>
10077 _ACEOF
10078 rm -f conftest.$ac_objext
10079 if { (ac_try="$ac_compile"
10080 case "(($ac_try" in
10081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082   *) ac_try_echo=$ac_try;;
10083 esac
10084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10085 $as_echo "$ac_try_echo") >&5
10086   (eval "$ac_compile") 2>conftest.er1
10087   ac_status=$?
10088   grep -v '^ *+' conftest.er1 >conftest.err
10089   rm -f conftest.er1
10090   cat conftest.err >&5
10091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); } && {
10093          test -z "$ac_c_werror_flag" ||
10094          test ! -s conftest.err
10095        } && test -s conftest.$ac_objext; then
10096   eval "$as_ac_Header=yes"
10097 else
10098   $as_echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10100
10101         eval "$as_ac_Header=no"
10102 fi
10103
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105 fi
10106 ac_res=`eval 'as_val=${'$as_ac_Header'}
10107                  $as_echo "$as_val"'`
10108                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10109 $as_echo "$ac_res" >&6; }
10110 as_val=`eval 'as_val=${'$as_ac_Header'}
10111                  $as_echo "$as_val"'`
10112    if test "x$as_val" = x""yes; then
10113   cat >>confdefs.h <<_ACEOF
10114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10115 _ACEOF
10116
10117 fi
10118
10119 done
10120
10121
10122 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10123
10124 for ac_header in readline/readline.h
10125 do
10126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10128   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10129 $as_echo_n "checking for $ac_header... " >&6; }
10130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10131   $as_echo_n "(cached) " >&6
10132 fi
10133 ac_res=`eval 'as_val=${'$as_ac_Header'}
10134                  $as_echo "$as_val"'`
10135                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10136 $as_echo "$ac_res" >&6; }
10137 else
10138   # Is the header compilable?
10139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10140 $as_echo_n "checking $ac_header usability... " >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h.  */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h.  */
10147 $ac_includes_default
10148 #include <$ac_header>
10149 _ACEOF
10150 rm -f conftest.$ac_objext
10151 if { (ac_try="$ac_compile"
10152 case "(($ac_try" in
10153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154   *) ac_try_echo=$ac_try;;
10155 esac
10156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10157 $as_echo "$ac_try_echo") >&5
10158   (eval "$ac_compile") 2>conftest.er1
10159   ac_status=$?
10160   grep -v '^ *+' conftest.er1 >conftest.err
10161   rm -f conftest.er1
10162   cat conftest.err >&5
10163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164   (exit $ac_status); } && {
10165          test -z "$ac_c_werror_flag" ||
10166          test ! -s conftest.err
10167        } && test -s conftest.$ac_objext; then
10168   ac_header_compiler=yes
10169 else
10170   $as_echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173         ac_header_compiler=no
10174 fi
10175
10176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10178 $as_echo "$ac_header_compiler" >&6; }
10179
10180 # Is the header present?
10181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10182 $as_echo_n "checking $ac_header presence... " >&6; }
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189 #include <$ac_header>
10190 _ACEOF
10191 if { (ac_try="$ac_cpp conftest.$ac_ext"
10192 case "(($ac_try" in
10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194   *) ac_try_echo=$ac_try;;
10195 esac
10196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10197 $as_echo "$ac_try_echo") >&5
10198   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10199   ac_status=$?
10200   grep -v '^ *+' conftest.er1 >conftest.err
10201   rm -f conftest.er1
10202   cat conftest.err >&5
10203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); } >/dev/null && {
10205          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10206          test ! -s conftest.err
10207        }; then
10208   ac_header_preproc=yes
10209 else
10210   $as_echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213   ac_header_preproc=no
10214 fi
10215
10216 rm -f conftest.err conftest.$ac_ext
10217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10218 $as_echo "$ac_header_preproc" >&6; }
10219
10220 # So?  What about this header?
10221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10222   yes:no: )
10223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10225     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10227     ac_header_preproc=yes
10228     ;;
10229   no:yes:* )
10230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10233 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10237 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10242     ( cat <<\_ASBOX
10243 ## ---------------------------------------- ##
10244 ## Report this to pgsql-bugs@postgresql.org ##
10245 ## ---------------------------------------- ##
10246 _ASBOX
10247      ) | sed "s/^/$as_me: WARNING:     /" >&2
10248     ;;
10249 esac
10250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10251 $as_echo_n "checking for $ac_header... " >&6; }
10252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253   $as_echo_n "(cached) " >&6
10254 else
10255   eval "$as_ac_Header=\$ac_header_preproc"
10256 fi
10257 ac_res=`eval 'as_val=${'$as_ac_Header'}
10258                  $as_echo "$as_val"'`
10259                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10260 $as_echo "$ac_res" >&6; }
10261
10262 fi
10263 as_val=`eval 'as_val=${'$as_ac_Header'}
10264                  $as_echo "$as_val"'`
10265    if test "x$as_val" = x""yes; then
10266   cat >>confdefs.h <<_ACEOF
10267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10268 _ACEOF
10269
10270 else
10271
10272 for ac_header in readline.h
10273 do
10274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10276   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10277 $as_echo_n "checking for $ac_header... " >&6; }
10278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10279   $as_echo_n "(cached) " >&6
10280 fi
10281 ac_res=`eval 'as_val=${'$as_ac_Header'}
10282                  $as_echo "$as_val"'`
10283                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10284 $as_echo "$ac_res" >&6; }
10285 else
10286   # Is the header compilable?
10287 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10288 $as_echo_n "checking $ac_header usability... " >&6; }
10289 cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h.  */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h.  */
10295 $ac_includes_default
10296 #include <$ac_header>
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (ac_try="$ac_compile"
10300 case "(($ac_try" in
10301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302   *) ac_try_echo=$ac_try;;
10303 esac
10304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10305 $as_echo "$ac_try_echo") >&5
10306   (eval "$ac_compile") 2>conftest.er1
10307   ac_status=$?
10308   grep -v '^ *+' conftest.er1 >conftest.err
10309   rm -f conftest.er1
10310   cat conftest.err >&5
10311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); } && {
10313          test -z "$ac_c_werror_flag" ||
10314          test ! -s conftest.err
10315        } && test -s conftest.$ac_objext; then
10316   ac_header_compiler=yes
10317 else
10318   $as_echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321         ac_header_compiler=no
10322 fi
10323
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326 $as_echo "$ac_header_compiler" >&6; }
10327
10328 # Is the header present?
10329 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10330 $as_echo_n "checking $ac_header presence... " >&6; }
10331 cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h.  */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h.  */
10337 #include <$ac_header>
10338 _ACEOF
10339 if { (ac_try="$ac_cpp conftest.$ac_ext"
10340 case "(($ac_try" in
10341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342   *) ac_try_echo=$ac_try;;
10343 esac
10344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10345 $as_echo "$ac_try_echo") >&5
10346   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10347   ac_status=$?
10348   grep -v '^ *+' conftest.er1 >conftest.err
10349   rm -f conftest.er1
10350   cat conftest.err >&5
10351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); } >/dev/null && {
10353          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10354          test ! -s conftest.err
10355        }; then
10356   ac_header_preproc=yes
10357 else
10358   $as_echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361   ac_header_preproc=no
10362 fi
10363
10364 rm -f conftest.err conftest.$ac_ext
10365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366 $as_echo "$ac_header_preproc" >&6; }
10367
10368 # So?  What about this header?
10369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10370   yes:no: )
10371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375     ac_header_preproc=yes
10376     ;;
10377   no:yes:* )
10378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10381 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10385 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10390     ( cat <<\_ASBOX
10391 ## ---------------------------------------- ##
10392 ## Report this to pgsql-bugs@postgresql.org ##
10393 ## ---------------------------------------- ##
10394 _ASBOX
10395      ) | sed "s/^/$as_me: WARNING:     /" >&2
10396     ;;
10397 esac
10398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 $as_echo_n "checking for $ac_header... " >&6; }
10400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10401   $as_echo_n "(cached) " >&6
10402 else
10403   eval "$as_ac_Header=\$ac_header_preproc"
10404 fi
10405 ac_res=`eval 'as_val=${'$as_ac_Header'}
10406                  $as_echo "$as_val"'`
10407                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10408 $as_echo "$ac_res" >&6; }
10409
10410 fi
10411 as_val=`eval 'as_val=${'$as_ac_Header'}
10412                  $as_echo "$as_val"'`
10413    if test "x$as_val" = x""yes; then
10414   cat >>confdefs.h <<_ACEOF
10415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10416 _ACEOF
10417
10418 else
10419   { { $as_echo "$as_me:$LINENO: error: readline header not found
10420 If you have readline already installed, see config.log for details on the
10421 failure.  It is possible the compiler isn't looking in the proper directory.
10422 Use --without-readline to disable readline support." >&5
10423 $as_echo "$as_me: error: readline header not found
10424 If you have readline already installed, see config.log for details on the
10425 failure.  It is possible the compiler isn't looking in the proper directory.
10426 Use --without-readline to disable readline support." >&2;}
10427    { (exit 1); exit 1; }; }
10428 fi
10429
10430 done
10431
10432 fi
10433
10434 done
10435
10436
10437 for ac_header in readline/history.h
10438 do
10439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10441   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 $as_echo_n "checking for $ac_header... " >&6; }
10443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10444   $as_echo_n "(cached) " >&6
10445 fi
10446 ac_res=`eval 'as_val=${'$as_ac_Header'}
10447                  $as_echo "$as_val"'`
10448                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10449 $as_echo "$ac_res" >&6; }
10450 else
10451   # Is the header compilable?
10452 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10453 $as_echo_n "checking $ac_header usability... " >&6; }
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h.  */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h.  */
10460 $ac_includes_default
10461 #include <$ac_header>
10462 _ACEOF
10463 rm -f conftest.$ac_objext
10464 if { (ac_try="$ac_compile"
10465 case "(($ac_try" in
10466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467   *) ac_try_echo=$ac_try;;
10468 esac
10469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471   (eval "$ac_compile") 2>conftest.er1
10472   ac_status=$?
10473   grep -v '^ *+' conftest.er1 >conftest.err
10474   rm -f conftest.er1
10475   cat conftest.err >&5
10476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } && {
10478          test -z "$ac_c_werror_flag" ||
10479          test ! -s conftest.err
10480        } && test -s conftest.$ac_objext; then
10481   ac_header_compiler=yes
10482 else
10483   $as_echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486         ac_header_compiler=no
10487 fi
10488
10489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10491 $as_echo "$ac_header_compiler" >&6; }
10492
10493 # Is the header present?
10494 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10495 $as_echo_n "checking $ac_header presence... " >&6; }
10496 cat >conftest.$ac_ext <<_ACEOF
10497 /* confdefs.h.  */
10498 _ACEOF
10499 cat confdefs.h >>conftest.$ac_ext
10500 cat >>conftest.$ac_ext <<_ACEOF
10501 /* end confdefs.h.  */
10502 #include <$ac_header>
10503 _ACEOF
10504 if { (ac_try="$ac_cpp conftest.$ac_ext"
10505 case "(($ac_try" in
10506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10507   *) ac_try_echo=$ac_try;;
10508 esac
10509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10510 $as_echo "$ac_try_echo") >&5
10511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10512   ac_status=$?
10513   grep -v '^ *+' conftest.er1 >conftest.err
10514   rm -f conftest.er1
10515   cat conftest.err >&5
10516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } >/dev/null && {
10518          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10519          test ! -s conftest.err
10520        }; then
10521   ac_header_preproc=yes
10522 else
10523   $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526   ac_header_preproc=no
10527 fi
10528
10529 rm -f conftest.err conftest.$ac_ext
10530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10531 $as_echo "$ac_header_preproc" >&6; }
10532
10533 # So?  What about this header?
10534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10535   yes:no: )
10536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10537 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10539 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10540     ac_header_preproc=yes
10541     ;;
10542   no:yes:* )
10543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10544 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10546 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10548 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10550 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10553     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10554 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10555     ( cat <<\_ASBOX
10556 ## ---------------------------------------- ##
10557 ## Report this to pgsql-bugs@postgresql.org ##
10558 ## ---------------------------------------- ##
10559 _ASBOX
10560      ) | sed "s/^/$as_me: WARNING:     /" >&2
10561     ;;
10562 esac
10563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10564 $as_echo_n "checking for $ac_header... " >&6; }
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566   $as_echo_n "(cached) " >&6
10567 else
10568   eval "$as_ac_Header=\$ac_header_preproc"
10569 fi
10570 ac_res=`eval 'as_val=${'$as_ac_Header'}
10571                  $as_echo "$as_val"'`
10572                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10573 $as_echo "$ac_res" >&6; }
10574
10575 fi
10576 as_val=`eval 'as_val=${'$as_ac_Header'}
10577                  $as_echo "$as_val"'`
10578    if test "x$as_val" = x""yes; then
10579   cat >>confdefs.h <<_ACEOF
10580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10581 _ACEOF
10582
10583 else
10584
10585 for ac_header in history.h
10586 do
10587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10589   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10590 $as_echo_n "checking for $ac_header... " >&6; }
10591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10592   $as_echo_n "(cached) " >&6
10593 fi
10594 ac_res=`eval 'as_val=${'$as_ac_Header'}
10595                  $as_echo "$as_val"'`
10596                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10597 $as_echo "$ac_res" >&6; }
10598 else
10599   # Is the header compilable?
10600 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10601 $as_echo_n "checking $ac_header usability... " >&6; }
10602 cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608 $ac_includes_default
10609 #include <$ac_header>
10610 _ACEOF
10611 rm -f conftest.$ac_objext
10612 if { (ac_try="$ac_compile"
10613 case "(($ac_try" in
10614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615   *) ac_try_echo=$ac_try;;
10616 esac
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619   (eval "$ac_compile") 2>conftest.er1
10620   ac_status=$?
10621   grep -v '^ *+' conftest.er1 >conftest.err
10622   rm -f conftest.er1
10623   cat conftest.err >&5
10624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); } && {
10626          test -z "$ac_c_werror_flag" ||
10627          test ! -s conftest.err
10628        } && test -s conftest.$ac_objext; then
10629   ac_header_compiler=yes
10630 else
10631   $as_echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10633
10634         ac_header_compiler=no
10635 fi
10636
10637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10639 $as_echo "$ac_header_compiler" >&6; }
10640
10641 # Is the header present?
10642 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10643 $as_echo_n "checking $ac_header presence... " >&6; }
10644 cat >conftest.$ac_ext <<_ACEOF
10645 /* confdefs.h.  */
10646 _ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h.  */
10650 #include <$ac_header>
10651 _ACEOF
10652 if { (ac_try="$ac_cpp conftest.$ac_ext"
10653 case "(($ac_try" in
10654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655   *) ac_try_echo=$ac_try;;
10656 esac
10657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10658 $as_echo "$ac_try_echo") >&5
10659   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10660   ac_status=$?
10661   grep -v '^ *+' conftest.er1 >conftest.err
10662   rm -f conftest.er1
10663   cat conftest.err >&5
10664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); } >/dev/null && {
10666          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10667          test ! -s conftest.err
10668        }; then
10669   ac_header_preproc=yes
10670 else
10671   $as_echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10673
10674   ac_header_preproc=no
10675 fi
10676
10677 rm -f conftest.err conftest.$ac_ext
10678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10679 $as_echo "$ac_header_preproc" >&6; }
10680
10681 # So?  What about this header?
10682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10683   yes:no: )
10684     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10685 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10688     ac_header_preproc=yes
10689     ;;
10690   no:yes:* )
10691     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10692 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10694 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10696 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10698 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10702 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10703     ( cat <<\_ASBOX
10704 ## ---------------------------------------- ##
10705 ## Report this to pgsql-bugs@postgresql.org ##
10706 ## ---------------------------------------- ##
10707 _ASBOX
10708      ) | sed "s/^/$as_me: WARNING:     /" >&2
10709     ;;
10710 esac
10711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10712 $as_echo_n "checking for $ac_header... " >&6; }
10713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10714   $as_echo_n "(cached) " >&6
10715 else
10716   eval "$as_ac_Header=\$ac_header_preproc"
10717 fi
10718 ac_res=`eval 'as_val=${'$as_ac_Header'}
10719                  $as_echo "$as_val"'`
10720                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10721 $as_echo "$ac_res" >&6; }
10722
10723 fi
10724 as_val=`eval 'as_val=${'$as_ac_Header'}
10725                  $as_echo "$as_val"'`
10726    if test "x$as_val" = x""yes; then
10727   cat >>confdefs.h <<_ACEOF
10728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10729 _ACEOF
10730
10731 else
10732   { { $as_echo "$as_me:$LINENO: error: history header not found
10733 If you have readline already installed, see config.log for details on the
10734 failure.  It is possible the compiler isn't looking in the proper directory.
10735 Use --without-readline to disable readline support." >&5
10736 $as_echo "$as_me: error: history header not found
10737 If you have readline already installed, see config.log for details on the
10738 failure.  It is possible the compiler isn't looking in the proper directory.
10739 Use --without-readline to disable readline support." >&2;}
10740    { (exit 1); exit 1; }; }
10741 fi
10742
10743 done
10744
10745 fi
10746
10747 done
10748
10749 fi
10750
10751 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10752 # Some installations of libedit usurp /usr/include/readline/, which seems
10753 # bad practice, since in combined installations readline will have its headers
10754 # there.  We might have to resort to AC_EGREP checks to make sure we found
10755 # the proper header...
10756
10757 for ac_header in editline/readline.h
10758 do
10759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 $as_echo_n "checking for $ac_header... " >&6; }
10763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764   $as_echo_n "(cached) " >&6
10765 fi
10766 ac_res=`eval 'as_val=${'$as_ac_Header'}
10767                  $as_echo "$as_val"'`
10768                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10769 $as_echo "$ac_res" >&6; }
10770 else
10771   # Is the header compilable?
10772 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10773 $as_echo_n "checking $ac_header usability... " >&6; }
10774 cat >conftest.$ac_ext <<_ACEOF
10775 /* confdefs.h.  */
10776 _ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h.  */
10780 $ac_includes_default
10781 #include <$ac_header>
10782 _ACEOF
10783 rm -f conftest.$ac_objext
10784 if { (ac_try="$ac_compile"
10785 case "(($ac_try" in
10786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787   *) ac_try_echo=$ac_try;;
10788 esac
10789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10790 $as_echo "$ac_try_echo") >&5
10791   (eval "$ac_compile") 2>conftest.er1
10792   ac_status=$?
10793   grep -v '^ *+' conftest.er1 >conftest.err
10794   rm -f conftest.er1
10795   cat conftest.err >&5
10796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } && {
10798          test -z "$ac_c_werror_flag" ||
10799          test ! -s conftest.err
10800        } && test -s conftest.$ac_objext; then
10801   ac_header_compiler=yes
10802 else
10803   $as_echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806         ac_header_compiler=no
10807 fi
10808
10809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10810 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10811 $as_echo "$ac_header_compiler" >&6; }
10812
10813 # Is the header present?
10814 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10815 $as_echo_n "checking $ac_header presence... " >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822 #include <$ac_header>
10823 _ACEOF
10824 if { (ac_try="$ac_cpp conftest.$ac_ext"
10825 case "(($ac_try" in
10826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827   *) ac_try_echo=$ac_try;;
10828 esac
10829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10830 $as_echo "$ac_try_echo") >&5
10831   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10832   ac_status=$?
10833   grep -v '^ *+' conftest.er1 >conftest.err
10834   rm -f conftest.er1
10835   cat conftest.err >&5
10836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } >/dev/null && {
10838          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10839          test ! -s conftest.err
10840        }; then
10841   ac_header_preproc=yes
10842 else
10843   $as_echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846   ac_header_preproc=no
10847 fi
10848
10849 rm -f conftest.err conftest.$ac_ext
10850 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10851 $as_echo "$ac_header_preproc" >&6; }
10852
10853 # So?  What about this header?
10854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10855   yes:no: )
10856     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10857 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10860     ac_header_preproc=yes
10861     ;;
10862   no:yes:* )
10863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10864 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10865     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10866 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10867     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10868 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10869     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10870 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10871     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10872 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10873     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10874 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10875     ( cat <<\_ASBOX
10876 ## ---------------------------------------- ##
10877 ## Report this to pgsql-bugs@postgresql.org ##
10878 ## ---------------------------------------- ##
10879 _ASBOX
10880      ) | sed "s/^/$as_me: WARNING:     /" >&2
10881     ;;
10882 esac
10883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10884 $as_echo_n "checking for $ac_header... " >&6; }
10885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10886   $as_echo_n "(cached) " >&6
10887 else
10888   eval "$as_ac_Header=\$ac_header_preproc"
10889 fi
10890 ac_res=`eval 'as_val=${'$as_ac_Header'}
10891                  $as_echo "$as_val"'`
10892                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10893 $as_echo "$ac_res" >&6; }
10894
10895 fi
10896 as_val=`eval 'as_val=${'$as_ac_Header'}
10897                  $as_echo "$as_val"'`
10898    if test "x$as_val" = x""yes; then
10899   cat >>confdefs.h <<_ACEOF
10900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 _ACEOF
10902
10903 else
10904
10905 for ac_header in readline.h
10906 do
10907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10909   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 $as_echo_n "checking for $ac_header... " >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912   $as_echo_n "(cached) " >&6
10913 fi
10914 ac_res=`eval 'as_val=${'$as_ac_Header'}
10915                  $as_echo "$as_val"'`
10916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10917 $as_echo "$ac_res" >&6; }
10918 else
10919   # Is the header compilable?
10920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921 $as_echo_n "checking $ac_header usability... " >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h.  */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h.  */
10928 $ac_includes_default
10929 #include <$ac_header>
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935   *) ac_try_echo=$ac_try;;
10936 esac
10937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10938 $as_echo "$ac_try_echo") >&5
10939   (eval "$ac_compile") 2>conftest.er1
10940   ac_status=$?
10941   grep -v '^ *+' conftest.er1 >conftest.err
10942   rm -f conftest.er1
10943   cat conftest.err >&5
10944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); } && {
10946          test -z "$ac_c_werror_flag" ||
10947          test ! -s conftest.err
10948        } && test -s conftest.$ac_objext; then
10949   ac_header_compiler=yes
10950 else
10951   $as_echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10953
10954         ac_header_compiler=no
10955 fi
10956
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10959 $as_echo "$ac_header_compiler" >&6; }
10960
10961 # Is the header present?
10962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10963 $as_echo_n "checking $ac_header presence... " >&6; }
10964 cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 #include <$ac_header>
10971 _ACEOF
10972 if { (ac_try="$ac_cpp conftest.$ac_ext"
10973 case "(($ac_try" in
10974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975   *) ac_try_echo=$ac_try;;
10976 esac
10977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978 $as_echo "$ac_try_echo") >&5
10979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10980   ac_status=$?
10981   grep -v '^ *+' conftest.er1 >conftest.err
10982   rm -f conftest.er1
10983   cat conftest.err >&5
10984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); } >/dev/null && {
10986          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10987          test ! -s conftest.err
10988        }; then
10989   ac_header_preproc=yes
10990 else
10991   $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994   ac_header_preproc=no
10995 fi
10996
10997 rm -f conftest.err conftest.$ac_ext
10998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10999 $as_echo "$ac_header_preproc" >&6; }
11000
11001 # So?  What about this header?
11002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11003   yes:no: )
11004     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11006     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11008     ac_header_preproc=yes
11009     ;;
11010   no:yes:* )
11011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11013     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11014 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11015     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11017     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11018 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11019     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11021     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11023     ( cat <<\_ASBOX
11024 ## ---------------------------------------- ##
11025 ## Report this to pgsql-bugs@postgresql.org ##
11026 ## ---------------------------------------- ##
11027 _ASBOX
11028      ) | sed "s/^/$as_me: WARNING:     /" >&2
11029     ;;
11030 esac
11031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11032 $as_echo_n "checking for $ac_header... " >&6; }
11033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11034   $as_echo_n "(cached) " >&6
11035 else
11036   eval "$as_ac_Header=\$ac_header_preproc"
11037 fi
11038 ac_res=`eval 'as_val=${'$as_ac_Header'}
11039                  $as_echo "$as_val"'`
11040                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11041 $as_echo "$ac_res" >&6; }
11042
11043 fi
11044 as_val=`eval 'as_val=${'$as_ac_Header'}
11045                  $as_echo "$as_val"'`
11046    if test "x$as_val" = x""yes; then
11047   cat >>confdefs.h <<_ACEOF
11048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11049 _ACEOF
11050
11051 else
11052
11053 for ac_header in readline/readline.h
11054 do
11055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 $as_echo_n "checking for $ac_header... " >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060   $as_echo_n "(cached) " >&6
11061 fi
11062 ac_res=`eval 'as_val=${'$as_ac_Header'}
11063                  $as_echo "$as_val"'`
11064                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11065 $as_echo "$ac_res" >&6; }
11066 else
11067   # Is the header compilable?
11068 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11069 $as_echo_n "checking $ac_header usability... " >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11071 /* confdefs.h.  */
11072 _ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h.  */
11076 $ac_includes_default
11077 #include <$ac_header>
11078 _ACEOF
11079 rm -f conftest.$ac_objext
11080 if { (ac_try="$ac_compile"
11081 case "(($ac_try" in
11082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083   *) ac_try_echo=$ac_try;;
11084 esac
11085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087   (eval "$ac_compile") 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } && {
11094          test -z "$ac_c_werror_flag" ||
11095          test ! -s conftest.err
11096        } && test -s conftest.$ac_objext; then
11097   ac_header_compiler=yes
11098 else
11099   $as_echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102         ac_header_compiler=no
11103 fi
11104
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11107 $as_echo "$ac_header_compiler" >&6; }
11108
11109 # Is the header present?
11110 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11111 $as_echo_n "checking $ac_header presence... " >&6; }
11112 cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h.  */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h.  */
11118 #include <$ac_header>
11119 _ACEOF
11120 if { (ac_try="$ac_cpp conftest.$ac_ext"
11121 case "(($ac_try" in
11122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123   *) ac_try_echo=$ac_try;;
11124 esac
11125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11126 $as_echo "$ac_try_echo") >&5
11127   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11128   ac_status=$?
11129   grep -v '^ *+' conftest.er1 >conftest.err
11130   rm -f conftest.er1
11131   cat conftest.err >&5
11132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); } >/dev/null && {
11134          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11135          test ! -s conftest.err
11136        }; then
11137   ac_header_preproc=yes
11138 else
11139   $as_echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142   ac_header_preproc=no
11143 fi
11144
11145 rm -f conftest.err conftest.$ac_ext
11146 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11147 $as_echo "$ac_header_preproc" >&6; }
11148
11149 # So?  What about this header?
11150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11151   yes:no: )
11152     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11153 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11155 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11156     ac_header_preproc=yes
11157     ;;
11158   no:yes:* )
11159     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11160 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11161     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11162 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11163     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11164 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11165     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11166 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11167     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11168 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11169     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11170 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11171     ( cat <<\_ASBOX
11172 ## ---------------------------------------- ##
11173 ## Report this to pgsql-bugs@postgresql.org ##
11174 ## ---------------------------------------- ##
11175 _ASBOX
11176      ) | sed "s/^/$as_me: WARNING:     /" >&2
11177     ;;
11178 esac
11179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 $as_echo_n "checking for $ac_header... " >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182   $as_echo_n "(cached) " >&6
11183 else
11184   eval "$as_ac_Header=\$ac_header_preproc"
11185 fi
11186 ac_res=`eval 'as_val=${'$as_ac_Header'}
11187                  $as_echo "$as_val"'`
11188                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11189 $as_echo "$ac_res" >&6; }
11190
11191 fi
11192 as_val=`eval 'as_val=${'$as_ac_Header'}
11193                  $as_echo "$as_val"'`
11194    if test "x$as_val" = x""yes; then
11195   cat >>confdefs.h <<_ACEOF
11196 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11197 _ACEOF
11198
11199 else
11200   { { $as_echo "$as_me:$LINENO: error: readline header not found
11201 If you have libedit already installed, see config.log for details on the
11202 failure.  It is possible the compiler isn't looking in the proper directory.
11203 Use --without-readline to disable libedit support." >&5
11204 $as_echo "$as_me: error: readline header not found
11205 If you have libedit already installed, see config.log for details on the
11206 failure.  It is possible the compiler isn't looking in the proper directory.
11207 Use --without-readline to disable libedit support." >&2;}
11208    { (exit 1); exit 1; }; }
11209 fi
11210
11211 done
11212
11213 fi
11214
11215 done
11216
11217 fi
11218
11219 done
11220
11221 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11222 # not be there at all.  Hence, don't complain if not found.  We must check
11223 # though, since in yet other versions it is an independent header.
11224
11225 for ac_header in editline/history.h
11226 do
11227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 $as_echo_n "checking for $ac_header... " >&6; }
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232   $as_echo_n "(cached) " >&6
11233 fi
11234 ac_res=`eval 'as_val=${'$as_ac_Header'}
11235                  $as_echo "$as_val"'`
11236                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11237 $as_echo "$ac_res" >&6; }
11238 else
11239   # Is the header compilable?
11240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241 $as_echo_n "checking $ac_header usability... " >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 $ac_includes_default
11249 #include <$ac_header>
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11258 $as_echo "$ac_try_echo") >&5
11259   (eval "$ac_compile") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } && {
11266          test -z "$ac_c_werror_flag" ||
11267          test ! -s conftest.err
11268        } && test -s conftest.$ac_objext; then
11269   ac_header_compiler=yes
11270 else
11271   $as_echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11273
11274         ac_header_compiler=no
11275 fi
11276
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11279 $as_echo "$ac_header_compiler" >&6; }
11280
11281 # Is the header present?
11282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11283 $as_echo_n "checking $ac_header presence... " >&6; }
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h.  */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h.  */
11290 #include <$ac_header>
11291 _ACEOF
11292 if { (ac_try="$ac_cpp conftest.$ac_ext"
11293 case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11298 $as_echo "$ac_try_echo") >&5
11299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11300   ac_status=$?
11301   grep -v '^ *+' conftest.er1 >conftest.err
11302   rm -f conftest.er1
11303   cat conftest.err >&5
11304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); } >/dev/null && {
11306          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11307          test ! -s conftest.err
11308        }; then
11309   ac_header_preproc=yes
11310 else
11311   $as_echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11313
11314   ac_header_preproc=no
11315 fi
11316
11317 rm -f conftest.err conftest.$ac_ext
11318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319 $as_echo "$ac_header_preproc" >&6; }
11320
11321 # So?  What about this header?
11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11323   yes:no: )
11324     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328     ac_header_preproc=yes
11329     ;;
11330   no:yes:* )
11331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11334 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11335     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11338 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11343     ( cat <<\_ASBOX
11344 ## ---------------------------------------- ##
11345 ## Report this to pgsql-bugs@postgresql.org ##
11346 ## ---------------------------------------- ##
11347 _ASBOX
11348      ) | sed "s/^/$as_me: WARNING:     /" >&2
11349     ;;
11350 esac
11351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 $as_echo_n "checking for $ac_header... " >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354   $as_echo_n "(cached) " >&6
11355 else
11356   eval "$as_ac_Header=\$ac_header_preproc"
11357 fi
11358 ac_res=`eval 'as_val=${'$as_ac_Header'}
11359                  $as_echo "$as_val"'`
11360                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11361 $as_echo "$ac_res" >&6; }
11362
11363 fi
11364 as_val=`eval 'as_val=${'$as_ac_Header'}
11365                  $as_echo "$as_val"'`
11366    if test "x$as_val" = x""yes; then
11367   cat >>confdefs.h <<_ACEOF
11368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11369 _ACEOF
11370
11371 else
11372
11373 for ac_header in history.h
11374 do
11375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 $as_echo_n "checking for $ac_header... " >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380   $as_echo_n "(cached) " >&6
11381 fi
11382 ac_res=`eval 'as_val=${'$as_ac_Header'}
11383                  $as_echo "$as_val"'`
11384                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11385 $as_echo "$ac_res" >&6; }
11386 else
11387   # Is the header compilable?
11388 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11389 $as_echo_n "checking $ac_header usability... " >&6; }
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h.  */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h.  */
11396 $ac_includes_default
11397 #include <$ac_header>
11398 _ACEOF
11399 rm -f conftest.$ac_objext
11400 if { (ac_try="$ac_compile"
11401 case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11406 $as_echo "$ac_try_echo") >&5
11407   (eval "$ac_compile") 2>conftest.er1
11408   ac_status=$?
11409   grep -v '^ *+' conftest.er1 >conftest.err
11410   rm -f conftest.er1
11411   cat conftest.err >&5
11412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); } && {
11414          test -z "$ac_c_werror_flag" ||
11415          test ! -s conftest.err
11416        } && test -s conftest.$ac_objext; then
11417   ac_header_compiler=yes
11418 else
11419   $as_echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11421
11422         ac_header_compiler=no
11423 fi
11424
11425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11427 $as_echo "$ac_header_compiler" >&6; }
11428
11429 # Is the header present?
11430 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11431 $as_echo_n "checking $ac_header presence... " >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11433 /* confdefs.h.  */
11434 _ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h.  */
11438 #include <$ac_header>
11439 _ACEOF
11440 if { (ac_try="$ac_cpp conftest.$ac_ext"
11441 case "(($ac_try" in
11442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443   *) ac_try_echo=$ac_try;;
11444 esac
11445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11446 $as_echo "$ac_try_echo") >&5
11447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11448   ac_status=$?
11449   grep -v '^ *+' conftest.er1 >conftest.err
11450   rm -f conftest.er1
11451   cat conftest.err >&5
11452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); } >/dev/null && {
11454          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11455          test ! -s conftest.err
11456        }; then
11457   ac_header_preproc=yes
11458 else
11459   $as_echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11461
11462   ac_header_preproc=no
11463 fi
11464
11465 rm -f conftest.err conftest.$ac_ext
11466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11467 $as_echo "$ac_header_preproc" >&6; }
11468
11469 # So?  What about this header?
11470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11471   yes:no: )
11472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11473 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11476     ac_header_preproc=yes
11477     ;;
11478   no:yes:* )
11479     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11480 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11481     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11482 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11483     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11484 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11485     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11486 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11487     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11489     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11490 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11491     ( cat <<\_ASBOX
11492 ## ---------------------------------------- ##
11493 ## Report this to pgsql-bugs@postgresql.org ##
11494 ## ---------------------------------------- ##
11495 _ASBOX
11496      ) | sed "s/^/$as_me: WARNING:     /" >&2
11497     ;;
11498 esac
11499 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 $as_echo_n "checking for $ac_header... " >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502   $as_echo_n "(cached) " >&6
11503 else
11504   eval "$as_ac_Header=\$ac_header_preproc"
11505 fi
11506 ac_res=`eval 'as_val=${'$as_ac_Header'}
11507                  $as_echo "$as_val"'`
11508                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11509 $as_echo "$ac_res" >&6; }
11510
11511 fi
11512 as_val=`eval 'as_val=${'$as_ac_Header'}
11513                  $as_echo "$as_val"'`
11514    if test "x$as_val" = x""yes; then
11515   cat >>confdefs.h <<_ACEOF
11516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11517 _ACEOF
11518
11519 else
11520
11521 for ac_header in readline/history.h
11522 do
11523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11525   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11526 $as_echo_n "checking for $ac_header... " >&6; }
11527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11528   $as_echo_n "(cached) " >&6
11529 fi
11530 ac_res=`eval 'as_val=${'$as_ac_Header'}
11531                  $as_echo "$as_val"'`
11532                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11533 $as_echo "$ac_res" >&6; }
11534 else
11535   # Is the header compilable?
11536 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11537 $as_echo_n "checking $ac_header usability... " >&6; }
11538 cat >conftest.$ac_ext <<_ACEOF
11539 /* confdefs.h.  */
11540 _ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h.  */
11544 $ac_includes_default
11545 #include <$ac_header>
11546 _ACEOF
11547 rm -f conftest.$ac_objext
11548 if { (ac_try="$ac_compile"
11549 case "(($ac_try" in
11550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551   *) ac_try_echo=$ac_try;;
11552 esac
11553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11554 $as_echo "$ac_try_echo") >&5
11555   (eval "$ac_compile") 2>conftest.er1
11556   ac_status=$?
11557   grep -v '^ *+' conftest.er1 >conftest.err
11558   rm -f conftest.er1
11559   cat conftest.err >&5
11560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } && {
11562          test -z "$ac_c_werror_flag" ||
11563          test ! -s conftest.err
11564        } && test -s conftest.$ac_objext; then
11565   ac_header_compiler=yes
11566 else
11567   $as_echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11569
11570         ac_header_compiler=no
11571 fi
11572
11573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575 $as_echo "$ac_header_compiler" >&6; }
11576
11577 # Is the header present?
11578 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579 $as_echo_n "checking $ac_header presence... " >&6; }
11580 cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586 #include <$ac_header>
11587 _ACEOF
11588 if { (ac_try="$ac_cpp conftest.$ac_ext"
11589 case "(($ac_try" in
11590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591   *) ac_try_echo=$ac_try;;
11592 esac
11593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11594 $as_echo "$ac_try_echo") >&5
11595   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11596   ac_status=$?
11597   grep -v '^ *+' conftest.er1 >conftest.err
11598   rm -f conftest.er1
11599   cat conftest.err >&5
11600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); } >/dev/null && {
11602          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11603          test ! -s conftest.err
11604        }; then
11605   ac_header_preproc=yes
11606 else
11607   $as_echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11609
11610   ac_header_preproc=no
11611 fi
11612
11613 rm -f conftest.err conftest.$ac_ext
11614 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11615 $as_echo "$ac_header_preproc" >&6; }
11616
11617 # So?  What about this header?
11618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11619   yes:no: )
11620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11622     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11624     ac_header_preproc=yes
11625     ;;
11626   no:yes:* )
11627     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11629     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11630 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11631     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11632 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11633     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11634 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11636 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11638 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11639     ( cat <<\_ASBOX
11640 ## ---------------------------------------- ##
11641 ## Report this to pgsql-bugs@postgresql.org ##
11642 ## ---------------------------------------- ##
11643 _ASBOX
11644      ) | sed "s/^/$as_me: WARNING:     /" >&2
11645     ;;
11646 esac
11647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11648 $as_echo_n "checking for $ac_header... " >&6; }
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650   $as_echo_n "(cached) " >&6
11651 else
11652   eval "$as_ac_Header=\$ac_header_preproc"
11653 fi
11654 ac_res=`eval 'as_val=${'$as_ac_Header'}
11655                  $as_echo "$as_val"'`
11656                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11657 $as_echo "$ac_res" >&6; }
11658
11659 fi
11660 as_val=`eval 'as_val=${'$as_ac_Header'}
11661                  $as_echo "$as_val"'`
11662    if test "x$as_val" = x""yes; then
11663   cat >>confdefs.h <<_ACEOF
11664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11665 _ACEOF
11666
11667 fi
11668
11669 done
11670
11671 fi
11672
11673 done
11674
11675 fi
11676
11677 done
11678
11679 fi
11680
11681 if test "$with_zlib" = yes; then
11682   if test "${ac_cv_header_zlib_h+set}" = set; then
11683   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11684 $as_echo_n "checking for zlib.h... " >&6; }
11685 if test "${ac_cv_header_zlib_h+set}" = set; then
11686   $as_echo_n "(cached) " >&6
11687 fi
11688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11689 $as_echo "$ac_cv_header_zlib_h" >&6; }
11690 else
11691   # Is the header compilable?
11692 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11693 $as_echo_n "checking zlib.h usability... " >&6; }
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h.  */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h.  */
11700 $ac_includes_default
11701 #include <zlib.h>
11702 _ACEOF
11703 rm -f conftest.$ac_objext
11704 if { (ac_try="$ac_compile"
11705 case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11710 $as_echo "$ac_try_echo") >&5
11711   (eval "$ac_compile") 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } && {
11718          test -z "$ac_c_werror_flag" ||
11719          test ! -s conftest.err
11720        } && test -s conftest.$ac_objext; then
11721   ac_header_compiler=yes
11722 else
11723   $as_echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726         ac_header_compiler=no
11727 fi
11728
11729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11731 $as_echo "$ac_header_compiler" >&6; }
11732
11733 # Is the header present?
11734 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11735 $as_echo_n "checking zlib.h presence... " >&6; }
11736 cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 #include <zlib.h>
11743 _ACEOF
11744 if { (ac_try="$ac_cpp conftest.$ac_ext"
11745 case "(($ac_try" in
11746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747   *) ac_try_echo=$ac_try;;
11748 esac
11749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11750 $as_echo "$ac_try_echo") >&5
11751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11752   ac_status=$?
11753   grep -v '^ *+' conftest.er1 >conftest.err
11754   rm -f conftest.er1
11755   cat conftest.err >&5
11756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } >/dev/null && {
11758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11759          test ! -s conftest.err
11760        }; then
11761   ac_header_preproc=yes
11762 else
11763   $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766   ac_header_preproc=no
11767 fi
11768
11769 rm -f conftest.err conftest.$ac_ext
11770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11771 $as_echo "$ac_header_preproc" >&6; }
11772
11773 # So?  What about this header?
11774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11775   yes:no: )
11776     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11777 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11778     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11779 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11780     ac_header_preproc=yes
11781     ;;
11782   no:yes:* )
11783     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11784 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11785     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
11786 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
11787     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11788 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11789     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
11790 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11791     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11792 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11793     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11794 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11795     ( cat <<\_ASBOX
11796 ## ---------------------------------------- ##
11797 ## Report this to pgsql-bugs@postgresql.org ##
11798 ## ---------------------------------------- ##
11799 _ASBOX
11800      ) | sed "s/^/$as_me: WARNING:     /" >&2
11801     ;;
11802 esac
11803 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11804 $as_echo_n "checking for zlib.h... " >&6; }
11805 if test "${ac_cv_header_zlib_h+set}" = set; then
11806   $as_echo_n "(cached) " >&6
11807 else
11808   ac_cv_header_zlib_h=$ac_header_preproc
11809 fi
11810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11811 $as_echo "$ac_cv_header_zlib_h" >&6; }
11812
11813 fi
11814 if test "x$ac_cv_header_zlib_h" = x""yes; then
11815   :
11816 else
11817   { { $as_echo "$as_me:$LINENO: error: zlib header not found
11818 If you have zlib already installed, see config.log for details on the
11819 failure.  It is possible the compiler isn't looking in the proper directory.
11820 Use --without-zlib to disable zlib support." >&5
11821 $as_echo "$as_me: error: zlib header not found
11822 If you have zlib already installed, see config.log for details on the
11823 failure.  It is possible the compiler isn't looking in the proper directory.
11824 Use --without-zlib to disable zlib support." >&2;}
11825    { (exit 1); exit 1; }; }
11826 fi
11827
11828
11829 fi
11830
11831 if test "$with_gssapi" = yes ; then
11832
11833 for ac_header in gssapi/gssapi.h
11834 do
11835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 $as_echo_n "checking for $ac_header... " >&6; }
11839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840   $as_echo_n "(cached) " >&6
11841 fi
11842 ac_res=`eval 'as_val=${'$as_ac_Header'}
11843                  $as_echo "$as_val"'`
11844                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11845 $as_echo "$ac_res" >&6; }
11846 else
11847   # Is the header compilable?
11848 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11849 $as_echo_n "checking $ac_header usability... " >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856 $ac_includes_default
11857 #include <$ac_header>
11858 _ACEOF
11859 rm -f conftest.$ac_objext
11860 if { (ac_try="$ac_compile"
11861 case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11866 $as_echo "$ac_try_echo") >&5
11867   (eval "$ac_compile") 2>conftest.er1
11868   ac_status=$?
11869   grep -v '^ *+' conftest.er1 >conftest.err
11870   rm -f conftest.er1
11871   cat conftest.err >&5
11872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } && {
11874          test -z "$ac_c_werror_flag" ||
11875          test ! -s conftest.err
11876        } && test -s conftest.$ac_objext; then
11877   ac_header_compiler=yes
11878 else
11879   $as_echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882         ac_header_compiler=no
11883 fi
11884
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887 $as_echo "$ac_header_compiler" >&6; }
11888
11889 # Is the header present?
11890 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891 $as_echo_n "checking $ac_header presence... " >&6; }
11892 cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898 #include <$ac_header>
11899 _ACEOF
11900 if { (ac_try="$ac_cpp conftest.$ac_ext"
11901 case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906 $as_echo "$ac_try_echo") >&5
11907   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11908   ac_status=$?
11909   grep -v '^ *+' conftest.er1 >conftest.err
11910   rm -f conftest.er1
11911   cat conftest.err >&5
11912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); } >/dev/null && {
11914          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11915          test ! -s conftest.err
11916        }; then
11917   ac_header_preproc=yes
11918 else
11919   $as_echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922   ac_header_preproc=no
11923 fi
11924
11925 rm -f conftest.err conftest.$ac_ext
11926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 $as_echo "$ac_header_preproc" >&6; }
11928
11929 # So?  What about this header?
11930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11931   yes:no: )
11932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11936     ac_header_preproc=yes
11937     ;;
11938   no:yes:* )
11939     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11941     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11942 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11943     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11944 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11945     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11946 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11950 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11951     ( cat <<\_ASBOX
11952 ## ---------------------------------------- ##
11953 ## Report this to pgsql-bugs@postgresql.org ##
11954 ## ---------------------------------------- ##
11955 _ASBOX
11956      ) | sed "s/^/$as_me: WARNING:     /" >&2
11957     ;;
11958 esac
11959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 $as_echo_n "checking for $ac_header... " >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962   $as_echo_n "(cached) " >&6
11963 else
11964   eval "$as_ac_Header=\$ac_header_preproc"
11965 fi
11966 ac_res=`eval 'as_val=${'$as_ac_Header'}
11967                  $as_echo "$as_val"'`
11968                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11969 $as_echo "$ac_res" >&6; }
11970
11971 fi
11972 as_val=`eval 'as_val=${'$as_ac_Header'}
11973                  $as_echo "$as_val"'`
11974    if test "x$as_val" = x""yes; then
11975   cat >>confdefs.h <<_ACEOF
11976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977 _ACEOF
11978
11979 else
11980
11981 for ac_header in gssapi.h
11982 do
11983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11986 $as_echo_n "checking for $ac_header... " >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988   $as_echo_n "(cached) " >&6
11989 fi
11990 ac_res=`eval 'as_val=${'$as_ac_Header'}
11991                  $as_echo "$as_val"'`
11992                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11993 $as_echo "$ac_res" >&6; }
11994 else
11995   # Is the header compilable?
11996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11997 $as_echo_n "checking $ac_header usability... " >&6; }
11998 cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004 $ac_includes_default
12005 #include <$ac_header>
12006 _ACEOF
12007 rm -f conftest.$ac_objext
12008 if { (ac_try="$ac_compile"
12009 case "(($ac_try" in
12010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011   *) ac_try_echo=$ac_try;;
12012 esac
12013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12014 $as_echo "$ac_try_echo") >&5
12015   (eval "$ac_compile") 2>conftest.er1
12016   ac_status=$?
12017   grep -v '^ *+' conftest.er1 >conftest.err
12018   rm -f conftest.er1
12019   cat conftest.err >&5
12020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); } && {
12022          test -z "$ac_c_werror_flag" ||
12023          test ! -s conftest.err
12024        } && test -s conftest.$ac_objext; then
12025   ac_header_compiler=yes
12026 else
12027   $as_echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030         ac_header_compiler=no
12031 fi
12032
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12035 $as_echo "$ac_header_compiler" >&6; }
12036
12037 # Is the header present?
12038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12039 $as_echo_n "checking $ac_header presence... " >&6; }
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h.  */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h.  */
12046 #include <$ac_header>
12047 _ACEOF
12048 if { (ac_try="$ac_cpp conftest.$ac_ext"
12049 case "(($ac_try" in
12050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051   *) ac_try_echo=$ac_try;;
12052 esac
12053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12054 $as_echo "$ac_try_echo") >&5
12055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12056   ac_status=$?
12057   grep -v '^ *+' conftest.er1 >conftest.err
12058   rm -f conftest.er1
12059   cat conftest.err >&5
12060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); } >/dev/null && {
12062          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12063          test ! -s conftest.err
12064        }; then
12065   ac_header_preproc=yes
12066 else
12067   $as_echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12069
12070   ac_header_preproc=no
12071 fi
12072
12073 rm -f conftest.err conftest.$ac_ext
12074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075 $as_echo "$ac_header_preproc" >&6; }
12076
12077 # So?  What about this header?
12078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12079   yes:no: )
12080     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084     ac_header_preproc=yes
12085     ;;
12086   no:yes:* )
12087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12090 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12091     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12094 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12095     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12099     ( cat <<\_ASBOX
12100 ## ---------------------------------------- ##
12101 ## Report this to pgsql-bugs@postgresql.org ##
12102 ## ---------------------------------------- ##
12103 _ASBOX
12104      ) | sed "s/^/$as_me: WARNING:     /" >&2
12105     ;;
12106 esac
12107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12108 $as_echo_n "checking for $ac_header... " >&6; }
12109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110   $as_echo_n "(cached) " >&6
12111 else
12112   eval "$as_ac_Header=\$ac_header_preproc"
12113 fi
12114 ac_res=`eval 'as_val=${'$as_ac_Header'}
12115                  $as_echo "$as_val"'`
12116                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12117 $as_echo "$ac_res" >&6; }
12118
12119 fi
12120 as_val=`eval 'as_val=${'$as_ac_Header'}
12121                  $as_echo "$as_val"'`
12122    if test "x$as_val" = x""yes; then
12123   cat >>confdefs.h <<_ACEOF
12124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12125 _ACEOF
12126
12127 else
12128   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12129 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12130    { (exit 1); exit 1; }; }
12131 fi
12132
12133 done
12134
12135 fi
12136
12137 done
12138
12139 fi
12140
12141 if test "$with_krb5" = yes ; then
12142   if test "${ac_cv_header_krb5_h+set}" = set; then
12143   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12144 $as_echo_n "checking for krb5.h... " >&6; }
12145 if test "${ac_cv_header_krb5_h+set}" = set; then
12146   $as_echo_n "(cached) " >&6
12147 fi
12148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12149 $as_echo "$ac_cv_header_krb5_h" >&6; }
12150 else
12151   # Is the header compilable?
12152 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12153 $as_echo_n "checking krb5.h usability... " >&6; }
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160 $ac_includes_default
12161 #include <krb5.h>
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12167   *) ac_try_echo=$ac_try;;
12168 esac
12169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171   (eval "$ac_compile") 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } && {
12178          test -z "$ac_c_werror_flag" ||
12179          test ! -s conftest.err
12180        } && test -s conftest.$ac_objext; then
12181   ac_header_compiler=yes
12182 else
12183   $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.$ac_ext >&5
12185
12186         ac_header_compiler=no
12187 fi
12188
12189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12190 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12191 $as_echo "$ac_header_compiler" >&6; }
12192
12193 # Is the header present?
12194 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12195 $as_echo_n "checking krb5.h presence... " >&6; }
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h.  */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h.  */
12202 #include <krb5.h>
12203 _ACEOF
12204 if { (ac_try="$ac_cpp conftest.$ac_ext"
12205 case "(($ac_try" in
12206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207   *) ac_try_echo=$ac_try;;
12208 esac
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } >/dev/null && {
12218          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12219          test ! -s conftest.err
12220        }; then
12221   ac_header_preproc=yes
12222 else
12223   $as_echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226   ac_header_preproc=no
12227 fi
12228
12229 rm -f conftest.err conftest.$ac_ext
12230 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 $as_echo "$ac_header_preproc" >&6; }
12232
12233 # So?  What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12235   yes:no: )
12236     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12237 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12239 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12240     ac_header_preproc=yes
12241     ;;
12242   no:yes:* )
12243     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12244 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12245     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12246 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12247     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12248 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12249     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12250 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12251     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12252 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12253     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12254 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12255     ( cat <<\_ASBOX
12256 ## ---------------------------------------- ##
12257 ## Report this to pgsql-bugs@postgresql.org ##
12258 ## ---------------------------------------- ##
12259 _ASBOX
12260      ) | sed "s/^/$as_me: WARNING:     /" >&2
12261     ;;
12262 esac
12263 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12264 $as_echo_n "checking for krb5.h... " >&6; }
12265 if test "${ac_cv_header_krb5_h+set}" = set; then
12266   $as_echo_n "(cached) " >&6
12267 else
12268   ac_cv_header_krb5_h=$ac_header_preproc
12269 fi
12270 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12271 $as_echo "$ac_cv_header_krb5_h" >&6; }
12272
12273 fi
12274 if test "x$ac_cv_header_krb5_h" = x""yes; then
12275   :
12276 else
12277   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12278 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12279    { (exit 1); exit 1; }; }
12280 fi
12281
12282
12283 fi
12284
12285 if test "$with_openssl" = yes ; then
12286   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12287   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12288 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12289 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12290   $as_echo_n "(cached) " >&6
12291 fi
12292 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12293 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12294 else
12295   # Is the header compilable?
12296 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12297 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h.  */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h.  */
12304 $ac_includes_default
12305 #include <openssl/ssl.h>
12306 _ACEOF
12307 rm -f conftest.$ac_objext
12308 if { (ac_try="$ac_compile"
12309 case "(($ac_try" in
12310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311   *) ac_try_echo=$ac_try;;
12312 esac
12313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12314 $as_echo "$ac_try_echo") >&5
12315   (eval "$ac_compile") 2>conftest.er1
12316   ac_status=$?
12317   grep -v '^ *+' conftest.er1 >conftest.err
12318   rm -f conftest.er1
12319   cat conftest.err >&5
12320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } && {
12322          test -z "$ac_c_werror_flag" ||
12323          test ! -s conftest.err
12324        } && test -s conftest.$ac_objext; then
12325   ac_header_compiler=yes
12326 else
12327   $as_echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330         ac_header_compiler=no
12331 fi
12332
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12335 $as_echo "$ac_header_compiler" >&6; }
12336
12337 # Is the header present?
12338 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12339 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h.  */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h.  */
12346 #include <openssl/ssl.h>
12347 _ACEOF
12348 if { (ac_try="$ac_cpp conftest.$ac_ext"
12349 case "(($ac_try" in
12350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351   *) ac_try_echo=$ac_try;;
12352 esac
12353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354 $as_echo "$ac_try_echo") >&5
12355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12356   ac_status=$?
12357   grep -v '^ *+' conftest.er1 >conftest.err
12358   rm -f conftest.er1
12359   cat conftest.err >&5
12360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); } >/dev/null && {
12362          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12363          test ! -s conftest.err
12364        }; then
12365   ac_header_preproc=yes
12366 else
12367   $as_echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12369
12370   ac_header_preproc=no
12371 fi
12372
12373 rm -f conftest.err conftest.$ac_ext
12374 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12375 $as_echo "$ac_header_preproc" >&6; }
12376
12377 # So?  What about this header?
12378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12379   yes:no: )
12380     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12381 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12382     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12383 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12384     ac_header_preproc=yes
12385     ;;
12386   no:yes:* )
12387     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12388 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12389     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12390 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12391     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12392 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12393     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12394 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12395     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12396 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12397     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12398 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12399     ( cat <<\_ASBOX
12400 ## ---------------------------------------- ##
12401 ## Report this to pgsql-bugs@postgresql.org ##
12402 ## ---------------------------------------- ##
12403 _ASBOX
12404      ) | sed "s/^/$as_me: WARNING:     /" >&2
12405     ;;
12406 esac
12407 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12408 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12409 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12410   $as_echo_n "(cached) " >&6
12411 else
12412   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12413 fi
12414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12415 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12416
12417 fi
12418 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12419   :
12420 else
12421   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12422 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12423    { (exit 1); exit 1; }; }
12424 fi
12425
12426
12427   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12428   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12429 $as_echo_n "checking for openssl/err.h... " >&6; }
12430 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12431   $as_echo_n "(cached) " >&6
12432 fi
12433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12434 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12435 else
12436   # Is the header compilable?
12437 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12438 $as_echo_n "checking openssl/err.h usability... " >&6; }
12439 cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h.  */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h.  */
12445 $ac_includes_default
12446 #include <openssl/err.h>
12447 _ACEOF
12448 rm -f conftest.$ac_objext
12449 if { (ac_try="$ac_compile"
12450 case "(($ac_try" in
12451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452   *) ac_try_echo=$ac_try;;
12453 esac
12454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12455 $as_echo "$ac_try_echo") >&5
12456   (eval "$ac_compile") 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } && {
12463          test -z "$ac_c_werror_flag" ||
12464          test ! -s conftest.err
12465        } && test -s conftest.$ac_objext; then
12466   ac_header_compiler=yes
12467 else
12468   $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471         ac_header_compiler=no
12472 fi
12473
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476 $as_echo "$ac_header_compiler" >&6; }
12477
12478 # Is the header present?
12479 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12480 $as_echo_n "checking openssl/err.h presence... " >&6; }
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h.  */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h.  */
12487 #include <openssl/err.h>
12488 _ACEOF
12489 if { (ac_try="$ac_cpp conftest.$ac_ext"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12495 $as_echo "$ac_try_echo") >&5
12496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12497   ac_status=$?
12498   grep -v '^ *+' conftest.er1 >conftest.err
12499   rm -f conftest.er1
12500   cat conftest.err >&5
12501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); } >/dev/null && {
12503          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12504          test ! -s conftest.err
12505        }; then
12506   ac_header_preproc=yes
12507 else
12508   $as_echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12510
12511   ac_header_preproc=no
12512 fi
12513
12514 rm -f conftest.err conftest.$ac_ext
12515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12516 $as_echo "$ac_header_preproc" >&6; }
12517
12518 # So?  What about this header?
12519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12520   yes:no: )
12521     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12522 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12523     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12524 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12525     ac_header_preproc=yes
12526     ;;
12527   no:yes:* )
12528     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12529 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12530     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12531 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12532     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12533 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12534     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12535 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12536     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12537 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12538     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12539 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12540     ( cat <<\_ASBOX
12541 ## ---------------------------------------- ##
12542 ## Report this to pgsql-bugs@postgresql.org ##
12543 ## ---------------------------------------- ##
12544 _ASBOX
12545      ) | sed "s/^/$as_me: WARNING:     /" >&2
12546     ;;
12547 esac
12548 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12549 $as_echo_n "checking for openssl/err.h... " >&6; }
12550 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12551   $as_echo_n "(cached) " >&6
12552 else
12553   ac_cv_header_openssl_err_h=$ac_header_preproc
12554 fi
12555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12556 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12557
12558 fi
12559 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12560   :
12561 else
12562   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12563 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12564    { (exit 1); exit 1; }; }
12565 fi
12566
12567
12568
12569 for ac_func in ERR_set_mark
12570 do
12571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12572 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12573 $as_echo_n "checking for $ac_func... " >&6; }
12574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12575   $as_echo_n "(cached) " >&6
12576 else
12577   cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12585 #define $ac_func innocuous_$ac_func
12586
12587 /* System header to define __stub macros and hopefully few prototypes,
12588     which can conflict with char $ac_func (); below.
12589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12590     <limits.h> exists even on freestanding compilers.  */
12591
12592 #ifdef __STDC__
12593 # include <limits.h>
12594 #else
12595 # include <assert.h>
12596 #endif
12597
12598 #undef $ac_func
12599
12600 /* Override any GCC internal prototype to avoid an error.
12601    Use char because int might match the return type of a GCC
12602    builtin and then its argument prototype would still apply.  */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 char $ac_func ();
12607 /* The GNU C library defines this for functions which it implements
12608     to always fail with ENOSYS.  Some functions are actually named
12609     something starting with __ and the normal name is an alias.  */
12610 #if defined __stub_$ac_func || defined __stub___$ac_func
12611 choke me
12612 #endif
12613
12614 int
12615 main ()
12616 {
12617 return $ac_func ();
12618   ;
12619   return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626   *) ac_try_echo=$ac_try;;
12627 esac
12628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12629 $as_echo "$ac_try_echo") >&5
12630   (eval "$ac_link") 2>conftest.er1
12631   ac_status=$?
12632   grep -v '^ *+' conftest.er1 >conftest.err
12633   rm -f conftest.er1
12634   cat conftest.err >&5
12635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); } && {
12637          test -z "$ac_c_werror_flag" ||
12638          test ! -s conftest.err
12639        } && test -s conftest$ac_exeext && {
12640          test "$cross_compiling" = yes ||
12641          $as_test_x conftest$ac_exeext
12642        }; then
12643   eval "$as_ac_var=yes"
12644 else
12645   $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648         eval "$as_ac_var=no"
12649 fi
12650
12651 rm -rf conftest.dSYM
12652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12653       conftest$ac_exeext conftest.$ac_ext
12654 fi
12655 ac_res=`eval 'as_val=${'$as_ac_var'}
12656                  $as_echo "$as_val"'`
12657                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12658 $as_echo "$ac_res" >&6; }
12659 as_val=`eval 'as_val=${'$as_ac_var'}
12660                  $as_echo "$as_val"'`
12661    if test "x$as_val" = x""yes; then
12662   cat >>confdefs.h <<_ACEOF
12663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12664 _ACEOF
12665
12666 fi
12667 done
12668
12669 fi
12670
12671 if test "$with_pam" = yes ; then
12672
12673 for ac_header in security/pam_appl.h
12674 do
12675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12677   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12678 $as_echo_n "checking for $ac_header... " >&6; }
12679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12680   $as_echo_n "(cached) " >&6
12681 fi
12682 ac_res=`eval 'as_val=${'$as_ac_Header'}
12683                  $as_echo "$as_val"'`
12684                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12685 $as_echo "$ac_res" >&6; }
12686 else
12687   # Is the header compilable?
12688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12689 $as_echo_n "checking $ac_header usability... " >&6; }
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696 $ac_includes_default
12697 #include <$ac_header>
12698 _ACEOF
12699 rm -f conftest.$ac_objext
12700 if { (ac_try="$ac_compile"
12701 case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12706 $as_echo "$ac_try_echo") >&5
12707   (eval "$ac_compile") 2>conftest.er1
12708   ac_status=$?
12709   grep -v '^ *+' conftest.er1 >conftest.err
12710   rm -f conftest.er1
12711   cat conftest.err >&5
12712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); } && {
12714          test -z "$ac_c_werror_flag" ||
12715          test ! -s conftest.err
12716        } && test -s conftest.$ac_objext; then
12717   ac_header_compiler=yes
12718 else
12719   $as_echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12721
12722         ac_header_compiler=no
12723 fi
12724
12725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12727 $as_echo "$ac_header_compiler" >&6; }
12728
12729 # Is the header present?
12730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12731 $as_echo_n "checking $ac_header presence... " >&6; }
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h.  */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h.  */
12738 #include <$ac_header>
12739 _ACEOF
12740 if { (ac_try="$ac_cpp conftest.$ac_ext"
12741 case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12746 $as_echo "$ac_try_echo") >&5
12747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12748   ac_status=$?
12749   grep -v '^ *+' conftest.er1 >conftest.err
12750   rm -f conftest.er1
12751   cat conftest.err >&5
12752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); } >/dev/null && {
12754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12755          test ! -s conftest.err
12756        }; then
12757   ac_header_preproc=yes
12758 else
12759   $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762   ac_header_preproc=no
12763 fi
12764
12765 rm -f conftest.err conftest.$ac_ext
12766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12767 $as_echo "$ac_header_preproc" >&6; }
12768
12769 # So?  What about this header?
12770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12771   yes:no: )
12772     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12774     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12776     ac_header_preproc=yes
12777     ;;
12778   no:yes:* )
12779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12782 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12786 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12791     ( cat <<\_ASBOX
12792 ## ---------------------------------------- ##
12793 ## Report this to pgsql-bugs@postgresql.org ##
12794 ## ---------------------------------------- ##
12795 _ASBOX
12796      ) | sed "s/^/$as_me: WARNING:     /" >&2
12797     ;;
12798 esac
12799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12800 $as_echo_n "checking for $ac_header... " >&6; }
12801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12802   $as_echo_n "(cached) " >&6
12803 else
12804   eval "$as_ac_Header=\$ac_header_preproc"
12805 fi
12806 ac_res=`eval 'as_val=${'$as_ac_Header'}
12807                  $as_echo "$as_val"'`
12808                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12809 $as_echo "$ac_res" >&6; }
12810
12811 fi
12812 as_val=`eval 'as_val=${'$as_ac_Header'}
12813                  $as_echo "$as_val"'`
12814    if test "x$as_val" = x""yes; then
12815   cat >>confdefs.h <<_ACEOF
12816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12817 _ACEOF
12818
12819 else
12820
12821 for ac_header in pam/pam_appl.h
12822 do
12823 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 $as_echo_n "checking for $ac_header... " >&6; }
12827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12828   $as_echo_n "(cached) " >&6
12829 fi
12830 ac_res=`eval 'as_val=${'$as_ac_Header'}
12831                  $as_echo "$as_val"'`
12832                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12833 $as_echo "$ac_res" >&6; }
12834 else
12835   # Is the header compilable?
12836 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12837 $as_echo_n "checking $ac_header usability... " >&6; }
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844 $ac_includes_default
12845 #include <$ac_header>
12846 _ACEOF
12847 rm -f conftest.$ac_objext
12848 if { (ac_try="$ac_compile"
12849 case "(($ac_try" in
12850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851   *) ac_try_echo=$ac_try;;
12852 esac
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855   (eval "$ac_compile") 2>conftest.er1
12856   ac_status=$?
12857   grep -v '^ *+' conftest.er1 >conftest.err
12858   rm -f conftest.er1
12859   cat conftest.err >&5
12860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); } && {
12862          test -z "$ac_c_werror_flag" ||
12863          test ! -s conftest.err
12864        } && test -s conftest.$ac_objext; then
12865   ac_header_compiler=yes
12866 else
12867   $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870         ac_header_compiler=no
12871 fi
12872
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12875 $as_echo "$ac_header_compiler" >&6; }
12876
12877 # Is the header present?
12878 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12879 $as_echo_n "checking $ac_header presence... " >&6; }
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h.  */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h.  */
12886 #include <$ac_header>
12887 _ACEOF
12888 if { (ac_try="$ac_cpp conftest.$ac_ext"
12889 case "(($ac_try" in
12890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891   *) ac_try_echo=$ac_try;;
12892 esac
12893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12894 $as_echo "$ac_try_echo") >&5
12895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12896   ac_status=$?
12897   grep -v '^ *+' conftest.er1 >conftest.err
12898   rm -f conftest.er1
12899   cat conftest.err >&5
12900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); } >/dev/null && {
12902          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12903          test ! -s conftest.err
12904        }; then
12905   ac_header_preproc=yes
12906 else
12907   $as_echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910   ac_header_preproc=no
12911 fi
12912
12913 rm -f conftest.err conftest.$ac_ext
12914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12915 $as_echo "$ac_header_preproc" >&6; }
12916
12917 # So?  What about this header?
12918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12919   yes:no: )
12920     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12921 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12922     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12923 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12924     ac_header_preproc=yes
12925     ;;
12926   no:yes:* )
12927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12928 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12930 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12932 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12934 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12937     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12938 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12939     ( cat <<\_ASBOX
12940 ## ---------------------------------------- ##
12941 ## Report this to pgsql-bugs@postgresql.org ##
12942 ## ---------------------------------------- ##
12943 _ASBOX
12944      ) | sed "s/^/$as_me: WARNING:     /" >&2
12945     ;;
12946 esac
12947 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12948 $as_echo_n "checking for $ac_header... " >&6; }
12949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12950   $as_echo_n "(cached) " >&6
12951 else
12952   eval "$as_ac_Header=\$ac_header_preproc"
12953 fi
12954 ac_res=`eval 'as_val=${'$as_ac_Header'}
12955                  $as_echo "$as_val"'`
12956                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957 $as_echo "$ac_res" >&6; }
12958
12959 fi
12960 as_val=`eval 'as_val=${'$as_ac_Header'}
12961                  $as_echo "$as_val"'`
12962    if test "x$as_val" = x""yes; then
12963   cat >>confdefs.h <<_ACEOF
12964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12965 _ACEOF
12966
12967 else
12968   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12969 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12970    { (exit 1); exit 1; }; }
12971 fi
12972
12973 done
12974
12975 fi
12976
12977 done
12978
12979 fi
12980
12981 if test "$with_libxml" = yes ; then
12982   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12983   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12984 $as_echo_n "checking for libxml/parser.h... " >&6; }
12985 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12986   $as_echo_n "(cached) " >&6
12987 fi
12988 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12989 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12990 else
12991   # Is the header compilable?
12992 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12993 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000 $ac_includes_default
13001 #include <libxml/parser.h>
13002 _ACEOF
13003 rm -f conftest.$ac_objext
13004 if { (ac_try="$ac_compile"
13005 case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010 $as_echo "$ac_try_echo") >&5
13011   (eval "$ac_compile") 2>conftest.er1
13012   ac_status=$?
13013   grep -v '^ *+' conftest.er1 >conftest.err
13014   rm -f conftest.er1
13015   cat conftest.err >&5
13016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); } && {
13018          test -z "$ac_c_werror_flag" ||
13019          test ! -s conftest.err
13020        } && test -s conftest.$ac_objext; then
13021   ac_header_compiler=yes
13022 else
13023   $as_echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026         ac_header_compiler=no
13027 fi
13028
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13031 $as_echo "$ac_header_compiler" >&6; }
13032
13033 # Is the header present?
13034 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13035 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13036 cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042 #include <libxml/parser.h>
13043 _ACEOF
13044 if { (ac_try="$ac_cpp conftest.$ac_ext"
13045 case "(($ac_try" in
13046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047   *) ac_try_echo=$ac_try;;
13048 esac
13049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13050 $as_echo "$ac_try_echo") >&5
13051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } >/dev/null && {
13058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13059          test ! -s conftest.err
13060        }; then
13061   ac_header_preproc=yes
13062 else
13063   $as_echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13065
13066   ac_header_preproc=no
13067 fi
13068
13069 rm -f conftest.err conftest.$ac_ext
13070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13071 $as_echo "$ac_header_preproc" >&6; }
13072
13073 # So?  What about this header?
13074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13075   yes:no: )
13076     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13077 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13078     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13079 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13080     ac_header_preproc=yes
13081     ;;
13082   no:yes:* )
13083     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13084 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13085     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13086 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13087     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13088 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13089     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13090 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13091     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13092 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13093     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13094 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13095     ( cat <<\_ASBOX
13096 ## ---------------------------------------- ##
13097 ## Report this to pgsql-bugs@postgresql.org ##
13098 ## ---------------------------------------- ##
13099 _ASBOX
13100      ) | sed "s/^/$as_me: WARNING:     /" >&2
13101     ;;
13102 esac
13103 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13104 $as_echo_n "checking for libxml/parser.h... " >&6; }
13105 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13106   $as_echo_n "(cached) " >&6
13107 else
13108   ac_cv_header_libxml_parser_h=$ac_header_preproc
13109 fi
13110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13111 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13112
13113 fi
13114 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13115   :
13116 else
13117   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13118 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13119    { (exit 1); exit 1; }; }
13120 fi
13121
13122
13123 fi
13124
13125 if test "$with_libxslt" = yes ; then
13126   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13127   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13128 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13129 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13130   $as_echo_n "(cached) " >&6
13131 fi
13132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13133 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13134 else
13135   # Is the header compilable?
13136 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13137 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h.  */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h.  */
13144 $ac_includes_default
13145 #include <libxslt/xslt.h>
13146 _ACEOF
13147 rm -f conftest.$ac_objext
13148 if { (ac_try="$ac_compile"
13149 case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13154 $as_echo "$ac_try_echo") >&5
13155   (eval "$ac_compile") 2>conftest.er1
13156   ac_status=$?
13157   grep -v '^ *+' conftest.er1 >conftest.err
13158   rm -f conftest.er1
13159   cat conftest.err >&5
13160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); } && {
13162          test -z "$ac_c_werror_flag" ||
13163          test ! -s conftest.err
13164        } && test -s conftest.$ac_objext; then
13165   ac_header_compiler=yes
13166 else
13167   $as_echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170         ac_header_compiler=no
13171 fi
13172
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13175 $as_echo "$ac_header_compiler" >&6; }
13176
13177 # Is the header present?
13178 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13179 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13180 cat >conftest.$ac_ext <<_ACEOF
13181 /* confdefs.h.  */
13182 _ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h.  */
13186 #include <libxslt/xslt.h>
13187 _ACEOF
13188 if { (ac_try="$ac_cpp conftest.$ac_ext"
13189 case "(($ac_try" in
13190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191   *) ac_try_echo=$ac_try;;
13192 esac
13193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13194 $as_echo "$ac_try_echo") >&5
13195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13196   ac_status=$?
13197   grep -v '^ *+' conftest.er1 >conftest.err
13198   rm -f conftest.er1
13199   cat conftest.err >&5
13200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } >/dev/null && {
13202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13203          test ! -s conftest.err
13204        }; then
13205   ac_header_preproc=yes
13206 else
13207   $as_echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13209
13210   ac_header_preproc=no
13211 fi
13212
13213 rm -f conftest.err conftest.$ac_ext
13214 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13215 $as_echo "$ac_header_preproc" >&6; }
13216
13217 # So?  What about this header?
13218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13219   yes:no: )
13220     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13221 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13222     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13223 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13224     ac_header_preproc=yes
13225     ;;
13226   no:yes:* )
13227     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13228 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13229     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13230 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13231     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13232 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13233     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13234 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13235     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13236 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13237     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13238 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13239     ( cat <<\_ASBOX
13240 ## ---------------------------------------- ##
13241 ## Report this to pgsql-bugs@postgresql.org ##
13242 ## ---------------------------------------- ##
13243 _ASBOX
13244      ) | sed "s/^/$as_me: WARNING:     /" >&2
13245     ;;
13246 esac
13247 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13248 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13249 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13250   $as_echo_n "(cached) " >&6
13251 else
13252   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13253 fi
13254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13255 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13256
13257 fi
13258 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13259   :
13260 else
13261   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13262 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13263    { (exit 1); exit 1; }; }
13264 fi
13265
13266
13267 fi
13268
13269 if test "$with_ldap" = yes ; then
13270   if test "$PORTNAME" != "win32"; then
13271
13272 for ac_header in ldap.h
13273 do
13274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13276   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13277 $as_echo_n "checking for $ac_header... " >&6; }
13278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13279   $as_echo_n "(cached) " >&6
13280 fi
13281 ac_res=`eval 'as_val=${'$as_ac_Header'}
13282                  $as_echo "$as_val"'`
13283                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13284 $as_echo "$ac_res" >&6; }
13285 else
13286   # Is the header compilable?
13287 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13288 $as_echo_n "checking $ac_header usability... " >&6; }
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h.  */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h.  */
13295 $ac_includes_default
13296 #include <$ac_header>
13297 _ACEOF
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302   *) ac_try_echo=$ac_try;;
13303 esac
13304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306   (eval "$ac_compile") 2>conftest.er1
13307   ac_status=$?
13308   grep -v '^ *+' conftest.er1 >conftest.err
13309   rm -f conftest.er1
13310   cat conftest.err >&5
13311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } && {
13313          test -z "$ac_c_werror_flag" ||
13314          test ! -s conftest.err
13315        } && test -s conftest.$ac_objext; then
13316   ac_header_compiler=yes
13317 else
13318   $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13320
13321         ac_header_compiler=no
13322 fi
13323
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13326 $as_echo "$ac_header_compiler" >&6; }
13327
13328 # Is the header present?
13329 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13330 $as_echo_n "checking $ac_header presence... " >&6; }
13331 cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337 #include <$ac_header>
13338 _ACEOF
13339 if { (ac_try="$ac_cpp conftest.$ac_ext"
13340 case "(($ac_try" in
13341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342   *) ac_try_echo=$ac_try;;
13343 esac
13344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13345 $as_echo "$ac_try_echo") >&5
13346   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13347   ac_status=$?
13348   grep -v '^ *+' conftest.er1 >conftest.err
13349   rm -f conftest.er1
13350   cat conftest.err >&5
13351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); } >/dev/null && {
13353          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13354          test ! -s conftest.err
13355        }; then
13356   ac_header_preproc=yes
13357 else
13358   $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.$ac_ext >&5
13360
13361   ac_header_preproc=no
13362 fi
13363
13364 rm -f conftest.err conftest.$ac_ext
13365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13366 $as_echo "$ac_header_preproc" >&6; }
13367
13368 # So?  What about this header?
13369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13370   yes:no: )
13371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13372 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13375     ac_header_preproc=yes
13376     ;;
13377   no:yes:* )
13378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13379 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13380     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13381 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13382     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13383 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13385 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13389 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13390     ( cat <<\_ASBOX
13391 ## ---------------------------------------- ##
13392 ## Report this to pgsql-bugs@postgresql.org ##
13393 ## ---------------------------------------- ##
13394 _ASBOX
13395      ) | sed "s/^/$as_me: WARNING:     /" >&2
13396     ;;
13397 esac
13398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13399 $as_echo_n "checking for $ac_header... " >&6; }
13400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13401   $as_echo_n "(cached) " >&6
13402 else
13403   eval "$as_ac_Header=\$ac_header_preproc"
13404 fi
13405 ac_res=`eval 'as_val=${'$as_ac_Header'}
13406                  $as_echo "$as_val"'`
13407                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13408 $as_echo "$ac_res" >&6; }
13409
13410 fi
13411 as_val=`eval 'as_val=${'$as_ac_Header'}
13412                  $as_echo "$as_val"'`
13413    if test "x$as_val" = x""yes; then
13414   cat >>confdefs.h <<_ACEOF
13415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13416 _ACEOF
13417
13418 else
13419   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13420 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13421    { (exit 1); exit 1; }; }
13422 fi
13423
13424 done
13425
13426   else
13427
13428 for ac_header in winldap.h
13429 do
13430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13432 $as_echo_n "checking for $ac_header... " >&6; }
13433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13434   $as_echo_n "(cached) " >&6
13435 else
13436   cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442 $ac_includes_default
13443 #include <windows.h>
13444
13445
13446 #include <$ac_header>
13447 _ACEOF
13448 rm -f conftest.$ac_objext
13449 if { (ac_try="$ac_compile"
13450 case "(($ac_try" in
13451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13452   *) ac_try_echo=$ac_try;;
13453 esac
13454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13455 $as_echo "$ac_try_echo") >&5
13456   (eval "$ac_compile") 2>conftest.er1
13457   ac_status=$?
13458   grep -v '^ *+' conftest.er1 >conftest.err
13459   rm -f conftest.er1
13460   cat conftest.err >&5
13461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); } && {
13463          test -z "$ac_c_werror_flag" ||
13464          test ! -s conftest.err
13465        } && test -s conftest.$ac_objext; then
13466   eval "$as_ac_Header=yes"
13467 else
13468   $as_echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471         eval "$as_ac_Header=no"
13472 fi
13473
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 fi
13476 ac_res=`eval 'as_val=${'$as_ac_Header'}
13477                  $as_echo "$as_val"'`
13478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13479 $as_echo "$ac_res" >&6; }
13480 as_val=`eval 'as_val=${'$as_ac_Header'}
13481                  $as_echo "$as_val"'`
13482    if test "x$as_val" = x""yes; then
13483   cat >>confdefs.h <<_ACEOF
13484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13485 _ACEOF
13486
13487 else
13488   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13489 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13490    { (exit 1); exit 1; }; }
13491 fi
13492
13493 done
13494
13495   fi
13496 fi
13497
13498 if test "$with_bonjour" = yes ; then
13499   if test "${ac_cv_header_dns_sd_h+set}" = set; then
13500   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13501 $as_echo_n "checking for dns_sd.h... " >&6; }
13502 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13503   $as_echo_n "(cached) " >&6
13504 fi
13505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13506 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13507 else
13508   # Is the header compilable?
13509 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13510 $as_echo_n "checking dns_sd.h usability... " >&6; }
13511 cat >conftest.$ac_ext <<_ACEOF
13512 /* confdefs.h.  */
13513 _ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h.  */
13517 $ac_includes_default
13518 #include <dns_sd.h>
13519 _ACEOF
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524   *) ac_try_echo=$ac_try;;
13525 esac
13526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13527 $as_echo "$ac_try_echo") >&5
13528   (eval "$ac_compile") 2>conftest.er1
13529   ac_status=$?
13530   grep -v '^ *+' conftest.er1 >conftest.err
13531   rm -f conftest.er1
13532   cat conftest.err >&5
13533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); } && {
13535          test -z "$ac_c_werror_flag" ||
13536          test ! -s conftest.err
13537        } && test -s conftest.$ac_objext; then
13538   ac_header_compiler=yes
13539 else
13540   $as_echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543         ac_header_compiler=no
13544 fi
13545
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13548 $as_echo "$ac_header_compiler" >&6; }
13549
13550 # Is the header present?
13551 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13552 $as_echo_n "checking dns_sd.h presence... " >&6; }
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h.  */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h.  */
13559 #include <dns_sd.h>
13560 _ACEOF
13561 if { (ac_try="$ac_cpp conftest.$ac_ext"
13562 case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13567 $as_echo "$ac_try_echo") >&5
13568   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } >/dev/null && {
13575          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13576          test ! -s conftest.err
13577        }; then
13578   ac_header_preproc=yes
13579 else
13580   $as_echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13582
13583   ac_header_preproc=no
13584 fi
13585
13586 rm -f conftest.err conftest.$ac_ext
13587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13588 $as_echo "$ac_header_preproc" >&6; }
13589
13590 # So?  What about this header?
13591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13592   yes:no: )
13593     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13594 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13595     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13596 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13597     ac_header_preproc=yes
13598     ;;
13599   no:yes:* )
13600     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13601 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13602     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
13603 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
13604     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13605 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13606     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
13607 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13608     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13609 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13610     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13611 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13612     ( cat <<\_ASBOX
13613 ## ---------------------------------------- ##
13614 ## Report this to pgsql-bugs@postgresql.org ##
13615 ## ---------------------------------------- ##
13616 _ASBOX
13617      ) | sed "s/^/$as_me: WARNING:     /" >&2
13618     ;;
13619 esac
13620 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13621 $as_echo_n "checking for dns_sd.h... " >&6; }
13622 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13623   $as_echo_n "(cached) " >&6
13624 else
13625   ac_cv_header_dns_sd_h=$ac_header_preproc
13626 fi
13627 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13628 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13629
13630 fi
13631 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13632   :
13633 else
13634   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13635 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13636    { (exit 1); exit 1; }; }
13637 fi
13638
13639
13640 fi
13641
13642 # for contrib/uuid-ossp
13643 if test "$with_ossp_uuid" = yes ; then
13644
13645 for ac_header in ossp/uuid.h
13646 do
13647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13649   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13650 $as_echo_n "checking for $ac_header... " >&6; }
13651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13652   $as_echo_n "(cached) " >&6
13653 fi
13654 ac_res=`eval 'as_val=${'$as_ac_Header'}
13655                  $as_echo "$as_val"'`
13656                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13657 $as_echo "$ac_res" >&6; }
13658 else
13659   # Is the header compilable?
13660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13661 $as_echo_n "checking $ac_header usability... " >&6; }
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h.  */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h.  */
13668 $ac_includes_default
13669 #include <$ac_header>
13670 _ACEOF
13671 rm -f conftest.$ac_objext
13672 if { (ac_try="$ac_compile"
13673 case "(($ac_try" in
13674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675   *) ac_try_echo=$ac_try;;
13676 esac
13677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13678 $as_echo "$ac_try_echo") >&5
13679   (eval "$ac_compile") 2>conftest.er1
13680   ac_status=$?
13681   grep -v '^ *+' conftest.er1 >conftest.err
13682   rm -f conftest.er1
13683   cat conftest.err >&5
13684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); } && {
13686          test -z "$ac_c_werror_flag" ||
13687          test ! -s conftest.err
13688        } && test -s conftest.$ac_objext; then
13689   ac_header_compiler=yes
13690 else
13691   $as_echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694         ac_header_compiler=no
13695 fi
13696
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13699 $as_echo "$ac_header_compiler" >&6; }
13700
13701 # Is the header present?
13702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13703 $as_echo_n "checking $ac_header presence... " >&6; }
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h.  */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h.  */
13710 #include <$ac_header>
13711 _ACEOF
13712 if { (ac_try="$ac_cpp conftest.$ac_ext"
13713 case "(($ac_try" in
13714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715   *) ac_try_echo=$ac_try;;
13716 esac
13717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13718 $as_echo "$ac_try_echo") >&5
13719   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13720   ac_status=$?
13721   grep -v '^ *+' conftest.er1 >conftest.err
13722   rm -f conftest.er1
13723   cat conftest.err >&5
13724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); } >/dev/null && {
13726          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13727          test ! -s conftest.err
13728        }; then
13729   ac_header_preproc=yes
13730 else
13731   $as_echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13733
13734   ac_header_preproc=no
13735 fi
13736
13737 rm -f conftest.err conftest.$ac_ext
13738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739 $as_echo "$ac_header_preproc" >&6; }
13740
13741 # So?  What about this header?
13742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13743   yes:no: )
13744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13748     ac_header_preproc=yes
13749     ;;
13750   no:yes:* )
13751     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13753     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13754 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13755     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13757     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13758 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13759     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13761     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13763     ( cat <<\_ASBOX
13764 ## ---------------------------------------- ##
13765 ## Report this to pgsql-bugs@postgresql.org ##
13766 ## ---------------------------------------- ##
13767 _ASBOX
13768      ) | sed "s/^/$as_me: WARNING:     /" >&2
13769     ;;
13770 esac
13771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13772 $as_echo_n "checking for $ac_header... " >&6; }
13773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13774   $as_echo_n "(cached) " >&6
13775 else
13776   eval "$as_ac_Header=\$ac_header_preproc"
13777 fi
13778 ac_res=`eval 'as_val=${'$as_ac_Header'}
13779                  $as_echo "$as_val"'`
13780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13781 $as_echo "$ac_res" >&6; }
13782
13783 fi
13784 as_val=`eval 'as_val=${'$as_ac_Header'}
13785                  $as_echo "$as_val"'`
13786    if test "x$as_val" = x""yes; then
13787   cat >>confdefs.h <<_ACEOF
13788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13789 _ACEOF
13790
13791 else
13792
13793
13794 for ac_header in uuid.h
13795 do
13796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13798   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 $as_echo_n "checking for $ac_header... " >&6; }
13800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801   $as_echo_n "(cached) " >&6
13802 fi
13803 ac_res=`eval 'as_val=${'$as_ac_Header'}
13804                  $as_echo "$as_val"'`
13805                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13806 $as_echo "$ac_res" >&6; }
13807 else
13808   # Is the header compilable?
13809 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13810 $as_echo_n "checking $ac_header usability... " >&6; }
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h.  */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h.  */
13817 $ac_includes_default
13818 #include <$ac_header>
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (ac_try="$ac_compile"
13822 case "(($ac_try" in
13823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824   *) ac_try_echo=$ac_try;;
13825 esac
13826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13827 $as_echo "$ac_try_echo") >&5
13828   (eval "$ac_compile") 2>conftest.er1
13829   ac_status=$?
13830   grep -v '^ *+' conftest.er1 >conftest.err
13831   rm -f conftest.er1
13832   cat conftest.err >&5
13833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); } && {
13835          test -z "$ac_c_werror_flag" ||
13836          test ! -s conftest.err
13837        } && test -s conftest.$ac_objext; then
13838   ac_header_compiler=yes
13839 else
13840   $as_echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843         ac_header_compiler=no
13844 fi
13845
13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13848 $as_echo "$ac_header_compiler" >&6; }
13849
13850 # Is the header present?
13851 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13852 $as_echo_n "checking $ac_header presence... " >&6; }
13853 cat >conftest.$ac_ext <<_ACEOF
13854 /* confdefs.h.  */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h.  */
13859 #include <$ac_header>
13860 _ACEOF
13861 if { (ac_try="$ac_cpp conftest.$ac_ext"
13862 case "(($ac_try" in
13863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864   *) ac_try_echo=$ac_try;;
13865 esac
13866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867 $as_echo "$ac_try_echo") >&5
13868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13869   ac_status=$?
13870   grep -v '^ *+' conftest.er1 >conftest.err
13871   rm -f conftest.er1
13872   cat conftest.err >&5
13873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } >/dev/null && {
13875          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13876          test ! -s conftest.err
13877        }; then
13878   ac_header_preproc=yes
13879 else
13880   $as_echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13882
13883   ac_header_preproc=no
13884 fi
13885
13886 rm -f conftest.err conftest.$ac_ext
13887 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13888 $as_echo "$ac_header_preproc" >&6; }
13889
13890 # So?  What about this header?
13891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13892   yes:no: )
13893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13894 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13897     ac_header_preproc=yes
13898     ;;
13899   no:yes:* )
13900     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13901 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13903 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13904     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13905 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13906     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13907 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13908     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13909 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13910     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13911 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13912     ( cat <<\_ASBOX
13913 ## ---------------------------------------- ##
13914 ## Report this to pgsql-bugs@postgresql.org ##
13915 ## ---------------------------------------- ##
13916 _ASBOX
13917      ) | sed "s/^/$as_me: WARNING:     /" >&2
13918     ;;
13919 esac
13920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13921 $as_echo_n "checking for $ac_header... " >&6; }
13922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13923   $as_echo_n "(cached) " >&6
13924 else
13925   eval "$as_ac_Header=\$ac_header_preproc"
13926 fi
13927 ac_res=`eval 'as_val=${'$as_ac_Header'}
13928                  $as_echo "$as_val"'`
13929                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13930 $as_echo "$ac_res" >&6; }
13931
13932 fi
13933 as_val=`eval 'as_val=${'$as_ac_Header'}
13934                  $as_echo "$as_val"'`
13935    if test "x$as_val" = x""yes; then
13936   cat >>confdefs.h <<_ACEOF
13937 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13938 _ACEOF
13939
13940 else
13941   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13942 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13943    { (exit 1); exit 1; }; }
13944 fi
13945
13946 done
13947
13948 fi
13949
13950 done
13951
13952 fi
13953
13954
13955 ##
13956 ## Types, structures, compiler characteristics
13957 ##
13958
13959
13960  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13961 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13962 if test "${ac_cv_c_bigendian+set}" = set; then
13963   $as_echo_n "(cached) " >&6
13964 else
13965   ac_cv_c_bigendian=unknown
13966     # See if we're dealing with a universal compiler.
13967     cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973 #ifndef __APPLE_CC__
13974                not a universal capable compiler
13975              #endif
13976              typedef int dummy;
13977
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983   *) ac_try_echo=$ac_try;;
13984 esac
13985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13986 $as_echo "$ac_try_echo") >&5
13987   (eval "$ac_compile") 2>conftest.er1
13988   ac_status=$?
13989   grep -v '^ *+' conftest.er1 >conftest.err
13990   rm -f conftest.er1
13991   cat conftest.err >&5
13992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); } && {
13994          test -z "$ac_c_werror_flag" ||
13995          test ! -s conftest.err
13996        } && test -s conftest.$ac_objext; then
13997
13998         # Check for potential -arch flags.  It is not universal unless
13999         # there are some -arch flags.  Note that *ppc* also matches
14000         # ppc64.  This check is also rather less than ideal.
14001         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14002           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14003         esac
14004 else
14005   $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008
14009 fi
14010
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012     if test $ac_cv_c_bigendian = unknown; then
14013       # See if sys/param.h defines the BYTE_ORDER macro.
14014       cat >conftest.$ac_ext <<_ACEOF
14015 /* confdefs.h.  */
14016 _ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h.  */
14020 #include <sys/types.h>
14021              #include <sys/param.h>
14022
14023 int
14024 main ()
14025 {
14026 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14027                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14028                      && LITTLE_ENDIAN)
14029               bogus endian macros
14030              #endif
14031
14032   ;
14033   return 0;
14034 }
14035 _ACEOF
14036 rm -f conftest.$ac_objext
14037 if { (ac_try="$ac_compile"
14038 case "(($ac_try" in
14039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040   *) ac_try_echo=$ac_try;;
14041 esac
14042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14043 $as_echo "$ac_try_echo") >&5
14044   (eval "$ac_compile") 2>conftest.er1
14045   ac_status=$?
14046   grep -v '^ *+' conftest.er1 >conftest.err
14047   rm -f conftest.er1
14048   cat conftest.err >&5
14049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } && {
14051          test -z "$ac_c_werror_flag" ||
14052          test ! -s conftest.err
14053        } && test -s conftest.$ac_objext; then
14054   # It does; now see whether it defined to BIG_ENDIAN or not.
14055          cat >conftest.$ac_ext <<_ACEOF
14056 /* confdefs.h.  */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h.  */
14061 #include <sys/types.h>
14062                 #include <sys/param.h>
14063
14064 int
14065 main ()
14066 {
14067 #if BYTE_ORDER != BIG_ENDIAN
14068                  not big endian
14069                 #endif
14070
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (ac_try="$ac_compile"
14077 case "(($ac_try" in
14078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079   *) ac_try_echo=$ac_try;;
14080 esac
14081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14082 $as_echo "$ac_try_echo") >&5
14083   (eval "$ac_compile") 2>conftest.er1
14084   ac_status=$?
14085   grep -v '^ *+' conftest.er1 >conftest.err
14086   rm -f conftest.er1
14087   cat conftest.err >&5
14088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); } && {
14090          test -z "$ac_c_werror_flag" ||
14091          test ! -s conftest.err
14092        } && test -s conftest.$ac_objext; then
14093   ac_cv_c_bigendian=yes
14094 else
14095   $as_echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.$ac_ext >&5
14097
14098         ac_cv_c_bigendian=no
14099 fi
14100
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102 else
14103   $as_echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14105
14106
14107 fi
14108
14109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14110     fi
14111     if test $ac_cv_c_bigendian = unknown; then
14112       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14113       cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h.  */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h.  */
14119 #include <limits.h>
14120
14121 int
14122 main ()
14123 {
14124 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14125               bogus endian macros
14126              #endif
14127
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136   *) ac_try_echo=$ac_try;;
14137 esac
14138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14139 $as_echo "$ac_try_echo") >&5
14140   (eval "$ac_compile") 2>conftest.er1
14141   ac_status=$?
14142   grep -v '^ *+' conftest.er1 >conftest.err
14143   rm -f conftest.er1
14144   cat conftest.err >&5
14145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); } && {
14147          test -z "$ac_c_werror_flag" ||
14148          test ! -s conftest.err
14149        } && test -s conftest.$ac_objext; then
14150   # It does; now see whether it defined to _BIG_ENDIAN or not.
14151          cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h.  */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h.  */
14157 #include <limits.h>
14158
14159 int
14160 main ()
14161 {
14162 #ifndef _BIG_ENDIAN
14163                  not big endian
14164                 #endif
14165
14166   ;
14167   return 0;
14168 }
14169 _ACEOF
14170 rm -f conftest.$ac_objext
14171 if { (ac_try="$ac_compile"
14172 case "(($ac_try" in
14173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174   *) ac_try_echo=$ac_try;;
14175 esac
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178   (eval "$ac_compile") 2>conftest.er1
14179   ac_status=$?
14180   grep -v '^ *+' conftest.er1 >conftest.err
14181   rm -f conftest.er1
14182   cat conftest.err >&5
14183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); } && {
14185          test -z "$ac_c_werror_flag" ||
14186          test ! -s conftest.err
14187        } && test -s conftest.$ac_objext; then
14188   ac_cv_c_bigendian=yes
14189 else
14190   $as_echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193         ac_cv_c_bigendian=no
14194 fi
14195
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197 else
14198   $as_echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201
14202 fi
14203
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205     fi
14206     if test $ac_cv_c_bigendian = unknown; then
14207       # Compile a test program.
14208       if test "$cross_compiling" = yes; then
14209   # Try to guess by grepping values from an object file.
14210          cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h.  */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h.  */
14216 short int ascii_mm[] =
14217                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14218                 short int ascii_ii[] =
14219                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14220                 int use_ascii (int i) {
14221                   return ascii_mm[i] + ascii_ii[i];
14222                 }
14223                 short int ebcdic_ii[] =
14224                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14225                 short int ebcdic_mm[] =
14226                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14227                 int use_ebcdic (int i) {
14228                   return ebcdic_mm[i] + ebcdic_ii[i];
14229                 }
14230                 extern int foo;
14231
14232 int
14233 main ()
14234 {
14235 return use_ascii (foo) == use_ebcdic (foo);
14236   ;
14237   return 0;
14238 }
14239 _ACEOF
14240 rm -f conftest.$ac_objext
14241 if { (ac_try="$ac_compile"
14242 case "(($ac_try" in
14243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244   *) ac_try_echo=$ac_try;;
14245 esac
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248   (eval "$ac_compile") 2>conftest.er1
14249   ac_status=$?
14250   grep -v '^ *+' conftest.er1 >conftest.err
14251   rm -f conftest.er1
14252   cat conftest.err >&5
14253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } && {
14255          test -z "$ac_c_werror_flag" ||
14256          test ! -s conftest.err
14257        } && test -s conftest.$ac_objext; then
14258   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14259               ac_cv_c_bigendian=yes
14260             fi
14261             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14262               if test "$ac_cv_c_bigendian" = unknown; then
14263                 ac_cv_c_bigendian=no
14264               else
14265                 # finding both strings is unlikely to happen, but who knows?
14266                 ac_cv_c_bigendian=unknown
14267               fi
14268             fi
14269 else
14270   $as_echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273
14274 fi
14275
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 else
14278   cat >conftest.$ac_ext <<_ACEOF
14279 /* confdefs.h.  */
14280 _ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h.  */
14284 $ac_includes_default
14285 int
14286 main ()
14287 {
14288
14289              /* Are we little or big endian?  From Harbison&Steele.  */
14290              union
14291              {
14292                long int l;
14293                char c[sizeof (long int)];
14294              } u;
14295              u.l = 1;
14296              return u.c[sizeof (long int) - 1] == 1;
14297
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest$ac_exeext
14303 if { (ac_try="$ac_link"
14304 case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14309 $as_echo "$ac_try_echo") >&5
14310   (eval "$ac_link") 2>&5
14311   ac_status=$?
14312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14314   { (case "(($ac_try" in
14315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316   *) ac_try_echo=$ac_try;;
14317 esac
14318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14319 $as_echo "$ac_try_echo") >&5
14320   (eval "$ac_try") 2>&5
14321   ac_status=$?
14322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   ac_cv_c_bigendian=no
14325 else
14326   $as_echo "$as_me: program exited with status $ac_status" >&5
14327 $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 ( exit $ac_status )
14331 ac_cv_c_bigendian=yes
14332 fi
14333 rm -rf conftest.dSYM
14334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14335 fi
14336
14337
14338     fi
14339 fi
14340 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14341 $as_echo "$ac_cv_c_bigendian" >&6; }
14342  case $ac_cv_c_bigendian in #(
14343    yes)
14344      cat >>confdefs.h <<\_ACEOF
14345 #define WORDS_BIGENDIAN 1
14346 _ACEOF
14347 ;; #(
14348    no)
14349       ;; #(
14350    universal)
14351
14352 cat >>confdefs.h <<\_ACEOF
14353 #define AC_APPLE_UNIVERSAL_BUILD 1
14354 _ACEOF
14355
14356      ;; #(
14357    *)
14358      { { $as_echo "$as_me:$LINENO: error: unknown endianness
14359  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14360 $as_echo "$as_me: error: unknown endianness
14361  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14362    { (exit 1); exit 1; }; } ;;
14363  esac
14364
14365 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14366 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14367 if test "${ac_cv_c_const+set}" = set; then
14368   $as_echo_n "(cached) " >&6
14369 else
14370   cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376
14377 int
14378 main ()
14379 {
14380 /* FIXME: Include the comments suggested by Paul. */
14381 #ifndef __cplusplus
14382   /* Ultrix mips cc rejects this.  */
14383   typedef int charset[2];
14384   const charset cs;
14385   /* SunOS 4.1.1 cc rejects this.  */
14386   char const *const *pcpcc;
14387   char **ppc;
14388   /* NEC SVR4.0.2 mips cc rejects this.  */
14389   struct point {int x, y;};
14390   static struct point const zero = {0,0};
14391   /* AIX XL C 1.02.0.0 rejects this.
14392      It does not let you subtract one const X* pointer from another in
14393      an arm of an if-expression whose if-part is not a constant
14394      expression */
14395   const char *g = "string";
14396   pcpcc = &g + (g ? g-g : 0);
14397   /* HPUX 7.0 cc rejects these. */
14398   ++pcpcc;
14399   ppc = (char**) pcpcc;
14400   pcpcc = (char const *const *) ppc;
14401   { /* SCO 3.2v4 cc rejects this.  */
14402     char *t;
14403     char const *s = 0 ? (char *) 0 : (char const *) 0;
14404
14405     *t++ = 0;
14406     if (s) return 0;
14407   }
14408   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14409     int x[] = {25, 17};
14410     const int *foo = &x[0];
14411     ++foo;
14412   }
14413   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14414     typedef const int *iptr;
14415     iptr p = 0;
14416     ++p;
14417   }
14418   { /* AIX XL C 1.02.0.0 rejects this saying
14419        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14420     struct s { int j; const int *ap[3]; };
14421     struct s *b; b->j = 5;
14422   }
14423   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14424     const int foo = 10;
14425     if (!foo) return 0;
14426   }
14427   return !cs[0] && !zero.x;
14428 #endif
14429
14430   ;
14431   return 0;
14432 }
14433 _ACEOF
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438   *) ac_try_echo=$ac_try;;
14439 esac
14440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14441 $as_echo "$ac_try_echo") >&5
14442   (eval "$ac_compile") 2>conftest.er1
14443   ac_status=$?
14444   grep -v '^ *+' conftest.er1 >conftest.err
14445   rm -f conftest.er1
14446   cat conftest.err >&5
14447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } && {
14449          test -z "$ac_c_werror_flag" ||
14450          test ! -s conftest.err
14451        } && test -s conftest.$ac_objext; then
14452   ac_cv_c_const=yes
14453 else
14454   $as_echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457         ac_cv_c_const=no
14458 fi
14459
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461 fi
14462 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14463 $as_echo "$ac_cv_c_const" >&6; }
14464 if test $ac_cv_c_const = no; then
14465
14466 cat >>confdefs.h <<\_ACEOF
14467 #define const /**/
14468 _ACEOF
14469
14470 fi
14471
14472 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14473 $as_echo_n "checking for inline... " >&6; }
14474 if test "${ac_cv_c_inline+set}" = set; then
14475   $as_echo_n "(cached) " >&6
14476 else
14477   ac_cv_c_inline=no
14478 for ac_kw in inline __inline__ __inline; do
14479   cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485 #ifndef __cplusplus
14486 typedef int foo_t;
14487 static $ac_kw foo_t static_foo () {return 0; }
14488 $ac_kw foo_t foo () {return 0; }
14489 #endif
14490
14491 _ACEOF
14492 rm -f conftest.$ac_objext
14493 if { (ac_try="$ac_compile"
14494 case "(($ac_try" in
14495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496   *) ac_try_echo=$ac_try;;
14497 esac
14498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14499 $as_echo "$ac_try_echo") >&5
14500   (eval "$ac_compile") 2>conftest.er1
14501   ac_status=$?
14502   grep -v '^ *+' conftest.er1 >conftest.err
14503   rm -f conftest.er1
14504   cat conftest.err >&5
14505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); } && {
14507          test -z "$ac_c_werror_flag" ||
14508          test ! -s conftest.err
14509        } && test -s conftest.$ac_objext; then
14510   ac_cv_c_inline=$ac_kw
14511 else
14512   $as_echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14514
14515
14516 fi
14517
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519   test "$ac_cv_c_inline" != no && break
14520 done
14521
14522 fi
14523 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14524 $as_echo "$ac_cv_c_inline" >&6; }
14525
14526
14527 case $ac_cv_c_inline in
14528   inline | yes) ;;
14529   *)
14530     case $ac_cv_c_inline in
14531       no) ac_val=;;
14532       *) ac_val=$ac_cv_c_inline;;
14533     esac
14534     cat >>confdefs.h <<_ACEOF
14535 #ifndef __cplusplus
14536 #define inline $ac_val
14537 #endif
14538 _ACEOF
14539     ;;
14540 esac
14541
14542 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14543 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14544 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14545   $as_echo_n "(cached) " >&6
14546 else
14547   pgac_cv_c_inline_quietly=no
14548   if test "$ac_cv_c_inline" != no; then
14549     pgac_c_inline_save_werror=$ac_c_werror_flag
14550     ac_c_werror_flag=yes
14551     cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h.  */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h.  */
14557 static inline int fun () {return 0;}
14558 int
14559 main ()
14560 {
14561
14562   ;
14563   return 0;
14564 }
14565 _ACEOF
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (ac_try="$ac_link"
14568 case "(($ac_try" in
14569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570   *) ac_try_echo=$ac_try;;
14571 esac
14572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14573 $as_echo "$ac_try_echo") >&5
14574   (eval "$ac_link") 2>conftest.er1
14575   ac_status=$?
14576   grep -v '^ *+' conftest.er1 >conftest.err
14577   rm -f conftest.er1
14578   cat conftest.err >&5
14579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } && {
14581          test -z "$ac_c_werror_flag" ||
14582          test ! -s conftest.err
14583        } && test -s conftest$ac_exeext && {
14584          test "$cross_compiling" = yes ||
14585          $as_test_x conftest$ac_exeext
14586        }; then
14587   pgac_cv_c_inline_quietly=yes
14588 else
14589   $as_echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14591
14592
14593 fi
14594
14595 rm -rf conftest.dSYM
14596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14597       conftest$ac_exeext conftest.$ac_ext
14598     ac_c_werror_flag=$pgac_c_inline_save_werror
14599   fi
14600 fi
14601 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14602 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14603 if test "$pgac_cv_c_inline_quietly" != no; then
14604
14605 cat >>confdefs.h <<_ACEOF
14606 #define USE_INLINE 1
14607 _ACEOF
14608
14609 fi
14610
14611 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14612 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14613 if test "${ac_cv_c_stringize+set}" = set; then
14614   $as_echo_n "(cached) " >&6
14615 else
14616   cat >conftest.$ac_ext <<_ACEOF
14617 /* confdefs.h.  */
14618 _ACEOF
14619 cat confdefs.h >>conftest.$ac_ext
14620 cat >>conftest.$ac_ext <<_ACEOF
14621 /* end confdefs.h.  */
14622 #define x(y) #y
14623
14624 char *s = x(teststring);
14625 _ACEOF
14626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14627   $EGREP "#teststring" >/dev/null 2>&1; then
14628   ac_cv_c_stringize=no
14629 else
14630   ac_cv_c_stringize=yes
14631 fi
14632 rm -f conftest*
14633
14634 fi
14635 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14636 $as_echo "$ac_cv_c_stringize" >&6; }
14637 if test $ac_cv_c_stringize = yes; then
14638
14639 cat >>confdefs.h <<\_ACEOF
14640 #define HAVE_STRINGIZE 1
14641 _ACEOF
14642
14643 fi
14644
14645 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14646 $as_echo_n "checking for signed types... " >&6; }
14647 if test "${pgac_cv_c_signed+set}" = set; then
14648   $as_echo_n "(cached) " >&6
14649 else
14650   cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h.  */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h.  */
14656
14657 int
14658 main ()
14659 {
14660 signed char c; signed short s; signed int i;
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673   (eval "$ac_compile") 2>conftest.er1
14674   ac_status=$?
14675   grep -v '^ *+' conftest.er1 >conftest.err
14676   rm -f conftest.er1
14677   cat conftest.err >&5
14678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); } && {
14680          test -z "$ac_c_werror_flag" ||
14681          test ! -s conftest.err
14682        } && test -s conftest.$ac_objext; then
14683   pgac_cv_c_signed=yes
14684 else
14685   $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688         pgac_cv_c_signed=no
14689 fi
14690
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 fi
14693 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14694 $as_echo "$pgac_cv_c_signed" >&6; }
14695 if test x"$pgac_cv_c_signed" = xno ; then
14696
14697 cat >>confdefs.h <<\_ACEOF
14698 #define signed /**/
14699 _ACEOF
14700
14701 fi
14702 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14703 $as_echo_n "checking for working volatile... " >&6; }
14704 if test "${ac_cv_c_volatile+set}" = set; then
14705   $as_echo_n "(cached) " >&6
14706 else
14707   cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713
14714 int
14715 main ()
14716 {
14717
14718 volatile int x;
14719 int * volatile y = (int *) 0;
14720 return !x && !y;
14721   ;
14722   return 0;
14723 }
14724 _ACEOF
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729   *) ac_try_echo=$ac_try;;
14730 esac
14731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14732 $as_echo "$ac_try_echo") >&5
14733   (eval "$ac_compile") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } && {
14740          test -z "$ac_c_werror_flag" ||
14741          test ! -s conftest.err
14742        } && test -s conftest.$ac_objext; then
14743   ac_cv_c_volatile=yes
14744 else
14745   $as_echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748         ac_cv_c_volatile=no
14749 fi
14750
14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 fi
14753 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14754 $as_echo "$ac_cv_c_volatile" >&6; }
14755 if test $ac_cv_c_volatile = no; then
14756
14757 cat >>confdefs.h <<\_ACEOF
14758 #define volatile /**/
14759 _ACEOF
14760
14761 fi
14762
14763 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14764 $as_echo_n "checking for __func__... " >&6; }
14765 if test "${pgac_cv_funcname_func_support+set}" = set; then
14766   $as_echo_n "(cached) " >&6
14767 else
14768   cat >conftest.$ac_ext <<_ACEOF
14769 /* confdefs.h.  */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h.  */
14774 #include <stdio.h>
14775 int
14776 main ()
14777 {
14778 printf("%s\n", __func__);
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (ac_try="$ac_compile"
14785 case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14790 $as_echo "$ac_try_echo") >&5
14791   (eval "$ac_compile") 2>conftest.er1
14792   ac_status=$?
14793   grep -v '^ *+' conftest.er1 >conftest.err
14794   rm -f conftest.er1
14795   cat conftest.err >&5
14796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } && {
14798          test -z "$ac_c_werror_flag" ||
14799          test ! -s conftest.err
14800        } && test -s conftest.$ac_objext; then
14801   pgac_cv_funcname_func_support=yes
14802 else
14803   $as_echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14805
14806         pgac_cv_funcname_func_support=no
14807 fi
14808
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810 fi
14811 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14812 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14813 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14814
14815 cat >>confdefs.h <<\_ACEOF
14816 #define HAVE_FUNCNAME__FUNC 1
14817 _ACEOF
14818
14819 else
14820 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14821 $as_echo_n "checking for __FUNCTION__... " >&6; }
14822 if test "${pgac_cv_funcname_function_support+set}" = set; then
14823   $as_echo_n "(cached) " >&6
14824 else
14825   cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h.  */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h.  */
14831 #include <stdio.h>
14832 int
14833 main ()
14834 {
14835 printf("%s\n", __FUNCTION__);
14836   ;
14837   return 0;
14838 }
14839 _ACEOF
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844   *) ac_try_echo=$ac_try;;
14845 esac
14846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14847 $as_echo "$ac_try_echo") >&5
14848   (eval "$ac_compile") 2>conftest.er1
14849   ac_status=$?
14850   grep -v '^ *+' conftest.er1 >conftest.err
14851   rm -f conftest.er1
14852   cat conftest.err >&5
14853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854   (exit $ac_status); } && {
14855          test -z "$ac_c_werror_flag" ||
14856          test ! -s conftest.err
14857        } && test -s conftest.$ac_objext; then
14858   pgac_cv_funcname_function_support=yes
14859 else
14860   $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14862
14863         pgac_cv_funcname_function_support=no
14864 fi
14865
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 fi
14868 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14869 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14870 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14871
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_FUNCNAME__FUNCTION 1
14874 _ACEOF
14875
14876 fi
14877 fi
14878 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14879 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14880 if test "${ac_cv_struct_tm+set}" = set; then
14881   $as_echo_n "(cached) " >&6
14882 else
14883   cat >conftest.$ac_ext <<_ACEOF
14884 /* confdefs.h.  */
14885 _ACEOF
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h.  */
14889 #include <sys/types.h>
14890 #include <time.h>
14891
14892 int
14893 main ()
14894 {
14895 struct tm tm;
14896                                      int *p = &tm.tm_sec;
14897                                      return !p;
14898   ;
14899   return 0;
14900 }
14901 _ACEOF
14902 rm -f conftest.$ac_objext
14903 if { (ac_try="$ac_compile"
14904 case "(($ac_try" in
14905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906   *) ac_try_echo=$ac_try;;
14907 esac
14908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14909 $as_echo "$ac_try_echo") >&5
14910   (eval "$ac_compile") 2>conftest.er1
14911   ac_status=$?
14912   grep -v '^ *+' conftest.er1 >conftest.err
14913   rm -f conftest.er1
14914   cat conftest.err >&5
14915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } && {
14917          test -z "$ac_c_werror_flag" ||
14918          test ! -s conftest.err
14919        } && test -s conftest.$ac_objext; then
14920   ac_cv_struct_tm=time.h
14921 else
14922   $as_echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925         ac_cv_struct_tm=sys/time.h
14926 fi
14927
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929 fi
14930 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14931 $as_echo "$ac_cv_struct_tm" >&6; }
14932 if test $ac_cv_struct_tm = sys/time.h; then
14933
14934 cat >>confdefs.h <<\_ACEOF
14935 #define TM_IN_SYS_TIME 1
14936 _ACEOF
14937
14938 fi
14939
14940 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14941 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14942 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14943   $as_echo_n "(cached) " >&6
14944 else
14945   cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h.  */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h.  */
14951 #include <sys/types.h>
14952 #include <$ac_cv_struct_tm>
14953
14954
14955 int
14956 main ()
14957 {
14958 static struct tm ac_aggr;
14959 if (ac_aggr.tm_zone)
14960 return 0;
14961   ;
14962   return 0;
14963 }
14964 _ACEOF
14965 rm -f conftest.$ac_objext
14966 if { (ac_try="$ac_compile"
14967 case "(($ac_try" in
14968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969   *) ac_try_echo=$ac_try;;
14970 esac
14971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14972 $as_echo "$ac_try_echo") >&5
14973   (eval "$ac_compile") 2>conftest.er1
14974   ac_status=$?
14975   grep -v '^ *+' conftest.er1 >conftest.err
14976   rm -f conftest.er1
14977   cat conftest.err >&5
14978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); } && {
14980          test -z "$ac_c_werror_flag" ||
14981          test ! -s conftest.err
14982        } && test -s conftest.$ac_objext; then
14983   ac_cv_member_struct_tm_tm_zone=yes
14984 else
14985   $as_echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14987
14988         cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h.  */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h.  */
14994 #include <sys/types.h>
14995 #include <$ac_cv_struct_tm>
14996
14997
14998 int
14999 main ()
15000 {
15001 static struct tm ac_aggr;
15002 if (sizeof ac_aggr.tm_zone)
15003 return 0;
15004   ;
15005   return 0;
15006 }
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15015 $as_echo "$ac_try_echo") >&5
15016   (eval "$ac_compile") 2>conftest.er1
15017   ac_status=$?
15018   grep -v '^ *+' conftest.er1 >conftest.err
15019   rm -f conftest.er1
15020   cat conftest.err >&5
15021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); } && {
15023          test -z "$ac_c_werror_flag" ||
15024          test ! -s conftest.err
15025        } && test -s conftest.$ac_objext; then
15026   ac_cv_member_struct_tm_tm_zone=yes
15027 else
15028   $as_echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15030
15031         ac_cv_member_struct_tm_tm_zone=no
15032 fi
15033
15034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 fi
15036
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 fi
15039 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15040 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15041 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15042
15043 cat >>confdefs.h <<_ACEOF
15044 #define HAVE_STRUCT_TM_TM_ZONE 1
15045 _ACEOF
15046
15047
15048 fi
15049
15050 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15051
15052 cat >>confdefs.h <<\_ACEOF
15053 #define HAVE_TM_ZONE 1
15054 _ACEOF
15055
15056 fi
15057 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15058 $as_echo_n "checking for tzname... " >&6; }
15059 if test "${ac_cv_var_tzname+set}" = set; then
15060   $as_echo_n "(cached) " >&6
15061 else
15062   cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068 #include <time.h>
15069 #ifndef tzname /* For SGI.  */
15070 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
15071 #endif
15072
15073 int
15074 main ()
15075 {
15076 atoi(*tzname);
15077   ;
15078   return 0;
15079 }
15080 _ACEOF
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085   *) ac_try_echo=$ac_try;;
15086 esac
15087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15088 $as_echo "$ac_try_echo") >&5
15089   (eval "$ac_link") 2>conftest.er1
15090   ac_status=$?
15091   grep -v '^ *+' conftest.er1 >conftest.err
15092   rm -f conftest.er1
15093   cat conftest.err >&5
15094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } && {
15096          test -z "$ac_c_werror_flag" ||
15097          test ! -s conftest.err
15098        } && test -s conftest$ac_exeext && {
15099          test "$cross_compiling" = yes ||
15100          $as_test_x conftest$ac_exeext
15101        }; then
15102   ac_cv_var_tzname=yes
15103 else
15104   $as_echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107         ac_cv_var_tzname=no
15108 fi
15109
15110 rm -rf conftest.dSYM
15111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15112       conftest$ac_exeext conftest.$ac_ext
15113 fi
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15115 $as_echo "$ac_cv_var_tzname" >&6; }
15116 if test $ac_cv_var_tzname = yes; then
15117
15118 cat >>confdefs.h <<\_ACEOF
15119 #define HAVE_TZNAME 1
15120 _ACEOF
15121
15122 fi
15123
15124 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15125 $as_echo_n "checking for union semun... " >&6; }
15126 if test "${ac_cv_type_union_semun+set}" = set; then
15127   $as_echo_n "(cached) " >&6
15128 else
15129   ac_cv_type_union_semun=no
15130 cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h.  */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h.  */
15136 #include <sys/types.h>
15137 #include <sys/ipc.h>
15138 #include <sys/sem.h>
15139
15140 int
15141 main ()
15142 {
15143 if (sizeof (union semun))
15144        return 0;
15145   ;
15146   return 0;
15147 }
15148 _ACEOF
15149 rm -f conftest.$ac_objext
15150 if { (ac_try="$ac_compile"
15151 case "(($ac_try" in
15152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15153   *) ac_try_echo=$ac_try;;
15154 esac
15155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15156 $as_echo "$ac_try_echo") >&5
15157   (eval "$ac_compile") 2>conftest.er1
15158   ac_status=$?
15159   grep -v '^ *+' conftest.er1 >conftest.err
15160   rm -f conftest.er1
15161   cat conftest.err >&5
15162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); } && {
15164          test -z "$ac_c_werror_flag" ||
15165          test ! -s conftest.err
15166        } && test -s conftest.$ac_objext; then
15167   cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h.  */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h.  */
15173 #include <sys/types.h>
15174 #include <sys/ipc.h>
15175 #include <sys/sem.h>
15176
15177 int
15178 main ()
15179 {
15180 if (sizeof ((union semun)))
15181           return 0;
15182   ;
15183   return 0;
15184 }
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15193 $as_echo "$ac_try_echo") >&5
15194   (eval "$ac_compile") 2>conftest.er1
15195   ac_status=$?
15196   grep -v '^ *+' conftest.er1 >conftest.err
15197   rm -f conftest.er1
15198   cat conftest.err >&5
15199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } && {
15201          test -z "$ac_c_werror_flag" ||
15202          test ! -s conftest.err
15203        } && test -s conftest.$ac_objext; then
15204   :
15205 else
15206   $as_echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15208
15209         ac_cv_type_union_semun=yes
15210 fi
15211
15212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 else
15214   $as_echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217
15218 fi
15219
15220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221 fi
15222 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15223 $as_echo "$ac_cv_type_union_semun" >&6; }
15224 if test "x$ac_cv_type_union_semun" = x""yes; then
15225
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_UNION_SEMUN 1
15228 _ACEOF
15229
15230
15231 fi
15232
15233 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15234 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15235 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15236   $as_echo_n "(cached) " >&6
15237 else
15238   ac_cv_type_struct_sockaddr_un=no
15239 cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h.  */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h.  */
15245 #include <sys/types.h>
15246 #ifdef HAVE_SYS_UN_H
15247 #include <sys/un.h>
15248 #endif
15249
15250
15251 int
15252 main ()
15253 {
15254 if (sizeof (struct sockaddr_un))
15255        return 0;
15256   ;
15257   return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext
15261 if { (ac_try="$ac_compile"
15262 case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268   (eval "$ac_compile") 2>conftest.er1
15269   ac_status=$?
15270   grep -v '^ *+' conftest.er1 >conftest.err
15271   rm -f conftest.er1
15272   cat conftest.err >&5
15273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } && {
15275          test -z "$ac_c_werror_flag" ||
15276          test ! -s conftest.err
15277        } && test -s conftest.$ac_objext; then
15278   cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284 #include <sys/types.h>
15285 #ifdef HAVE_SYS_UN_H
15286 #include <sys/un.h>
15287 #endif
15288
15289
15290 int
15291 main ()
15292 {
15293 if (sizeof ((struct sockaddr_un)))
15294           return 0;
15295   ;
15296   return 0;
15297 }
15298 _ACEOF
15299 rm -f conftest.$ac_objext
15300 if { (ac_try="$ac_compile"
15301 case "(($ac_try" in
15302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303   *) ac_try_echo=$ac_try;;
15304 esac
15305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15306 $as_echo "$ac_try_echo") >&5
15307   (eval "$ac_compile") 2>conftest.er1
15308   ac_status=$?
15309   grep -v '^ *+' conftest.er1 >conftest.err
15310   rm -f conftest.er1
15311   cat conftest.err >&5
15312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } && {
15314          test -z "$ac_c_werror_flag" ||
15315          test ! -s conftest.err
15316        } && test -s conftest.$ac_objext; then
15317   :
15318 else
15319   $as_echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322         ac_cv_type_struct_sockaddr_un=yes
15323 fi
15324
15325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15326 else
15327   $as_echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330
15331 fi
15332
15333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334 fi
15335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15336 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15337 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15338
15339 cat >>confdefs.h <<_ACEOF
15340 #define HAVE_STRUCT_SOCKADDR_UN 1
15341 _ACEOF
15342
15343
15344 cat >>confdefs.h <<\_ACEOF
15345 #define HAVE_UNIX_SOCKETS 1
15346 _ACEOF
15347
15348 fi
15349
15350 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15351 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15352 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15353   $as_echo_n "(cached) " >&6
15354 else
15355   ac_cv_type_struct_sockaddr_storage=no
15356 cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h.  */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h.  */
15362 #include <sys/types.h>
15363 #ifdef HAVE_SYS_SOCKET_H
15364 #include <sys/socket.h>
15365 #endif
15366
15367
15368 int
15369 main ()
15370 {
15371 if (sizeof (struct sockaddr_storage))
15372        return 0;
15373   ;
15374   return 0;
15375 }
15376 _ACEOF
15377 rm -f conftest.$ac_objext
15378 if { (ac_try="$ac_compile"
15379 case "(($ac_try" in
15380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381   *) ac_try_echo=$ac_try;;
15382 esac
15383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15384 $as_echo "$ac_try_echo") >&5
15385   (eval "$ac_compile") 2>conftest.er1
15386   ac_status=$?
15387   grep -v '^ *+' conftest.er1 >conftest.err
15388   rm -f conftest.er1
15389   cat conftest.err >&5
15390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); } && {
15392          test -z "$ac_c_werror_flag" ||
15393          test ! -s conftest.err
15394        } && test -s conftest.$ac_objext; then
15395   cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 #include <sys/types.h>
15402 #ifdef HAVE_SYS_SOCKET_H
15403 #include <sys/socket.h>
15404 #endif
15405
15406
15407 int
15408 main ()
15409 {
15410 if (sizeof ((struct sockaddr_storage)))
15411           return 0;
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420   *) ac_try_echo=$ac_try;;
15421 esac
15422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15423 $as_echo "$ac_try_echo") >&5
15424   (eval "$ac_compile") 2>conftest.er1
15425   ac_status=$?
15426   grep -v '^ *+' conftest.er1 >conftest.err
15427   rm -f conftest.er1
15428   cat conftest.err >&5
15429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); } && {
15431          test -z "$ac_c_werror_flag" ||
15432          test ! -s conftest.err
15433        } && test -s conftest.$ac_objext; then
15434   :
15435 else
15436   $as_echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15438
15439         ac_cv_type_struct_sockaddr_storage=yes
15440 fi
15441
15442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15443 else
15444   $as_echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15446
15447
15448 fi
15449
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 fi
15452 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15453 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15454 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15455
15456 cat >>confdefs.h <<_ACEOF
15457 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15458 _ACEOF
15459
15460
15461 fi
15462
15463 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15464 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15465 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15466   $as_echo_n "(cached) " >&6
15467 else
15468   cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h.  */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h.  */
15474 #include <sys/types.h>
15475 #ifdef HAVE_SYS_SOCKET_H
15476 #include <sys/socket.h>
15477 #endif
15478
15479
15480 int
15481 main ()
15482 {
15483 static struct sockaddr_storage ac_aggr;
15484 if (ac_aggr.ss_family)
15485 return 0;
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498   (eval "$ac_compile") 2>conftest.er1
15499   ac_status=$?
15500   grep -v '^ *+' conftest.er1 >conftest.err
15501   rm -f conftest.er1
15502   cat conftest.err >&5
15503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); } && {
15505          test -z "$ac_c_werror_flag" ||
15506          test ! -s conftest.err
15507        } && test -s conftest.$ac_objext; then
15508   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15509 else
15510   $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513         cat >conftest.$ac_ext <<_ACEOF
15514 /* confdefs.h.  */
15515 _ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h.  */
15519 #include <sys/types.h>
15520 #ifdef HAVE_SYS_SOCKET_H
15521 #include <sys/socket.h>
15522 #endif
15523
15524
15525 int
15526 main ()
15527 {
15528 static struct sockaddr_storage ac_aggr;
15529 if (sizeof ac_aggr.ss_family)
15530 return 0;
15531   ;
15532   return 0;
15533 }
15534 _ACEOF
15535 rm -f conftest.$ac_objext
15536 if { (ac_try="$ac_compile"
15537 case "(($ac_try" in
15538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15539   *) ac_try_echo=$ac_try;;
15540 esac
15541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15542 $as_echo "$ac_try_echo") >&5
15543   (eval "$ac_compile") 2>conftest.er1
15544   ac_status=$?
15545   grep -v '^ *+' conftest.er1 >conftest.err
15546   rm -f conftest.er1
15547   cat conftest.err >&5
15548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); } && {
15550          test -z "$ac_c_werror_flag" ||
15551          test ! -s conftest.err
15552        } && test -s conftest.$ac_objext; then
15553   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15554 else
15555   $as_echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558         ac_cv_member_struct_sockaddr_storage_ss_family=no
15559 fi
15560
15561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15562 fi
15563
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 fi
15566 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15567 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15568 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15569
15570 cat >>confdefs.h <<_ACEOF
15571 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15572 _ACEOF
15573
15574
15575 fi
15576 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15577 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15578 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15579   $as_echo_n "(cached) " >&6
15580 else
15581   cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h.  */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h.  */
15587 #include <sys/types.h>
15588 #ifdef HAVE_SYS_SOCKET_H
15589 #include <sys/socket.h>
15590 #endif
15591
15592
15593 int
15594 main ()
15595 {
15596 static struct sockaddr_storage ac_aggr;
15597 if (ac_aggr.__ss_family)
15598 return 0;
15599   ;
15600   return 0;
15601 }
15602 _ACEOF
15603 rm -f conftest.$ac_objext
15604 if { (ac_try="$ac_compile"
15605 case "(($ac_try" in
15606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607   *) ac_try_echo=$ac_try;;
15608 esac
15609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15610 $as_echo "$ac_try_echo") >&5
15611   (eval "$ac_compile") 2>conftest.er1
15612   ac_status=$?
15613   grep -v '^ *+' conftest.er1 >conftest.err
15614   rm -f conftest.er1
15615   cat conftest.err >&5
15616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); } && {
15618          test -z "$ac_c_werror_flag" ||
15619          test ! -s conftest.err
15620        } && test -s conftest.$ac_objext; then
15621   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15622 else
15623   $as_echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15625
15626         cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632 #include <sys/types.h>
15633 #ifdef HAVE_SYS_SOCKET_H
15634 #include <sys/socket.h>
15635 #endif
15636
15637
15638 int
15639 main ()
15640 {
15641 static struct sockaddr_storage ac_aggr;
15642 if (sizeof ac_aggr.__ss_family)
15643 return 0;
15644   ;
15645   return 0;
15646 }
15647 _ACEOF
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652   *) ac_try_echo=$ac_try;;
15653 esac
15654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656   (eval "$ac_compile") 2>conftest.er1
15657   ac_status=$?
15658   grep -v '^ *+' conftest.er1 >conftest.err
15659   rm -f conftest.er1
15660   cat conftest.err >&5
15661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); } && {
15663          test -z "$ac_c_werror_flag" ||
15664          test ! -s conftest.err
15665        } && test -s conftest.$ac_objext; then
15666   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15667 else
15668   $as_echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15670
15671         ac_cv_member_struct_sockaddr_storage___ss_family=no
15672 fi
15673
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15675 fi
15676
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 fi
15679 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15680 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15681 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15682
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15685 _ACEOF
15686
15687
15688 fi
15689 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15690 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15691 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15692   $as_echo_n "(cached) " >&6
15693 else
15694   cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h.  */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h.  */
15700 #include <sys/types.h>
15701 #ifdef HAVE_SYS_SOCKET_H
15702 #include <sys/socket.h>
15703 #endif
15704
15705
15706 int
15707 main ()
15708 {
15709 static struct sockaddr_storage ac_aggr;
15710 if (ac_aggr.ss_len)
15711 return 0;
15712   ;
15713   return 0;
15714 }
15715 _ACEOF
15716 rm -f conftest.$ac_objext
15717 if { (ac_try="$ac_compile"
15718 case "(($ac_try" in
15719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720   *) ac_try_echo=$ac_try;;
15721 esac
15722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15723 $as_echo "$ac_try_echo") >&5
15724   (eval "$ac_compile") 2>conftest.er1
15725   ac_status=$?
15726   grep -v '^ *+' conftest.er1 >conftest.err
15727   rm -f conftest.er1
15728   cat conftest.err >&5
15729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } && {
15731          test -z "$ac_c_werror_flag" ||
15732          test ! -s conftest.err
15733        } && test -s conftest.$ac_objext; then
15734   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15735 else
15736   $as_echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15738
15739         cat >conftest.$ac_ext <<_ACEOF
15740 /* confdefs.h.  */
15741 _ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h.  */
15745 #include <sys/types.h>
15746 #ifdef HAVE_SYS_SOCKET_H
15747 #include <sys/socket.h>
15748 #endif
15749
15750
15751 int
15752 main ()
15753 {
15754 static struct sockaddr_storage ac_aggr;
15755 if (sizeof ac_aggr.ss_len)
15756 return 0;
15757   ;
15758   return 0;
15759 }
15760 _ACEOF
15761 rm -f conftest.$ac_objext
15762 if { (ac_try="$ac_compile"
15763 case "(($ac_try" in
15764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765   *) ac_try_echo=$ac_try;;
15766 esac
15767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15768 $as_echo "$ac_try_echo") >&5
15769   (eval "$ac_compile") 2>conftest.er1
15770   ac_status=$?
15771   grep -v '^ *+' conftest.er1 >conftest.err
15772   rm -f conftest.er1
15773   cat conftest.err >&5
15774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } && {
15776          test -z "$ac_c_werror_flag" ||
15777          test ! -s conftest.err
15778        } && test -s conftest.$ac_objext; then
15779   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15780 else
15781   $as_echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15783
15784         ac_cv_member_struct_sockaddr_storage_ss_len=no
15785 fi
15786
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 fi
15789
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791 fi
15792 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15793 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15794 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15795
15796 cat >>confdefs.h <<_ACEOF
15797 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15798 _ACEOF
15799
15800
15801 fi
15802 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15803 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15804 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15805   $as_echo_n "(cached) " >&6
15806 else
15807   cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h.  */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h.  */
15813 #include <sys/types.h>
15814 #ifdef HAVE_SYS_SOCKET_H
15815 #include <sys/socket.h>
15816 #endif
15817
15818
15819 int
15820 main ()
15821 {
15822 static struct sockaddr_storage ac_aggr;
15823 if (ac_aggr.__ss_len)
15824 return 0;
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest.$ac_objext
15830 if { (ac_try="$ac_compile"
15831 case "(($ac_try" in
15832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833   *) ac_try_echo=$ac_try;;
15834 esac
15835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15836 $as_echo "$ac_try_echo") >&5
15837   (eval "$ac_compile") 2>conftest.er1
15838   ac_status=$?
15839   grep -v '^ *+' conftest.er1 >conftest.err
15840   rm -f conftest.er1
15841   cat conftest.err >&5
15842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); } && {
15844          test -z "$ac_c_werror_flag" ||
15845          test ! -s conftest.err
15846        } && test -s conftest.$ac_objext; then
15847   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15848 else
15849   $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852         cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858 #include <sys/types.h>
15859 #ifdef HAVE_SYS_SOCKET_H
15860 #include <sys/socket.h>
15861 #endif
15862
15863
15864 int
15865 main ()
15866 {
15867 static struct sockaddr_storage ac_aggr;
15868 if (sizeof ac_aggr.__ss_len)
15869 return 0;
15870   ;
15871   return 0;
15872 }
15873 _ACEOF
15874 rm -f conftest.$ac_objext
15875 if { (ac_try="$ac_compile"
15876 case "(($ac_try" in
15877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878   *) ac_try_echo=$ac_try;;
15879 esac
15880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15881 $as_echo "$ac_try_echo") >&5
15882   (eval "$ac_compile") 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } && {
15889          test -z "$ac_c_werror_flag" ||
15890          test ! -s conftest.err
15891        } && test -s conftest.$ac_objext; then
15892   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15893 else
15894   $as_echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897         ac_cv_member_struct_sockaddr_storage___ss_len=no
15898 fi
15899
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 fi
15902
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 fi
15905 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15906 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15907 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15908
15909 cat >>confdefs.h <<_ACEOF
15910 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15911 _ACEOF
15912
15913
15914 fi
15915 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15916 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15917 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15918   $as_echo_n "(cached) " >&6
15919 else
15920   cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h.  */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h.  */
15926 #include <sys/types.h>
15927 #ifdef HAVE_SYS_SOCKET_H
15928 #include <sys/socket.h>
15929 #endif
15930
15931
15932 int
15933 main ()
15934 {
15935 static struct sockaddr ac_aggr;
15936 if (ac_aggr.sa_len)
15937 return 0;
15938   ;
15939   return 0;
15940 }
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (ac_try="$ac_compile"
15944 case "(($ac_try" in
15945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946   *) ac_try_echo=$ac_try;;
15947 esac
15948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15949 $as_echo "$ac_try_echo") >&5
15950   (eval "$ac_compile") 2>conftest.er1
15951   ac_status=$?
15952   grep -v '^ *+' conftest.er1 >conftest.err
15953   rm -f conftest.er1
15954   cat conftest.err >&5
15955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } && {
15957          test -z "$ac_c_werror_flag" ||
15958          test ! -s conftest.err
15959        } && test -s conftest.$ac_objext; then
15960   ac_cv_member_struct_sockaddr_sa_len=yes
15961 else
15962   $as_echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965         cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h.  */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h.  */
15971 #include <sys/types.h>
15972 #ifdef HAVE_SYS_SOCKET_H
15973 #include <sys/socket.h>
15974 #endif
15975
15976
15977 int
15978 main ()
15979 {
15980 static struct sockaddr ac_aggr;
15981 if (sizeof ac_aggr.sa_len)
15982 return 0;
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991   *) ac_try_echo=$ac_try;;
15992 esac
15993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15994 $as_echo "$ac_try_echo") >&5
15995   (eval "$ac_compile") 2>conftest.er1
15996   ac_status=$?
15997   grep -v '^ *+' conftest.er1 >conftest.err
15998   rm -f conftest.er1
15999   cat conftest.err >&5
16000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } && {
16002          test -z "$ac_c_werror_flag" ||
16003          test ! -s conftest.err
16004        } && test -s conftest.$ac_objext; then
16005   ac_cv_member_struct_sockaddr_sa_len=yes
16006 else
16007   $as_echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010         ac_cv_member_struct_sockaddr_sa_len=no
16011 fi
16012
16013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 fi
16015
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 fi
16018 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16019 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16020 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16021
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16024 _ACEOF
16025
16026
16027 fi
16028
16029 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16030 $as_echo_n "checking for struct addrinfo... " >&6; }
16031 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16032   $as_echo_n "(cached) " >&6
16033 else
16034   ac_cv_type_struct_addrinfo=no
16035 cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h.  */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h.  */
16041 #include <sys/types.h>
16042 #include <sys/socket.h>
16043 #include <netdb.h>
16044
16045
16046 int
16047 main ()
16048 {
16049 if (sizeof (struct addrinfo))
16050        return 0;
16051   ;
16052   return 0;
16053 }
16054 _ACEOF
16055 rm -f conftest.$ac_objext
16056 if { (ac_try="$ac_compile"
16057 case "(($ac_try" in
16058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059   *) ac_try_echo=$ac_try;;
16060 esac
16061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16062 $as_echo "$ac_try_echo") >&5
16063   (eval "$ac_compile") 2>conftest.er1
16064   ac_status=$?
16065   grep -v '^ *+' conftest.er1 >conftest.err
16066   rm -f conftest.er1
16067   cat conftest.err >&5
16068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); } && {
16070          test -z "$ac_c_werror_flag" ||
16071          test ! -s conftest.err
16072        } && test -s conftest.$ac_objext; then
16073   cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h.  */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h.  */
16079 #include <sys/types.h>
16080 #include <sys/socket.h>
16081 #include <netdb.h>
16082
16083
16084 int
16085 main ()
16086 {
16087 if (sizeof ((struct addrinfo)))
16088           return 0;
16089   ;
16090   return 0;
16091 }
16092 _ACEOF
16093 rm -f conftest.$ac_objext
16094 if { (ac_try="$ac_compile"
16095 case "(($ac_try" in
16096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097   *) ac_try_echo=$ac_try;;
16098 esac
16099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16100 $as_echo "$ac_try_echo") >&5
16101   (eval "$ac_compile") 2>conftest.er1
16102   ac_status=$?
16103   grep -v '^ *+' conftest.er1 >conftest.err
16104   rm -f conftest.er1
16105   cat conftest.err >&5
16106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); } && {
16108          test -z "$ac_c_werror_flag" ||
16109          test ! -s conftest.err
16110        } && test -s conftest.$ac_objext; then
16111   :
16112 else
16113   $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116         ac_cv_type_struct_addrinfo=yes
16117 fi
16118
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 else
16121   $as_echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16123
16124
16125 fi
16126
16127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16128 fi
16129 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16130 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16131 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16132
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_ADDRINFO 1
16135 _ACEOF
16136
16137
16138 fi
16139
16140
16141   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16142 $as_echo_n "checking for intptr_t... " >&6; }
16143 if test "${ac_cv_type_intptr_t+set}" = set; then
16144   $as_echo_n "(cached) " >&6
16145 else
16146   ac_cv_type_intptr_t=no
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h.  */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h.  */
16153 $ac_includes_default
16154 int
16155 main ()
16156 {
16157 if (sizeof (intptr_t))
16158        return 0;
16159   ;
16160   return 0;
16161 }
16162 _ACEOF
16163 rm -f conftest.$ac_objext
16164 if { (ac_try="$ac_compile"
16165 case "(($ac_try" in
16166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167   *) ac_try_echo=$ac_try;;
16168 esac
16169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16170 $as_echo "$ac_try_echo") >&5
16171   (eval "$ac_compile") 2>conftest.er1
16172   ac_status=$?
16173   grep -v '^ *+' conftest.er1 >conftest.err
16174   rm -f conftest.er1
16175   cat conftest.err >&5
16176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); } && {
16178          test -z "$ac_c_werror_flag" ||
16179          test ! -s conftest.err
16180        } && test -s conftest.$ac_objext; then
16181   cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187 $ac_includes_default
16188 int
16189 main ()
16190 {
16191 if (sizeof ((intptr_t)))
16192           return 0;
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16204 $as_echo "$ac_try_echo") >&5
16205   (eval "$ac_compile") 2>conftest.er1
16206   ac_status=$?
16207   grep -v '^ *+' conftest.er1 >conftest.err
16208   rm -f conftest.er1
16209   cat conftest.err >&5
16210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } && {
16212          test -z "$ac_c_werror_flag" ||
16213          test ! -s conftest.err
16214        } && test -s conftest.$ac_objext; then
16215   :
16216 else
16217   $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220         ac_cv_type_intptr_t=yes
16221 fi
16222
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 else
16225   $as_echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16227
16228
16229 fi
16230
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 fi
16233 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16234 $as_echo "$ac_cv_type_intptr_t" >&6; }
16235 if test "x$ac_cv_type_intptr_t" = x""yes; then
16236
16237 cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_INTPTR_T 1
16239 _ACEOF
16240
16241 else
16242   for ac_type in 'int' 'long int' 'long long int'; do
16243        cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h.  */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h.  */
16249 $ac_includes_default
16250 int
16251 main ()
16252 {
16253 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16254 test_array [0] = 0
16255
16256   ;
16257   return 0;
16258 }
16259 _ACEOF
16260 rm -f conftest.$ac_objext
16261 if { (ac_try="$ac_compile"
16262 case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16267 $as_echo "$ac_try_echo") >&5
16268   (eval "$ac_compile") 2>conftest.er1
16269   ac_status=$?
16270   grep -v '^ *+' conftest.er1 >conftest.err
16271   rm -f conftest.er1
16272   cat conftest.err >&5
16273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } && {
16275          test -z "$ac_c_werror_flag" ||
16276          test ! -s conftest.err
16277        } && test -s conftest.$ac_objext; then
16278
16279 cat >>confdefs.h <<_ACEOF
16280 #define intptr_t $ac_type
16281 _ACEOF
16282
16283           ac_type=
16284 else
16285   $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288
16289 fi
16290
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292        test -z "$ac_type" && break
16293      done
16294 fi
16295
16296
16297
16298   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16299 $as_echo_n "checking for uintptr_t... " >&6; }
16300 if test "${ac_cv_type_uintptr_t+set}" = set; then
16301   $as_echo_n "(cached) " >&6
16302 else
16303   ac_cv_type_uintptr_t=no
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h.  */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h.  */
16310 $ac_includes_default
16311 int
16312 main ()
16313 {
16314 if (sizeof (uintptr_t))
16315        return 0;
16316   ;
16317   return 0;
16318 }
16319 _ACEOF
16320 rm -f conftest.$ac_objext
16321 if { (ac_try="$ac_compile"
16322 case "(($ac_try" in
16323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324   *) ac_try_echo=$ac_try;;
16325 esac
16326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16327 $as_echo "$ac_try_echo") >&5
16328   (eval "$ac_compile") 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } && {
16335          test -z "$ac_c_werror_flag" ||
16336          test ! -s conftest.err
16337        } && test -s conftest.$ac_objext; then
16338   cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h.  */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h.  */
16344 $ac_includes_default
16345 int
16346 main ()
16347 {
16348 if (sizeof ((uintptr_t)))
16349           return 0;
16350   ;
16351   return 0;
16352 }
16353 _ACEOF
16354 rm -f conftest.$ac_objext
16355 if { (ac_try="$ac_compile"
16356 case "(($ac_try" in
16357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358   *) ac_try_echo=$ac_try;;
16359 esac
16360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16361 $as_echo "$ac_try_echo") >&5
16362   (eval "$ac_compile") 2>conftest.er1
16363   ac_status=$?
16364   grep -v '^ *+' conftest.er1 >conftest.err
16365   rm -f conftest.er1
16366   cat conftest.err >&5
16367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); } && {
16369          test -z "$ac_c_werror_flag" ||
16370          test ! -s conftest.err
16371        } && test -s conftest.$ac_objext; then
16372   :
16373 else
16374   $as_echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377         ac_cv_type_uintptr_t=yes
16378 fi
16379
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 else
16382   $as_echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385
16386 fi
16387
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16389 fi
16390 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16391 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16392 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16393
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_UINTPTR_T 1
16396 _ACEOF
16397
16398 else
16399   for ac_type in 'unsigned int' 'unsigned long int' \
16400         'unsigned long long int'; do
16401        cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407 $ac_includes_default
16408 int
16409 main ()
16410 {
16411 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16412 test_array [0] = 0
16413
16414   ;
16415   return 0;
16416 }
16417 _ACEOF
16418 rm -f conftest.$ac_objext
16419 if { (ac_try="$ac_compile"
16420 case "(($ac_try" in
16421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422   *) ac_try_echo=$ac_try;;
16423 esac
16424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16425 $as_echo "$ac_try_echo") >&5
16426   (eval "$ac_compile") 2>conftest.er1
16427   ac_status=$?
16428   grep -v '^ *+' conftest.er1 >conftest.err
16429   rm -f conftest.er1
16430   cat conftest.err >&5
16431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); } && {
16433          test -z "$ac_c_werror_flag" ||
16434          test ! -s conftest.err
16435        } && test -s conftest.$ac_objext; then
16436
16437 cat >>confdefs.h <<_ACEOF
16438 #define uintptr_t $ac_type
16439 _ACEOF
16440
16441           ac_type=
16442 else
16443   $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16445
16446
16447 fi
16448
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16450        test -z "$ac_type" && break
16451      done
16452 fi
16453
16454
16455
16456   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16457 $as_echo_n "checking for long long int... " >&6; }
16458 if test "${ac_cv_type_long_long_int+set}" = set; then
16459   $as_echo_n "(cached) " >&6
16460 else
16461   cat >conftest.$ac_ext <<_ACEOF
16462
16463   /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468 /* For now, do not test the preprocessor; as of 2007 there are too many
16469          implementations with broken preprocessors.  Perhaps this can
16470          be revisited in 2012.  In the meantime, code should not expect
16471          #if to work with literals wider than 32 bits.  */
16472       /* Test literals.  */
16473       long long int ll = 9223372036854775807ll;
16474       long long int nll = -9223372036854775807LL;
16475       unsigned long long int ull = 18446744073709551615ULL;
16476       /* Test constant expressions.   */
16477       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16478                      ? 1 : -1)];
16479       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16480                      ? 1 : -1)];
16481       int i = 63;
16482 int
16483 main ()
16484 {
16485 /* Test availability of runtime routines for shift and division.  */
16486       long long int llmax = 9223372036854775807ll;
16487       unsigned long long int ullmax = 18446744073709551615ull;
16488       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16489               | (llmax / ll) | (llmax % ll)
16490               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16491               | (ullmax / ull) | (ullmax % ull));
16492   ;
16493   return 0;
16494 }
16495
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16504 $as_echo "$ac_try_echo") >&5
16505   (eval "$ac_link") 2>conftest.er1
16506   ac_status=$?
16507   grep -v '^ *+' conftest.er1 >conftest.err
16508   rm -f conftest.er1
16509   cat conftest.err >&5
16510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); } && {
16512          test -z "$ac_c_werror_flag" ||
16513          test ! -s conftest.err
16514        } && test -s conftest$ac_exeext && {
16515          test "$cross_compiling" = yes ||
16516          $as_test_x conftest$ac_exeext
16517        }; then
16518                         if test "$cross_compiling" = yes; then
16519   ac_cv_type_long_long_int=yes
16520 else
16521   cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h.  */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h.  */
16527 #include <limits.h>
16528                #ifndef LLONG_MAX
16529                # define HALF \
16530                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16531                # define LLONG_MAX (HALF - 1 + HALF)
16532                #endif
16533 int
16534 main ()
16535 {
16536 long long int n = 1;
16537                int i;
16538                for (i = 0; ; i++)
16539                  {
16540                    long long int m = n << i;
16541                    if (m >> i != n)
16542                      return 1;
16543                    if (LLONG_MAX / 2 < m)
16544                      break;
16545                  }
16546                return 0;
16547   ;
16548   return 0;
16549 }
16550 _ACEOF
16551 rm -f conftest$ac_exeext
16552 if { (ac_try="$ac_link"
16553 case "(($ac_try" in
16554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555   *) ac_try_echo=$ac_try;;
16556 esac
16557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16558 $as_echo "$ac_try_echo") >&5
16559   (eval "$ac_link") 2>&5
16560   ac_status=$?
16561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16563   { (case "(($ac_try" in
16564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565   *) ac_try_echo=$ac_try;;
16566 esac
16567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16568 $as_echo "$ac_try_echo") >&5
16569   (eval "$ac_try") 2>&5
16570   ac_status=$?
16571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); }; }; then
16573   ac_cv_type_long_long_int=yes
16574 else
16575   $as_echo "$as_me: program exited with status $ac_status" >&5
16576 $as_echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 ( exit $ac_status )
16580 ac_cv_type_long_long_int=no
16581 fi
16582 rm -rf conftest.dSYM
16583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16584 fi
16585
16586
16587 else
16588   $as_echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591         ac_cv_type_long_long_int=no
16592 fi
16593
16594 rm -rf conftest.dSYM
16595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16596       conftest$ac_exeext conftest.$ac_ext
16597 fi
16598 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16599 $as_echo "$ac_cv_type_long_long_int" >&6; }
16600   if test $ac_cv_type_long_long_int = yes; then
16601
16602 cat >>confdefs.h <<\_ACEOF
16603 #define HAVE_LONG_LONG_INT 1
16604 _ACEOF
16605
16606   fi
16607
16608
16609 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16610 $as_echo_n "checking for struct cmsgcred... " >&6; }
16611 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16612   $as_echo_n "(cached) " >&6
16613 else
16614   ac_cv_type_struct_cmsgcred=no
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621 #include <sys/param.h>
16622 #include <sys/types.h>
16623 #include <sys/socket.h>
16624 #include <sys/ucred.h>
16625
16626 int
16627 main ()
16628 {
16629 if (sizeof (struct cmsgcred))
16630        return 0;
16631   ;
16632   return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639   *) ac_try_echo=$ac_try;;
16640 esac
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643   (eval "$ac_compile") 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } && {
16650          test -z "$ac_c_werror_flag" ||
16651          test ! -s conftest.err
16652        } && test -s conftest.$ac_objext; then
16653   cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h.  */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h.  */
16659 #include <sys/param.h>
16660 #include <sys/types.h>
16661 #include <sys/socket.h>
16662 #include <sys/ucred.h>
16663
16664 int
16665 main ()
16666 {
16667 if (sizeof ((struct cmsgcred)))
16668           return 0;
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (ac_try="$ac_compile"
16675 case "(($ac_try" in
16676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677   *) ac_try_echo=$ac_try;;
16678 esac
16679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16680 $as_echo "$ac_try_echo") >&5
16681   (eval "$ac_compile") 2>conftest.er1
16682   ac_status=$?
16683   grep -v '^ *+' conftest.er1 >conftest.err
16684   rm -f conftest.er1
16685   cat conftest.err >&5
16686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687   (exit $ac_status); } && {
16688          test -z "$ac_c_werror_flag" ||
16689          test ! -s conftest.err
16690        } && test -s conftest.$ac_objext; then
16691   :
16692 else
16693   $as_echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16695
16696         ac_cv_type_struct_cmsgcred=yes
16697 fi
16698
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700 else
16701   $as_echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16703
16704
16705 fi
16706
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16708 fi
16709 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16710 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16711 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16712
16713 cat >>confdefs.h <<_ACEOF
16714 #define HAVE_STRUCT_CMSGCRED 1
16715 _ACEOF
16716
16717
16718 fi
16719 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16720 $as_echo_n "checking for struct fcred... " >&6; }
16721 if test "${ac_cv_type_struct_fcred+set}" = set; then
16722   $as_echo_n "(cached) " >&6
16723 else
16724   ac_cv_type_struct_fcred=no
16725 cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h.  */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h.  */
16731 #include <sys/param.h>
16732 #include <sys/types.h>
16733 #include <sys/socket.h>
16734 #include <sys/ucred.h>
16735
16736 int
16737 main ()
16738 {
16739 if (sizeof (struct fcred))
16740        return 0;
16741   ;
16742   return 0;
16743 }
16744 _ACEOF
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753   (eval "$ac_compile") 2>conftest.er1
16754   ac_status=$?
16755   grep -v '^ *+' conftest.er1 >conftest.err
16756   rm -f conftest.er1
16757   cat conftest.err >&5
16758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); } && {
16760          test -z "$ac_c_werror_flag" ||
16761          test ! -s conftest.err
16762        } && test -s conftest.$ac_objext; then
16763   cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769 #include <sys/param.h>
16770 #include <sys/types.h>
16771 #include <sys/socket.h>
16772 #include <sys/ucred.h>
16773
16774 int
16775 main ()
16776 {
16777 if (sizeof ((struct fcred)))
16778           return 0;
16779   ;
16780   return 0;
16781 }
16782 _ACEOF
16783 rm -f conftest.$ac_objext
16784 if { (ac_try="$ac_compile"
16785 case "(($ac_try" in
16786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787   *) ac_try_echo=$ac_try;;
16788 esac
16789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16790 $as_echo "$ac_try_echo") >&5
16791   (eval "$ac_compile") 2>conftest.er1
16792   ac_status=$?
16793   grep -v '^ *+' conftest.er1 >conftest.err
16794   rm -f conftest.er1
16795   cat conftest.err >&5
16796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); } && {
16798          test -z "$ac_c_werror_flag" ||
16799          test ! -s conftest.err
16800        } && test -s conftest.$ac_objext; then
16801   :
16802 else
16803   $as_echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16805
16806         ac_cv_type_struct_fcred=yes
16807 fi
16808
16809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16810 else
16811   $as_echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16813
16814
16815 fi
16816
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16818 fi
16819 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16820 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16821 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16822
16823 cat >>confdefs.h <<_ACEOF
16824 #define HAVE_STRUCT_FCRED 1
16825 _ACEOF
16826
16827
16828 fi
16829 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16830 $as_echo_n "checking for struct sockcred... " >&6; }
16831 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16832   $as_echo_n "(cached) " >&6
16833 else
16834   ac_cv_type_struct_sockcred=no
16835 cat >conftest.$ac_ext <<_ACEOF
16836 /* confdefs.h.  */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h.  */
16841 #include <sys/param.h>
16842 #include <sys/types.h>
16843 #include <sys/socket.h>
16844 #include <sys/ucred.h>
16845
16846 int
16847 main ()
16848 {
16849 if (sizeof (struct sockcred))
16850        return 0;
16851   ;
16852   return 0;
16853 }
16854 _ACEOF
16855 rm -f conftest.$ac_objext
16856 if { (ac_try="$ac_compile"
16857 case "(($ac_try" in
16858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859   *) ac_try_echo=$ac_try;;
16860 esac
16861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16862 $as_echo "$ac_try_echo") >&5
16863   (eval "$ac_compile") 2>conftest.er1
16864   ac_status=$?
16865   grep -v '^ *+' conftest.er1 >conftest.err
16866   rm -f conftest.er1
16867   cat conftest.err >&5
16868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); } && {
16870          test -z "$ac_c_werror_flag" ||
16871          test ! -s conftest.err
16872        } && test -s conftest.$ac_objext; then
16873   cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h.  */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h.  */
16879 #include <sys/param.h>
16880 #include <sys/types.h>
16881 #include <sys/socket.h>
16882 #include <sys/ucred.h>
16883
16884 int
16885 main ()
16886 {
16887 if (sizeof ((struct sockcred)))
16888           return 0;
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (ac_try="$ac_compile"
16895 case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16900 $as_echo "$ac_try_echo") >&5
16901   (eval "$ac_compile") 2>conftest.er1
16902   ac_status=$?
16903   grep -v '^ *+' conftest.er1 >conftest.err
16904   rm -f conftest.er1
16905   cat conftest.err >&5
16906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } && {
16908          test -z "$ac_c_werror_flag" ||
16909          test ! -s conftest.err
16910        } && test -s conftest.$ac_objext; then
16911   :
16912 else
16913   $as_echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16915
16916         ac_cv_type_struct_sockcred=yes
16917 fi
16918
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16920 else
16921   $as_echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16923
16924
16925 fi
16926
16927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16928 fi
16929 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16930 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16931 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16932
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_STRUCT_SOCKCRED 1
16935 _ACEOF
16936
16937
16938 fi
16939
16940
16941 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16942 $as_echo_n "checking for struct option... " >&6; }
16943 if test "${ac_cv_type_struct_option+set}" = set; then
16944   $as_echo_n "(cached) " >&6
16945 else
16946   ac_cv_type_struct_option=no
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h.  */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h.  */
16953 #ifdef HAVE_GETOPT_H
16954 #include <getopt.h>
16955 #endif
16956
16957 int
16958 main ()
16959 {
16960 if (sizeof (struct option))
16961        return 0;
16962   ;
16963   return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest.$ac_objext
16967 if { (ac_try="$ac_compile"
16968 case "(($ac_try" in
16969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970   *) ac_try_echo=$ac_try;;
16971 esac
16972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16973 $as_echo "$ac_try_echo") >&5
16974   (eval "$ac_compile") 2>conftest.er1
16975   ac_status=$?
16976   grep -v '^ *+' conftest.er1 >conftest.err
16977   rm -f conftest.er1
16978   cat conftest.err >&5
16979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); } && {
16981          test -z "$ac_c_werror_flag" ||
16982          test ! -s conftest.err
16983        } && test -s conftest.$ac_objext; then
16984   cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h.  */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h.  */
16990 #ifdef HAVE_GETOPT_H
16991 #include <getopt.h>
16992 #endif
16993
16994 int
16995 main ()
16996 {
16997 if (sizeof ((struct option)))
16998           return 0;
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 rm -f conftest.$ac_objext
17004 if { (ac_try="$ac_compile"
17005 case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17010 $as_echo "$ac_try_echo") >&5
17011   (eval "$ac_compile") 2>conftest.er1
17012   ac_status=$?
17013   grep -v '^ *+' conftest.er1 >conftest.err
17014   rm -f conftest.er1
17015   cat conftest.err >&5
17016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017   (exit $ac_status); } && {
17018          test -z "$ac_c_werror_flag" ||
17019          test ! -s conftest.err
17020        } && test -s conftest.$ac_objext; then
17021   :
17022 else
17023   $as_echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026         ac_cv_type_struct_option=yes
17027 fi
17028
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 else
17031   $as_echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17033
17034
17035 fi
17036
17037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17038 fi
17039 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17040 $as_echo "$ac_cv_type_struct_option" >&6; }
17041 if test "x$ac_cv_type_struct_option" = x""yes; then
17042
17043 cat >>confdefs.h <<_ACEOF
17044 #define HAVE_STRUCT_OPTION 1
17045 _ACEOF
17046
17047
17048 fi
17049
17050
17051 if test "$with_zlib" = yes; then
17052   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17053   # did not).  While we could work around the lack of z_streamp, it
17054   # seems unwise to encourage people to use such old zlib versions...
17055   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17056 $as_echo_n "checking for z_streamp... " >&6; }
17057 if test "${ac_cv_type_z_streamp+set}" = set; then
17058   $as_echo_n "(cached) " >&6
17059 else
17060   ac_cv_type_z_streamp=no
17061 cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 #include <zlib.h>
17068
17069 int
17070 main ()
17071 {
17072 if (sizeof (z_streamp))
17073        return 0;
17074   ;
17075   return 0;
17076 }
17077 _ACEOF
17078 rm -f conftest.$ac_objext
17079 if { (ac_try="$ac_compile"
17080 case "(($ac_try" in
17081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082   *) ac_try_echo=$ac_try;;
17083 esac
17084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17085 $as_echo "$ac_try_echo") >&5
17086   (eval "$ac_compile") 2>conftest.er1
17087   ac_status=$?
17088   grep -v '^ *+' conftest.er1 >conftest.err
17089   rm -f conftest.er1
17090   cat conftest.err >&5
17091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); } && {
17093          test -z "$ac_c_werror_flag" ||
17094          test ! -s conftest.err
17095        } && test -s conftest.$ac_objext; then
17096   cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h.  */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h.  */
17102 #include <zlib.h>
17103
17104 int
17105 main ()
17106 {
17107 if (sizeof ((z_streamp)))
17108           return 0;
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext
17114 if { (ac_try="$ac_compile"
17115 case "(($ac_try" in
17116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117   *) ac_try_echo=$ac_try;;
17118 esac
17119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17120 $as_echo "$ac_try_echo") >&5
17121   (eval "$ac_compile") 2>conftest.er1
17122   ac_status=$?
17123   grep -v '^ *+' conftest.er1 >conftest.err
17124   rm -f conftest.er1
17125   cat conftest.err >&5
17126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); } && {
17128          test -z "$ac_c_werror_flag" ||
17129          test ! -s conftest.err
17130        } && test -s conftest.$ac_objext; then
17131   :
17132 else
17133   $as_echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136         ac_cv_type_z_streamp=yes
17137 fi
17138
17139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140 else
17141   $as_echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144
17145 fi
17146
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 fi
17149 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17150 $as_echo "$ac_cv_type_z_streamp" >&6; }
17151 if test "x$ac_cv_type_z_streamp" = x""yes; then
17152   :
17153 else
17154   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17155 Use --without-zlib to disable zlib support." >&5
17156 $as_echo "$as_me: error: zlib version is too old
17157 Use --without-zlib to disable zlib support." >&2;}
17158    { (exit 1); exit 1; }; }
17159 fi
17160
17161 fi
17162
17163 if test "$with_krb5" = yes; then
17164 # Check for differences between MIT and Heimdal (KTH) releases
17165   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17166 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17167 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17168   $as_echo_n "(cached) " >&6
17169 else
17170   cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h.  */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h.  */
17176 #include <krb5.h>
17177
17178 int
17179 main ()
17180 {
17181 static krb5_ticket ac_aggr;
17182 if (ac_aggr.enc_part2)
17183 return 0;
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext
17189 if { (ac_try="$ac_compile"
17190 case "(($ac_try" in
17191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192   *) ac_try_echo=$ac_try;;
17193 esac
17194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196   (eval "$ac_compile") 2>conftest.er1
17197   ac_status=$?
17198   grep -v '^ *+' conftest.er1 >conftest.err
17199   rm -f conftest.er1
17200   cat conftest.err >&5
17201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202   (exit $ac_status); } && {
17203          test -z "$ac_c_werror_flag" ||
17204          test ! -s conftest.err
17205        } && test -s conftest.$ac_objext; then
17206   ac_cv_member_krb5_ticket_enc_part2=yes
17207 else
17208   $as_echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17210
17211         cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h.  */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h.  */
17217 #include <krb5.h>
17218
17219 int
17220 main ()
17221 {
17222 static krb5_ticket ac_aggr;
17223 if (sizeof ac_aggr.enc_part2)
17224 return 0;
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext
17230 if { (ac_try="$ac_compile"
17231 case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17236 $as_echo "$ac_try_echo") >&5
17237   (eval "$ac_compile") 2>conftest.er1
17238   ac_status=$?
17239   grep -v '^ *+' conftest.er1 >conftest.err
17240   rm -f conftest.er1
17241   cat conftest.err >&5
17242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); } && {
17244          test -z "$ac_c_werror_flag" ||
17245          test ! -s conftest.err
17246        } && test -s conftest.$ac_objext; then
17247   ac_cv_member_krb5_ticket_enc_part2=yes
17248 else
17249   $as_echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17251
17252         ac_cv_member_krb5_ticket_enc_part2=no
17253 fi
17254
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256 fi
17257
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259 fi
17260 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17261 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17262 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17263
17264 cat >>confdefs.h <<_ACEOF
17265 #define HAVE_KRB5_TICKET_ENC_PART2 1
17266 _ACEOF
17267
17268
17269 else
17270   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17271 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17272 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17273   $as_echo_n "(cached) " >&6
17274 else
17275   cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h.  */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h.  */
17281 #include <krb5.h>
17282
17283 int
17284 main ()
17285 {
17286 static krb5_ticket ac_aggr;
17287 if (ac_aggr.client)
17288 return 0;
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17300 $as_echo "$ac_try_echo") >&5
17301   (eval "$ac_compile") 2>conftest.er1
17302   ac_status=$?
17303   grep -v '^ *+' conftest.er1 >conftest.err
17304   rm -f conftest.er1
17305   cat conftest.err >&5
17306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307   (exit $ac_status); } && {
17308          test -z "$ac_c_werror_flag" ||
17309          test ! -s conftest.err
17310        } && test -s conftest.$ac_objext; then
17311   ac_cv_member_krb5_ticket_client=yes
17312 else
17313   $as_echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316         cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h.  */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h.  */
17322 #include <krb5.h>
17323
17324 int
17325 main ()
17326 {
17327 static krb5_ticket ac_aggr;
17328 if (sizeof ac_aggr.client)
17329 return 0;
17330   ;
17331   return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext
17335 if { (ac_try="$ac_compile"
17336 case "(($ac_try" in
17337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338   *) ac_try_echo=$ac_try;;
17339 esac
17340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17341 $as_echo "$ac_try_echo") >&5
17342   (eval "$ac_compile") 2>conftest.er1
17343   ac_status=$?
17344   grep -v '^ *+' conftest.er1 >conftest.err
17345   rm -f conftest.er1
17346   cat conftest.err >&5
17347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348   (exit $ac_status); } && {
17349          test -z "$ac_c_werror_flag" ||
17350          test ! -s conftest.err
17351        } && test -s conftest.$ac_objext; then
17352   ac_cv_member_krb5_ticket_client=yes
17353 else
17354   $as_echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17356
17357         ac_cv_member_krb5_ticket_client=no
17358 fi
17359
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17361 fi
17362
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 fi
17365 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17366 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17367 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17368
17369 cat >>confdefs.h <<_ACEOF
17370 #define HAVE_KRB5_TICKET_CLIENT 1
17371 _ACEOF
17372
17373
17374 else
17375   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17376 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17377    { (exit 1); exit 1; }; }
17378 fi
17379
17380 fi
17381
17382   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17383 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17384 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17385   $as_echo_n "(cached) " >&6
17386 else
17387   cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h.  */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h.  */
17393 #include <krb5.h>
17394
17395 int
17396 main ()
17397 {
17398 static krb5_error ac_aggr;
17399 if (ac_aggr.text.data)
17400 return 0;
17401   ;
17402   return 0;
17403 }
17404 _ACEOF
17405 rm -f conftest.$ac_objext
17406 if { (ac_try="$ac_compile"
17407 case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17412 $as_echo "$ac_try_echo") >&5
17413   (eval "$ac_compile") 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } && {
17420          test -z "$ac_c_werror_flag" ||
17421          test ! -s conftest.err
17422        } && test -s conftest.$ac_objext; then
17423   ac_cv_member_krb5_error_text_data=yes
17424 else
17425   $as_echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428         cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h.  */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h.  */
17434 #include <krb5.h>
17435
17436 int
17437 main ()
17438 {
17439 static krb5_error ac_aggr;
17440 if (sizeof ac_aggr.text.data)
17441 return 0;
17442   ;
17443   return 0;
17444 }
17445 _ACEOF
17446 rm -f conftest.$ac_objext
17447 if { (ac_try="$ac_compile"
17448 case "(($ac_try" in
17449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450   *) ac_try_echo=$ac_try;;
17451 esac
17452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17453 $as_echo "$ac_try_echo") >&5
17454   (eval "$ac_compile") 2>conftest.er1
17455   ac_status=$?
17456   grep -v '^ *+' conftest.er1 >conftest.err
17457   rm -f conftest.er1
17458   cat conftest.err >&5
17459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); } && {
17461          test -z "$ac_c_werror_flag" ||
17462          test ! -s conftest.err
17463        } && test -s conftest.$ac_objext; then
17464   ac_cv_member_krb5_error_text_data=yes
17465 else
17466   $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469         ac_cv_member_krb5_error_text_data=no
17470 fi
17471
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 fi
17474
17475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17476 fi
17477 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17478 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17479 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17480
17481 cat >>confdefs.h <<_ACEOF
17482 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17483 _ACEOF
17484
17485
17486 else
17487   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17488 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17489 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17490   $as_echo_n "(cached) " >&6
17491 else
17492   cat >conftest.$ac_ext <<_ACEOF
17493 /* confdefs.h.  */
17494 _ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h.  */
17498 #include <krb5.h>
17499
17500 int
17501 main ()
17502 {
17503 static krb5_error ac_aggr;
17504 if (ac_aggr.e_data)
17505 return 0;
17506   ;
17507   return 0;
17508 }
17509 _ACEOF
17510 rm -f conftest.$ac_objext
17511 if { (ac_try="$ac_compile"
17512 case "(($ac_try" in
17513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514   *) ac_try_echo=$ac_try;;
17515 esac
17516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518   (eval "$ac_compile") 2>conftest.er1
17519   ac_status=$?
17520   grep -v '^ *+' conftest.er1 >conftest.err
17521   rm -f conftest.er1
17522   cat conftest.err >&5
17523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); } && {
17525          test -z "$ac_c_werror_flag" ||
17526          test ! -s conftest.err
17527        } && test -s conftest.$ac_objext; then
17528   ac_cv_member_krb5_error_e_data=yes
17529 else
17530   $as_echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17532
17533         cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h.  */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h.  */
17539 #include <krb5.h>
17540
17541 int
17542 main ()
17543 {
17544 static krb5_error ac_aggr;
17545 if (sizeof ac_aggr.e_data)
17546 return 0;
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 rm -f conftest.$ac_objext
17552 if { (ac_try="$ac_compile"
17553 case "(($ac_try" in
17554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555   *) ac_try_echo=$ac_try;;
17556 esac
17557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17558 $as_echo "$ac_try_echo") >&5
17559   (eval "$ac_compile") 2>conftest.er1
17560   ac_status=$?
17561   grep -v '^ *+' conftest.er1 >conftest.err
17562   rm -f conftest.er1
17563   cat conftest.err >&5
17564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565   (exit $ac_status); } && {
17566          test -z "$ac_c_werror_flag" ||
17567          test ! -s conftest.err
17568        } && test -s conftest.$ac_objext; then
17569   ac_cv_member_krb5_error_e_data=yes
17570 else
17571   $as_echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17573
17574         ac_cv_member_krb5_error_e_data=no
17575 fi
17576
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17578 fi
17579
17580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581 fi
17582 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17583 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17584 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17585
17586 cat >>confdefs.h <<_ACEOF
17587 #define HAVE_KRB5_ERROR_E_DATA 1
17588 _ACEOF
17589
17590
17591 else
17592   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17593 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17594    { (exit 1); exit 1; }; }
17595 fi
17596
17597 fi
17598
17599
17600 # Win32 requires headers to be loaded for __stdcall, so can't use
17601 # AC_CHECK_FUNCS here.
17602   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17603 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17604   cat >conftest.$ac_ext <<_ACEOF
17605 /* confdefs.h.  */
17606 _ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h.  */
17610 #include <krb5.h>
17611 int
17612 main ()
17613 {
17614 krb5_free_unparsed_name(NULL,NULL);
17615   ;
17616   return 0;
17617 }
17618 _ACEOF
17619 rm -f conftest.$ac_objext conftest$ac_exeext
17620 if { (ac_try="$ac_link"
17621 case "(($ac_try" in
17622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623   *) ac_try_echo=$ac_try;;
17624 esac
17625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17626 $as_echo "$ac_try_echo") >&5
17627   (eval "$ac_link") 2>conftest.er1
17628   ac_status=$?
17629   grep -v '^ *+' conftest.er1 >conftest.err
17630   rm -f conftest.er1
17631   cat conftest.err >&5
17632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); } && {
17634          test -z "$ac_c_werror_flag" ||
17635          test ! -s conftest.err
17636        } && test -s conftest$ac_exeext && {
17637          test "$cross_compiling" = yes ||
17638          $as_test_x conftest$ac_exeext
17639        }; then
17640
17641 cat >>confdefs.h <<\_ACEOF
17642 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17643 _ACEOF
17644
17645 { $as_echo "$as_me:$LINENO: result: yes" >&5
17646 $as_echo "yes" >&6; }
17647 else
17648   $as_echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651         { $as_echo "$as_me:$LINENO: result: no" >&5
17652 $as_echo "no" >&6; }
17653 fi
17654
17655 rm -rf conftest.dSYM
17656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17657       conftest$ac_exeext conftest.$ac_ext
17658 fi
17659
17660 # Check largefile support.  You might think this is a system service not a
17661 # compiler characteristic, but you'd be wrong.  We must check this before
17662 # probing existence of related functions such as fseeko, since the largefile
17663 # defines can affect what is generated for that.
17664 # Check whether --enable-largefile was given.
17665 if test "${enable_largefile+set}" = set; then
17666   enableval=$enable_largefile;
17667 fi
17668
17669 if test "$enable_largefile" != no; then
17670
17671   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17672 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17673 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17674   $as_echo_n "(cached) " >&6
17675 else
17676   ac_cv_sys_largefile_CC=no
17677      if test "$GCC" != yes; then
17678        ac_save_CC=$CC
17679        while :; do
17680          # IRIX 6.2 and later do not support large files by default,
17681          # so use the C compiler's -n32 option if that helps.
17682          cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 #include <sys/types.h>
17689  /* Check that off_t can represent 2**63 - 1 correctly.
17690     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17691     since some C++ compilers masquerading as C compilers
17692     incorrectly reject 9223372036854775807.  */
17693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17694   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17695                        && LARGE_OFF_T % 2147483647 == 1)
17696                       ? 1 : -1];
17697 int
17698 main ()
17699 {
17700
17701   ;
17702   return 0;
17703 }
17704 _ACEOF
17705          rm -f conftest.$ac_objext
17706 if { (ac_try="$ac_compile"
17707 case "(($ac_try" in
17708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709   *) ac_try_echo=$ac_try;;
17710 esac
17711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17712 $as_echo "$ac_try_echo") >&5
17713   (eval "$ac_compile") 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } && {
17720          test -z "$ac_c_werror_flag" ||
17721          test ! -s conftest.err
17722        } && test -s conftest.$ac_objext; then
17723   break
17724 else
17725   $as_echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728
17729 fi
17730
17731 rm -f core conftest.err conftest.$ac_objext
17732          CC="$CC -n32"
17733          rm -f conftest.$ac_objext
17734 if { (ac_try="$ac_compile"
17735 case "(($ac_try" in
17736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737   *) ac_try_echo=$ac_try;;
17738 esac
17739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17740 $as_echo "$ac_try_echo") >&5
17741   (eval "$ac_compile") 2>conftest.er1
17742   ac_status=$?
17743   grep -v '^ *+' conftest.er1 >conftest.err
17744   rm -f conftest.er1
17745   cat conftest.err >&5
17746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); } && {
17748          test -z "$ac_c_werror_flag" ||
17749          test ! -s conftest.err
17750        } && test -s conftest.$ac_objext; then
17751   ac_cv_sys_largefile_CC=' -n32'; break
17752 else
17753   $as_echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17755
17756
17757 fi
17758
17759 rm -f core conftest.err conftest.$ac_objext
17760          break
17761        done
17762        CC=$ac_save_CC
17763        rm -f conftest.$ac_ext
17764     fi
17765 fi
17766 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17767 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17768   if test "$ac_cv_sys_largefile_CC" != no; then
17769     CC=$CC$ac_cv_sys_largefile_CC
17770   fi
17771
17772   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17773 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17774 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17775   $as_echo_n "(cached) " >&6
17776 else
17777   while :; do
17778   cat >conftest.$ac_ext <<_ACEOF
17779 /* confdefs.h.  */
17780 _ACEOF
17781 cat confdefs.h >>conftest.$ac_ext
17782 cat >>conftest.$ac_ext <<_ACEOF
17783 /* end confdefs.h.  */
17784 #include <sys/types.h>
17785  /* Check that off_t can represent 2**63 - 1 correctly.
17786     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17787     since some C++ compilers masquerading as C compilers
17788     incorrectly reject 9223372036854775807.  */
17789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17790   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17791                        && LARGE_OFF_T % 2147483647 == 1)
17792                       ? 1 : -1];
17793 int
17794 main ()
17795 {
17796
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext
17802 if { (ac_try="$ac_compile"
17803 case "(($ac_try" in
17804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805   *) ac_try_echo=$ac_try;;
17806 esac
17807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17808 $as_echo "$ac_try_echo") >&5
17809   (eval "$ac_compile") 2>conftest.er1
17810   ac_status=$?
17811   grep -v '^ *+' conftest.er1 >conftest.err
17812   rm -f conftest.er1
17813   cat conftest.err >&5
17814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); } && {
17816          test -z "$ac_c_werror_flag" ||
17817          test ! -s conftest.err
17818        } && test -s conftest.$ac_objext; then
17819   ac_cv_sys_file_offset_bits=no; break
17820 else
17821   $as_echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17823
17824
17825 fi
17826
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828   cat >conftest.$ac_ext <<_ACEOF
17829 /* confdefs.h.  */
17830 _ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h.  */
17834 #define _FILE_OFFSET_BITS 64
17835 #include <sys/types.h>
17836  /* Check that off_t can represent 2**63 - 1 correctly.
17837     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17838     since some C++ compilers masquerading as C compilers
17839     incorrectly reject 9223372036854775807.  */
17840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17841   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17842                        && LARGE_OFF_T % 2147483647 == 1)
17843                       ? 1 : -1];
17844 int
17845 main ()
17846 {
17847
17848   ;
17849   return 0;
17850 }
17851 _ACEOF
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856   *) ac_try_echo=$ac_try;;
17857 esac
17858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17859 $as_echo "$ac_try_echo") >&5
17860   (eval "$ac_compile") 2>conftest.er1
17861   ac_status=$?
17862   grep -v '^ *+' conftest.er1 >conftest.err
17863   rm -f conftest.er1
17864   cat conftest.err >&5
17865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); } && {
17867          test -z "$ac_c_werror_flag" ||
17868          test ! -s conftest.err
17869        } && test -s conftest.$ac_objext; then
17870   ac_cv_sys_file_offset_bits=64; break
17871 else
17872   $as_echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875
17876 fi
17877
17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17879   ac_cv_sys_file_offset_bits=unknown
17880   break
17881 done
17882 fi
17883 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17884 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17885 case $ac_cv_sys_file_offset_bits in #(
17886   no | unknown) ;;
17887   *)
17888 cat >>confdefs.h <<_ACEOF
17889 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17890 _ACEOF
17891 ;;
17892 esac
17893 rm -rf conftest*
17894   if test $ac_cv_sys_file_offset_bits = unknown; then
17895     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17896 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17897 if test "${ac_cv_sys_large_files+set}" = set; then
17898   $as_echo_n "(cached) " >&6
17899 else
17900   while :; do
17901   cat >conftest.$ac_ext <<_ACEOF
17902 /* confdefs.h.  */
17903 _ACEOF
17904 cat confdefs.h >>conftest.$ac_ext
17905 cat >>conftest.$ac_ext <<_ACEOF
17906 /* end confdefs.h.  */
17907 #include <sys/types.h>
17908  /* Check that off_t can represent 2**63 - 1 correctly.
17909     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17910     since some C++ compilers masquerading as C compilers
17911     incorrectly reject 9223372036854775807.  */
17912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17913   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17914                        && LARGE_OFF_T % 2147483647 == 1)
17915                       ? 1 : -1];
17916 int
17917 main ()
17918 {
17919
17920   ;
17921   return 0;
17922 }
17923 _ACEOF
17924 rm -f conftest.$ac_objext
17925 if { (ac_try="$ac_compile"
17926 case "(($ac_try" in
17927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928   *) ac_try_echo=$ac_try;;
17929 esac
17930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17931 $as_echo "$ac_try_echo") >&5
17932   (eval "$ac_compile") 2>conftest.er1
17933   ac_status=$?
17934   grep -v '^ *+' conftest.er1 >conftest.err
17935   rm -f conftest.er1
17936   cat conftest.err >&5
17937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938   (exit $ac_status); } && {
17939          test -z "$ac_c_werror_flag" ||
17940          test ! -s conftest.err
17941        } && test -s conftest.$ac_objext; then
17942   ac_cv_sys_large_files=no; break
17943 else
17944   $as_echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17946
17947
17948 fi
17949
17950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17951   cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957 #define _LARGE_FILES 1
17958 #include <sys/types.h>
17959  /* Check that off_t can represent 2**63 - 1 correctly.
17960     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17961     since some C++ compilers masquerading as C compilers
17962     incorrectly reject 9223372036854775807.  */
17963 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17964   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17965                        && LARGE_OFF_T % 2147483647 == 1)
17966                       ? 1 : -1];
17967 int
17968 main ()
17969 {
17970
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17979   *) ac_try_echo=$ac_try;;
17980 esac
17981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17982 $as_echo "$ac_try_echo") >&5
17983   (eval "$ac_compile") 2>conftest.er1
17984   ac_status=$?
17985   grep -v '^ *+' conftest.er1 >conftest.err
17986   rm -f conftest.er1
17987   cat conftest.err >&5
17988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); } && {
17990          test -z "$ac_c_werror_flag" ||
17991          test ! -s conftest.err
17992        } && test -s conftest.$ac_objext; then
17993   ac_cv_sys_large_files=1; break
17994 else
17995   $as_echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17997
17998
17999 fi
18000
18001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18002   ac_cv_sys_large_files=unknown
18003   break
18004 done
18005 fi
18006 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18007 $as_echo "$ac_cv_sys_large_files" >&6; }
18008 case $ac_cv_sys_large_files in #(
18009   no | unknown) ;;
18010   *)
18011 cat >>confdefs.h <<_ACEOF
18012 #define _LARGE_FILES $ac_cv_sys_large_files
18013 _ACEOF
18014 ;;
18015 esac
18016 rm -rf conftest*
18017   fi
18018 fi
18019
18020
18021 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18022 # The cast to long int works around a bug in the HP C Compiler
18023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18025 # This bug is HP SR number 8606223364.
18026 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18027 $as_echo_n "checking size of off_t... " >&6; }
18028 if test "${ac_cv_sizeof_off_t+set}" = set; then
18029   $as_echo_n "(cached) " >&6
18030 else
18031   if test "$cross_compiling" = yes; then
18032   # Depending upon the size, compute the lo and hi bounds.
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h.  */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h.  */
18039 $ac_includes_default
18040 int
18041 main ()
18042 {
18043 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18044 test_array [0] = 0
18045
18046   ;
18047   return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest.$ac_objext
18051 if { (ac_try="$ac_compile"
18052 case "(($ac_try" in
18053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054   *) ac_try_echo=$ac_try;;
18055 esac
18056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18057 $as_echo "$ac_try_echo") >&5
18058   (eval "$ac_compile") 2>conftest.er1
18059   ac_status=$?
18060   grep -v '^ *+' conftest.er1 >conftest.err
18061   rm -f conftest.er1
18062   cat conftest.err >&5
18063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); } && {
18065          test -z "$ac_c_werror_flag" ||
18066          test ! -s conftest.err
18067        } && test -s conftest.$ac_objext; then
18068   ac_lo=0 ac_mid=0
18069   while :; do
18070     cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076 $ac_includes_default
18077 int
18078 main ()
18079 {
18080 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18081 test_array [0] = 0
18082
18083   ;
18084   return 0;
18085 }
18086 _ACEOF
18087 rm -f conftest.$ac_objext
18088 if { (ac_try="$ac_compile"
18089 case "(($ac_try" in
18090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091   *) ac_try_echo=$ac_try;;
18092 esac
18093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18094 $as_echo "$ac_try_echo") >&5
18095   (eval "$ac_compile") 2>conftest.er1
18096   ac_status=$?
18097   grep -v '^ *+' conftest.er1 >conftest.err
18098   rm -f conftest.er1
18099   cat conftest.err >&5
18100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } && {
18102          test -z "$ac_c_werror_flag" ||
18103          test ! -s conftest.err
18104        } && test -s conftest.$ac_objext; then
18105   ac_hi=$ac_mid; break
18106 else
18107   $as_echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18109
18110         ac_lo=`expr $ac_mid + 1`
18111                         if test $ac_lo -le $ac_mid; then
18112                           ac_lo= ac_hi=
18113                           break
18114                         fi
18115                         ac_mid=`expr 2 '*' $ac_mid + 1`
18116 fi
18117
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119   done
18120 else
18121   $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18123
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))) < 0)];
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=-1 ac_mid=-1
18160   while :; do
18161     cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h.  */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h.  */
18167 $ac_includes_default
18168 int
18169 main ()
18170 {
18171 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18172 test_array [0] = 0
18173
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext
18179 if { (ac_try="$ac_compile"
18180 case "(($ac_try" in
18181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182   *) ac_try_echo=$ac_try;;
18183 esac
18184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18185 $as_echo "$ac_try_echo") >&5
18186   (eval "$ac_compile") 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } && {
18193          test -z "$ac_c_werror_flag" ||
18194          test ! -s conftest.err
18195        } && test -s conftest.$ac_objext; then
18196   ac_lo=$ac_mid; break
18197 else
18198   $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18200
18201         ac_hi=`expr '(' $ac_mid ')' - 1`
18202                         if test $ac_mid -le $ac_hi; then
18203                           ac_lo= ac_hi=
18204                           break
18205                         fi
18206                         ac_mid=`expr 2 '*' $ac_mid`
18207 fi
18208
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210   done
18211 else
18212   $as_echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215         ac_lo= ac_hi=
18216 fi
18217
18218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18219 fi
18220
18221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18222 # Binary search between lo and hi bounds.
18223 while test "x$ac_lo" != "x$ac_hi"; do
18224   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18225   cat >conftest.$ac_ext <<_ACEOF
18226 /* confdefs.h.  */
18227 _ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h.  */
18231 $ac_includes_default
18232 int
18233 main ()
18234 {
18235 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18236 test_array [0] = 0
18237
18238   ;
18239   return 0;
18240 }
18241 _ACEOF
18242 rm -f conftest.$ac_objext
18243 if { (ac_try="$ac_compile"
18244 case "(($ac_try" in
18245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246   *) ac_try_echo=$ac_try;;
18247 esac
18248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18249 $as_echo "$ac_try_echo") >&5
18250   (eval "$ac_compile") 2>conftest.er1
18251   ac_status=$?
18252   grep -v '^ *+' conftest.er1 >conftest.err
18253   rm -f conftest.er1
18254   cat conftest.err >&5
18255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); } && {
18257          test -z "$ac_c_werror_flag" ||
18258          test ! -s conftest.err
18259        } && test -s conftest.$ac_objext; then
18260   ac_hi=$ac_mid
18261 else
18262   $as_echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265         ac_lo=`expr '(' $ac_mid ')' + 1`
18266 fi
18267
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18269 done
18270 case $ac_lo in
18271 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18272 '') if test "$ac_cv_type_off_t" = yes; then
18273      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18275 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18276 See \`config.log' for more details." >&5
18277 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18278 See \`config.log' for more details." >&2;}
18279    { (exit 77); exit 77; }; }; }
18280    else
18281      ac_cv_sizeof_off_t=0
18282    fi ;;
18283 esac
18284 else
18285   cat >conftest.$ac_ext <<_ACEOF
18286 /* confdefs.h.  */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h.  */
18291 $ac_includes_default
18292 static long int longval () { return (long int) (sizeof (off_t)); }
18293 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18294 #include <stdio.h>
18295 #include <stdlib.h>
18296 int
18297 main ()
18298 {
18299
18300   FILE *f = fopen ("conftest.val", "w");
18301   if (! f)
18302     return 1;
18303   if (((long int) (sizeof (off_t))) < 0)
18304     {
18305       long int i = longval ();
18306       if (i != ((long int) (sizeof (off_t))))
18307         return 1;
18308       fprintf (f, "%ld", i);
18309     }
18310   else
18311     {
18312       unsigned long int i = ulongval ();
18313       if (i != ((long int) (sizeof (off_t))))
18314         return 1;
18315       fprintf (f, "%lu", i);
18316     }
18317   /* Do not output a trailing newline, as this causes \r\n confusion
18318      on some platforms.  */
18319   return ferror (f) || fclose (f) != 0;
18320
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329   *) ac_try_echo=$ac_try;;
18330 esac
18331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18332 $as_echo "$ac_try_echo") >&5
18333   (eval "$ac_link") 2>&5
18334   ac_status=$?
18335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18337   { (case "(($ac_try" in
18338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339   *) ac_try_echo=$ac_try;;
18340 esac
18341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18342 $as_echo "$ac_try_echo") >&5
18343   (eval "$ac_try") 2>&5
18344   ac_status=$?
18345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; }; then
18347   ac_cv_sizeof_off_t=`cat conftest.val`
18348 else
18349   $as_echo "$as_me: program exited with status $ac_status" >&5
18350 $as_echo "$as_me: failed program was:" >&5
18351 sed 's/^/| /' conftest.$ac_ext >&5
18352
18353 ( exit $ac_status )
18354 if test "$ac_cv_type_off_t" = yes; then
18355      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18357 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18358 See \`config.log' for more details." >&5
18359 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18360 See \`config.log' for more details." >&2;}
18361    { (exit 77); exit 77; }; }; }
18362    else
18363      ac_cv_sizeof_off_t=0
18364    fi
18365 fi
18366 rm -rf conftest.dSYM
18367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18368 fi
18369 rm -f conftest.val
18370 fi
18371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18372 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18373
18374
18375
18376 cat >>confdefs.h <<_ACEOF
18377 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18378 _ACEOF
18379
18380
18381
18382 # If we don't have largefile support, can't handle segsize >= 2GB.
18383 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18384    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18385 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18386    { (exit 1); exit 1; }; }
18387 fi
18388
18389
18390 ##
18391 ## Functions, global variables
18392 ##
18393
18394 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18395 $as_echo_n "checking for int timezone... " >&6; }
18396 if test "${pgac_cv_var_int_timezone+set}" = set; then
18397   $as_echo_n "(cached) " >&6
18398 else
18399   cat >conftest.$ac_ext <<_ACEOF
18400 /* confdefs.h.  */
18401 _ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h.  */
18405 #include <time.h>
18406 int res;
18407 int
18408 main ()
18409 {
18410 #ifndef __CYGWIN__
18411 res = timezone / 60;
18412 #else
18413 res = _timezone / 60;
18414 #endif
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18426 $as_echo "$ac_try_echo") >&5
18427   (eval "$ac_link") 2>conftest.er1
18428   ac_status=$?
18429   grep -v '^ *+' conftest.er1 >conftest.err
18430   rm -f conftest.er1
18431   cat conftest.err >&5
18432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); } && {
18434          test -z "$ac_c_werror_flag" ||
18435          test ! -s conftest.err
18436        } && test -s conftest$ac_exeext && {
18437          test "$cross_compiling" = yes ||
18438          $as_test_x conftest$ac_exeext
18439        }; then
18440   pgac_cv_var_int_timezone=yes
18441 else
18442   $as_echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445         pgac_cv_var_int_timezone=no
18446 fi
18447
18448 rm -rf conftest.dSYM
18449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18450       conftest$ac_exeext conftest.$ac_ext
18451 fi
18452 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18453 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18454 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18455
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_INT_TIMEZONE /**/
18458 _ACEOF
18459
18460 fi
18461 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18462 $as_echo_n "checking types of arguments for accept()... " >&6; }
18463  if test "${ac_cv_func_accept_return+set}" = set; then
18464   $as_echo_n "(cached) " >&6
18465 else
18466    if test "${ac_cv_func_accept_arg1+set}" = set; then
18467   $as_echo_n "(cached) " >&6
18468 else
18469     if test "${ac_cv_func_accept_arg2+set}" = set; then
18470   $as_echo_n "(cached) " >&6
18471 else
18472      if test "${ac_cv_func_accept_arg3+set}" = set; then
18473   $as_echo_n "(cached) " >&6
18474 else
18475       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET'; do
18476       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
18477        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18478         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18479          cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485 #ifdef HAVE_SYS_TYPES_H
18486 #include <sys/types.h>
18487 #endif
18488 #ifdef HAVE_SYS_SOCKET_H
18489 #include <sys/socket.h>
18490 #endif
18491 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18492 int
18493 main ()
18494 {
18495
18496   ;
18497   return 0;
18498 }
18499 _ACEOF
18500 rm -f conftest.$ac_objext
18501 if { (ac_try="$ac_compile"
18502 case "(($ac_try" in
18503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504   *) ac_try_echo=$ac_try;;
18505 esac
18506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18507 $as_echo "$ac_try_echo") >&5
18508   (eval "$ac_compile") 2>conftest.er1
18509   ac_status=$?
18510   grep -v '^ *+' conftest.er1 >conftest.err
18511   rm -f conftest.er1
18512   cat conftest.err >&5
18513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); } && {
18515          test -z "$ac_c_werror_flag" ||
18516          test ! -s conftest.err
18517        } && test -s conftest.$ac_objext; then
18518   ac_not_found=no; break 4
18519 else
18520   $as_echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18522
18523         ac_not_found=yes
18524 fi
18525
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18527        done
18528       done
18529      done
18530     done
18531     if test "$ac_not_found" = yes; then
18532       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18533 $as_echo "$as_me: error: could not determine argument types" >&2;}
18534    { (exit 1); exit 1; }; }
18535     fi
18536     if test "$ac_cv_func_accept_arg3" = "void"; then
18537       ac_cv_func_accept_arg3=int
18538     fi
18539
18540 fi
18541
18542 fi
18543
18544 fi
18545
18546 fi
18547  { $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
18548 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18549
18550 cat >>confdefs.h <<_ACEOF
18551 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18552 _ACEOF
18553
18554
18555 cat >>confdefs.h <<_ACEOF
18556 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18557 _ACEOF
18558
18559
18560 cat >>confdefs.h <<_ACEOF
18561 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18562 _ACEOF
18563
18564
18565 cat >>confdefs.h <<_ACEOF
18566 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18567 _ACEOF
18568
18569
18570 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18571 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18572 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18573   $as_echo_n "(cached) " >&6
18574 else
18575   cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h.  */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h.  */
18581 #include <sys/time.h>
18582 int
18583 main ()
18584 {
18585 struct timeval *tp;
18586 struct timezone *tzp;
18587 gettimeofday(tp,tzp);
18588   ;
18589   return 0;
18590 }
18591 _ACEOF
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18599 $as_echo "$ac_try_echo") >&5
18600   (eval "$ac_compile") 2>conftest.er1
18601   ac_status=$?
18602   grep -v '^ *+' conftest.er1 >conftest.err
18603   rm -f conftest.er1
18604   cat conftest.err >&5
18605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); } && {
18607          test -z "$ac_c_werror_flag" ||
18608          test ! -s conftest.err
18609        } && test -s conftest.$ac_objext; then
18610   pgac_cv_func_gettimeofday_1arg=no
18611 else
18612   $as_echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18614
18615         pgac_cv_func_gettimeofday_1arg=yes
18616 fi
18617
18618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18619 fi
18620 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18621 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18622 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18623
18624 cat >>confdefs.h <<\_ACEOF
18625 #define GETTIMEOFDAY_1ARG /**/
18626 _ACEOF
18627
18628 fi
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655 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
18656 do
18657 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18658 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18659 $as_echo_n "checking for $ac_func... " >&6; }
18660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18661   $as_echo_n "(cached) " >&6
18662 else
18663   cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h.  */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h.  */
18669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18671 #define $ac_func innocuous_$ac_func
18672
18673 /* System header to define __stub macros and hopefully few prototypes,
18674     which can conflict with char $ac_func (); below.
18675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18676     <limits.h> exists even on freestanding compilers.  */
18677
18678 #ifdef __STDC__
18679 # include <limits.h>
18680 #else
18681 # include <assert.h>
18682 #endif
18683
18684 #undef $ac_func
18685
18686 /* Override any GCC internal prototype to avoid an error.
18687    Use char because int might match the return type of a GCC
18688    builtin and then its argument prototype would still apply.  */
18689 #ifdef __cplusplus
18690 extern "C"
18691 #endif
18692 char $ac_func ();
18693 /* The GNU C library defines this for functions which it implements
18694     to always fail with ENOSYS.  Some functions are actually named
18695     something starting with __ and the normal name is an alias.  */
18696 #if defined __stub_$ac_func || defined __stub___$ac_func
18697 choke me
18698 #endif
18699
18700 int
18701 main ()
18702 {
18703 return $ac_func ();
18704   ;
18705   return 0;
18706 }
18707 _ACEOF
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (ac_try="$ac_link"
18710 case "(($ac_try" in
18711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712   *) ac_try_echo=$ac_try;;
18713 esac
18714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18715 $as_echo "$ac_try_echo") >&5
18716   (eval "$ac_link") 2>conftest.er1
18717   ac_status=$?
18718   grep -v '^ *+' conftest.er1 >conftest.err
18719   rm -f conftest.er1
18720   cat conftest.err >&5
18721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722   (exit $ac_status); } && {
18723          test -z "$ac_c_werror_flag" ||
18724          test ! -s conftest.err
18725        } && test -s conftest$ac_exeext && {
18726          test "$cross_compiling" = yes ||
18727          $as_test_x conftest$ac_exeext
18728        }; then
18729   eval "$as_ac_var=yes"
18730 else
18731   $as_echo "$as_me: failed program was:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18733
18734         eval "$as_ac_var=no"
18735 fi
18736
18737 rm -rf conftest.dSYM
18738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18739       conftest$ac_exeext conftest.$ac_ext
18740 fi
18741 ac_res=`eval 'as_val=${'$as_ac_var'}
18742                  $as_echo "$as_val"'`
18743                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18744 $as_echo "$ac_res" >&6; }
18745 as_val=`eval 'as_val=${'$as_ac_var'}
18746                  $as_echo "$as_val"'`
18747    if test "x$as_val" = x""yes; then
18748   cat >>confdefs.h <<_ACEOF
18749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18750 _ACEOF
18751
18752 fi
18753 done
18754
18755
18756
18757 for ac_func in fseeko
18758 do
18759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18760 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18761 $as_echo_n "checking for $ac_func... " >&6; }
18762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18763   $as_echo_n "(cached) " >&6
18764 else
18765   cat >conftest.$ac_ext <<_ACEOF
18766 /* confdefs.h.  */
18767 _ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h.  */
18771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18773 #define $ac_func innocuous_$ac_func
18774
18775 /* System header to define __stub macros and hopefully few prototypes,
18776     which can conflict with char $ac_func (); below.
18777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18778     <limits.h> exists even on freestanding compilers.  */
18779
18780 #ifdef __STDC__
18781 # include <limits.h>
18782 #else
18783 # include <assert.h>
18784 #endif
18785
18786 #undef $ac_func
18787
18788 /* Override any GCC internal prototype to avoid an error.
18789    Use char because int might match the return type of a GCC
18790    builtin and then its argument prototype would still apply.  */
18791 #ifdef __cplusplus
18792 extern "C"
18793 #endif
18794 char $ac_func ();
18795 /* The GNU C library defines this for functions which it implements
18796     to always fail with ENOSYS.  Some functions are actually named
18797     something starting with __ and the normal name is an alias.  */
18798 #if defined __stub_$ac_func || defined __stub___$ac_func
18799 choke me
18800 #endif
18801
18802 int
18803 main ()
18804 {
18805 return $ac_func ();
18806   ;
18807   return 0;
18808 }
18809 _ACEOF
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814   *) ac_try_echo=$ac_try;;
18815 esac
18816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18817 $as_echo "$ac_try_echo") >&5
18818   (eval "$ac_link") 2>conftest.er1
18819   ac_status=$?
18820   grep -v '^ *+' conftest.er1 >conftest.err
18821   rm -f conftest.er1
18822   cat conftest.err >&5
18823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); } && {
18825          test -z "$ac_c_werror_flag" ||
18826          test ! -s conftest.err
18827        } && test -s conftest$ac_exeext && {
18828          test "$cross_compiling" = yes ||
18829          $as_test_x conftest$ac_exeext
18830        }; then
18831   eval "$as_ac_var=yes"
18832 else
18833   $as_echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18835
18836         eval "$as_ac_var=no"
18837 fi
18838
18839 rm -rf conftest.dSYM
18840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18841       conftest$ac_exeext conftest.$ac_ext
18842 fi
18843 ac_res=`eval 'as_val=${'$as_ac_var'}
18844                  $as_echo "$as_val"'`
18845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18846 $as_echo "$ac_res" >&6; }
18847 as_val=`eval 'as_val=${'$as_ac_var'}
18848                  $as_echo "$as_val"'`
18849    if test "x$as_val" = x""yes; then
18850   cat >>confdefs.h <<_ACEOF
18851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18852 _ACEOF
18853
18854 else
18855   case " $LIBOBJS " in
18856   *" $ac_func.$ac_objext "* ) ;;
18857   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18858  ;;
18859 esac
18860
18861 fi
18862 done
18863
18864
18865 case $host_os in
18866         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18867         # Mingw uses macros to access Win32 API calls
18868         bsdi*|netbsd*|mingw*)
18869
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE_FSEEKO 1
18872 _ACEOF
18873
18874                 ac_cv_func_fseeko=yes;;
18875         *)
18876                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18877 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18878 if test "${ac_cv_sys_largefile_source+set}" = set; then
18879   $as_echo_n "(cached) " >&6
18880 else
18881   while :; do
18882   cat >conftest.$ac_ext <<_ACEOF
18883 /* confdefs.h.  */
18884 _ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h.  */
18888 #include <sys/types.h> /* for off_t */
18889      #include <stdio.h>
18890 int
18891 main ()
18892 {
18893 int (*fp) (FILE *, off_t, int) = fseeko;
18894      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18895   ;
18896   return 0;
18897 }
18898 _ACEOF
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903   *) ac_try_echo=$ac_try;;
18904 esac
18905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18906 $as_echo "$ac_try_echo") >&5
18907   (eval "$ac_link") 2>conftest.er1
18908   ac_status=$?
18909   grep -v '^ *+' conftest.er1 >conftest.err
18910   rm -f conftest.er1
18911   cat conftest.err >&5
18912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); } && {
18914          test -z "$ac_c_werror_flag" ||
18915          test ! -s conftest.err
18916        } && test -s conftest$ac_exeext && {
18917          test "$cross_compiling" = yes ||
18918          $as_test_x conftest$ac_exeext
18919        }; then
18920   ac_cv_sys_largefile_source=no; break
18921 else
18922   $as_echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925
18926 fi
18927
18928 rm -rf conftest.dSYM
18929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18930       conftest$ac_exeext conftest.$ac_ext
18931   cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18937 #define _LARGEFILE_SOURCE 1
18938 #include <sys/types.h> /* for off_t */
18939      #include <stdio.h>
18940 int
18941 main ()
18942 {
18943 int (*fp) (FILE *, off_t, int) = fseeko;
18944      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18956 $as_echo "$ac_try_echo") >&5
18957   (eval "$ac_link") 2>conftest.er1
18958   ac_status=$?
18959   grep -v '^ *+' conftest.er1 >conftest.err
18960   rm -f conftest.er1
18961   cat conftest.err >&5
18962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); } && {
18964          test -z "$ac_c_werror_flag" ||
18965          test ! -s conftest.err
18966        } && test -s conftest$ac_exeext && {
18967          test "$cross_compiling" = yes ||
18968          $as_test_x conftest$ac_exeext
18969        }; then
18970   ac_cv_sys_largefile_source=1; break
18971 else
18972   $as_echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18974
18975
18976 fi
18977
18978 rm -rf conftest.dSYM
18979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18980       conftest$ac_exeext conftest.$ac_ext
18981   ac_cv_sys_largefile_source=unknown
18982   break
18983 done
18984 fi
18985 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18986 $as_echo "$ac_cv_sys_largefile_source" >&6; }
18987 case $ac_cv_sys_largefile_source in #(
18988   no | unknown) ;;
18989   *)
18990 cat >>confdefs.h <<_ACEOF
18991 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18992 _ACEOF
18993 ;;
18994 esac
18995 rm -rf conftest*
18996
18997 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18998 # in glibc 2.1.3, but that breaks too many other things.
18999 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19000 if test $ac_cv_sys_largefile_source != unknown; then
19001
19002 cat >>confdefs.h <<\_ACEOF
19003 #define HAVE_FSEEKO 1
19004 _ACEOF
19005
19006 fi
19007 ;;
19008 esac
19009
19010 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19011 # by calling it, 2009-04-02
19012 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19013 if test "$PORTNAME" != "solaris"; then
19014
19015 for ac_func in posix_fadvise
19016 do
19017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19018 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19019 $as_echo_n "checking for $ac_func... " >&6; }
19020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19021   $as_echo_n "(cached) " >&6
19022 else
19023   cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19031 #define $ac_func innocuous_$ac_func
19032
19033 /* System header to define __stub macros and hopefully few prototypes,
19034     which can conflict with char $ac_func (); below.
19035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19036     <limits.h> exists even on freestanding compilers.  */
19037
19038 #ifdef __STDC__
19039 # include <limits.h>
19040 #else
19041 # include <assert.h>
19042 #endif
19043
19044 #undef $ac_func
19045
19046 /* Override any GCC internal prototype to avoid an error.
19047    Use char because int might match the return type of a GCC
19048    builtin and then its argument prototype would still apply.  */
19049 #ifdef __cplusplus
19050 extern "C"
19051 #endif
19052 char $ac_func ();
19053 /* The GNU C library defines this for functions which it implements
19054     to always fail with ENOSYS.  Some functions are actually named
19055     something starting with __ and the normal name is an alias.  */
19056 #if defined __stub_$ac_func || defined __stub___$ac_func
19057 choke me
19058 #endif
19059
19060 int
19061 main ()
19062 {
19063 return $ac_func ();
19064   ;
19065   return 0;
19066 }
19067 _ACEOF
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072   *) ac_try_echo=$ac_try;;
19073 esac
19074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19075 $as_echo "$ac_try_echo") >&5
19076   (eval "$ac_link") 2>conftest.er1
19077   ac_status=$?
19078   grep -v '^ *+' conftest.er1 >conftest.err
19079   rm -f conftest.er1
19080   cat conftest.err >&5
19081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082   (exit $ac_status); } && {
19083          test -z "$ac_c_werror_flag" ||
19084          test ! -s conftest.err
19085        } && test -s conftest$ac_exeext && {
19086          test "$cross_compiling" = yes ||
19087          $as_test_x conftest$ac_exeext
19088        }; then
19089   eval "$as_ac_var=yes"
19090 else
19091   $as_echo "$as_me: failed program was:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19093
19094         eval "$as_ac_var=no"
19095 fi
19096
19097 rm -rf conftest.dSYM
19098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19099       conftest$ac_exeext conftest.$ac_ext
19100 fi
19101 ac_res=`eval 'as_val=${'$as_ac_var'}
19102                  $as_echo "$as_val"'`
19103                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19104 $as_echo "$ac_res" >&6; }
19105 as_val=`eval 'as_val=${'$as_ac_var'}
19106                  $as_echo "$as_val"'`
19107    if test "x$as_val" = x""yes; then
19108   cat >>confdefs.h <<_ACEOF
19109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19110 _ACEOF
19111
19112 fi
19113 done
19114
19115 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19116 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19117 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19118   $as_echo_n "(cached) " >&6
19119 else
19120   cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h.  */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h.  */
19126 #include <fcntl.h>
19127
19128 int
19129 main ()
19130 {
19131 #ifndef posix_fadvise
19132   (void) posix_fadvise;
19133 #endif
19134
19135   ;
19136   return 0;
19137 }
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143   *) ac_try_echo=$ac_try;;
19144 esac
19145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19146 $as_echo "$ac_try_echo") >&5
19147   (eval "$ac_compile") 2>conftest.er1
19148   ac_status=$?
19149   grep -v '^ *+' conftest.er1 >conftest.err
19150   rm -f conftest.er1
19151   cat conftest.err >&5
19152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); } && {
19154          test -z "$ac_c_werror_flag" ||
19155          test ! -s conftest.err
19156        } && test -s conftest.$ac_objext; then
19157   ac_cv_have_decl_posix_fadvise=yes
19158 else
19159   $as_echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19161
19162         ac_cv_have_decl_posix_fadvise=no
19163 fi
19164
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166 fi
19167 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19168 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19169 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19170
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_DECL_POSIX_FADVISE 1
19173 _ACEOF
19174
19175
19176 else
19177   cat >>confdefs.h <<_ACEOF
19178 #define HAVE_DECL_POSIX_FADVISE 0
19179 _ACEOF
19180
19181
19182 fi
19183
19184
19185 fi
19186
19187 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19188 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19189 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19190   $as_echo_n "(cached) " >&6
19191 else
19192   cat >conftest.$ac_ext <<_ACEOF
19193 /* confdefs.h.  */
19194 _ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h.  */
19198 #include <unistd.h>
19199
19200 int
19201 main ()
19202 {
19203 #ifndef fdatasync
19204   (void) fdatasync;
19205 #endif
19206
19207   ;
19208   return 0;
19209 }
19210 _ACEOF
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215   *) ac_try_echo=$ac_try;;
19216 esac
19217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19218 $as_echo "$ac_try_echo") >&5
19219   (eval "$ac_compile") 2>conftest.er1
19220   ac_status=$?
19221   grep -v '^ *+' conftest.er1 >conftest.err
19222   rm -f conftest.er1
19223   cat conftest.err >&5
19224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225   (exit $ac_status); } && {
19226          test -z "$ac_c_werror_flag" ||
19227          test ! -s conftest.err
19228        } && test -s conftest.$ac_objext; then
19229   ac_cv_have_decl_fdatasync=yes
19230 else
19231   $as_echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19233
19234         ac_cv_have_decl_fdatasync=no
19235 fi
19236
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19238 fi
19239 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19240 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19241 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19242
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_DECL_FDATASYNC 1
19245 _ACEOF
19246
19247
19248 else
19249   cat >>confdefs.h <<_ACEOF
19250 #define HAVE_DECL_FDATASYNC 0
19251 _ACEOF
19252
19253
19254 fi
19255
19256
19257 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19258 $as_echo_n "checking whether strlcat is declared... " >&6; }
19259 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19260   $as_echo_n "(cached) " >&6
19261 else
19262   cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h.  */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h.  */
19268 $ac_includes_default
19269 int
19270 main ()
19271 {
19272 #ifndef strlcat
19273   (void) strlcat;
19274 #endif
19275
19276   ;
19277   return 0;
19278 }
19279 _ACEOF
19280 rm -f conftest.$ac_objext
19281 if { (ac_try="$ac_compile"
19282 case "(($ac_try" in
19283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284   *) ac_try_echo=$ac_try;;
19285 esac
19286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19287 $as_echo "$ac_try_echo") >&5
19288   (eval "$ac_compile") 2>conftest.er1
19289   ac_status=$?
19290   grep -v '^ *+' conftest.er1 >conftest.err
19291   rm -f conftest.er1
19292   cat conftest.err >&5
19293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294   (exit $ac_status); } && {
19295          test -z "$ac_c_werror_flag" ||
19296          test ! -s conftest.err
19297        } && test -s conftest.$ac_objext; then
19298   ac_cv_have_decl_strlcat=yes
19299 else
19300   $as_echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19302
19303         ac_cv_have_decl_strlcat=no
19304 fi
19305
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 fi
19308 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19309 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19310 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19311
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_DECL_STRLCAT 1
19314 _ACEOF
19315
19316
19317 else
19318   cat >>confdefs.h <<_ACEOF
19319 #define HAVE_DECL_STRLCAT 0
19320 _ACEOF
19321
19322
19323 fi
19324 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19325 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19326 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19327   $as_echo_n "(cached) " >&6
19328 else
19329   cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h.  */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h.  */
19335 $ac_includes_default
19336 int
19337 main ()
19338 {
19339 #ifndef strlcpy
19340   (void) strlcpy;
19341 #endif
19342
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext
19348 if { (ac_try="$ac_compile"
19349 case "(($ac_try" in
19350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351   *) ac_try_echo=$ac_try;;
19352 esac
19353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19354 $as_echo "$ac_try_echo") >&5
19355   (eval "$ac_compile") 2>conftest.er1
19356   ac_status=$?
19357   grep -v '^ *+' conftest.er1 >conftest.err
19358   rm -f conftest.er1
19359   cat conftest.err >&5
19360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); } && {
19362          test -z "$ac_c_werror_flag" ||
19363          test ! -s conftest.err
19364        } && test -s conftest.$ac_objext; then
19365   ac_cv_have_decl_strlcpy=yes
19366 else
19367   $as_echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370         ac_cv_have_decl_strlcpy=no
19371 fi
19372
19373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19374 fi
19375 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19376 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19377 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19378
19379 cat >>confdefs.h <<_ACEOF
19380 #define HAVE_DECL_STRLCPY 1
19381 _ACEOF
19382
19383
19384 else
19385   cat >>confdefs.h <<_ACEOF
19386 #define HAVE_DECL_STRLCPY 0
19387 _ACEOF
19388
19389
19390 fi
19391
19392
19393 # This is probably only present on Darwin, but may as well check always
19394 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19395 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19396 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19397   $as_echo_n "(cached) " >&6
19398 else
19399   cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h.  */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h.  */
19405 #include <fcntl.h>
19406
19407 int
19408 main ()
19409 {
19410 #ifndef F_FULLFSYNC
19411   (void) F_FULLFSYNC;
19412 #endif
19413
19414   ;
19415   return 0;
19416 }
19417 _ACEOF
19418 rm -f conftest.$ac_objext
19419 if { (ac_try="$ac_compile"
19420 case "(($ac_try" in
19421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422   *) ac_try_echo=$ac_try;;
19423 esac
19424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19425 $as_echo "$ac_try_echo") >&5
19426   (eval "$ac_compile") 2>conftest.er1
19427   ac_status=$?
19428   grep -v '^ *+' conftest.er1 >conftest.err
19429   rm -f conftest.er1
19430   cat conftest.err >&5
19431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); } && {
19433          test -z "$ac_c_werror_flag" ||
19434          test ! -s conftest.err
19435        } && test -s conftest.$ac_objext; then
19436   ac_cv_have_decl_F_FULLFSYNC=yes
19437 else
19438   $as_echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19440
19441         ac_cv_have_decl_F_FULLFSYNC=no
19442 fi
19443
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19445 fi
19446 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19447 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19448 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19449
19450 cat >>confdefs.h <<_ACEOF
19451 #define HAVE_DECL_F_FULLFSYNC 1
19452 _ACEOF
19453
19454
19455 else
19456   cat >>confdefs.h <<_ACEOF
19457 #define HAVE_DECL_F_FULLFSYNC 0
19458 _ACEOF
19459
19460
19461 fi
19462
19463
19464
19465 HAVE_IPV6=no
19466 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19467 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19468 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19469   $as_echo_n "(cached) " >&6
19470 else
19471   ac_cv_type_struct_sockaddr_in6=no
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h.  */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h.  */
19478 $ac_includes_default
19479 #include <netinet/in.h>
19480
19481 int
19482 main ()
19483 {
19484 if (sizeof (struct sockaddr_in6))
19485        return 0;
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494   *) ac_try_echo=$ac_try;;
19495 esac
19496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19497 $as_echo "$ac_try_echo") >&5
19498   (eval "$ac_compile") 2>conftest.er1
19499   ac_status=$?
19500   grep -v '^ *+' conftest.er1 >conftest.err
19501   rm -f conftest.er1
19502   cat conftest.err >&5
19503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); } && {
19505          test -z "$ac_c_werror_flag" ||
19506          test ! -s conftest.err
19507        } && test -s conftest.$ac_objext; then
19508   cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514 $ac_includes_default
19515 #include <netinet/in.h>
19516
19517 int
19518 main ()
19519 {
19520 if (sizeof ((struct sockaddr_in6)))
19521           return 0;
19522   ;
19523   return 0;
19524 }
19525 _ACEOF
19526 rm -f conftest.$ac_objext
19527 if { (ac_try="$ac_compile"
19528 case "(($ac_try" in
19529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530   *) ac_try_echo=$ac_try;;
19531 esac
19532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19533 $as_echo "$ac_try_echo") >&5
19534   (eval "$ac_compile") 2>conftest.er1
19535   ac_status=$?
19536   grep -v '^ *+' conftest.er1 >conftest.err
19537   rm -f conftest.er1
19538   cat conftest.err >&5
19539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); } && {
19541          test -z "$ac_c_werror_flag" ||
19542          test ! -s conftest.err
19543        } && test -s conftest.$ac_objext; then
19544   :
19545 else
19546   $as_echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549         ac_cv_type_struct_sockaddr_in6=yes
19550 fi
19551
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553 else
19554   $as_echo "$as_me: failed program was:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19556
19557
19558 fi
19559
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 fi
19562 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19563 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19564 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19565
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_IPV6 1
19568 _ACEOF
19569
19570          HAVE_IPV6=yes
19571 fi
19572
19573
19574
19575 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19576 $as_echo_n "checking for PS_STRINGS... " >&6; }
19577 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19578   $as_echo_n "(cached) " >&6
19579 else
19580   cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h.  */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h.  */
19586 #include <machine/vmparam.h>
19587 #include <sys/exec.h>
19588
19589 int
19590 main ()
19591 {
19592 PS_STRINGS->ps_nargvstr = 1;
19593 PS_STRINGS->ps_argvstr = "foo";
19594   ;
19595   return 0;
19596 }
19597 _ACEOF
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602   *) ac_try_echo=$ac_try;;
19603 esac
19604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19605 $as_echo "$ac_try_echo") >&5
19606   (eval "$ac_link") 2>conftest.er1
19607   ac_status=$?
19608   grep -v '^ *+' conftest.er1 >conftest.err
19609   rm -f conftest.er1
19610   cat conftest.err >&5
19611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); } && {
19613          test -z "$ac_c_werror_flag" ||
19614          test ! -s conftest.err
19615        } && test -s conftest$ac_exeext && {
19616          test "$cross_compiling" = yes ||
19617          $as_test_x conftest$ac_exeext
19618        }; then
19619   pgac_cv_var_PS_STRINGS=yes
19620 else
19621   $as_echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623
19624         pgac_cv_var_PS_STRINGS=no
19625 fi
19626
19627 rm -rf conftest.dSYM
19628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19629       conftest$ac_exeext conftest.$ac_ext
19630 fi
19631 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19632 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19633 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19634
19635 cat >>confdefs.h <<\_ACEOF
19636 #define HAVE_PS_STRINGS /**/
19637 _ACEOF
19638
19639 fi
19640
19641
19642 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19643 # is missing.  Yes, there are machines that have only one.  We may
19644 # also decide to use snprintf.c if snprintf() is present but does not
19645 # have all the features we need --- see below.
19646
19647 if test "$PORTNAME" = "win32"; then
19648   # Win32 gets snprintf.c built unconditionally.
19649   #
19650   # To properly translate all NLS languages strings, we must support the
19651   # *printf() %$ format, which allows *printf() arguments to be selected
19652   # by position in the translated string.
19653   #
19654   # libintl versions < 0.13 use the native *printf() functions, and Win32
19655   # *printf() doesn't understand %$, so we must use our /port versions,
19656   # which do understand %$. libintl versions >= 0.13 include their own
19657   # *printf versions on Win32.  The libintl 0.13 release note text is:
19658   #
19659   #   C format strings with positions, as they arise when a translator
19660   #   needs to reorder a sentence, are now supported on all platforms.
19661   #   On those few platforms (NetBSD and Woe32) for which the native
19662   #   printf()/fprintf()/... functions don't support such format
19663   #   strings, replacements are provided through <libintl.h>.
19664   #
19665   # We could use libintl >= 0.13's *printf() if we were sure that we had
19666   # a litint >= 0.13 at runtime, but seeing that there is no clean way
19667   # to guarantee that, it is best to just use our own, so we are sure to
19668   # get %$ support. In include/port.h we disable the *printf() macros
19669   # that might have been defined by libintl.
19670   #
19671   # We do this unconditionally whether NLS is used or not so we are sure
19672   # that all Win32 libraries and binaries behave the same.
19673   pgac_need_repl_snprintf=yes
19674 else
19675   pgac_need_repl_snprintf=no
19676
19677 for ac_func in snprintf
19678 do
19679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19680 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19681 $as_echo_n "checking for $ac_func... " >&6; }
19682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19683   $as_echo_n "(cached) " >&6
19684 else
19685   cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h.  */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h.  */
19691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19693 #define $ac_func innocuous_$ac_func
19694
19695 /* System header to define __stub macros and hopefully few prototypes,
19696     which can conflict with char $ac_func (); below.
19697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19698     <limits.h> exists even on freestanding compilers.  */
19699
19700 #ifdef __STDC__
19701 # include <limits.h>
19702 #else
19703 # include <assert.h>
19704 #endif
19705
19706 #undef $ac_func
19707
19708 /* Override any GCC internal prototype to avoid an error.
19709    Use char because int might match the return type of a GCC
19710    builtin and then its argument prototype would still apply.  */
19711 #ifdef __cplusplus
19712 extern "C"
19713 #endif
19714 char $ac_func ();
19715 /* The GNU C library defines this for functions which it implements
19716     to always fail with ENOSYS.  Some functions are actually named
19717     something starting with __ and the normal name is an alias.  */
19718 #if defined __stub_$ac_func || defined __stub___$ac_func
19719 choke me
19720 #endif
19721
19722 int
19723 main ()
19724 {
19725 return $ac_func ();
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734   *) ac_try_echo=$ac_try;;
19735 esac
19736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19737 $as_echo "$ac_try_echo") >&5
19738   (eval "$ac_link") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } && {
19745          test -z "$ac_c_werror_flag" ||
19746          test ! -s conftest.err
19747        } && test -s conftest$ac_exeext && {
19748          test "$cross_compiling" = yes ||
19749          $as_test_x conftest$ac_exeext
19750        }; then
19751   eval "$as_ac_var=yes"
19752 else
19753   $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756         eval "$as_ac_var=no"
19757 fi
19758
19759 rm -rf conftest.dSYM
19760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19761       conftest$ac_exeext conftest.$ac_ext
19762 fi
19763 ac_res=`eval 'as_val=${'$as_ac_var'}
19764                  $as_echo "$as_val"'`
19765                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19766 $as_echo "$ac_res" >&6; }
19767 as_val=`eval 'as_val=${'$as_ac_var'}
19768                  $as_echo "$as_val"'`
19769    if test "x$as_val" = x""yes; then
19770   cat >>confdefs.h <<_ACEOF
19771 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19772 _ACEOF
19773
19774 else
19775   pgac_need_repl_snprintf=yes
19776 fi
19777 done
19778
19779
19780 for ac_func in vsnprintf
19781 do
19782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19783 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19784 $as_echo_n "checking for $ac_func... " >&6; }
19785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19786   $as_echo_n "(cached) " >&6
19787 else
19788   cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19796 #define $ac_func innocuous_$ac_func
19797
19798 /* System header to define __stub macros and hopefully few prototypes,
19799     which can conflict with char $ac_func (); below.
19800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19801     <limits.h> exists even on freestanding compilers.  */
19802
19803 #ifdef __STDC__
19804 # include <limits.h>
19805 #else
19806 # include <assert.h>
19807 #endif
19808
19809 #undef $ac_func
19810
19811 /* Override any GCC internal prototype to avoid an error.
19812    Use char because int might match the return type of a GCC
19813    builtin and then its argument prototype would still apply.  */
19814 #ifdef __cplusplus
19815 extern "C"
19816 #endif
19817 char $ac_func ();
19818 /* The GNU C library defines this for functions which it implements
19819     to always fail with ENOSYS.  Some functions are actually named
19820     something starting with __ and the normal name is an alias.  */
19821 #if defined __stub_$ac_func || defined __stub___$ac_func
19822 choke me
19823 #endif
19824
19825 int
19826 main ()
19827 {
19828 return $ac_func ();
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841   (eval "$ac_link") 2>conftest.er1
19842   ac_status=$?
19843   grep -v '^ *+' conftest.er1 >conftest.err
19844   rm -f conftest.er1
19845   cat conftest.err >&5
19846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847   (exit $ac_status); } && {
19848          test -z "$ac_c_werror_flag" ||
19849          test ! -s conftest.err
19850        } && test -s conftest$ac_exeext && {
19851          test "$cross_compiling" = yes ||
19852          $as_test_x conftest$ac_exeext
19853        }; then
19854   eval "$as_ac_var=yes"
19855 else
19856   $as_echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19858
19859         eval "$as_ac_var=no"
19860 fi
19861
19862 rm -rf conftest.dSYM
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864       conftest$ac_exeext conftest.$ac_ext
19865 fi
19866 ac_res=`eval 'as_val=${'$as_ac_var'}
19867                  $as_echo "$as_val"'`
19868                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19869 $as_echo "$ac_res" >&6; }
19870 as_val=`eval 'as_val=${'$as_ac_var'}
19871                  $as_echo "$as_val"'`
19872    if test "x$as_val" = x""yes; then
19873   cat >>confdefs.h <<_ACEOF
19874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19875 _ACEOF
19876
19877 else
19878   pgac_need_repl_snprintf=yes
19879 fi
19880 done
19881
19882 fi
19883
19884
19885 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19886 # include/c.h will provide declarations.  Note this is a separate test
19887 # from whether the functions exist in the C library --- there are
19888 # systems that have the functions but don't bother to declare them :-(
19889
19890 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19891 $as_echo_n "checking whether snprintf is declared... " >&6; }
19892 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19893   $as_echo_n "(cached) " >&6
19894 else
19895   cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h.  */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h.  */
19901 $ac_includes_default
19902 int
19903 main ()
19904 {
19905 #ifndef snprintf
19906   (void) snprintf;
19907 #endif
19908
19909   ;
19910   return 0;
19911 }
19912 _ACEOF
19913 rm -f conftest.$ac_objext
19914 if { (ac_try="$ac_compile"
19915 case "(($ac_try" in
19916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917   *) ac_try_echo=$ac_try;;
19918 esac
19919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19920 $as_echo "$ac_try_echo") >&5
19921   (eval "$ac_compile") 2>conftest.er1
19922   ac_status=$?
19923   grep -v '^ *+' conftest.er1 >conftest.err
19924   rm -f conftest.er1
19925   cat conftest.err >&5
19926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); } && {
19928          test -z "$ac_c_werror_flag" ||
19929          test ! -s conftest.err
19930        } && test -s conftest.$ac_objext; then
19931   ac_cv_have_decl_snprintf=yes
19932 else
19933   $as_echo "$as_me: failed program was:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19935
19936         ac_cv_have_decl_snprintf=no
19937 fi
19938
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940 fi
19941 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19942 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19943 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
19944
19945 cat >>confdefs.h <<_ACEOF
19946 #define HAVE_DECL_SNPRINTF 1
19947 _ACEOF
19948
19949
19950 else
19951   cat >>confdefs.h <<_ACEOF
19952 #define HAVE_DECL_SNPRINTF 0
19953 _ACEOF
19954
19955
19956 fi
19957 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19958 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
19959 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19960   $as_echo_n "(cached) " >&6
19961 else
19962   cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 $ac_includes_default
19969 int
19970 main ()
19971 {
19972 #ifndef vsnprintf
19973   (void) vsnprintf;
19974 #endif
19975
19976   ;
19977   return 0;
19978 }
19979 _ACEOF
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984   *) ac_try_echo=$ac_try;;
19985 esac
19986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988   (eval "$ac_compile") 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } && {
19995          test -z "$ac_c_werror_flag" ||
19996          test ! -s conftest.err
19997        } && test -s conftest.$ac_objext; then
19998   ac_cv_have_decl_vsnprintf=yes
19999 else
20000   $as_echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20002
20003         ac_cv_have_decl_vsnprintf=no
20004 fi
20005
20006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007 fi
20008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20009 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20010 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20011
20012 cat >>confdefs.h <<_ACEOF
20013 #define HAVE_DECL_VSNPRINTF 1
20014 _ACEOF
20015
20016
20017 else
20018   cat >>confdefs.h <<_ACEOF
20019 #define HAVE_DECL_VSNPRINTF 0
20020 _ACEOF
20021
20022
20023 fi
20024
20025
20026
20027
20028 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20029 $as_echo_n "checking for isinf... " >&6; }
20030 if test "${ac_cv_func_isinf+set}" = set; then
20031   $as_echo_n "(cached) " >&6
20032 else
20033   cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h.  */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h.  */
20039
20040 #include <math.h>
20041 double glob_double;
20042
20043 int
20044 main ()
20045 {
20046 return isinf(glob_double) ? 0 : 1;
20047   ;
20048   return 0;
20049 }
20050 _ACEOF
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (ac_try="$ac_link"
20053 case "(($ac_try" in
20054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055   *) ac_try_echo=$ac_try;;
20056 esac
20057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20058 $as_echo "$ac_try_echo") >&5
20059   (eval "$ac_link") 2>conftest.er1
20060   ac_status=$?
20061   grep -v '^ *+' conftest.er1 >conftest.err
20062   rm -f conftest.er1
20063   cat conftest.err >&5
20064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); } && {
20066          test -z "$ac_c_werror_flag" ||
20067          test ! -s conftest.err
20068        } && test -s conftest$ac_exeext && {
20069          test "$cross_compiling" = yes ||
20070          $as_test_x conftest$ac_exeext
20071        }; then
20072   ac_cv_func_isinf=yes
20073 else
20074   $as_echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20076
20077         ac_cv_func_isinf=no
20078 fi
20079
20080 rm -rf conftest.dSYM
20081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20082       conftest$ac_exeext conftest.$ac_ext
20083 fi
20084 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20085 $as_echo "$ac_cv_func_isinf" >&6; }
20086
20087 if test $ac_cv_func_isinf = yes ; then
20088
20089 cat >>confdefs.h <<\_ACEOF
20090 #define HAVE_ISINF 1
20091 _ACEOF
20092
20093 else
20094   case " $LIBOBJS " in
20095   *" isinf.$ac_objext "* ) ;;
20096   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20097  ;;
20098 esac
20099
20100   # Look for a way to implement a substitute for isinf()
20101
20102
20103
20104
20105 for ac_func in fpclass fp_class fp_class_d class
20106 do
20107 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20108 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20109 $as_echo_n "checking for $ac_func... " >&6; }
20110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20111   $as_echo_n "(cached) " >&6
20112 else
20113   cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h.  */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h.  */
20119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20121 #define $ac_func innocuous_$ac_func
20122
20123 /* System header to define __stub macros and hopefully few prototypes,
20124     which can conflict with char $ac_func (); below.
20125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126     <limits.h> exists even on freestanding compilers.  */
20127
20128 #ifdef __STDC__
20129 # include <limits.h>
20130 #else
20131 # include <assert.h>
20132 #endif
20133
20134 #undef $ac_func
20135
20136 /* Override any GCC internal prototype to avoid an error.
20137    Use char because int might match the return type of a GCC
20138    builtin and then its argument prototype would still apply.  */
20139 #ifdef __cplusplus
20140 extern "C"
20141 #endif
20142 char $ac_func ();
20143 /* The GNU C library defines this for functions which it implements
20144     to always fail with ENOSYS.  Some functions are actually named
20145     something starting with __ and the normal name is an alias.  */
20146 #if defined __stub_$ac_func || defined __stub___$ac_func
20147 choke me
20148 #endif
20149
20150 int
20151 main ()
20152 {
20153 return $ac_func ();
20154   ;
20155   return 0;
20156 }
20157 _ACEOF
20158 rm -f conftest.$ac_objext conftest$ac_exeext
20159 if { (ac_try="$ac_link"
20160 case "(($ac_try" in
20161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162   *) ac_try_echo=$ac_try;;
20163 esac
20164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20165 $as_echo "$ac_try_echo") >&5
20166   (eval "$ac_link") 2>conftest.er1
20167   ac_status=$?
20168   grep -v '^ *+' conftest.er1 >conftest.err
20169   rm -f conftest.er1
20170   cat conftest.err >&5
20171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); } && {
20173          test -z "$ac_c_werror_flag" ||
20174          test ! -s conftest.err
20175        } && test -s conftest$ac_exeext && {
20176          test "$cross_compiling" = yes ||
20177          $as_test_x conftest$ac_exeext
20178        }; then
20179   eval "$as_ac_var=yes"
20180 else
20181   $as_echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184         eval "$as_ac_var=no"
20185 fi
20186
20187 rm -rf conftest.dSYM
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189       conftest$ac_exeext conftest.$ac_ext
20190 fi
20191 ac_res=`eval 'as_val=${'$as_ac_var'}
20192                  $as_echo "$as_val"'`
20193                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20194 $as_echo "$ac_res" >&6; }
20195 as_val=`eval 'as_val=${'$as_ac_var'}
20196                  $as_echo "$as_val"'`
20197    if test "x$as_val" = x""yes; then
20198   cat >>confdefs.h <<_ACEOF
20199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20200 _ACEOF
20201  break
20202 fi
20203 done
20204
20205 fi
20206
20207 # Some versions of libedit contain strlcpy(); so disregard that library while
20208 # checking for these standard libc functions.
20209 pgac_save_LIBS="$LIBS"
20210 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20227 do
20228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20229 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20230 $as_echo_n "checking for $ac_func... " >&6; }
20231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20232   $as_echo_n "(cached) " >&6
20233 else
20234   cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h.  */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h.  */
20240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20242 #define $ac_func innocuous_$ac_func
20243
20244 /* System header to define __stub macros and hopefully few prototypes,
20245     which can conflict with char $ac_func (); below.
20246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20247     <limits.h> exists even on freestanding compilers.  */
20248
20249 #ifdef __STDC__
20250 # include <limits.h>
20251 #else
20252 # include <assert.h>
20253 #endif
20254
20255 #undef $ac_func
20256
20257 /* Override any GCC internal prototype to avoid an error.
20258    Use char because int might match the return type of a GCC
20259    builtin and then its argument prototype would still apply.  */
20260 #ifdef __cplusplus
20261 extern "C"
20262 #endif
20263 char $ac_func ();
20264 /* The GNU C library defines this for functions which it implements
20265     to always fail with ENOSYS.  Some functions are actually named
20266     something starting with __ and the normal name is an alias.  */
20267 #if defined __stub_$ac_func || defined __stub___$ac_func
20268 choke me
20269 #endif
20270
20271 int
20272 main ()
20273 {
20274 return $ac_func ();
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20286 $as_echo "$ac_try_echo") >&5
20287   (eval "$ac_link") 2>conftest.er1
20288   ac_status=$?
20289   grep -v '^ *+' conftest.er1 >conftest.err
20290   rm -f conftest.er1
20291   cat conftest.err >&5
20292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } && {
20294          test -z "$ac_c_werror_flag" ||
20295          test ! -s conftest.err
20296        } && test -s conftest$ac_exeext && {
20297          test "$cross_compiling" = yes ||
20298          $as_test_x conftest$ac_exeext
20299        }; then
20300   eval "$as_ac_var=yes"
20301 else
20302   $as_echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305         eval "$as_ac_var=no"
20306 fi
20307
20308 rm -rf conftest.dSYM
20309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20310       conftest$ac_exeext conftest.$ac_ext
20311 fi
20312 ac_res=`eval 'as_val=${'$as_ac_var'}
20313                  $as_echo "$as_val"'`
20314                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20315 $as_echo "$ac_res" >&6; }
20316 as_val=`eval 'as_val=${'$as_ac_var'}
20317                  $as_echo "$as_val"'`
20318    if test "x$as_val" = x""yes; then
20319   cat >>confdefs.h <<_ACEOF
20320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20321 _ACEOF
20322
20323 else
20324   case " $LIBOBJS " in
20325   *" $ac_func.$ac_objext "* ) ;;
20326   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20327  ;;
20328 esac
20329
20330 fi
20331 done
20332
20333
20334
20335 case $host_os in
20336
20337         # Windows uses a specialised env handler
20338         mingw*)
20339
20340 cat >>confdefs.h <<\_ACEOF
20341 #define HAVE_UNSETENV 1
20342 _ACEOF
20343
20344                 ac_cv_func_unsetenv=yes;;
20345         *)
20346
20347 for ac_func in unsetenv
20348 do
20349 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20350 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20351 $as_echo_n "checking for $ac_func... " >&6; }
20352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20353   $as_echo_n "(cached) " >&6
20354 else
20355   cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h.  */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h.  */
20361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20363 #define $ac_func innocuous_$ac_func
20364
20365 /* System header to define __stub macros and hopefully few prototypes,
20366     which can conflict with char $ac_func (); below.
20367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20368     <limits.h> exists even on freestanding compilers.  */
20369
20370 #ifdef __STDC__
20371 # include <limits.h>
20372 #else
20373 # include <assert.h>
20374 #endif
20375
20376 #undef $ac_func
20377
20378 /* Override any GCC internal prototype to avoid an error.
20379    Use char because int might match the return type of a GCC
20380    builtin and then its argument prototype would still apply.  */
20381 #ifdef __cplusplus
20382 extern "C"
20383 #endif
20384 char $ac_func ();
20385 /* The GNU C library defines this for functions which it implements
20386     to always fail with ENOSYS.  Some functions are actually named
20387     something starting with __ and the normal name is an alias.  */
20388 #if defined __stub_$ac_func || defined __stub___$ac_func
20389 choke me
20390 #endif
20391
20392 int
20393 main ()
20394 {
20395 return $ac_func ();
20396   ;
20397   return 0;
20398 }
20399 _ACEOF
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (ac_try="$ac_link"
20402 case "(($ac_try" in
20403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404   *) ac_try_echo=$ac_try;;
20405 esac
20406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20407 $as_echo "$ac_try_echo") >&5
20408   (eval "$ac_link") 2>conftest.er1
20409   ac_status=$?
20410   grep -v '^ *+' conftest.er1 >conftest.err
20411   rm -f conftest.er1
20412   cat conftest.err >&5
20413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } && {
20415          test -z "$ac_c_werror_flag" ||
20416          test ! -s conftest.err
20417        } && test -s conftest$ac_exeext && {
20418          test "$cross_compiling" = yes ||
20419          $as_test_x conftest$ac_exeext
20420        }; then
20421   eval "$as_ac_var=yes"
20422 else
20423   $as_echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20425
20426         eval "$as_ac_var=no"
20427 fi
20428
20429 rm -rf conftest.dSYM
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431       conftest$ac_exeext conftest.$ac_ext
20432 fi
20433 ac_res=`eval 'as_val=${'$as_ac_var'}
20434                  $as_echo "$as_val"'`
20435                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20436 $as_echo "$ac_res" >&6; }
20437 as_val=`eval 'as_val=${'$as_ac_var'}
20438                  $as_echo "$as_val"'`
20439    if test "x$as_val" = x""yes; then
20440   cat >>confdefs.h <<_ACEOF
20441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20442 _ACEOF
20443
20444 else
20445   case " $LIBOBJS " in
20446   *" $ac_func.$ac_objext "* ) ;;
20447   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20448  ;;
20449 esac
20450
20451 fi
20452 done
20453
20454
20455                 ;;
20456 esac
20457
20458
20459 LIBS="$pgac_save_LIBS"
20460
20461 # System's version of getaddrinfo(), if any, may be used only if we found
20462 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20463 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20464 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
20465 # because we want to use our own getaddrinfo.c on Windows anyway.)
20466 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20467
20468 for ac_func in getaddrinfo
20469 do
20470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20471 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20472 $as_echo_n "checking for $ac_func... " >&6; }
20473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20474   $as_echo_n "(cached) " >&6
20475 else
20476   cat >conftest.$ac_ext <<_ACEOF
20477 /* confdefs.h.  */
20478 _ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h.  */
20482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20483    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20484 #define $ac_func innocuous_$ac_func
20485
20486 /* System header to define __stub macros and hopefully few prototypes,
20487     which can conflict with char $ac_func (); below.
20488     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20489     <limits.h> exists even on freestanding compilers.  */
20490
20491 #ifdef __STDC__
20492 # include <limits.h>
20493 #else
20494 # include <assert.h>
20495 #endif
20496
20497 #undef $ac_func
20498
20499 /* Override any GCC internal prototype to avoid an error.
20500    Use char because int might match the return type of a GCC
20501    builtin and then its argument prototype would still apply.  */
20502 #ifdef __cplusplus
20503 extern "C"
20504 #endif
20505 char $ac_func ();
20506 /* The GNU C library defines this for functions which it implements
20507     to always fail with ENOSYS.  Some functions are actually named
20508     something starting with __ and the normal name is an alias.  */
20509 #if defined __stub_$ac_func || defined __stub___$ac_func
20510 choke me
20511 #endif
20512
20513 int
20514 main ()
20515 {
20516 return $ac_func ();
20517   ;
20518   return 0;
20519 }
20520 _ACEOF
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525   *) ac_try_echo=$ac_try;;
20526 esac
20527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20528 $as_echo "$ac_try_echo") >&5
20529   (eval "$ac_link") 2>conftest.er1
20530   ac_status=$?
20531   grep -v '^ *+' conftest.er1 >conftest.err
20532   rm -f conftest.er1
20533   cat conftest.err >&5
20534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); } && {
20536          test -z "$ac_c_werror_flag" ||
20537          test ! -s conftest.err
20538        } && test -s conftest$ac_exeext && {
20539          test "$cross_compiling" = yes ||
20540          $as_test_x conftest$ac_exeext
20541        }; then
20542   eval "$as_ac_var=yes"
20543 else
20544   $as_echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547         eval "$as_ac_var=no"
20548 fi
20549
20550 rm -rf conftest.dSYM
20551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20552       conftest$ac_exeext conftest.$ac_ext
20553 fi
20554 ac_res=`eval 'as_val=${'$as_ac_var'}
20555                  $as_echo "$as_val"'`
20556                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20557 $as_echo "$ac_res" >&6; }
20558 as_val=`eval 'as_val=${'$as_ac_var'}
20559                  $as_echo "$as_val"'`
20560    if test "x$as_val" = x""yes; then
20561   cat >>confdefs.h <<_ACEOF
20562 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20563 _ACEOF
20564
20565 else
20566   case " $LIBOBJS " in
20567   *" $ac_func.$ac_objext "* ) ;;
20568   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20569  ;;
20570 esac
20571
20572 fi
20573 done
20574
20575
20576 else
20577   case " $LIBOBJS " in
20578   *" getaddrinfo.$ac_objext "* ) ;;
20579   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20580  ;;
20581 esac
20582
20583 fi
20584
20585 # Similarly, use system's getopt_long() only if system provides struct option.
20586 if test x"$ac_cv_type_struct_option" = xyes ; then
20587
20588 for ac_func in getopt_long
20589 do
20590 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20591 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20592 $as_echo_n "checking for $ac_func... " >&6; }
20593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20594   $as_echo_n "(cached) " >&6
20595 else
20596   cat >conftest.$ac_ext <<_ACEOF
20597 /* confdefs.h.  */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h.  */
20602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20604 #define $ac_func innocuous_$ac_func
20605
20606 /* System header to define __stub macros and hopefully few prototypes,
20607     which can conflict with char $ac_func (); below.
20608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20609     <limits.h> exists even on freestanding compilers.  */
20610
20611 #ifdef __STDC__
20612 # include <limits.h>
20613 #else
20614 # include <assert.h>
20615 #endif
20616
20617 #undef $ac_func
20618
20619 /* Override any GCC internal prototype to avoid an error.
20620    Use char because int might match the return type of a GCC
20621    builtin and then its argument prototype would still apply.  */
20622 #ifdef __cplusplus
20623 extern "C"
20624 #endif
20625 char $ac_func ();
20626 /* The GNU C library defines this for functions which it implements
20627     to always fail with ENOSYS.  Some functions are actually named
20628     something starting with __ and the normal name is an alias.  */
20629 #if defined __stub_$ac_func || defined __stub___$ac_func
20630 choke me
20631 #endif
20632
20633 int
20634 main ()
20635 {
20636 return $ac_func ();
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (ac_try="$ac_link"
20643 case "(($ac_try" in
20644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645   *) ac_try_echo=$ac_try;;
20646 esac
20647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20648 $as_echo "$ac_try_echo") >&5
20649   (eval "$ac_link") 2>conftest.er1
20650   ac_status=$?
20651   grep -v '^ *+' conftest.er1 >conftest.err
20652   rm -f conftest.er1
20653   cat conftest.err >&5
20654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); } && {
20656          test -z "$ac_c_werror_flag" ||
20657          test ! -s conftest.err
20658        } && test -s conftest$ac_exeext && {
20659          test "$cross_compiling" = yes ||
20660          $as_test_x conftest$ac_exeext
20661        }; then
20662   eval "$as_ac_var=yes"
20663 else
20664   $as_echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20666
20667         eval "$as_ac_var=no"
20668 fi
20669
20670 rm -rf conftest.dSYM
20671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20672       conftest$ac_exeext conftest.$ac_ext
20673 fi
20674 ac_res=`eval 'as_val=${'$as_ac_var'}
20675                  $as_echo "$as_val"'`
20676                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20677 $as_echo "$ac_res" >&6; }
20678 as_val=`eval 'as_val=${'$as_ac_var'}
20679                  $as_echo "$as_val"'`
20680    if test "x$as_val" = x""yes; then
20681   cat >>confdefs.h <<_ACEOF
20682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20683 _ACEOF
20684
20685 else
20686   case " $LIBOBJS " in
20687   *" $ac_func.$ac_objext "* ) ;;
20688   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20689  ;;
20690 esac
20691
20692 fi
20693 done
20694
20695
20696 else
20697   case " $LIBOBJS " in
20698   *" getopt_long.$ac_objext "* ) ;;
20699   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20700  ;;
20701 esac
20702
20703 fi
20704
20705 # Solaris' getopt() doesn't do what we want for long options, so always use
20706 # our version on that platform.
20707 if test "$PORTNAME" = "solaris"; then
20708   case " $LIBOBJS " in
20709   *" getopt.$ac_objext "* ) ;;
20710   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20711  ;;
20712 esac
20713
20714 fi
20715
20716 # mingw has adopted a GNU-centric interpretation of optind/optreset,
20717 # so always use our version on Windows.
20718 if test "$PORTNAME" = "win32"; then
20719   case " $LIBOBJS " in
20720   *" getopt.$ac_objext "* ) ;;
20721   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20722  ;;
20723 esac
20724
20725   case " $LIBOBJS " in
20726   *" getopt_long.$ac_objext "* ) ;;
20727   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20728  ;;
20729 esac
20730
20731 fi
20732
20733 # Cygwin's erand48() is broken (always returns zero) in some releases,
20734 # so force use of ours.
20735 if test "$PORTNAME" = "cygwin"; then
20736   case " $LIBOBJS " in
20737   *" erand48.$ac_objext "* ) ;;
20738   *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
20739  ;;
20740 esac
20741
20742 fi
20743
20744 # Win32 support
20745 if test "$PORTNAME" = "win32"; then
20746
20747 for ac_func in gettimeofday
20748 do
20749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20750 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20751 $as_echo_n "checking for $ac_func... " >&6; }
20752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20753   $as_echo_n "(cached) " >&6
20754 else
20755   cat >conftest.$ac_ext <<_ACEOF
20756 /* confdefs.h.  */
20757 _ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h.  */
20761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20763 #define $ac_func innocuous_$ac_func
20764
20765 /* System header to define __stub macros and hopefully few prototypes,
20766     which can conflict with char $ac_func (); below.
20767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20768     <limits.h> exists even on freestanding compilers.  */
20769
20770 #ifdef __STDC__
20771 # include <limits.h>
20772 #else
20773 # include <assert.h>
20774 #endif
20775
20776 #undef $ac_func
20777
20778 /* Override any GCC internal prototype to avoid an error.
20779    Use char because int might match the return type of a GCC
20780    builtin and then its argument prototype would still apply.  */
20781 #ifdef __cplusplus
20782 extern "C"
20783 #endif
20784 char $ac_func ();
20785 /* The GNU C library defines this for functions which it implements
20786     to always fail with ENOSYS.  Some functions are actually named
20787     something starting with __ and the normal name is an alias.  */
20788 #if defined __stub_$ac_func || defined __stub___$ac_func
20789 choke me
20790 #endif
20791
20792 int
20793 main ()
20794 {
20795 return $ac_func ();
20796   ;
20797   return 0;
20798 }
20799 _ACEOF
20800 rm -f conftest.$ac_objext conftest$ac_exeext
20801 if { (ac_try="$ac_link"
20802 case "(($ac_try" in
20803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804   *) ac_try_echo=$ac_try;;
20805 esac
20806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20807 $as_echo "$ac_try_echo") >&5
20808   (eval "$ac_link") 2>conftest.er1
20809   ac_status=$?
20810   grep -v '^ *+' conftest.er1 >conftest.err
20811   rm -f conftest.er1
20812   cat conftest.err >&5
20813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814   (exit $ac_status); } && {
20815          test -z "$ac_c_werror_flag" ||
20816          test ! -s conftest.err
20817        } && test -s conftest$ac_exeext && {
20818          test "$cross_compiling" = yes ||
20819          $as_test_x conftest$ac_exeext
20820        }; then
20821   eval "$as_ac_var=yes"
20822 else
20823   $as_echo "$as_me: failed program was:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20825
20826         eval "$as_ac_var=no"
20827 fi
20828
20829 rm -rf conftest.dSYM
20830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20831       conftest$ac_exeext conftest.$ac_ext
20832 fi
20833 ac_res=`eval 'as_val=${'$as_ac_var'}
20834                  $as_echo "$as_val"'`
20835                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20836 $as_echo "$ac_res" >&6; }
20837 as_val=`eval 'as_val=${'$as_ac_var'}
20838                  $as_echo "$as_val"'`
20839    if test "x$as_val" = x""yes; then
20840   cat >>confdefs.h <<_ACEOF
20841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20842 _ACEOF
20843
20844 else
20845   case " $LIBOBJS " in
20846   *" $ac_func.$ac_objext "* ) ;;
20847   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20848  ;;
20849 esac
20850
20851 fi
20852 done
20853
20854
20855   case " $LIBOBJS " in
20856   *" kill.$ac_objext "* ) ;;
20857   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
20858  ;;
20859 esac
20860
20861   case " $LIBOBJS " in
20862   *" open.$ac_objext "* ) ;;
20863   *) LIBOBJS="$LIBOBJS open.$ac_objext"
20864  ;;
20865 esac
20866
20867   case " $LIBOBJS " in
20868   *" win32env.$ac_objext "* ) ;;
20869   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
20870  ;;
20871 esac
20872
20873   case " $LIBOBJS " in
20874   *" win32error.$ac_objext "* ) ;;
20875   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
20876  ;;
20877 esac
20878
20879
20880 cat >>confdefs.h <<\_ACEOF
20881 #define HAVE_SYMLINK 1
20882 _ACEOF
20883
20884 fi
20885
20886 if test "$with_readline" = yes; then
20887   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
20888 $as_echo_n "checking for rl_completion_append_character... " >&6; }
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h.  */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h.  */
20895 #include <stdio.h>
20896 #ifdef HAVE_READLINE_READLINE_H
20897 # include <readline/readline.h>
20898 #elif defined(HAVE_READLINE_H)
20899 # include <readline.h>
20900 #endif
20901
20902 int
20903 main ()
20904 {
20905 rl_completion_append_character = 'x';
20906   ;
20907   return 0;
20908 }
20909 _ACEOF
20910 rm -f conftest.$ac_objext conftest$ac_exeext
20911 if { (ac_try="$ac_link"
20912 case "(($ac_try" in
20913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914   *) ac_try_echo=$ac_try;;
20915 esac
20916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20917 $as_echo "$ac_try_echo") >&5
20918   (eval "$ac_link") 2>conftest.er1
20919   ac_status=$?
20920   grep -v '^ *+' conftest.er1 >conftest.err
20921   rm -f conftest.er1
20922   cat conftest.err >&5
20923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); } && {
20925          test -z "$ac_c_werror_flag" ||
20926          test ! -s conftest.err
20927        } && test -s conftest$ac_exeext && {
20928          test "$cross_compiling" = yes ||
20929          $as_test_x conftest$ac_exeext
20930        }; then
20931   { $as_echo "$as_me:$LINENO: result: yes" >&5
20932 $as_echo "yes" >&6; }
20933
20934 cat >>confdefs.h <<\_ACEOF
20935 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20936 _ACEOF
20937
20938 else
20939   $as_echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942         { $as_echo "$as_me:$LINENO: result: no" >&5
20943 $as_echo "no" >&6; }
20944 fi
20945
20946 rm -rf conftest.dSYM
20947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20948       conftest$ac_exeext conftest.$ac_ext
20949
20950
20951 for ac_func in rl_completion_matches rl_filename_completion_function
20952 do
20953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20954 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20955 $as_echo_n "checking for $ac_func... " >&6; }
20956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20957   $as_echo_n "(cached) " >&6
20958 else
20959   cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h.  */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h.  */
20965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20967 #define $ac_func innocuous_$ac_func
20968
20969 /* System header to define __stub macros and hopefully few prototypes,
20970     which can conflict with char $ac_func (); below.
20971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20972     <limits.h> exists even on freestanding compilers.  */
20973
20974 #ifdef __STDC__
20975 # include <limits.h>
20976 #else
20977 # include <assert.h>
20978 #endif
20979
20980 #undef $ac_func
20981
20982 /* Override any GCC internal prototype to avoid an error.
20983    Use char because int might match the return type of a GCC
20984    builtin and then its argument prototype would still apply.  */
20985 #ifdef __cplusplus
20986 extern "C"
20987 #endif
20988 char $ac_func ();
20989 /* The GNU C library defines this for functions which it implements
20990     to always fail with ENOSYS.  Some functions are actually named
20991     something starting with __ and the normal name is an alias.  */
20992 #if defined __stub_$ac_func || defined __stub___$ac_func
20993 choke me
20994 #endif
20995
20996 int
20997 main ()
20998 {
20999 return $ac_func ();
21000   ;
21001   return 0;
21002 }
21003 _ACEOF
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (ac_try="$ac_link"
21006 case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21011 $as_echo "$ac_try_echo") >&5
21012   (eval "$ac_link") 2>conftest.er1
21013   ac_status=$?
21014   grep -v '^ *+' conftest.er1 >conftest.err
21015   rm -f conftest.er1
21016   cat conftest.err >&5
21017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018   (exit $ac_status); } && {
21019          test -z "$ac_c_werror_flag" ||
21020          test ! -s conftest.err
21021        } && test -s conftest$ac_exeext && {
21022          test "$cross_compiling" = yes ||
21023          $as_test_x conftest$ac_exeext
21024        }; then
21025   eval "$as_ac_var=yes"
21026 else
21027   $as_echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21029
21030         eval "$as_ac_var=no"
21031 fi
21032
21033 rm -rf conftest.dSYM
21034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21035       conftest$ac_exeext conftest.$ac_ext
21036 fi
21037 ac_res=`eval 'as_val=${'$as_ac_var'}
21038                  $as_echo "$as_val"'`
21039                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21040 $as_echo "$ac_res" >&6; }
21041 as_val=`eval 'as_val=${'$as_ac_var'}
21042                  $as_echo "$as_val"'`
21043    if test "x$as_val" = x""yes; then
21044   cat >>confdefs.h <<_ACEOF
21045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21046 _ACEOF
21047
21048 fi
21049 done
21050
21051
21052
21053 for ac_func in append_history history_truncate_file
21054 do
21055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21056 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21057 $as_echo_n "checking for $ac_func... " >&6; }
21058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21059   $as_echo_n "(cached) " >&6
21060 else
21061   cat >conftest.$ac_ext <<_ACEOF
21062 /* confdefs.h.  */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h.  */
21067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21069 #define $ac_func innocuous_$ac_func
21070
21071 /* System header to define __stub macros and hopefully few prototypes,
21072     which can conflict with char $ac_func (); below.
21073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21074     <limits.h> exists even on freestanding compilers.  */
21075
21076 #ifdef __STDC__
21077 # include <limits.h>
21078 #else
21079 # include <assert.h>
21080 #endif
21081
21082 #undef $ac_func
21083
21084 /* Override any GCC internal prototype to avoid an error.
21085    Use char because int might match the return type of a GCC
21086    builtin and then its argument prototype would still apply.  */
21087 #ifdef __cplusplus
21088 extern "C"
21089 #endif
21090 char $ac_func ();
21091 /* The GNU C library defines this for functions which it implements
21092     to always fail with ENOSYS.  Some functions are actually named
21093     something starting with __ and the normal name is an alias.  */
21094 #if defined __stub_$ac_func || defined __stub___$ac_func
21095 choke me
21096 #endif
21097
21098 int
21099 main ()
21100 {
21101 return $ac_func ();
21102   ;
21103   return 0;
21104 }
21105 _ACEOF
21106 rm -f conftest.$ac_objext conftest$ac_exeext
21107 if { (ac_try="$ac_link"
21108 case "(($ac_try" in
21109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110   *) ac_try_echo=$ac_try;;
21111 esac
21112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21113 $as_echo "$ac_try_echo") >&5
21114   (eval "$ac_link") 2>conftest.er1
21115   ac_status=$?
21116   grep -v '^ *+' conftest.er1 >conftest.err
21117   rm -f conftest.er1
21118   cat conftest.err >&5
21119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); } && {
21121          test -z "$ac_c_werror_flag" ||
21122          test ! -s conftest.err
21123        } && test -s conftest$ac_exeext && {
21124          test "$cross_compiling" = yes ||
21125          $as_test_x conftest$ac_exeext
21126        }; then
21127   eval "$as_ac_var=yes"
21128 else
21129   $as_echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21131
21132         eval "$as_ac_var=no"
21133 fi
21134
21135 rm -rf conftest.dSYM
21136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21137       conftest$ac_exeext conftest.$ac_ext
21138 fi
21139 ac_res=`eval 'as_val=${'$as_ac_var'}
21140                  $as_echo "$as_val"'`
21141                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21142 $as_echo "$ac_res" >&6; }
21143 as_val=`eval 'as_val=${'$as_ac_var'}
21144                  $as_echo "$as_val"'`
21145    if test "x$as_val" = x""yes; then
21146   cat >>confdefs.h <<_ACEOF
21147 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21148 _ACEOF
21149
21150 fi
21151 done
21152
21153 fi
21154
21155
21156 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21157 $as_echo_n "checking for sigsetjmp... " >&6; }
21158 cat >conftest.$ac_ext <<_ACEOF
21159 /* confdefs.h.  */
21160 _ACEOF
21161 cat confdefs.h >>conftest.$ac_ext
21162 cat >>conftest.$ac_ext <<_ACEOF
21163 /* end confdefs.h.  */
21164 #include <setjmp.h>
21165 int
21166 main ()
21167 {
21168 sigjmp_buf x; sigsetjmp(x, 1);
21169   ;
21170   return 0;
21171 }
21172 _ACEOF
21173 rm -f conftest.$ac_objext conftest$ac_exeext
21174 if { (ac_try="$ac_link"
21175 case "(($ac_try" in
21176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177   *) ac_try_echo=$ac_try;;
21178 esac
21179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21180 $as_echo "$ac_try_echo") >&5
21181   (eval "$ac_link") 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } && {
21188          test -z "$ac_c_werror_flag" ||
21189          test ! -s conftest.err
21190        } && test -s conftest$ac_exeext && {
21191          test "$cross_compiling" = yes ||
21192          $as_test_x conftest$ac_exeext
21193        }; then
21194
21195 cat >>confdefs.h <<\_ACEOF
21196 #define HAVE_SIGSETJMP 1
21197 _ACEOF
21198
21199 { $as_echo "$as_me:$LINENO: result: yes" >&5
21200 $as_echo "yes" >&6; }
21201 else
21202   $as_echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205         { $as_echo "$as_me:$LINENO: result: no" >&5
21206 $as_echo "no" >&6; }
21207 fi
21208
21209 rm -rf conftest.dSYM
21210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21211       conftest$ac_exeext conftest.$ac_ext
21212
21213 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21214 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21215 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21216   $as_echo_n "(cached) " >&6
21217 else
21218   cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h.  */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h.  */
21224 #include <signal.h>
21225 /* NetBSD declares sys_siglist in unistd.h.  */
21226 #ifdef HAVE_UNISTD_H
21227 # include <unistd.h>
21228 #endif
21229
21230
21231 int
21232 main ()
21233 {
21234 #ifndef sys_siglist
21235   (void) sys_siglist;
21236 #endif
21237
21238   ;
21239   return 0;
21240 }
21241 _ACEOF
21242 rm -f conftest.$ac_objext
21243 if { (ac_try="$ac_compile"
21244 case "(($ac_try" in
21245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246   *) ac_try_echo=$ac_try;;
21247 esac
21248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21249 $as_echo "$ac_try_echo") >&5
21250   (eval "$ac_compile") 2>conftest.er1
21251   ac_status=$?
21252   grep -v '^ *+' conftest.er1 >conftest.err
21253   rm -f conftest.er1
21254   cat conftest.err >&5
21255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); } && {
21257          test -z "$ac_c_werror_flag" ||
21258          test ! -s conftest.err
21259        } && test -s conftest.$ac_objext; then
21260   ac_cv_have_decl_sys_siglist=yes
21261 else
21262   $as_echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21264
21265         ac_cv_have_decl_sys_siglist=no
21266 fi
21267
21268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21269 fi
21270 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21271 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21272 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21273
21274 cat >>confdefs.h <<_ACEOF
21275 #define HAVE_DECL_SYS_SIGLIST 1
21276 _ACEOF
21277
21278
21279 else
21280   cat >>confdefs.h <<_ACEOF
21281 #define HAVE_DECL_SYS_SIGLIST 0
21282 _ACEOF
21283
21284
21285 fi
21286
21287
21288
21289
21290 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21291 $as_echo_n "checking for syslog... " >&6; }
21292 if test "${ac_cv_func_syslog+set}" = set; then
21293   $as_echo_n "(cached) " >&6
21294 else
21295   cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h.  */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h.  */
21301 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21303 #define syslog innocuous_syslog
21304
21305 /* System header to define __stub macros and hopefully few prototypes,
21306     which can conflict with char syslog (); below.
21307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21308     <limits.h> exists even on freestanding compilers.  */
21309
21310 #ifdef __STDC__
21311 # include <limits.h>
21312 #else
21313 # include <assert.h>
21314 #endif
21315
21316 #undef syslog
21317
21318 /* Override any GCC internal prototype to avoid an error.
21319    Use char because int might match the return type of a GCC
21320    builtin and then its argument prototype would still apply.  */
21321 #ifdef __cplusplus
21322 extern "C"
21323 #endif
21324 char syslog ();
21325 /* The GNU C library defines this for functions which it implements
21326     to always fail with ENOSYS.  Some functions are actually named
21327     something starting with __ and the normal name is an alias.  */
21328 #if defined __stub_syslog || defined __stub___syslog
21329 choke me
21330 #endif
21331
21332 int
21333 main ()
21334 {
21335 return syslog ();
21336   ;
21337   return 0;
21338 }
21339 _ACEOF
21340 rm -f conftest.$ac_objext conftest$ac_exeext
21341 if { (ac_try="$ac_link"
21342 case "(($ac_try" in
21343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344   *) ac_try_echo=$ac_try;;
21345 esac
21346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21347 $as_echo "$ac_try_echo") >&5
21348   (eval "$ac_link") 2>conftest.er1
21349   ac_status=$?
21350   grep -v '^ *+' conftest.er1 >conftest.err
21351   rm -f conftest.er1
21352   cat conftest.err >&5
21353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); } && {
21355          test -z "$ac_c_werror_flag" ||
21356          test ! -s conftest.err
21357        } && test -s conftest$ac_exeext && {
21358          test "$cross_compiling" = yes ||
21359          $as_test_x conftest$ac_exeext
21360        }; then
21361   ac_cv_func_syslog=yes
21362 else
21363   $as_echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21365
21366         ac_cv_func_syslog=no
21367 fi
21368
21369 rm -rf conftest.dSYM
21370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21371       conftest$ac_exeext conftest.$ac_ext
21372 fi
21373 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21374 $as_echo "$ac_cv_func_syslog" >&6; }
21375 if test "x$ac_cv_func_syslog" = x""yes; then
21376   if test "${ac_cv_header_syslog_h+set}" = set; then
21377   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21378 $as_echo_n "checking for syslog.h... " >&6; }
21379 if test "${ac_cv_header_syslog_h+set}" = set; then
21380   $as_echo_n "(cached) " >&6
21381 fi
21382 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21383 $as_echo "$ac_cv_header_syslog_h" >&6; }
21384 else
21385   # Is the header compilable?
21386 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21387 $as_echo_n "checking syslog.h usability... " >&6; }
21388 cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h.  */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h.  */
21394 $ac_includes_default
21395 #include <syslog.h>
21396 _ACEOF
21397 rm -f conftest.$ac_objext
21398 if { (ac_try="$ac_compile"
21399 case "(($ac_try" in
21400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401   *) ac_try_echo=$ac_try;;
21402 esac
21403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21404 $as_echo "$ac_try_echo") >&5
21405   (eval "$ac_compile") 2>conftest.er1
21406   ac_status=$?
21407   grep -v '^ *+' conftest.er1 >conftest.err
21408   rm -f conftest.er1
21409   cat conftest.err >&5
21410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); } && {
21412          test -z "$ac_c_werror_flag" ||
21413          test ! -s conftest.err
21414        } && test -s conftest.$ac_objext; then
21415   ac_header_compiler=yes
21416 else
21417   $as_echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21419
21420         ac_header_compiler=no
21421 fi
21422
21423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21424 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21425 $as_echo "$ac_header_compiler" >&6; }
21426
21427 # Is the header present?
21428 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21429 $as_echo_n "checking syslog.h presence... " >&6; }
21430 cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h.  */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h.  */
21436 #include <syslog.h>
21437 _ACEOF
21438 if { (ac_try="$ac_cpp conftest.$ac_ext"
21439 case "(($ac_try" in
21440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441   *) ac_try_echo=$ac_try;;
21442 esac
21443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21444 $as_echo "$ac_try_echo") >&5
21445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21446   ac_status=$?
21447   grep -v '^ *+' conftest.er1 >conftest.err
21448   rm -f conftest.er1
21449   cat conftest.err >&5
21450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451   (exit $ac_status); } >/dev/null && {
21452          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21453          test ! -s conftest.err
21454        }; then
21455   ac_header_preproc=yes
21456 else
21457   $as_echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460   ac_header_preproc=no
21461 fi
21462
21463 rm -f conftest.err conftest.$ac_ext
21464 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21465 $as_echo "$ac_header_preproc" >&6; }
21466
21467 # So?  What about this header?
21468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21469   yes:no: )
21470     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21471 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21472     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21473 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21474     ac_header_preproc=yes
21475     ;;
21476   no:yes:* )
21477     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21478 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21479     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
21480 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
21481     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21482 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21483     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
21484 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21485     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21486 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21487     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21488 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21489     ( cat <<\_ASBOX
21490 ## ---------------------------------------- ##
21491 ## Report this to pgsql-bugs@postgresql.org ##
21492 ## ---------------------------------------- ##
21493 _ASBOX
21494      ) | sed "s/^/$as_me: WARNING:     /" >&2
21495     ;;
21496 esac
21497 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21498 $as_echo_n "checking for syslog.h... " >&6; }
21499 if test "${ac_cv_header_syslog_h+set}" = set; then
21500   $as_echo_n "(cached) " >&6
21501 else
21502   ac_cv_header_syslog_h=$ac_header_preproc
21503 fi
21504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21505 $as_echo "$ac_cv_header_syslog_h" >&6; }
21506
21507 fi
21508 if test "x$ac_cv_header_syslog_h" = x""yes; then
21509
21510 cat >>confdefs.h <<\_ACEOF
21511 #define HAVE_SYSLOG 1
21512 _ACEOF
21513
21514 fi
21515
21516
21517 fi
21518
21519
21520 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21521 $as_echo_n "checking for opterr... " >&6; }
21522 if test "${pgac_cv_var_int_opterr+set}" = set; then
21523   $as_echo_n "(cached) " >&6
21524 else
21525   cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h.  */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h.  */
21531 #include <unistd.h>
21532 int
21533 main ()
21534 {
21535 extern int opterr; opterr = 1;
21536   ;
21537   return 0;
21538 }
21539 _ACEOF
21540 rm -f conftest.$ac_objext conftest$ac_exeext
21541 if { (ac_try="$ac_link"
21542 case "(($ac_try" in
21543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544   *) ac_try_echo=$ac_try;;
21545 esac
21546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21547 $as_echo "$ac_try_echo") >&5
21548   (eval "$ac_link") 2>conftest.er1
21549   ac_status=$?
21550   grep -v '^ *+' conftest.er1 >conftest.err
21551   rm -f conftest.er1
21552   cat conftest.err >&5
21553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); } && {
21555          test -z "$ac_c_werror_flag" ||
21556          test ! -s conftest.err
21557        } && test -s conftest$ac_exeext && {
21558          test "$cross_compiling" = yes ||
21559          $as_test_x conftest$ac_exeext
21560        }; then
21561   pgac_cv_var_int_opterr=yes
21562 else
21563   $as_echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566         pgac_cv_var_int_opterr=no
21567 fi
21568
21569 rm -rf conftest.dSYM
21570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21571       conftest$ac_exeext conftest.$ac_ext
21572 fi
21573 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21574 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21575 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21576
21577 cat >>confdefs.h <<\_ACEOF
21578 #define HAVE_INT_OPTERR 1
21579 _ACEOF
21580
21581 fi
21582
21583 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21584 $as_echo_n "checking for optreset... " >&6; }
21585 if test "${pgac_cv_var_int_optreset+set}" = set; then
21586   $as_echo_n "(cached) " >&6
21587 else
21588   cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h.  */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h.  */
21594 #include <unistd.h>
21595 int
21596 main ()
21597 {
21598 extern int optreset; optreset = 1;
21599   ;
21600   return 0;
21601 }
21602 _ACEOF
21603 rm -f conftest.$ac_objext conftest$ac_exeext
21604 if { (ac_try="$ac_link"
21605 case "(($ac_try" in
21606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607   *) ac_try_echo=$ac_try;;
21608 esac
21609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21610 $as_echo "$ac_try_echo") >&5
21611   (eval "$ac_link") 2>conftest.er1
21612   ac_status=$?
21613   grep -v '^ *+' conftest.er1 >conftest.err
21614   rm -f conftest.er1
21615   cat conftest.err >&5
21616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); } && {
21618          test -z "$ac_c_werror_flag" ||
21619          test ! -s conftest.err
21620        } && test -s conftest$ac_exeext && {
21621          test "$cross_compiling" = yes ||
21622          $as_test_x conftest$ac_exeext
21623        }; then
21624   pgac_cv_var_int_optreset=yes
21625 else
21626   $as_echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21628
21629         pgac_cv_var_int_optreset=no
21630 fi
21631
21632 rm -rf conftest.dSYM
21633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21634       conftest$ac_exeext conftest.$ac_ext
21635 fi
21636 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
21637 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21638 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21639
21640 cat >>confdefs.h <<\_ACEOF
21641 #define HAVE_INT_OPTRESET 1
21642 _ACEOF
21643
21644 fi
21645
21646
21647
21648 for ac_func in strtoll strtoq
21649 do
21650 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21651 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21652 $as_echo_n "checking for $ac_func... " >&6; }
21653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21654   $as_echo_n "(cached) " >&6
21655 else
21656   cat >conftest.$ac_ext <<_ACEOF
21657 /* confdefs.h.  */
21658 _ACEOF
21659 cat confdefs.h >>conftest.$ac_ext
21660 cat >>conftest.$ac_ext <<_ACEOF
21661 /* end confdefs.h.  */
21662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21664 #define $ac_func innocuous_$ac_func
21665
21666 /* System header to define __stub macros and hopefully few prototypes,
21667     which can conflict with char $ac_func (); below.
21668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21669     <limits.h> exists even on freestanding compilers.  */
21670
21671 #ifdef __STDC__
21672 # include <limits.h>
21673 #else
21674 # include <assert.h>
21675 #endif
21676
21677 #undef $ac_func
21678
21679 /* Override any GCC internal prototype to avoid an error.
21680    Use char because int might match the return type of a GCC
21681    builtin and then its argument prototype would still apply.  */
21682 #ifdef __cplusplus
21683 extern "C"
21684 #endif
21685 char $ac_func ();
21686 /* The GNU C library defines this for functions which it implements
21687     to always fail with ENOSYS.  Some functions are actually named
21688     something starting with __ and the normal name is an alias.  */
21689 #if defined __stub_$ac_func || defined __stub___$ac_func
21690 choke me
21691 #endif
21692
21693 int
21694 main ()
21695 {
21696 return $ac_func ();
21697   ;
21698   return 0;
21699 }
21700 _ACEOF
21701 rm -f conftest.$ac_objext conftest$ac_exeext
21702 if { (ac_try="$ac_link"
21703 case "(($ac_try" in
21704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705   *) ac_try_echo=$ac_try;;
21706 esac
21707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21708 $as_echo "$ac_try_echo") >&5
21709   (eval "$ac_link") 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } && {
21716          test -z "$ac_c_werror_flag" ||
21717          test ! -s conftest.err
21718        } && test -s conftest$ac_exeext && {
21719          test "$cross_compiling" = yes ||
21720          $as_test_x conftest$ac_exeext
21721        }; then
21722   eval "$as_ac_var=yes"
21723 else
21724   $as_echo "$as_me: failed program was:" >&5
21725 sed 's/^/| /' conftest.$ac_ext >&5
21726
21727         eval "$as_ac_var=no"
21728 fi
21729
21730 rm -rf conftest.dSYM
21731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21732       conftest$ac_exeext conftest.$ac_ext
21733 fi
21734 ac_res=`eval 'as_val=${'$as_ac_var'}
21735                  $as_echo "$as_val"'`
21736                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21737 $as_echo "$ac_res" >&6; }
21738 as_val=`eval 'as_val=${'$as_ac_var'}
21739                  $as_echo "$as_val"'`
21740    if test "x$as_val" = x""yes; then
21741   cat >>confdefs.h <<_ACEOF
21742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21743 _ACEOF
21744  break
21745 fi
21746 done
21747
21748
21749
21750 for ac_func in strtoull strtouq
21751 do
21752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21753 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21754 $as_echo_n "checking for $ac_func... " >&6; }
21755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21756   $as_echo_n "(cached) " >&6
21757 else
21758   cat >conftest.$ac_ext <<_ACEOF
21759 /* confdefs.h.  */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h.  */
21764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21766 #define $ac_func innocuous_$ac_func
21767
21768 /* System header to define __stub macros and hopefully few prototypes,
21769     which can conflict with char $ac_func (); below.
21770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21771     <limits.h> exists even on freestanding compilers.  */
21772
21773 #ifdef __STDC__
21774 # include <limits.h>
21775 #else
21776 # include <assert.h>
21777 #endif
21778
21779 #undef $ac_func
21780
21781 /* Override any GCC internal prototype to avoid an error.
21782    Use char because int might match the return type of a GCC
21783    builtin and then its argument prototype would still apply.  */
21784 #ifdef __cplusplus
21785 extern "C"
21786 #endif
21787 char $ac_func ();
21788 /* The GNU C library defines this for functions which it implements
21789     to always fail with ENOSYS.  Some functions are actually named
21790     something starting with __ and the normal name is an alias.  */
21791 #if defined __stub_$ac_func || defined __stub___$ac_func
21792 choke me
21793 #endif
21794
21795 int
21796 main ()
21797 {
21798 return $ac_func ();
21799   ;
21800   return 0;
21801 }
21802 _ACEOF
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807   *) ac_try_echo=$ac_try;;
21808 esac
21809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21810 $as_echo "$ac_try_echo") >&5
21811   (eval "$ac_link") 2>conftest.er1
21812   ac_status=$?
21813   grep -v '^ *+' conftest.er1 >conftest.err
21814   rm -f conftest.er1
21815   cat conftest.err >&5
21816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); } && {
21818          test -z "$ac_c_werror_flag" ||
21819          test ! -s conftest.err
21820        } && test -s conftest$ac_exeext && {
21821          test "$cross_compiling" = yes ||
21822          $as_test_x conftest$ac_exeext
21823        }; then
21824   eval "$as_ac_var=yes"
21825 else
21826   $as_echo "$as_me: failed program was:" >&5
21827 sed 's/^/| /' conftest.$ac_ext >&5
21828
21829         eval "$as_ac_var=no"
21830 fi
21831
21832 rm -rf conftest.dSYM
21833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21834       conftest$ac_exeext conftest.$ac_ext
21835 fi
21836 ac_res=`eval 'as_val=${'$as_ac_var'}
21837                  $as_echo "$as_val"'`
21838                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21839 $as_echo "$ac_res" >&6; }
21840 as_val=`eval 'as_val=${'$as_ac_var'}
21841                  $as_echo "$as_val"'`
21842    if test "x$as_val" = x""yes; then
21843   cat >>confdefs.h <<_ACEOF
21844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21845 _ACEOF
21846  break
21847 fi
21848 done
21849
21850
21851 # Check for one of atexit() or on_exit()
21852
21853 for ac_func in atexit
21854 do
21855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21856 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21857 $as_echo_n "checking for $ac_func... " >&6; }
21858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21859   $as_echo_n "(cached) " >&6
21860 else
21861   cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h.  */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h.  */
21867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21869 #define $ac_func innocuous_$ac_func
21870
21871 /* System header to define __stub macros and hopefully few prototypes,
21872     which can conflict with char $ac_func (); below.
21873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21874     <limits.h> exists even on freestanding compilers.  */
21875
21876 #ifdef __STDC__
21877 # include <limits.h>
21878 #else
21879 # include <assert.h>
21880 #endif
21881
21882 #undef $ac_func
21883
21884 /* Override any GCC internal prototype to avoid an error.
21885    Use char because int might match the return type of a GCC
21886    builtin and then its argument prototype would still apply.  */
21887 #ifdef __cplusplus
21888 extern "C"
21889 #endif
21890 char $ac_func ();
21891 /* The GNU C library defines this for functions which it implements
21892     to always fail with ENOSYS.  Some functions are actually named
21893     something starting with __ and the normal name is an alias.  */
21894 #if defined __stub_$ac_func || defined __stub___$ac_func
21895 choke me
21896 #endif
21897
21898 int
21899 main ()
21900 {
21901 return $ac_func ();
21902   ;
21903   return 0;
21904 }
21905 _ACEOF
21906 rm -f conftest.$ac_objext conftest$ac_exeext
21907 if { (ac_try="$ac_link"
21908 case "(($ac_try" in
21909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910   *) ac_try_echo=$ac_try;;
21911 esac
21912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21913 $as_echo "$ac_try_echo") >&5
21914   (eval "$ac_link") 2>conftest.er1
21915   ac_status=$?
21916   grep -v '^ *+' conftest.er1 >conftest.err
21917   rm -f conftest.er1
21918   cat conftest.err >&5
21919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); } && {
21921          test -z "$ac_c_werror_flag" ||
21922          test ! -s conftest.err
21923        } && test -s conftest$ac_exeext && {
21924          test "$cross_compiling" = yes ||
21925          $as_test_x conftest$ac_exeext
21926        }; then
21927   eval "$as_ac_var=yes"
21928 else
21929   $as_echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.$ac_ext >&5
21931
21932         eval "$as_ac_var=no"
21933 fi
21934
21935 rm -rf conftest.dSYM
21936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21937       conftest$ac_exeext conftest.$ac_ext
21938 fi
21939 ac_res=`eval 'as_val=${'$as_ac_var'}
21940                  $as_echo "$as_val"'`
21941                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21942 $as_echo "$ac_res" >&6; }
21943 as_val=`eval 'as_val=${'$as_ac_var'}
21944                  $as_echo "$as_val"'`
21945    if test "x$as_val" = x""yes; then
21946   cat >>confdefs.h <<_ACEOF
21947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21948 _ACEOF
21949
21950 else
21951
21952 for ac_func in on_exit
21953 do
21954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21955 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21956 $as_echo_n "checking for $ac_func... " >&6; }
21957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21958   $as_echo_n "(cached) " >&6
21959 else
21960   cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h.  */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h.  */
21966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21968 #define $ac_func innocuous_$ac_func
21969
21970 /* System header to define __stub macros and hopefully few prototypes,
21971     which can conflict with char $ac_func (); below.
21972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21973     <limits.h> exists even on freestanding compilers.  */
21974
21975 #ifdef __STDC__
21976 # include <limits.h>
21977 #else
21978 # include <assert.h>
21979 #endif
21980
21981 #undef $ac_func
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 $ac_func ();
21990 /* The GNU C library defines this for functions which it implements
21991     to always fail with ENOSYS.  Some functions are actually named
21992     something starting with __ and the normal name is an alias.  */
21993 #if defined __stub_$ac_func || defined __stub___$ac_func
21994 choke me
21995 #endif
21996
21997 int
21998 main ()
21999 {
22000 return $ac_func ();
22001   ;
22002   return 0;
22003 }
22004 _ACEOF
22005 rm -f conftest.$ac_objext conftest$ac_exeext
22006 if { (ac_try="$ac_link"
22007 case "(($ac_try" in
22008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009   *) ac_try_echo=$ac_try;;
22010 esac
22011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22012 $as_echo "$ac_try_echo") >&5
22013   (eval "$ac_link") 2>conftest.er1
22014   ac_status=$?
22015   grep -v '^ *+' conftest.er1 >conftest.err
22016   rm -f conftest.er1
22017   cat conftest.err >&5
22018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); } && {
22020          test -z "$ac_c_werror_flag" ||
22021          test ! -s conftest.err
22022        } && test -s conftest$ac_exeext && {
22023          test "$cross_compiling" = yes ||
22024          $as_test_x conftest$ac_exeext
22025        }; then
22026   eval "$as_ac_var=yes"
22027 else
22028   $as_echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031         eval "$as_ac_var=no"
22032 fi
22033
22034 rm -rf conftest.dSYM
22035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22036       conftest$ac_exeext conftest.$ac_ext
22037 fi
22038 ac_res=`eval 'as_val=${'$as_ac_var'}
22039                  $as_echo "$as_val"'`
22040                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22041 $as_echo "$ac_res" >&6; }
22042 as_val=`eval 'as_val=${'$as_ac_var'}
22043                  $as_echo "$as_val"'`
22044    if test "x$as_val" = x""yes; then
22045   cat >>confdefs.h <<_ACEOF
22046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22047 _ACEOF
22048
22049 else
22050   { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
22051 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
22052    { (exit 1); exit 1; }; }
22053 fi
22054 done
22055
22056 fi
22057 done
22058
22059
22060
22061 #
22062 # Pthreads
22063 #
22064 # For each platform, we need to know about any special compile and link
22065 # libraries, and whether the normal C function names are thread-safe.
22066 # See the comment at the top of src/port/thread.c for more information.
22067 # WIN32 doesn't need the pthread tests;  it always uses threads
22068 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22069
22070
22071
22072 ac_ext=c
22073 ac_cpp='$CPP $CPPFLAGS'
22074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22077
22078 acx_pthread_ok=no
22079
22080 # We used to check for pthread.h first, but this fails if pthread.h
22081 # requires special compiler flags (e.g. on True64 or Sequent).
22082 # It gets checked for in the link test anyway.
22083
22084 # First of all, check if the user has set any of the PTHREAD_LIBS,
22085 # etcetera environment variables, and if threads linking works using
22086 # them:
22087 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22088         save_CFLAGS="$CFLAGS"
22089         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22090         save_LIBS="$LIBS"
22091         LIBS="$PTHREAD_LIBS $LIBS"
22092         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22093 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22094         cat >conftest.$ac_ext <<_ACEOF
22095 /* confdefs.h.  */
22096 _ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h.  */
22100
22101 /* Override any GCC internal prototype to avoid an error.
22102    Use char because int might match the return type of a GCC
22103    builtin and then its argument prototype would still apply.  */
22104 #ifdef __cplusplus
22105 extern "C"
22106 #endif
22107 char pthread_join ();
22108 int
22109 main ()
22110 {
22111 return pthread_join ();
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext conftest$ac_exeext
22117 if { (ac_try="$ac_link"
22118 case "(($ac_try" in
22119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120   *) ac_try_echo=$ac_try;;
22121 esac
22122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22123 $as_echo "$ac_try_echo") >&5
22124   (eval "$ac_link") 2>conftest.er1
22125   ac_status=$?
22126   grep -v '^ *+' conftest.er1 >conftest.err
22127   rm -f conftest.er1
22128   cat conftest.err >&5
22129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130   (exit $ac_status); } && {
22131          test -z "$ac_c_werror_flag" ||
22132          test ! -s conftest.err
22133        } && test -s conftest$ac_exeext && {
22134          test "$cross_compiling" = yes ||
22135          $as_test_x conftest$ac_exeext
22136        }; then
22137   acx_pthread_ok=yes
22138 else
22139   $as_echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22141
22142
22143 fi
22144
22145 rm -rf conftest.dSYM
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147       conftest$ac_exeext conftest.$ac_ext
22148         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22149 $as_echo "$acx_pthread_ok" >&6; }
22150         if test x"$acx_pthread_ok" = xno; then
22151                 PTHREAD_LIBS=""
22152                 PTHREAD_CFLAGS=""
22153         fi
22154         LIBS="$save_LIBS"
22155         CFLAGS="$save_CFLAGS"
22156 fi
22157
22158 # We must check for the threads library under a number of different
22159 # names; the ordering is very important because some systems
22160 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22161 # libraries is broken (non-POSIX).
22162
22163 # Create a list of thread flags to try.  Items starting with a "-" are
22164 # C compiler flags, and other items are library names, except for "none"
22165 # which indicates that we try without any flags at all, and "pthread-config"
22166 # which is a program returning the flags for the Pth emulation library.
22167
22168 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22169
22170 # The ordering *is* (sometimes) important.  Some notes on the
22171 # individual items follow:
22172
22173 # pthreads: AIX (must check this before -lpthread)
22174 # none: in case threads are in libc; should be tried before -Kthread and
22175 #       other compiler flags to prevent continual compiler warnings
22176 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22177 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22178 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22179 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22180 # -pthreads: Solaris/gcc
22181 # -mthreads: Mingw32/gcc, Lynx/gcc
22182 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22183 #      doesn't hurt to check since this sometimes defines pthreads too;
22184 #      also defines -D_REENTRANT)
22185 # pthread: Linux, etcetera
22186 # --thread-safe: KAI C++
22187 # pthread-config: use pthread-config program (for GNU Pth library)
22188
22189 case "${host_cpu}-${host_os}" in
22190         *solaris*)
22191
22192         # On Solaris (at least, for some versions), libc contains stubbed
22193         # (non-functional) versions of the pthreads routines, so link-based
22194         # tests will erroneously succeed.  (We need to link with -pthread or
22195         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22196         # a function called by this macro, so we could check for that, but
22197         # who knows whether they'll stub that too in a future libc.)  So,
22198         # we'll just look for -pthreads and -lpthread first:
22199
22200         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22201         ;;
22202 esac
22203
22204 if test x"$acx_pthread_ok" = xno; then
22205 for flag in $acx_pthread_flags; do
22206
22207         tryPTHREAD_CFLAGS=""
22208         tryPTHREAD_LIBS=""
22209         case $flag in
22210                 none)
22211                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22212 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22213                 ;;
22214
22215                 -*)
22216                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22217 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22218                 tryPTHREAD_CFLAGS="$flag"
22219                 ;;
22220
22221                 pthread-config)
22222                 # skip this if we already have flags defined, for PostgreSQL
22223                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22224                 # Extract the first word of "pthread-config", so it can be a program name with args.
22225 set dummy pthread-config; ac_word=$2
22226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22227 $as_echo_n "checking for $ac_word... " >&6; }
22228 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22229   $as_echo_n "(cached) " >&6
22230 else
22231   if test -n "$acx_pthread_config"; then
22232   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22233 else
22234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22235 for as_dir in $PATH
22236 do
22237   IFS=$as_save_IFS
22238   test -z "$as_dir" && as_dir=.
22239   for ac_exec_ext in '' $ac_executable_extensions; do
22240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22241     ac_cv_prog_acx_pthread_config="yes"
22242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22243     break 2
22244   fi
22245 done
22246 done
22247 IFS=$as_save_IFS
22248
22249   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22250 fi
22251 fi
22252 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22253 if test -n "$acx_pthread_config"; then
22254   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22255 $as_echo "$acx_pthread_config" >&6; }
22256 else
22257   { $as_echo "$as_me:$LINENO: result: no" >&5
22258 $as_echo "no" >&6; }
22259 fi
22260
22261
22262                 if test x"$acx_pthread_config" = xno; then continue; fi
22263                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22264                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22265                 ;;
22266
22267                 *)
22268                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22269 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22270                 tryPTHREAD_LIBS="-l$flag"
22271                 ;;
22272         esac
22273
22274         save_LIBS="$LIBS"
22275         save_CFLAGS="$CFLAGS"
22276         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22277         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22278
22279         # Check for various functions.  We must include pthread.h,
22280         # since some functions may be macros.  (On the Sequent, we
22281         # need a special flag -Kthread to make this header compile.)
22282         # We check for pthread_join because it is in -lpthread on IRIX
22283         # while pthread_create is in libc.  We check for pthread_attr_init
22284         # due to DEC craziness with -lpthreads.  We check for
22285         # pthread_cleanup_push because it is one of the few pthread
22286         # functions on Solaris that doesn't have a non-functional libc stub.
22287         # We try pthread_create on general principles.
22288         cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h.  */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h.  */
22294 #include <pthread.h>
22295 int
22296 main ()
22297 {
22298 pthread_t th; pthread_join(th, 0);
22299                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22300                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22301   ;
22302   return 0;
22303 }
22304 _ACEOF
22305 rm -f conftest.$ac_objext conftest$ac_exeext
22306 if { (ac_try="$ac_link"
22307 case "(($ac_try" in
22308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309   *) ac_try_echo=$ac_try;;
22310 esac
22311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22312 $as_echo "$ac_try_echo") >&5
22313   (eval "$ac_link") 2>conftest.er1
22314   ac_status=$?
22315   grep -v '^ *+' conftest.er1 >conftest.err
22316   rm -f conftest.er1
22317   cat conftest.err >&5
22318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); } && {
22320          test -z "$ac_c_werror_flag" ||
22321          test ! -s conftest.err
22322        } && test -s conftest$ac_exeext && {
22323          test "$cross_compiling" = yes ||
22324          $as_test_x conftest$ac_exeext
22325        }; then
22326   acx_pthread_ok=yes
22327 else
22328   $as_echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22330
22331         acx_pthread_ok=no
22332 fi
22333
22334 rm -rf conftest.dSYM
22335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22336       conftest$ac_exeext conftest.$ac_ext
22337
22338         if test "x$acx_pthread_ok" = xyes; then
22339             # Don't use options that are ignored by the compiler.
22340             # We find them by checking stderror.
22341             cat >conftest.$ac_ext <<_ACEOF
22342 int
22343 main (int argc, char **argv)
22344 {
22345   (void) argc;
22346   (void) argv;
22347   return 0;
22348 }
22349 _ACEOF
22350             rm -f conftest.$ac_objext conftest$ac_exeext
22351             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22352                 # we continue with more flags because Linux needs -lpthread
22353                 # for libpq builds on PostgreSQL.  The test above only
22354                 # tests for building binaries, not shared libraries.
22355                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22356                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22357             else   acx_pthread_ok=no
22358             fi
22359         fi
22360
22361         LIBS="$save_LIBS"
22362         CFLAGS="$save_CFLAGS"
22363
22364         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22365 $as_echo "$acx_pthread_ok" >&6; }
22366 done
22367 fi
22368
22369 # Various other checks:
22370 if test "x$acx_pthread_ok" = xyes; then
22371         save_LIBS="$LIBS"
22372         LIBS="$PTHREAD_LIBS $LIBS"
22373         save_CFLAGS="$CFLAGS"
22374         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22375
22376         # Detect AIX lossage: threads are created detached by default
22377         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22378         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22379 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22380         cat >conftest.$ac_ext <<_ACEOF
22381 /* confdefs.h.  */
22382 _ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h.  */
22386 #include <pthread.h>
22387 int
22388 main ()
22389 {
22390 int attr=PTHREAD_CREATE_JOINABLE;
22391   ;
22392   return 0;
22393 }
22394 _ACEOF
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396 if { (ac_try="$ac_link"
22397 case "(($ac_try" in
22398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399   *) ac_try_echo=$ac_try;;
22400 esac
22401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22402 $as_echo "$ac_try_echo") >&5
22403   (eval "$ac_link") 2>conftest.er1
22404   ac_status=$?
22405   grep -v '^ *+' conftest.er1 >conftest.err
22406   rm -f conftest.er1
22407   cat conftest.err >&5
22408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); } && {
22410          test -z "$ac_c_werror_flag" ||
22411          test ! -s conftest.err
22412        } && test -s conftest$ac_exeext && {
22413          test "$cross_compiling" = yes ||
22414          $as_test_x conftest$ac_exeext
22415        }; then
22416   ok=PTHREAD_CREATE_JOINABLE
22417 else
22418   $as_echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22420
22421         ok=unknown
22422 fi
22423
22424 rm -rf conftest.dSYM
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426       conftest$ac_exeext conftest.$ac_ext
22427         if test x"$ok" = xunknown; then
22428                 cat >conftest.$ac_ext <<_ACEOF
22429 /* confdefs.h.  */
22430 _ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h.  */
22434 #include <pthread.h>
22435 int
22436 main ()
22437 {
22438 int attr=PTHREAD_CREATE_UNDETACHED;
22439   ;
22440   return 0;
22441 }
22442 _ACEOF
22443 rm -f conftest.$ac_objext conftest$ac_exeext
22444 if { (ac_try="$ac_link"
22445 case "(($ac_try" in
22446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447   *) ac_try_echo=$ac_try;;
22448 esac
22449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22450 $as_echo "$ac_try_echo") >&5
22451   (eval "$ac_link") 2>conftest.er1
22452   ac_status=$?
22453   grep -v '^ *+' conftest.er1 >conftest.err
22454   rm -f conftest.er1
22455   cat conftest.err >&5
22456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); } && {
22458          test -z "$ac_c_werror_flag" ||
22459          test ! -s conftest.err
22460        } && test -s conftest$ac_exeext && {
22461          test "$cross_compiling" = yes ||
22462          $as_test_x conftest$ac_exeext
22463        }; then
22464   ok=PTHREAD_CREATE_UNDETACHED
22465 else
22466   $as_echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469         ok=unknown
22470 fi
22471
22472 rm -rf conftest.dSYM
22473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22474       conftest$ac_exeext conftest.$ac_ext
22475         fi
22476         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22477
22478 cat >>confdefs.h <<\_ACEOF
22479 #define PTHREAD_CREATE_JOINABLE $ok
22480 _ACEOF
22481
22482         fi
22483         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22484 $as_echo "${ok}" >&6; }
22485         if test x"$ok" = xunknown; then
22486                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22487 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22488         fi
22489
22490         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22491 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22492         flag=no
22493 # We always add these in PostgreSQL
22494 #       case "${host_cpu}-${host_os}" in
22495 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22496 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22497 #       esac
22498         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22499 $as_echo "${flag}" >&6; }
22500         if test "x$flag" != xno; then
22501                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22502         fi
22503
22504         LIBS="$save_LIBS"
22505         CFLAGS="$save_CFLAGS"
22506
22507 # Supporting cc_r would require a special CC in all places that
22508 # use libpq, and that is ugly, so we don't do it.  Users can still
22509 # define their compiler as cc_r to do thread builds of everything.
22510         # More AIX lossage: must compile with cc_r
22511         # Extract the first word of "cc_r", so it can be a program name with args.
22512 set dummy cc_r; ac_word=$2
22513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22514 $as_echo_n "checking for $ac_word... " >&6; }
22515 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22516   $as_echo_n "(cached) " >&6
22517 else
22518   if test -n "$PTHREAD_CC"; then
22519   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22520 else
22521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22522 for as_dir in $PATH
22523 do
22524   IFS=$as_save_IFS
22525   test -z "$as_dir" && as_dir=.
22526   for ac_exec_ext in '' $ac_executable_extensions; do
22527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22528     ac_cv_prog_PTHREAD_CC="cc_r"
22529     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22530     break 2
22531   fi
22532 done
22533 done
22534 IFS=$as_save_IFS
22535
22536   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22537 fi
22538 fi
22539 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22540 if test -n "$PTHREAD_CC"; then
22541   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22542 $as_echo "$PTHREAD_CC" >&6; }
22543 else
22544   { $as_echo "$as_me:$LINENO: result: no" >&5
22545 $as_echo "no" >&6; }
22546 fi
22547
22548
22549 else
22550         PTHREAD_CC="$CC"
22551 fi
22552
22553
22554
22555
22556
22557 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22558 if test x"$acx_pthread_ok" = xyes; then
22559
22560 cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_PTHREAD 1
22562 _ACEOF
22563
22564         :
22565 else
22566         acx_pthread_ok=no
22567
22568 fi
22569 ac_ext=c
22570 ac_cpp='$CPP $CPPFLAGS'
22571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22574
22575         # set thread flags
22576
22577 # Some platforms use these, so just define them.  They can't hurt if they
22578 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22579 # enables 5-arg getpwuid_r, among other things.
22580 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22581
22582
22583 # At this point, we don't want to muck with the compiler name for threading.
22584 # Let's see who fails, perhaps AIX.  2004-04-23
22585 if test "$PTHREAD_CC" != "$CC"; then
22586 { { $as_echo "$as_me:$LINENO: error:
22587 PostgreSQL does not support platforms that require a special compiler
22588 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
22589 $as_echo "$as_me: error:
22590 PostgreSQL does not support platforms that require a special compiler
22591 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
22592    { (exit 1); exit 1; }; }
22593 fi
22594
22595 # Check for *_r functions
22596 _CFLAGS="$CFLAGS"
22597 _LIBS="$LIBS"
22598 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22599 LIBS="$LIBS $PTHREAD_LIBS"
22600
22601 if test "$PORTNAME" != "win32"; then
22602 if test "${ac_cv_header_pthread_h+set}" = set; then
22603   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22604 $as_echo_n "checking for pthread.h... " >&6; }
22605 if test "${ac_cv_header_pthread_h+set}" = set; then
22606   $as_echo_n "(cached) " >&6
22607 fi
22608 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22609 $as_echo "$ac_cv_header_pthread_h" >&6; }
22610 else
22611   # Is the header compilable?
22612 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22613 $as_echo_n "checking pthread.h usability... " >&6; }
22614 cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h.  */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h.  */
22620 $ac_includes_default
22621 #include <pthread.h>
22622 _ACEOF
22623 rm -f conftest.$ac_objext
22624 if { (ac_try="$ac_compile"
22625 case "(($ac_try" in
22626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627   *) ac_try_echo=$ac_try;;
22628 esac
22629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22630 $as_echo "$ac_try_echo") >&5
22631   (eval "$ac_compile") 2>conftest.er1
22632   ac_status=$?
22633   grep -v '^ *+' conftest.er1 >conftest.err
22634   rm -f conftest.er1
22635   cat conftest.err >&5
22636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); } && {
22638          test -z "$ac_c_werror_flag" ||
22639          test ! -s conftest.err
22640        } && test -s conftest.$ac_objext; then
22641   ac_header_compiler=yes
22642 else
22643   $as_echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22645
22646         ac_header_compiler=no
22647 fi
22648
22649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22651 $as_echo "$ac_header_compiler" >&6; }
22652
22653 # Is the header present?
22654 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22655 $as_echo_n "checking pthread.h presence... " >&6; }
22656 cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h.  */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h.  */
22662 #include <pthread.h>
22663 _ACEOF
22664 if { (ac_try="$ac_cpp conftest.$ac_ext"
22665 case "(($ac_try" in
22666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22667   *) ac_try_echo=$ac_try;;
22668 esac
22669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22670 $as_echo "$ac_try_echo") >&5
22671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22672   ac_status=$?
22673   grep -v '^ *+' conftest.er1 >conftest.err
22674   rm -f conftest.er1
22675   cat conftest.err >&5
22676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); } >/dev/null && {
22678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22679          test ! -s conftest.err
22680        }; then
22681   ac_header_preproc=yes
22682 else
22683   $as_echo "$as_me: failed program was:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22685
22686   ac_header_preproc=no
22687 fi
22688
22689 rm -f conftest.err conftest.$ac_ext
22690 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22691 $as_echo "$ac_header_preproc" >&6; }
22692
22693 # So?  What about this header?
22694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22695   yes:no: )
22696     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22697 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22698     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22699 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22700     ac_header_preproc=yes
22701     ;;
22702   no:yes:* )
22703     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22704 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22705     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
22706 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
22707     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22708 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22709     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
22710 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22711     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22712 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22713     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22714 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22715     ( cat <<\_ASBOX
22716 ## ---------------------------------------- ##
22717 ## Report this to pgsql-bugs@postgresql.org ##
22718 ## ---------------------------------------- ##
22719 _ASBOX
22720      ) | sed "s/^/$as_me: WARNING:     /" >&2
22721     ;;
22722 esac
22723 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22724 $as_echo_n "checking for pthread.h... " >&6; }
22725 if test "${ac_cv_header_pthread_h+set}" = set; then
22726   $as_echo_n "(cached) " >&6
22727 else
22728   ac_cv_header_pthread_h=$ac_header_preproc
22729 fi
22730 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22731 $as_echo "$ac_cv_header_pthread_h" >&6; }
22732
22733 fi
22734 if test "x$ac_cv_header_pthread_h" = x""yes; then
22735   :
22736 else
22737   { { $as_echo "$as_me:$LINENO: error:
22738 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
22739 $as_echo "$as_me: error:
22740 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
22741    { (exit 1); exit 1; }; }
22742 fi
22743
22744
22745 fi
22746
22747
22748
22749
22750 for ac_func in strerror_r getpwuid_r gethostbyname_r
22751 do
22752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22753 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22754 $as_echo_n "checking for $ac_func... " >&6; }
22755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22756   $as_echo_n "(cached) " >&6
22757 else
22758   cat >conftest.$ac_ext <<_ACEOF
22759 /* confdefs.h.  */
22760 _ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h.  */
22764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22766 #define $ac_func innocuous_$ac_func
22767
22768 /* System header to define __stub macros and hopefully few prototypes,
22769     which can conflict with char $ac_func (); below.
22770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22771     <limits.h> exists even on freestanding compilers.  */
22772
22773 #ifdef __STDC__
22774 # include <limits.h>
22775 #else
22776 # include <assert.h>
22777 #endif
22778
22779 #undef $ac_func
22780
22781 /* Override any GCC internal prototype to avoid an error.
22782    Use char because int might match the return type of a GCC
22783    builtin and then its argument prototype would still apply.  */
22784 #ifdef __cplusplus
22785 extern "C"
22786 #endif
22787 char $ac_func ();
22788 /* The GNU C library defines this for functions which it implements
22789     to always fail with ENOSYS.  Some functions are actually named
22790     something starting with __ and the normal name is an alias.  */
22791 #if defined __stub_$ac_func || defined __stub___$ac_func
22792 choke me
22793 #endif
22794
22795 int
22796 main ()
22797 {
22798 return $ac_func ();
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest.$ac_objext conftest$ac_exeext
22804 if { (ac_try="$ac_link"
22805 case "(($ac_try" in
22806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807   *) ac_try_echo=$ac_try;;
22808 esac
22809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22810 $as_echo "$ac_try_echo") >&5
22811   (eval "$ac_link") 2>conftest.er1
22812   ac_status=$?
22813   grep -v '^ *+' conftest.er1 >conftest.err
22814   rm -f conftest.er1
22815   cat conftest.err >&5
22816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); } && {
22818          test -z "$ac_c_werror_flag" ||
22819          test ! -s conftest.err
22820        } && test -s conftest$ac_exeext && {
22821          test "$cross_compiling" = yes ||
22822          $as_test_x conftest$ac_exeext
22823        }; then
22824   eval "$as_ac_var=yes"
22825 else
22826   $as_echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829         eval "$as_ac_var=no"
22830 fi
22831
22832 rm -rf conftest.dSYM
22833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22834       conftest$ac_exeext conftest.$ac_ext
22835 fi
22836 ac_res=`eval 'as_val=${'$as_ac_var'}
22837                  $as_echo "$as_val"'`
22838                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22839 $as_echo "$ac_res" >&6; }
22840 as_val=`eval 'as_val=${'$as_ac_var'}
22841                  $as_echo "$as_val"'`
22842    if test "x$as_val" = x""yes; then
22843   cat >>confdefs.h <<_ACEOF
22844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22845 _ACEOF
22846
22847 fi
22848 done
22849
22850
22851 # Do test here with the proper thread flags
22852 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
22853 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
22854 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
22855   $as_echo_n "(cached) " >&6
22856 else
22857   cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863 #include <sys/types.h>
22864 #include <pwd.h>
22865 int
22866 main ()
22867 {
22868 uid_t uid;
22869 struct passwd *space;
22870 char *buf;
22871 size_t bufsize;
22872 struct passwd **result;
22873 getpwuid_r(uid, space, buf, bufsize, result);
22874   ;
22875   return 0;
22876 }
22877 _ACEOF
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882   *) ac_try_echo=$ac_try;;
22883 esac
22884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22885 $as_echo "$ac_try_echo") >&5
22886   (eval "$ac_compile") 2>conftest.er1
22887   ac_status=$?
22888   grep -v '^ *+' conftest.er1 >conftest.err
22889   rm -f conftest.er1
22890   cat conftest.err >&5
22891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892   (exit $ac_status); } && {
22893          test -z "$ac_c_werror_flag" ||
22894          test ! -s conftest.err
22895        } && test -s conftest.$ac_objext; then
22896   pgac_cv_func_getpwuid_r_5arg=yes
22897 else
22898   $as_echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901         pgac_cv_func_getpwuid_r_5arg=no
22902 fi
22903
22904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22905 fi
22906 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
22907 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
22908 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
22909
22910 cat >>confdefs.h <<\_ACEOF
22911 #define GETPWUID_R_5ARG /**/
22912 _ACEOF
22913
22914 fi
22915
22916 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
22917 $as_echo_n "checking whether strerror_r returns int... " >&6; }
22918 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
22919   $as_echo_n "(cached) " >&6
22920 else
22921   cat >conftest.$ac_ext <<_ACEOF
22922 /* confdefs.h.  */
22923 _ACEOF
22924 cat confdefs.h >>conftest.$ac_ext
22925 cat >>conftest.$ac_ext <<_ACEOF
22926 /* end confdefs.h.  */
22927 #include <string.h>
22928 int
22929 main ()
22930 {
22931 #ifndef _AIX
22932 int strerror_r(int, char *, size_t);
22933 #else
22934 /* Older AIX has 'int' for the third argument so we don't test the args. */
22935 int strerror_r();
22936 #endif
22937   ;
22938   return 0;
22939 }
22940 _ACEOF
22941 rm -f conftest.$ac_objext
22942 if { (ac_try="$ac_compile"
22943 case "(($ac_try" in
22944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945   *) ac_try_echo=$ac_try;;
22946 esac
22947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22948 $as_echo "$ac_try_echo") >&5
22949   (eval "$ac_compile") 2>conftest.er1
22950   ac_status=$?
22951   grep -v '^ *+' conftest.er1 >conftest.err
22952   rm -f conftest.er1
22953   cat conftest.err >&5
22954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); } && {
22956          test -z "$ac_c_werror_flag" ||
22957          test ! -s conftest.err
22958        } && test -s conftest.$ac_objext; then
22959   pgac_cv_func_strerror_r_int=yes
22960 else
22961   $as_echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22963
22964         pgac_cv_func_strerror_r_int=no
22965 fi
22966
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968 fi
22969 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
22970 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
22971 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
22972
22973 cat >>confdefs.h <<\_ACEOF
22974 #define STRERROR_R_INT /**/
22975 _ACEOF
22976
22977 fi
22978
22979
22980 CFLAGS="$_CFLAGS"
22981 LIBS="$_LIBS"
22982
22983 else
22984 # do not use values from template file
22985 PTHREAD_CFLAGS=
22986 PTHREAD_LIBS=
22987 fi
22988
22989
22990
22991
22992
22993 # We can test for libldap_r only after we know PTHREAD_LIBS
22994 if test "$with_ldap" = yes ; then
22995   _LIBS="$LIBS"
22996   if test "$PORTNAME" != "win32"; then
22997
22998 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
22999 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23000 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23001   $as_echo_n "(cached) " >&6
23002 else
23003   ac_check_lib_save_LIBS=$LIBS
23004 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23005 cat >conftest.$ac_ext <<_ACEOF
23006 /* confdefs.h.  */
23007 _ACEOF
23008 cat confdefs.h >>conftest.$ac_ext
23009 cat >>conftest.$ac_ext <<_ACEOF
23010 /* end confdefs.h.  */
23011
23012 /* Override any GCC internal prototype to avoid an error.
23013    Use char because int might match the return type of a GCC
23014    builtin and then its argument prototype would still apply.  */
23015 #ifdef __cplusplus
23016 extern "C"
23017 #endif
23018 char ldap_bind ();
23019 int
23020 main ()
23021 {
23022 return ldap_bind ();
23023   ;
23024   return 0;
23025 }
23026 _ACEOF
23027 rm -f conftest.$ac_objext conftest$ac_exeext
23028 if { (ac_try="$ac_link"
23029 case "(($ac_try" in
23030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031   *) ac_try_echo=$ac_try;;
23032 esac
23033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23034 $as_echo "$ac_try_echo") >&5
23035   (eval "$ac_link") 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } && {
23042          test -z "$ac_c_werror_flag" ||
23043          test ! -s conftest.err
23044        } && test -s conftest$ac_exeext && {
23045          test "$cross_compiling" = yes ||
23046          $as_test_x conftest$ac_exeext
23047        }; then
23048   ac_cv_lib_ldap_ldap_bind=yes
23049 else
23050   $as_echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23052
23053         ac_cv_lib_ldap_ldap_bind=no
23054 fi
23055
23056 rm -rf conftest.dSYM
23057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23058       conftest$ac_exeext conftest.$ac_ext
23059 LIBS=$ac_check_lib_save_LIBS
23060 fi
23061 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23062 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23063 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23064   cat >>confdefs.h <<_ACEOF
23065 #define HAVE_LIBLDAP 1
23066 _ACEOF
23067
23068   LIBS="-lldap $LIBS"
23069
23070 else
23071   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23072 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23073    { (exit 1); exit 1; }; }
23074 fi
23075
23076     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23077     if test "$enable_thread_safety" = yes; then
23078       # on some platforms ldap_r fails to link without PTHREAD_LIBS
23079
23080 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23081 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23082 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23083   $as_echo_n "(cached) " >&6
23084 else
23085   ac_check_lib_save_LIBS=$LIBS
23086 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093
23094 /* Override any GCC internal prototype to avoid an error.
23095    Use char because int might match the return type of a GCC
23096    builtin and then its argument prototype would still apply.  */
23097 #ifdef __cplusplus
23098 extern "C"
23099 #endif
23100 char ldap_simple_bind ();
23101 int
23102 main ()
23103 {
23104 return ldap_simple_bind ();
23105   ;
23106   return 0;
23107 }
23108 _ACEOF
23109 rm -f conftest.$ac_objext conftest$ac_exeext
23110 if { (ac_try="$ac_link"
23111 case "(($ac_try" in
23112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23113   *) ac_try_echo=$ac_try;;
23114 esac
23115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23116 $as_echo "$ac_try_echo") >&5
23117   (eval "$ac_link") 2>conftest.er1
23118   ac_status=$?
23119   grep -v '^ *+' conftest.er1 >conftest.err
23120   rm -f conftest.er1
23121   cat conftest.err >&5
23122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); } && {
23124          test -z "$ac_c_werror_flag" ||
23125          test ! -s conftest.err
23126        } && test -s conftest$ac_exeext && {
23127          test "$cross_compiling" = yes ||
23128          $as_test_x conftest$ac_exeext
23129        }; then
23130   ac_cv_lib_ldap_r_ldap_simple_bind=yes
23131 else
23132   $as_echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23134
23135         ac_cv_lib_ldap_r_ldap_simple_bind=no
23136 fi
23137
23138 rm -rf conftest.dSYM
23139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23140       conftest$ac_exeext conftest.$ac_ext
23141 LIBS=$ac_check_lib_save_LIBS
23142 fi
23143 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23144 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23145 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23146   cat >>confdefs.h <<_ACEOF
23147 #define HAVE_LIBLDAP_R 1
23148 _ACEOF
23149
23150   LIBS="-lldap_r $LIBS"
23151
23152 else
23153   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23154 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23155    { (exit 1); exit 1; }; }
23156 fi
23157
23158       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23159     else
23160       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23161     fi
23162   else
23163
23164 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23165 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23166 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23167   $as_echo_n "(cached) " >&6
23168 else
23169   ac_check_lib_save_LIBS=$LIBS
23170 LIBS="-lwldap32  $LIBS"
23171 cat >conftest.$ac_ext <<_ACEOF
23172 /* confdefs.h.  */
23173 _ACEOF
23174 cat confdefs.h >>conftest.$ac_ext
23175 cat >>conftest.$ac_ext <<_ACEOF
23176 /* end confdefs.h.  */
23177
23178 /* Override any GCC internal prototype to avoid an error.
23179    Use char because int might match the return type of a GCC
23180    builtin and then its argument prototype would still apply.  */
23181 #ifdef __cplusplus
23182 extern "C"
23183 #endif
23184 char ldap_bind ();
23185 int
23186 main ()
23187 {
23188 return ldap_bind ();
23189   ;
23190   return 0;
23191 }
23192 _ACEOF
23193 rm -f conftest.$ac_objext conftest$ac_exeext
23194 if { (ac_try="$ac_link"
23195 case "(($ac_try" in
23196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197   *) ac_try_echo=$ac_try;;
23198 esac
23199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23200 $as_echo "$ac_try_echo") >&5
23201   (eval "$ac_link") 2>conftest.er1
23202   ac_status=$?
23203   grep -v '^ *+' conftest.er1 >conftest.err
23204   rm -f conftest.er1
23205   cat conftest.err >&5
23206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } && {
23208          test -z "$ac_c_werror_flag" ||
23209          test ! -s conftest.err
23210        } && test -s conftest$ac_exeext && {
23211          test "$cross_compiling" = yes ||
23212          $as_test_x conftest$ac_exeext
23213        }; then
23214   ac_cv_lib_wldap32_ldap_bind=yes
23215 else
23216   $as_echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23218
23219         ac_cv_lib_wldap32_ldap_bind=no
23220 fi
23221
23222 rm -rf conftest.dSYM
23223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23224       conftest$ac_exeext conftest.$ac_ext
23225 LIBS=$ac_check_lib_save_LIBS
23226 fi
23227 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23228 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23229 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23230   cat >>confdefs.h <<_ACEOF
23231 #define HAVE_LIBWLDAP32 1
23232 _ACEOF
23233
23234   LIBS="-lwldap32 $LIBS"
23235
23236 else
23237   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23238 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23239    { (exit 1); exit 1; }; }
23240 fi
23241
23242     LDAP_LIBS_FE="-lwldap32"
23243     LDAP_LIBS_BE="-lwldap32"
23244   fi
23245   LIBS="$_LIBS"
23246 fi
23247
23248
23249
23250
23251 # This test makes sure that run tests work at all.  Sometimes a shared
23252 # library is found by the linker, but the runtime linker can't find it.
23253 # This check should come after all modifications of compiler or linker
23254 # variables, and before any other run tests.
23255 { $as_echo "$as_me:$LINENO: checking test program" >&5
23256 $as_echo_n "checking test program... " >&6; }
23257 if test "$cross_compiling" = yes; then
23258   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23259 $as_echo "cross-compiling" >&6; }
23260 else
23261   cat >conftest.$ac_ext <<_ACEOF
23262 /* confdefs.h.  */
23263 _ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h.  */
23267 int main() { return 0; }
23268 _ACEOF
23269 rm -f conftest$ac_exeext
23270 if { (ac_try="$ac_link"
23271 case "(($ac_try" in
23272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23273   *) ac_try_echo=$ac_try;;
23274 esac
23275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23276 $as_echo "$ac_try_echo") >&5
23277   (eval "$ac_link") 2>&5
23278   ac_status=$?
23279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23281   { (case "(($ac_try" in
23282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23283   *) ac_try_echo=$ac_try;;
23284 esac
23285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23286 $as_echo "$ac_try_echo") >&5
23287   (eval "$ac_try") 2>&5
23288   ac_status=$?
23289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); }; }; then
23291   { $as_echo "$as_me:$LINENO: result: ok" >&5
23292 $as_echo "ok" >&6; }
23293 else
23294   $as_echo "$as_me: program exited with status $ac_status" >&5
23295 $as_echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23297
23298 ( exit $ac_status )
23299 { $as_echo "$as_me:$LINENO: result: failed" >&5
23300 $as_echo "failed" >&6; }
23301 { { $as_echo "$as_me:$LINENO: error:
23302 Could not execute a simple test program.  This may be a problem
23303 related to locating shared libraries.  Check the file 'config.log'
23304 for the exact reason." >&5
23305 $as_echo "$as_me: error:
23306 Could not execute a simple test program.  This may be a problem
23307 related to locating shared libraries.  Check the file 'config.log'
23308 for the exact reason." >&2;}
23309    { (exit 1); exit 1; }; }
23310 fi
23311 rm -rf conftest.dSYM
23312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23313 fi
23314
23315
23316
23317 # --------------------
23318 # Run tests below here
23319 # --------------------
23320
23321 # Force use of our snprintf if system's doesn't do arg control
23322 # See comment above at snprintf test for details.
23323 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23324   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23325 $as_echo_n "checking whether printf supports argument control... " >&6; }
23326 if test "${pgac_cv_printf_arg_control+set}" = set; then
23327   $as_echo_n "(cached) " >&6
23328 else
23329   if test "$cross_compiling" = yes; then
23330   pgac_cv_printf_arg_control=cross
23331 else
23332   cat >conftest.$ac_ext <<_ACEOF
23333 /* confdefs.h.  */
23334 _ACEOF
23335 cat confdefs.h >>conftest.$ac_ext
23336 cat >>conftest.$ac_ext <<_ACEOF
23337 /* end confdefs.h.  */
23338 #include <stdio.h>
23339 #include <string.h>
23340
23341 int main()
23342 {
23343   char buf[100];
23344
23345   /* can it swap arguments? */
23346   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23347   if (strcmp(buf, "4 3") != 0)
23348     return 1;
23349   return 0;
23350 }
23351 _ACEOF
23352 rm -f conftest$ac_exeext
23353 if { (ac_try="$ac_link"
23354 case "(($ac_try" in
23355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356   *) ac_try_echo=$ac_try;;
23357 esac
23358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23359 $as_echo "$ac_try_echo") >&5
23360   (eval "$ac_link") 2>&5
23361   ac_status=$?
23362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23364   { (case "(($ac_try" in
23365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366   *) ac_try_echo=$ac_try;;
23367 esac
23368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23369 $as_echo "$ac_try_echo") >&5
23370   (eval "$ac_try") 2>&5
23371   ac_status=$?
23372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373   (exit $ac_status); }; }; then
23374   pgac_cv_printf_arg_control=yes
23375 else
23376   $as_echo "$as_me: program exited with status $ac_status" >&5
23377 $as_echo "$as_me: failed program was:" >&5
23378 sed 's/^/| /' conftest.$ac_ext >&5
23379
23380 ( exit $ac_status )
23381 pgac_cv_printf_arg_control=no
23382 fi
23383 rm -rf conftest.dSYM
23384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23385 fi
23386
23387
23388
23389 fi
23390 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23391 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23392
23393   if test $pgac_cv_printf_arg_control != yes ; then
23394     pgac_need_repl_snprintf=yes
23395   fi
23396 fi
23397
23398
23399
23400
23401 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23402 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23403 if test "${pgac_cv_type_long_int_64+set}" = set; then
23404   $as_echo_n "(cached) " >&6
23405 else
23406   if test "$cross_compiling" = yes; then
23407   # If cross-compiling, check the size reported by the compiler and
23408 # trust that the arithmetic works.
23409 cat >conftest.$ac_ext <<_ACEOF
23410 /* confdefs.h.  */
23411 _ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h.  */
23415
23416 int
23417 main ()
23418 {
23419 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23420 test_array [0] = 0
23421
23422   ;
23423   return 0;
23424 }
23425 _ACEOF
23426 rm -f conftest.$ac_objext
23427 if { (ac_try="$ac_compile"
23428 case "(($ac_try" in
23429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23430   *) ac_try_echo=$ac_try;;
23431 esac
23432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23433 $as_echo "$ac_try_echo") >&5
23434   (eval "$ac_compile") 2>conftest.er1
23435   ac_status=$?
23436   grep -v '^ *+' conftest.er1 >conftest.err
23437   rm -f conftest.er1
23438   cat conftest.err >&5
23439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440   (exit $ac_status); } && {
23441          test -z "$ac_c_werror_flag" ||
23442          test ! -s conftest.err
23443        } && test -s conftest.$ac_objext; then
23444   pgac_cv_type_long_int_64=yes
23445 else
23446   $as_echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23448
23449         pgac_cv_type_long_int_64=no
23450 fi
23451
23452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23453 else
23454   cat >conftest.$ac_ext <<_ACEOF
23455 /* confdefs.h.  */
23456 _ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h.  */
23460 typedef long int ac_int64;
23461
23462 /*
23463  * These are globals to discourage the compiler from folding all the
23464  * arithmetic tests down to compile-time constants.
23465  */
23466 ac_int64 a = 20000001;
23467 ac_int64 b = 40000005;
23468
23469 int does_int64_work()
23470 {
23471   ac_int64 c,d;
23472
23473   if (sizeof(ac_int64) != 8)
23474     return 0;                   /* definitely not the right size */
23475
23476   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23477   c = a * b;
23478   d = (c + b) / b;
23479   if (d != a+1)
23480     return 0;
23481   return 1;
23482 }
23483 main() {
23484   exit(! does_int64_work());
23485 }
23486 _ACEOF
23487 rm -f conftest$ac_exeext
23488 if { (ac_try="$ac_link"
23489 case "(($ac_try" in
23490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23491   *) ac_try_echo=$ac_try;;
23492 esac
23493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23494 $as_echo "$ac_try_echo") >&5
23495   (eval "$ac_link") 2>&5
23496   ac_status=$?
23497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23499   { (case "(($ac_try" in
23500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23501   *) ac_try_echo=$ac_try;;
23502 esac
23503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23504 $as_echo "$ac_try_echo") >&5
23505   (eval "$ac_try") 2>&5
23506   ac_status=$?
23507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508   (exit $ac_status); }; }; then
23509   pgac_cv_type_long_int_64=yes
23510 else
23511   $as_echo "$as_me: program exited with status $ac_status" >&5
23512 $as_echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23514
23515 ( exit $ac_status )
23516 pgac_cv_type_long_int_64=no
23517 fi
23518 rm -rf conftest.dSYM
23519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23520 fi
23521
23522
23523 fi
23524 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23525 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23526
23527 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23528 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23529
23530 cat >>confdefs.h <<\_ACEOF
23531 #define HAVE_LONG_INT_64 1
23532 _ACEOF
23533
23534 fi
23535
23536
23537 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23538   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23539 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23540 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23541   $as_echo_n "(cached) " >&6
23542 else
23543   if test "$cross_compiling" = yes; then
23544   # If cross-compiling, check the size reported by the compiler and
23545 # trust that the arithmetic works.
23546 cat >conftest.$ac_ext <<_ACEOF
23547 /* confdefs.h.  */
23548 _ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h.  */
23552
23553 int
23554 main ()
23555 {
23556 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23557 test_array [0] = 0
23558
23559   ;
23560   return 0;
23561 }
23562 _ACEOF
23563 rm -f conftest.$ac_objext
23564 if { (ac_try="$ac_compile"
23565 case "(($ac_try" in
23566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567   *) ac_try_echo=$ac_try;;
23568 esac
23569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23570 $as_echo "$ac_try_echo") >&5
23571   (eval "$ac_compile") 2>conftest.er1
23572   ac_status=$?
23573   grep -v '^ *+' conftest.er1 >conftest.err
23574   rm -f conftest.er1
23575   cat conftest.err >&5
23576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); } && {
23578          test -z "$ac_c_werror_flag" ||
23579          test ! -s conftest.err
23580        } && test -s conftest.$ac_objext; then
23581   pgac_cv_type_long_long_int_64=yes
23582 else
23583   $as_echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23585
23586         pgac_cv_type_long_long_int_64=no
23587 fi
23588
23589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590 else
23591   cat >conftest.$ac_ext <<_ACEOF
23592 /* confdefs.h.  */
23593 _ACEOF
23594 cat confdefs.h >>conftest.$ac_ext
23595 cat >>conftest.$ac_ext <<_ACEOF
23596 /* end confdefs.h.  */
23597 typedef long long int ac_int64;
23598
23599 /*
23600  * These are globals to discourage the compiler from folding all the
23601  * arithmetic tests down to compile-time constants.
23602  */
23603 ac_int64 a = 20000001;
23604 ac_int64 b = 40000005;
23605
23606 int does_int64_work()
23607 {
23608   ac_int64 c,d;
23609
23610   if (sizeof(ac_int64) != 8)
23611     return 0;                   /* definitely not the right size */
23612
23613   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23614   c = a * b;
23615   d = (c + b) / b;
23616   if (d != a+1)
23617     return 0;
23618   return 1;
23619 }
23620 main() {
23621   exit(! does_int64_work());
23622 }
23623 _ACEOF
23624 rm -f conftest$ac_exeext
23625 if { (ac_try="$ac_link"
23626 case "(($ac_try" in
23627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628   *) ac_try_echo=$ac_try;;
23629 esac
23630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23631 $as_echo "$ac_try_echo") >&5
23632   (eval "$ac_link") 2>&5
23633   ac_status=$?
23634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23636   { (case "(($ac_try" in
23637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638   *) ac_try_echo=$ac_try;;
23639 esac
23640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23641 $as_echo "$ac_try_echo") >&5
23642   (eval "$ac_try") 2>&5
23643   ac_status=$?
23644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); }; }; then
23646   pgac_cv_type_long_long_int_64=yes
23647 else
23648   $as_echo "$as_me: program exited with status $ac_status" >&5
23649 $as_echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23651
23652 ( exit $ac_status )
23653 pgac_cv_type_long_long_int_64=no
23654 fi
23655 rm -rf conftest.dSYM
23656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23657 fi
23658
23659
23660 fi
23661 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
23662 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23663
23664 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23665 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23666
23667 cat >>confdefs.h <<\_ACEOF
23668 #define HAVE_LONG_LONG_INT_64 1
23669 _ACEOF
23670
23671 fi
23672
23673   if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
23674     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
23675 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
23676    { (exit 1); exit 1; }; }
23677   fi
23678 fi
23679
23680
23681
23682 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23683   cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h.  */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h.  */
23689
23690 #define INT64CONST(x)  x##LL
23691 long long int foo = INT64CONST(0x1234567890123456);
23692
23693 int
23694 main ()
23695 {
23696
23697   ;
23698   return 0;
23699 }
23700 _ACEOF
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705   *) ac_try_echo=$ac_try;;
23706 esac
23707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23708 $as_echo "$ac_try_echo") >&5
23709   (eval "$ac_compile") 2>conftest.er1
23710   ac_status=$?
23711   grep -v '^ *+' conftest.er1 >conftest.err
23712   rm -f conftest.er1
23713   cat conftest.err >&5
23714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); } && {
23716          test -z "$ac_c_werror_flag" ||
23717          test ! -s conftest.err
23718        } && test -s conftest.$ac_objext; then
23719
23720 cat >>confdefs.h <<\_ACEOF
23721 #define HAVE_LL_CONSTANTS 1
23722 _ACEOF
23723
23724 else
23725   $as_echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728
23729 fi
23730
23731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23732 fi
23733
23734
23735 # If we found "long int" is 64 bits, assume snprintf handles it.  If
23736 # we found we need to use "long long int", better check.  We cope with
23737 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
23738 # work, fall back to our own snprintf emulation (which we know uses %lld).
23739
23740 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23741   if test $pgac_need_repl_snprintf = no; then
23742     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
23743 $as_echo_n "checking snprintf format for long long int... " >&6; }
23744 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23745   $as_echo_n "(cached) " >&6
23746 else
23747   for pgac_format in '%lld' '%qd' '%I64d'; do
23748 if test "$cross_compiling" = yes; then
23749   pgac_cv_snprintf_long_long_int_format=cross; break
23750 else
23751   cat >conftest.$ac_ext <<_ACEOF
23752 /* confdefs.h.  */
23753 _ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h.  */
23757 #include <stdio.h>
23758 typedef long long int ac_int64;
23759 #define INT64_FORMAT "$pgac_format"
23760
23761 ac_int64 a = 20000001;
23762 ac_int64 b = 40000005;
23763
23764 int does_int64_snprintf_work()
23765 {
23766   ac_int64 c;
23767   char buf[100];
23768
23769   if (sizeof(ac_int64) != 8)
23770     return 0;                   /* doesn't look like the right size */
23771
23772   c = a * b;
23773   snprintf(buf, 100, INT64_FORMAT, c);
23774   if (strcmp(buf, "800000140000005") != 0)
23775     return 0;                   /* either multiply or snprintf is busted */
23776   return 1;
23777 }
23778 main() {
23779   exit(! does_int64_snprintf_work());
23780 }
23781 _ACEOF
23782 rm -f conftest$ac_exeext
23783 if { (ac_try="$ac_link"
23784 case "(($ac_try" in
23785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786   *) ac_try_echo=$ac_try;;
23787 esac
23788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23789 $as_echo "$ac_try_echo") >&5
23790   (eval "$ac_link") 2>&5
23791   ac_status=$?
23792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23794   { (case "(($ac_try" in
23795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796   *) ac_try_echo=$ac_try;;
23797 esac
23798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23799 $as_echo "$ac_try_echo") >&5
23800   (eval "$ac_try") 2>&5
23801   ac_status=$?
23802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); }; }; then
23804   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23805 else
23806   $as_echo "$as_me: program exited with status $ac_status" >&5
23807 $as_echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23809
23810 fi
23811 rm -rf conftest.dSYM
23812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23813 fi
23814
23815
23816 done
23817 fi
23818
23819 LONG_LONG_INT_FORMAT=''
23820
23821 case $pgac_cv_snprintf_long_long_int_format in
23822   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
23823 $as_echo "cannot test (not on host machine)" >&6; };;
23824   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
23825 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
23826          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
23827   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
23828 $as_echo "none" >&6; };;
23829 esac
23830     if test "$LONG_LONG_INT_FORMAT" = ""; then
23831       # Force usage of our own snprintf, since system snprintf is broken
23832       pgac_need_repl_snprintf=yes
23833       LONG_LONG_INT_FORMAT='%lld'
23834     fi
23835   else
23836     # Here if we previously decided we needed to use our own snprintf
23837     LONG_LONG_INT_FORMAT='%lld'
23838   fi
23839   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
23840   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
23841   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
23842 else
23843   # Here if we are not using 'long long int' at all
23844   INT64_FORMAT='"%ld"'
23845   UINT64_FORMAT='"%lu"'
23846 fi
23847
23848
23849 cat >>confdefs.h <<_ACEOF
23850 #define INT64_FORMAT $INT64_FORMAT
23851 _ACEOF
23852
23853
23854
23855 cat >>confdefs.h <<_ACEOF
23856 #define UINT64_FORMAT $UINT64_FORMAT
23857 _ACEOF
23858
23859
23860 # Now we have checked all the reasons to replace snprintf
23861 if test $pgac_need_repl_snprintf = yes; then
23862
23863 cat >>confdefs.h <<\_ACEOF
23864 #define USE_REPL_SNPRINTF 1
23865 _ACEOF
23866
23867   case " $LIBOBJS " in
23868   *" snprintf.$ac_objext "* ) ;;
23869   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
23870  ;;
23871 esac
23872
23873 fi
23874
23875 # Check size of void *, size_t (enables tweaks for > 32bit address space)
23876 # The cast to long int works around a bug in the HP C Compiler
23877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23879 # This bug is HP SR number 8606223364.
23880 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
23881 $as_echo_n "checking size of void *... " >&6; }
23882 if test "${ac_cv_sizeof_void_p+set}" = set; then
23883   $as_echo_n "(cached) " >&6
23884 else
23885   if test "$cross_compiling" = yes; then
23886   # Depending upon the size, compute the lo and hi bounds.
23887 cat >conftest.$ac_ext <<_ACEOF
23888 /* confdefs.h.  */
23889 _ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h.  */
23893 $ac_includes_default
23894 int
23895 main ()
23896 {
23897 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
23898 test_array [0] = 0
23899
23900   ;
23901   return 0;
23902 }
23903 _ACEOF
23904 rm -f conftest.$ac_objext
23905 if { (ac_try="$ac_compile"
23906 case "(($ac_try" in
23907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23908   *) ac_try_echo=$ac_try;;
23909 esac
23910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23911 $as_echo "$ac_try_echo") >&5
23912   (eval "$ac_compile") 2>conftest.er1
23913   ac_status=$?
23914   grep -v '^ *+' conftest.er1 >conftest.err
23915   rm -f conftest.er1
23916   cat conftest.err >&5
23917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); } && {
23919          test -z "$ac_c_werror_flag" ||
23920          test ! -s conftest.err
23921        } && test -s conftest.$ac_objext; then
23922   ac_lo=0 ac_mid=0
23923   while :; do
23924     cat >conftest.$ac_ext <<_ACEOF
23925 /* confdefs.h.  */
23926 _ACEOF
23927 cat confdefs.h >>conftest.$ac_ext
23928 cat >>conftest.$ac_ext <<_ACEOF
23929 /* end confdefs.h.  */
23930 $ac_includes_default
23931 int
23932 main ()
23933 {
23934 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23935 test_array [0] = 0
23936
23937   ;
23938   return 0;
23939 }
23940 _ACEOF
23941 rm -f conftest.$ac_objext
23942 if { (ac_try="$ac_compile"
23943 case "(($ac_try" in
23944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945   *) ac_try_echo=$ac_try;;
23946 esac
23947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23948 $as_echo "$ac_try_echo") >&5
23949   (eval "$ac_compile") 2>conftest.er1
23950   ac_status=$?
23951   grep -v '^ *+' conftest.er1 >conftest.err
23952   rm -f conftest.er1
23953   cat conftest.err >&5
23954   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955   (exit $ac_status); } && {
23956          test -z "$ac_c_werror_flag" ||
23957          test ! -s conftest.err
23958        } && test -s conftest.$ac_objext; then
23959   ac_hi=$ac_mid; break
23960 else
23961   $as_echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23963
23964         ac_lo=`expr $ac_mid + 1`
23965                         if test $ac_lo -le $ac_mid; then
23966                           ac_lo= ac_hi=
23967                           break
23968                         fi
23969                         ac_mid=`expr 2 '*' $ac_mid + 1`
23970 fi
23971
23972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23973   done
23974 else
23975   $as_echo "$as_me: failed program was:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23977
23978         cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h.  */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h.  */
23984 $ac_includes_default
23985 int
23986 main ()
23987 {
23988 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23989 test_array [0] = 0
23990
23991   ;
23992   return 0;
23993 }
23994 _ACEOF
23995 rm -f conftest.$ac_objext
23996 if { (ac_try="$ac_compile"
23997 case "(($ac_try" in
23998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23999   *) ac_try_echo=$ac_try;;
24000 esac
24001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24002 $as_echo "$ac_try_echo") >&5
24003   (eval "$ac_compile") 2>conftest.er1
24004   ac_status=$?
24005   grep -v '^ *+' conftest.er1 >conftest.err
24006   rm -f conftest.er1
24007   cat conftest.err >&5
24008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); } && {
24010          test -z "$ac_c_werror_flag" ||
24011          test ! -s conftest.err
24012        } && test -s conftest.$ac_objext; then
24013   ac_hi=-1 ac_mid=-1
24014   while :; do
24015     cat >conftest.$ac_ext <<_ACEOF
24016 /* confdefs.h.  */
24017 _ACEOF
24018 cat confdefs.h >>conftest.$ac_ext
24019 cat >>conftest.$ac_ext <<_ACEOF
24020 /* end confdefs.h.  */
24021 $ac_includes_default
24022 int
24023 main ()
24024 {
24025 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24026 test_array [0] = 0
24027
24028   ;
24029   return 0;
24030 }
24031 _ACEOF
24032 rm -f conftest.$ac_objext
24033 if { (ac_try="$ac_compile"
24034 case "(($ac_try" in
24035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036   *) ac_try_echo=$ac_try;;
24037 esac
24038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24039 $as_echo "$ac_try_echo") >&5
24040   (eval "$ac_compile") 2>conftest.er1
24041   ac_status=$?
24042   grep -v '^ *+' conftest.er1 >conftest.err
24043   rm -f conftest.er1
24044   cat conftest.err >&5
24045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046   (exit $ac_status); } && {
24047          test -z "$ac_c_werror_flag" ||
24048          test ! -s conftest.err
24049        } && test -s conftest.$ac_objext; then
24050   ac_lo=$ac_mid; break
24051 else
24052   $as_echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24054
24055         ac_hi=`expr '(' $ac_mid ')' - 1`
24056                         if test $ac_mid -le $ac_hi; then
24057                           ac_lo= ac_hi=
24058                           break
24059                         fi
24060                         ac_mid=`expr 2 '*' $ac_mid`
24061 fi
24062
24063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24064   done
24065 else
24066   $as_echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24068
24069         ac_lo= ac_hi=
24070 fi
24071
24072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24073 fi
24074
24075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24076 # Binary search between lo and hi bounds.
24077 while test "x$ac_lo" != "x$ac_hi"; do
24078   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24079   cat >conftest.$ac_ext <<_ACEOF
24080 /* confdefs.h.  */
24081 _ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h.  */
24085 $ac_includes_default
24086 int
24087 main ()
24088 {
24089 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24090 test_array [0] = 0
24091
24092   ;
24093   return 0;
24094 }
24095 _ACEOF
24096 rm -f conftest.$ac_objext
24097 if { (ac_try="$ac_compile"
24098 case "(($ac_try" in
24099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100   *) ac_try_echo=$ac_try;;
24101 esac
24102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24103 $as_echo "$ac_try_echo") >&5
24104   (eval "$ac_compile") 2>conftest.er1
24105   ac_status=$?
24106   grep -v '^ *+' conftest.er1 >conftest.err
24107   rm -f conftest.er1
24108   cat conftest.err >&5
24109   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); } && {
24111          test -z "$ac_c_werror_flag" ||
24112          test ! -s conftest.err
24113        } && test -s conftest.$ac_objext; then
24114   ac_hi=$ac_mid
24115 else
24116   $as_echo "$as_me: failed program was:" >&5
24117 sed 's/^/| /' conftest.$ac_ext >&5
24118
24119         ac_lo=`expr '(' $ac_mid ')' + 1`
24120 fi
24121
24122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24123 done
24124 case $ac_lo in
24125 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24126 '') if test "$ac_cv_type_void_p" = yes; then
24127      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24129 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24130 See \`config.log' for more details." >&5
24131 $as_echo "$as_me: error: cannot compute sizeof (void *)
24132 See \`config.log' for more details." >&2;}
24133    { (exit 77); exit 77; }; }; }
24134    else
24135      ac_cv_sizeof_void_p=0
24136    fi ;;
24137 esac
24138 else
24139   cat >conftest.$ac_ext <<_ACEOF
24140 /* confdefs.h.  */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h.  */
24145 $ac_includes_default
24146 static long int longval () { return (long int) (sizeof (void *)); }
24147 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24148 #include <stdio.h>
24149 #include <stdlib.h>
24150 int
24151 main ()
24152 {
24153
24154   FILE *f = fopen ("conftest.val", "w");
24155   if (! f)
24156     return 1;
24157   if (((long int) (sizeof (void *))) < 0)
24158     {
24159       long int i = longval ();
24160       if (i != ((long int) (sizeof (void *))))
24161         return 1;
24162       fprintf (f, "%ld", i);
24163     }
24164   else
24165     {
24166       unsigned long int i = ulongval ();
24167       if (i != ((long int) (sizeof (void *))))
24168         return 1;
24169       fprintf (f, "%lu", i);
24170     }
24171   /* Do not output a trailing newline, as this causes \r\n confusion
24172      on some platforms.  */
24173   return ferror (f) || fclose (f) != 0;
24174
24175   ;
24176   return 0;
24177 }
24178 _ACEOF
24179 rm -f conftest$ac_exeext
24180 if { (ac_try="$ac_link"
24181 case "(($ac_try" in
24182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183   *) ac_try_echo=$ac_try;;
24184 esac
24185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24186 $as_echo "$ac_try_echo") >&5
24187   (eval "$ac_link") 2>&5
24188   ac_status=$?
24189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24191   { (case "(($ac_try" in
24192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193   *) ac_try_echo=$ac_try;;
24194 esac
24195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24196 $as_echo "$ac_try_echo") >&5
24197   (eval "$ac_try") 2>&5
24198   ac_status=$?
24199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); }; }; then
24201   ac_cv_sizeof_void_p=`cat conftest.val`
24202 else
24203   $as_echo "$as_me: program exited with status $ac_status" >&5
24204 $as_echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24206
24207 ( exit $ac_status )
24208 if test "$ac_cv_type_void_p" = yes; then
24209      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24211 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24212 See \`config.log' for more details." >&5
24213 $as_echo "$as_me: error: cannot compute sizeof (void *)
24214 See \`config.log' for more details." >&2;}
24215    { (exit 77); exit 77; }; }; }
24216    else
24217      ac_cv_sizeof_void_p=0
24218    fi
24219 fi
24220 rm -rf conftest.dSYM
24221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24222 fi
24223 rm -f conftest.val
24224 fi
24225 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24226 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24227
24228
24229
24230 cat >>confdefs.h <<_ACEOF
24231 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24232 _ACEOF
24233
24234
24235 # The cast to long int works around a bug in the HP C Compiler
24236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24238 # This bug is HP SR number 8606223364.
24239 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24240 $as_echo_n "checking size of size_t... " >&6; }
24241 if test "${ac_cv_sizeof_size_t+set}" = set; then
24242   $as_echo_n "(cached) " >&6
24243 else
24244   if test "$cross_compiling" = yes; then
24245   # Depending upon the size, compute the lo and hi bounds.
24246 cat >conftest.$ac_ext <<_ACEOF
24247 /* confdefs.h.  */
24248 _ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h.  */
24252 $ac_includes_default
24253 int
24254 main ()
24255 {
24256 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24257 test_array [0] = 0
24258
24259   ;
24260   return 0;
24261 }
24262 _ACEOF
24263 rm -f conftest.$ac_objext
24264 if { (ac_try="$ac_compile"
24265 case "(($ac_try" in
24266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267   *) ac_try_echo=$ac_try;;
24268 esac
24269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24270 $as_echo "$ac_try_echo") >&5
24271   (eval "$ac_compile") 2>conftest.er1
24272   ac_status=$?
24273   grep -v '^ *+' conftest.er1 >conftest.err
24274   rm -f conftest.er1
24275   cat conftest.err >&5
24276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); } && {
24278          test -z "$ac_c_werror_flag" ||
24279          test ! -s conftest.err
24280        } && test -s conftest.$ac_objext; then
24281   ac_lo=0 ac_mid=0
24282   while :; do
24283     cat >conftest.$ac_ext <<_ACEOF
24284 /* confdefs.h.  */
24285 _ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h.  */
24289 $ac_includes_default
24290 int
24291 main ()
24292 {
24293 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24294 test_array [0] = 0
24295
24296   ;
24297   return 0;
24298 }
24299 _ACEOF
24300 rm -f conftest.$ac_objext
24301 if { (ac_try="$ac_compile"
24302 case "(($ac_try" in
24303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24304   *) ac_try_echo=$ac_try;;
24305 esac
24306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24307 $as_echo "$ac_try_echo") >&5
24308   (eval "$ac_compile") 2>conftest.er1
24309   ac_status=$?
24310   grep -v '^ *+' conftest.er1 >conftest.err
24311   rm -f conftest.er1
24312   cat conftest.err >&5
24313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); } && {
24315          test -z "$ac_c_werror_flag" ||
24316          test ! -s conftest.err
24317        } && test -s conftest.$ac_objext; then
24318   ac_hi=$ac_mid; break
24319 else
24320   $as_echo "$as_me: failed program was:" >&5
24321 sed 's/^/| /' conftest.$ac_ext >&5
24322
24323         ac_lo=`expr $ac_mid + 1`
24324                         if test $ac_lo -le $ac_mid; then
24325                           ac_lo= ac_hi=
24326                           break
24327                         fi
24328                         ac_mid=`expr 2 '*' $ac_mid + 1`
24329 fi
24330
24331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24332   done
24333 else
24334   $as_echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24336
24337         cat >conftest.$ac_ext <<_ACEOF
24338 /* confdefs.h.  */
24339 _ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h.  */
24343 $ac_includes_default
24344 int
24345 main ()
24346 {
24347 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24348 test_array [0] = 0
24349
24350   ;
24351   return 0;
24352 }
24353 _ACEOF
24354 rm -f conftest.$ac_objext
24355 if { (ac_try="$ac_compile"
24356 case "(($ac_try" in
24357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358   *) ac_try_echo=$ac_try;;
24359 esac
24360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24361 $as_echo "$ac_try_echo") >&5
24362   (eval "$ac_compile") 2>conftest.er1
24363   ac_status=$?
24364   grep -v '^ *+' conftest.er1 >conftest.err
24365   rm -f conftest.er1
24366   cat conftest.err >&5
24367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); } && {
24369          test -z "$ac_c_werror_flag" ||
24370          test ! -s conftest.err
24371        } && test -s conftest.$ac_objext; then
24372   ac_hi=-1 ac_mid=-1
24373   while :; do
24374     cat >conftest.$ac_ext <<_ACEOF
24375 /* confdefs.h.  */
24376 _ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h.  */
24380 $ac_includes_default
24381 int
24382 main ()
24383 {
24384 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24385 test_array [0] = 0
24386
24387   ;
24388   return 0;
24389 }
24390 _ACEOF
24391 rm -f conftest.$ac_objext
24392 if { (ac_try="$ac_compile"
24393 case "(($ac_try" in
24394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24395   *) ac_try_echo=$ac_try;;
24396 esac
24397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24398 $as_echo "$ac_try_echo") >&5
24399   (eval "$ac_compile") 2>conftest.er1
24400   ac_status=$?
24401   grep -v '^ *+' conftest.er1 >conftest.err
24402   rm -f conftest.er1
24403   cat conftest.err >&5
24404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405   (exit $ac_status); } && {
24406          test -z "$ac_c_werror_flag" ||
24407          test ! -s conftest.err
24408        } && test -s conftest.$ac_objext; then
24409   ac_lo=$ac_mid; break
24410 else
24411   $as_echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24413
24414         ac_hi=`expr '(' $ac_mid ')' - 1`
24415                         if test $ac_mid -le $ac_hi; then
24416                           ac_lo= ac_hi=
24417                           break
24418                         fi
24419                         ac_mid=`expr 2 '*' $ac_mid`
24420 fi
24421
24422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24423   done
24424 else
24425   $as_echo "$as_me: failed program was:" >&5
24426 sed 's/^/| /' conftest.$ac_ext >&5
24427
24428         ac_lo= ac_hi=
24429 fi
24430
24431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24432 fi
24433
24434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24435 # Binary search between lo and hi bounds.
24436 while test "x$ac_lo" != "x$ac_hi"; do
24437   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24438   cat >conftest.$ac_ext <<_ACEOF
24439 /* confdefs.h.  */
24440 _ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h.  */
24444 $ac_includes_default
24445 int
24446 main ()
24447 {
24448 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24449 test_array [0] = 0
24450
24451   ;
24452   return 0;
24453 }
24454 _ACEOF
24455 rm -f conftest.$ac_objext
24456 if { (ac_try="$ac_compile"
24457 case "(($ac_try" in
24458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459   *) ac_try_echo=$ac_try;;
24460 esac
24461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24462 $as_echo "$ac_try_echo") >&5
24463   (eval "$ac_compile") 2>conftest.er1
24464   ac_status=$?
24465   grep -v '^ *+' conftest.er1 >conftest.err
24466   rm -f conftest.er1
24467   cat conftest.err >&5
24468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); } && {
24470          test -z "$ac_c_werror_flag" ||
24471          test ! -s conftest.err
24472        } && test -s conftest.$ac_objext; then
24473   ac_hi=$ac_mid
24474 else
24475   $as_echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24477
24478         ac_lo=`expr '(' $ac_mid ')' + 1`
24479 fi
24480
24481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24482 done
24483 case $ac_lo in
24484 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24485 '') if test "$ac_cv_type_size_t" = yes; then
24486      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24487 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24488 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24489 See \`config.log' for more details." >&5
24490 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24491 See \`config.log' for more details." >&2;}
24492    { (exit 77); exit 77; }; }; }
24493    else
24494      ac_cv_sizeof_size_t=0
24495    fi ;;
24496 esac
24497 else
24498   cat >conftest.$ac_ext <<_ACEOF
24499 /* confdefs.h.  */
24500 _ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h.  */
24504 $ac_includes_default
24505 static long int longval () { return (long int) (sizeof (size_t)); }
24506 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24507 #include <stdio.h>
24508 #include <stdlib.h>
24509 int
24510 main ()
24511 {
24512
24513   FILE *f = fopen ("conftest.val", "w");
24514   if (! f)
24515     return 1;
24516   if (((long int) (sizeof (size_t))) < 0)
24517     {
24518       long int i = longval ();
24519       if (i != ((long int) (sizeof (size_t))))
24520         return 1;
24521       fprintf (f, "%ld", i);
24522     }
24523   else
24524     {
24525       unsigned long int i = ulongval ();
24526       if (i != ((long int) (sizeof (size_t))))
24527         return 1;
24528       fprintf (f, "%lu", i);
24529     }
24530   /* Do not output a trailing newline, as this causes \r\n confusion
24531      on some platforms.  */
24532   return ferror (f) || fclose (f) != 0;
24533
24534   ;
24535   return 0;
24536 }
24537 _ACEOF
24538 rm -f conftest$ac_exeext
24539 if { (ac_try="$ac_link"
24540 case "(($ac_try" in
24541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542   *) ac_try_echo=$ac_try;;
24543 esac
24544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24545 $as_echo "$ac_try_echo") >&5
24546   (eval "$ac_link") 2>&5
24547   ac_status=$?
24548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24550   { (case "(($ac_try" in
24551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552   *) ac_try_echo=$ac_try;;
24553 esac
24554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24555 $as_echo "$ac_try_echo") >&5
24556   (eval "$ac_try") 2>&5
24557   ac_status=$?
24558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24559   (exit $ac_status); }; }; then
24560   ac_cv_sizeof_size_t=`cat conftest.val`
24561 else
24562   $as_echo "$as_me: program exited with status $ac_status" >&5
24563 $as_echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566 ( exit $ac_status )
24567 if test "$ac_cv_type_size_t" = yes; then
24568      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24570 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24571 See \`config.log' for more details." >&5
24572 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24573 See \`config.log' for more details." >&2;}
24574    { (exit 77); exit 77; }; }; }
24575    else
24576      ac_cv_sizeof_size_t=0
24577    fi
24578 fi
24579 rm -rf conftest.dSYM
24580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24581 fi
24582 rm -f conftest.val
24583 fi
24584 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24585 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24586
24587
24588
24589 cat >>confdefs.h <<_ACEOF
24590 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24591 _ACEOF
24592
24593
24594 # The cast to long int works around a bug in the HP C Compiler
24595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24597 # This bug is HP SR number 8606223364.
24598 { $as_echo "$as_me:$LINENO: checking size of long" >&5
24599 $as_echo_n "checking size of long... " >&6; }
24600 if test "${ac_cv_sizeof_long+set}" = set; then
24601   $as_echo_n "(cached) " >&6
24602 else
24603   if test "$cross_compiling" = yes; then
24604   # Depending upon the size, compute the lo and hi bounds.
24605 cat >conftest.$ac_ext <<_ACEOF
24606 /* confdefs.h.  */
24607 _ACEOF
24608 cat confdefs.h >>conftest.$ac_ext
24609 cat >>conftest.$ac_ext <<_ACEOF
24610 /* end confdefs.h.  */
24611 $ac_includes_default
24612 int
24613 main ()
24614 {
24615 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24616 test_array [0] = 0
24617
24618   ;
24619   return 0;
24620 }
24621 _ACEOF
24622 rm -f conftest.$ac_objext
24623 if { (ac_try="$ac_compile"
24624 case "(($ac_try" in
24625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24626   *) ac_try_echo=$ac_try;;
24627 esac
24628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24629 $as_echo "$ac_try_echo") >&5
24630   (eval "$ac_compile") 2>conftest.er1
24631   ac_status=$?
24632   grep -v '^ *+' conftest.er1 >conftest.err
24633   rm -f conftest.er1
24634   cat conftest.err >&5
24635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636   (exit $ac_status); } && {
24637          test -z "$ac_c_werror_flag" ||
24638          test ! -s conftest.err
24639        } && test -s conftest.$ac_objext; then
24640   ac_lo=0 ac_mid=0
24641   while :; do
24642     cat >conftest.$ac_ext <<_ACEOF
24643 /* confdefs.h.  */
24644 _ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h.  */
24648 $ac_includes_default
24649 int
24650 main ()
24651 {
24652 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24653 test_array [0] = 0
24654
24655   ;
24656   return 0;
24657 }
24658 _ACEOF
24659 rm -f conftest.$ac_objext
24660 if { (ac_try="$ac_compile"
24661 case "(($ac_try" in
24662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663   *) ac_try_echo=$ac_try;;
24664 esac
24665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24666 $as_echo "$ac_try_echo") >&5
24667   (eval "$ac_compile") 2>conftest.er1
24668   ac_status=$?
24669   grep -v '^ *+' conftest.er1 >conftest.err
24670   rm -f conftest.er1
24671   cat conftest.err >&5
24672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); } && {
24674          test -z "$ac_c_werror_flag" ||
24675          test ! -s conftest.err
24676        } && test -s conftest.$ac_objext; then
24677   ac_hi=$ac_mid; break
24678 else
24679   $as_echo "$as_me: failed program was:" >&5
24680 sed 's/^/| /' conftest.$ac_ext >&5
24681
24682         ac_lo=`expr $ac_mid + 1`
24683                         if test $ac_lo -le $ac_mid; then
24684                           ac_lo= ac_hi=
24685                           break
24686                         fi
24687                         ac_mid=`expr 2 '*' $ac_mid + 1`
24688 fi
24689
24690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24691   done
24692 else
24693   $as_echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696         cat >conftest.$ac_ext <<_ACEOF
24697 /* confdefs.h.  */
24698 _ACEOF
24699 cat confdefs.h >>conftest.$ac_ext
24700 cat >>conftest.$ac_ext <<_ACEOF
24701 /* end confdefs.h.  */
24702 $ac_includes_default
24703 int
24704 main ()
24705 {
24706 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24707 test_array [0] = 0
24708
24709   ;
24710   return 0;
24711 }
24712 _ACEOF
24713 rm -f conftest.$ac_objext
24714 if { (ac_try="$ac_compile"
24715 case "(($ac_try" in
24716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717   *) ac_try_echo=$ac_try;;
24718 esac
24719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24720 $as_echo "$ac_try_echo") >&5
24721   (eval "$ac_compile") 2>conftest.er1
24722   ac_status=$?
24723   grep -v '^ *+' conftest.er1 >conftest.err
24724   rm -f conftest.er1
24725   cat conftest.err >&5
24726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); } && {
24728          test -z "$ac_c_werror_flag" ||
24729          test ! -s conftest.err
24730        } && test -s conftest.$ac_objext; then
24731   ac_hi=-1 ac_mid=-1
24732   while :; do
24733     cat >conftest.$ac_ext <<_ACEOF
24734 /* confdefs.h.  */
24735 _ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h.  */
24739 $ac_includes_default
24740 int
24741 main ()
24742 {
24743 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24744 test_array [0] = 0
24745
24746   ;
24747   return 0;
24748 }
24749 _ACEOF
24750 rm -f conftest.$ac_objext
24751 if { (ac_try="$ac_compile"
24752 case "(($ac_try" in
24753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754   *) ac_try_echo=$ac_try;;
24755 esac
24756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24757 $as_echo "$ac_try_echo") >&5
24758   (eval "$ac_compile") 2>conftest.er1
24759   ac_status=$?
24760   grep -v '^ *+' conftest.er1 >conftest.err
24761   rm -f conftest.er1
24762   cat conftest.err >&5
24763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764   (exit $ac_status); } && {
24765          test -z "$ac_c_werror_flag" ||
24766          test ! -s conftest.err
24767        } && test -s conftest.$ac_objext; then
24768   ac_lo=$ac_mid; break
24769 else
24770   $as_echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24772
24773         ac_hi=`expr '(' $ac_mid ')' - 1`
24774                         if test $ac_mid -le $ac_hi; then
24775                           ac_lo= ac_hi=
24776                           break
24777                         fi
24778                         ac_mid=`expr 2 '*' $ac_mid`
24779 fi
24780
24781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24782   done
24783 else
24784   $as_echo "$as_me: failed program was:" >&5
24785 sed 's/^/| /' conftest.$ac_ext >&5
24786
24787         ac_lo= ac_hi=
24788 fi
24789
24790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24791 fi
24792
24793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24794 # Binary search between lo and hi bounds.
24795 while test "x$ac_lo" != "x$ac_hi"; do
24796   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24797   cat >conftest.$ac_ext <<_ACEOF
24798 /* confdefs.h.  */
24799 _ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h.  */
24803 $ac_includes_default
24804 int
24805 main ()
24806 {
24807 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24808 test_array [0] = 0
24809
24810   ;
24811   return 0;
24812 }
24813 _ACEOF
24814 rm -f conftest.$ac_objext
24815 if { (ac_try="$ac_compile"
24816 case "(($ac_try" in
24817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24818   *) ac_try_echo=$ac_try;;
24819 esac
24820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24821 $as_echo "$ac_try_echo") >&5
24822   (eval "$ac_compile") 2>conftest.er1
24823   ac_status=$?
24824   grep -v '^ *+' conftest.er1 >conftest.err
24825   rm -f conftest.er1
24826   cat conftest.err >&5
24827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828   (exit $ac_status); } && {
24829          test -z "$ac_c_werror_flag" ||
24830          test ! -s conftest.err
24831        } && test -s conftest.$ac_objext; then
24832   ac_hi=$ac_mid
24833 else
24834   $as_echo "$as_me: failed program was:" >&5
24835 sed 's/^/| /' conftest.$ac_ext >&5
24836
24837         ac_lo=`expr '(' $ac_mid ')' + 1`
24838 fi
24839
24840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24841 done
24842 case $ac_lo in
24843 ?*) ac_cv_sizeof_long=$ac_lo;;
24844 '') if test "$ac_cv_type_long" = yes; then
24845      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24847 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24848 See \`config.log' for more details." >&5
24849 $as_echo "$as_me: error: cannot compute sizeof (long)
24850 See \`config.log' for more details." >&2;}
24851    { (exit 77); exit 77; }; }; }
24852    else
24853      ac_cv_sizeof_long=0
24854    fi ;;
24855 esac
24856 else
24857   cat >conftest.$ac_ext <<_ACEOF
24858 /* confdefs.h.  */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h.  */
24863 $ac_includes_default
24864 static long int longval () { return (long int) (sizeof (long)); }
24865 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
24866 #include <stdio.h>
24867 #include <stdlib.h>
24868 int
24869 main ()
24870 {
24871
24872   FILE *f = fopen ("conftest.val", "w");
24873   if (! f)
24874     return 1;
24875   if (((long int) (sizeof (long))) < 0)
24876     {
24877       long int i = longval ();
24878       if (i != ((long int) (sizeof (long))))
24879         return 1;
24880       fprintf (f, "%ld", i);
24881     }
24882   else
24883     {
24884       unsigned long int i = ulongval ();
24885       if (i != ((long int) (sizeof (long))))
24886         return 1;
24887       fprintf (f, "%lu", i);
24888     }
24889   /* Do not output a trailing newline, as this causes \r\n confusion
24890      on some platforms.  */
24891   return ferror (f) || fclose (f) != 0;
24892
24893   ;
24894   return 0;
24895 }
24896 _ACEOF
24897 rm -f conftest$ac_exeext
24898 if { (ac_try="$ac_link"
24899 case "(($ac_try" in
24900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901   *) ac_try_echo=$ac_try;;
24902 esac
24903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905   (eval "$ac_link") 2>&5
24906   ac_status=$?
24907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24909   { (case "(($ac_try" in
24910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24911   *) ac_try_echo=$ac_try;;
24912 esac
24913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24914 $as_echo "$ac_try_echo") >&5
24915   (eval "$ac_try") 2>&5
24916   ac_status=$?
24917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); }; }; then
24919   ac_cv_sizeof_long=`cat conftest.val`
24920 else
24921   $as_echo "$as_me: program exited with status $ac_status" >&5
24922 $as_echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24924
24925 ( exit $ac_status )
24926 if test "$ac_cv_type_long" = yes; then
24927      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24929 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24930 See \`config.log' for more details." >&5
24931 $as_echo "$as_me: error: cannot compute sizeof (long)
24932 See \`config.log' for more details." >&2;}
24933    { (exit 77); exit 77; }; }; }
24934    else
24935      ac_cv_sizeof_long=0
24936    fi
24937 fi
24938 rm -rf conftest.dSYM
24939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24940 fi
24941 rm -f conftest.val
24942 fi
24943 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24944 $as_echo "$ac_cv_sizeof_long" >&6; }
24945
24946
24947
24948 cat >>confdefs.h <<_ACEOF
24949 #define SIZEOF_LONG $ac_cv_sizeof_long
24950 _ACEOF
24951
24952
24953
24954 # Decide whether float4 is passed by value: user-selectable, enabled by default
24955 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
24956 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
24957
24958
24959 # Check whether --enable-float4-byval was given.
24960 if test "${enable_float4_byval+set}" = set; then
24961   enableval=$enable_float4_byval;
24962   case $enableval in
24963     yes)
24964
24965 cat >>confdefs.h <<\_ACEOF
24966 #define USE_FLOAT4_BYVAL 1
24967 _ACEOF
24968
24969                float4passbyval=true
24970       ;;
24971     no)
24972       float4passbyval=false
24973       ;;
24974     *)
24975       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
24976 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
24977    { (exit 1); exit 1; }; }
24978       ;;
24979   esac
24980
24981 else
24982   enable_float4_byval=yes
24983
24984 cat >>confdefs.h <<\_ACEOF
24985 #define USE_FLOAT4_BYVAL 1
24986 _ACEOF
24987
24988                float4passbyval=true
24989 fi
24990
24991
24992 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
24993 $as_echo "$enable_float4_byval" >&6; }
24994
24995 cat >>confdefs.h <<_ACEOF
24996 #define FLOAT4PASSBYVAL $float4passbyval
24997 _ACEOF
24998
24999
25000 # Decide whether float8 is passed by value.
25001 # Note: this setting also controls int8 and related types such as timestamp.
25002 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25003 # If not, trying to select it is an error.
25004 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25005 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25006 if test $ac_cv_sizeof_void_p -ge 8 ; then
25007
25008
25009 # Check whether --enable-float8-byval was given.
25010 if test "${enable_float8_byval+set}" = set; then
25011   enableval=$enable_float8_byval;
25012   case $enableval in
25013     yes)
25014       :
25015       ;;
25016     no)
25017       :
25018       ;;
25019     *)
25020       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25021 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25022    { (exit 1); exit 1; }; }
25023       ;;
25024   esac
25025
25026 else
25027   enable_float8_byval=yes
25028
25029 fi
25030
25031
25032 else
25033
25034
25035 # Check whether --enable-float8-byval was given.
25036 if test "${enable_float8_byval+set}" = set; then
25037   enableval=$enable_float8_byval;
25038   case $enableval in
25039     yes)
25040       :
25041       ;;
25042     no)
25043       :
25044       ;;
25045     *)
25046       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25047 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25048    { (exit 1); exit 1; }; }
25049       ;;
25050   esac
25051
25052 else
25053   enable_float8_byval=no
25054
25055 fi
25056
25057
25058   if test "$enable_float8_byval" = yes ; then
25059     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25060 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25061    { (exit 1); exit 1; }; }
25062   fi
25063 fi
25064 if test "$enable_float8_byval" = yes ; then
25065
25066 cat >>confdefs.h <<\_ACEOF
25067 #define USE_FLOAT8_BYVAL 1
25068 _ACEOF
25069
25070   float8passbyval=true
25071 else
25072   float8passbyval=false
25073 fi
25074 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25075 $as_echo "$enable_float8_byval" >&6; }
25076
25077 cat >>confdefs.h <<_ACEOF
25078 #define FLOAT8PASSBYVAL $float8passbyval
25079 _ACEOF
25080
25081
25082 # Determine memory alignment requirements for the basic C data types.
25083
25084 # The cast to long int works around a bug in the HP C Compiler,
25085 # see AC_CHECK_SIZEOF for more information.
25086 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25087 $as_echo_n "checking alignment of short... " >&6; }
25088 if test "${ac_cv_alignof_short+set}" = set; then
25089   $as_echo_n "(cached) " >&6
25090 else
25091   if test "$cross_compiling" = yes; then
25092   # Depending upon the size, compute the lo and hi bounds.
25093 cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h.  */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h.  */
25099 $ac_includes_default
25100 #ifndef offsetof
25101 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25102 #endif
25103 typedef struct { char x; short y; } ac__type_alignof_;
25104 int
25105 main ()
25106 {
25107 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25108 test_array [0] = 0
25109
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 rm -f conftest.$ac_objext
25115 if { (ac_try="$ac_compile"
25116 case "(($ac_try" in
25117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118   *) ac_try_echo=$ac_try;;
25119 esac
25120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25121 $as_echo "$ac_try_echo") >&5
25122   (eval "$ac_compile") 2>conftest.er1
25123   ac_status=$?
25124   grep -v '^ *+' conftest.er1 >conftest.err
25125   rm -f conftest.er1
25126   cat conftest.err >&5
25127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); } && {
25129          test -z "$ac_c_werror_flag" ||
25130          test ! -s conftest.err
25131        } && test -s conftest.$ac_objext; then
25132   ac_lo=0 ac_mid=0
25133   while :; do
25134     cat >conftest.$ac_ext <<_ACEOF
25135 /* confdefs.h.  */
25136 _ACEOF
25137 cat confdefs.h >>conftest.$ac_ext
25138 cat >>conftest.$ac_ext <<_ACEOF
25139 /* end confdefs.h.  */
25140 $ac_includes_default
25141 #ifndef offsetof
25142 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25143 #endif
25144 typedef struct { char x; short y; } ac__type_alignof_;
25145 int
25146 main ()
25147 {
25148 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25149 test_array [0] = 0
25150
25151   ;
25152   return 0;
25153 }
25154 _ACEOF
25155 rm -f conftest.$ac_objext
25156 if { (ac_try="$ac_compile"
25157 case "(($ac_try" in
25158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159   *) ac_try_echo=$ac_try;;
25160 esac
25161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25162 $as_echo "$ac_try_echo") >&5
25163   (eval "$ac_compile") 2>conftest.er1
25164   ac_status=$?
25165   grep -v '^ *+' conftest.er1 >conftest.err
25166   rm -f conftest.er1
25167   cat conftest.err >&5
25168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); } && {
25170          test -z "$ac_c_werror_flag" ||
25171          test ! -s conftest.err
25172        } && test -s conftest.$ac_objext; then
25173   ac_hi=$ac_mid; break
25174 else
25175   $as_echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25177
25178         ac_lo=`expr $ac_mid + 1`
25179                         if test $ac_lo -le $ac_mid; then
25180                           ac_lo= ac_hi=
25181                           break
25182                         fi
25183                         ac_mid=`expr 2 '*' $ac_mid + 1`
25184 fi
25185
25186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25187   done
25188 else
25189   $as_echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.$ac_ext >&5
25191
25192         cat >conftest.$ac_ext <<_ACEOF
25193 /* confdefs.h.  */
25194 _ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h.  */
25198 $ac_includes_default
25199 #ifndef offsetof
25200 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25201 #endif
25202 typedef struct { char x; short y; } ac__type_alignof_;
25203 int
25204 main ()
25205 {
25206 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25207 test_array [0] = 0
25208
25209   ;
25210   return 0;
25211 }
25212 _ACEOF
25213 rm -f conftest.$ac_objext
25214 if { (ac_try="$ac_compile"
25215 case "(($ac_try" in
25216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217   *) ac_try_echo=$ac_try;;
25218 esac
25219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25220 $as_echo "$ac_try_echo") >&5
25221   (eval "$ac_compile") 2>conftest.er1
25222   ac_status=$?
25223   grep -v '^ *+' conftest.er1 >conftest.err
25224   rm -f conftest.er1
25225   cat conftest.err >&5
25226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227   (exit $ac_status); } && {
25228          test -z "$ac_c_werror_flag" ||
25229          test ! -s conftest.err
25230        } && test -s conftest.$ac_objext; then
25231   ac_hi=-1 ac_mid=-1
25232   while :; do
25233     cat >conftest.$ac_ext <<_ACEOF
25234 /* confdefs.h.  */
25235 _ACEOF
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h.  */
25239 $ac_includes_default
25240 #ifndef offsetof
25241 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25242 #endif
25243 typedef struct { char x; short y; } ac__type_alignof_;
25244 int
25245 main ()
25246 {
25247 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25248 test_array [0] = 0
25249
25250   ;
25251   return 0;
25252 }
25253 _ACEOF
25254 rm -f conftest.$ac_objext
25255 if { (ac_try="$ac_compile"
25256 case "(($ac_try" in
25257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25258   *) ac_try_echo=$ac_try;;
25259 esac
25260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25261 $as_echo "$ac_try_echo") >&5
25262   (eval "$ac_compile") 2>conftest.er1
25263   ac_status=$?
25264   grep -v '^ *+' conftest.er1 >conftest.err
25265   rm -f conftest.er1
25266   cat conftest.err >&5
25267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268   (exit $ac_status); } && {
25269          test -z "$ac_c_werror_flag" ||
25270          test ! -s conftest.err
25271        } && test -s conftest.$ac_objext; then
25272   ac_lo=$ac_mid; break
25273 else
25274   $as_echo "$as_me: failed program was:" >&5
25275 sed 's/^/| /' conftest.$ac_ext >&5
25276
25277         ac_hi=`expr '(' $ac_mid ')' - 1`
25278                         if test $ac_mid -le $ac_hi; then
25279                           ac_lo= ac_hi=
25280                           break
25281                         fi
25282                         ac_mid=`expr 2 '*' $ac_mid`
25283 fi
25284
25285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25286   done
25287 else
25288   $as_echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25290
25291         ac_lo= ac_hi=
25292 fi
25293
25294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25295 fi
25296
25297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25298 # Binary search between lo and hi bounds.
25299 while test "x$ac_lo" != "x$ac_hi"; do
25300   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25301   cat >conftest.$ac_ext <<_ACEOF
25302 /* confdefs.h.  */
25303 _ACEOF
25304 cat confdefs.h >>conftest.$ac_ext
25305 cat >>conftest.$ac_ext <<_ACEOF
25306 /* end confdefs.h.  */
25307 $ac_includes_default
25308 #ifndef offsetof
25309 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25310 #endif
25311 typedef struct { char x; short y; } ac__type_alignof_;
25312 int
25313 main ()
25314 {
25315 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25316 test_array [0] = 0
25317
25318   ;
25319   return 0;
25320 }
25321 _ACEOF
25322 rm -f conftest.$ac_objext
25323 if { (ac_try="$ac_compile"
25324 case "(($ac_try" in
25325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25326   *) ac_try_echo=$ac_try;;
25327 esac
25328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25329 $as_echo "$ac_try_echo") >&5
25330   (eval "$ac_compile") 2>conftest.er1
25331   ac_status=$?
25332   grep -v '^ *+' conftest.er1 >conftest.err
25333   rm -f conftest.er1
25334   cat conftest.err >&5
25335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336   (exit $ac_status); } && {
25337          test -z "$ac_c_werror_flag" ||
25338          test ! -s conftest.err
25339        } && test -s conftest.$ac_objext; then
25340   ac_hi=$ac_mid
25341 else
25342   $as_echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25344
25345         ac_lo=`expr '(' $ac_mid ')' + 1`
25346 fi
25347
25348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25349 done
25350 case $ac_lo in
25351 ?*) ac_cv_alignof_short=$ac_lo;;
25352 '') if test "$ac_cv_type_short" = yes; then
25353      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25355 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25356 See \`config.log' for more details." >&5
25357 $as_echo "$as_me: error: cannot compute alignment of short
25358 See \`config.log' for more details." >&2;}
25359    { (exit 77); exit 77; }; }; }
25360    else
25361      ac_cv_alignof_short=0
25362    fi ;;
25363 esac
25364 else
25365   cat >conftest.$ac_ext <<_ACEOF
25366 /* confdefs.h.  */
25367 _ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h.  */
25371 $ac_includes_default
25372 #ifndef offsetof
25373 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25374 #endif
25375 typedef struct { char x; short y; } ac__type_alignof_;
25376 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25377 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25378 #include <stdio.h>
25379 #include <stdlib.h>
25380 int
25381 main ()
25382 {
25383
25384   FILE *f = fopen ("conftest.val", "w");
25385   if (! f)
25386     return 1;
25387   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25388     {
25389       long int i = longval ();
25390       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25391         return 1;
25392       fprintf (f, "%ld", i);
25393     }
25394   else
25395     {
25396       unsigned long int i = ulongval ();
25397       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25398         return 1;
25399       fprintf (f, "%lu", i);
25400     }
25401   /* Do not output a trailing newline, as this causes \r\n confusion
25402      on some platforms.  */
25403   return ferror (f) || fclose (f) != 0;
25404
25405   ;
25406   return 0;
25407 }
25408 _ACEOF
25409 rm -f conftest$ac_exeext
25410 if { (ac_try="$ac_link"
25411 case "(($ac_try" in
25412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413   *) ac_try_echo=$ac_try;;
25414 esac
25415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25416 $as_echo "$ac_try_echo") >&5
25417   (eval "$ac_link") 2>&5
25418   ac_status=$?
25419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25421   { (case "(($ac_try" in
25422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423   *) ac_try_echo=$ac_try;;
25424 esac
25425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25426 $as_echo "$ac_try_echo") >&5
25427   (eval "$ac_try") 2>&5
25428   ac_status=$?
25429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25430   (exit $ac_status); }; }; then
25431   ac_cv_alignof_short=`cat conftest.val`
25432 else
25433   $as_echo "$as_me: program exited with status $ac_status" >&5
25434 $as_echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25436
25437 ( exit $ac_status )
25438 if test "$ac_cv_type_short" = yes; then
25439      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25441 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25442 See \`config.log' for more details." >&5
25443 $as_echo "$as_me: error: cannot compute alignment of short
25444 See \`config.log' for more details." >&2;}
25445    { (exit 77); exit 77; }; }; }
25446    else
25447      ac_cv_alignof_short=0
25448    fi
25449 fi
25450 rm -rf conftest.dSYM
25451 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25452 fi
25453 rm -f conftest.val
25454 fi
25455 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25456 $as_echo "$ac_cv_alignof_short" >&6; }
25457
25458
25459
25460 cat >>confdefs.h <<_ACEOF
25461 #define ALIGNOF_SHORT $ac_cv_alignof_short
25462 _ACEOF
25463
25464
25465 # The cast to long int works around a bug in the HP C Compiler,
25466 # see AC_CHECK_SIZEOF for more information.
25467 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25468 $as_echo_n "checking alignment of int... " >&6; }
25469 if test "${ac_cv_alignof_int+set}" = set; then
25470   $as_echo_n "(cached) " >&6
25471 else
25472   if test "$cross_compiling" = yes; then
25473   # Depending upon the size, compute the lo and hi bounds.
25474 cat >conftest.$ac_ext <<_ACEOF
25475 /* confdefs.h.  */
25476 _ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h.  */
25480 $ac_includes_default
25481 #ifndef offsetof
25482 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25483 #endif
25484 typedef struct { char x; int y; } ac__type_alignof_;
25485 int
25486 main ()
25487 {
25488 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25489 test_array [0] = 0
25490
25491   ;
25492   return 0;
25493 }
25494 _ACEOF
25495 rm -f conftest.$ac_objext
25496 if { (ac_try="$ac_compile"
25497 case "(($ac_try" in
25498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499   *) ac_try_echo=$ac_try;;
25500 esac
25501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25502 $as_echo "$ac_try_echo") >&5
25503   (eval "$ac_compile") 2>conftest.er1
25504   ac_status=$?
25505   grep -v '^ *+' conftest.er1 >conftest.err
25506   rm -f conftest.er1
25507   cat conftest.err >&5
25508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509   (exit $ac_status); } && {
25510          test -z "$ac_c_werror_flag" ||
25511          test ! -s conftest.err
25512        } && test -s conftest.$ac_objext; then
25513   ac_lo=0 ac_mid=0
25514   while :; do
25515     cat >conftest.$ac_ext <<_ACEOF
25516 /* confdefs.h.  */
25517 _ACEOF
25518 cat confdefs.h >>conftest.$ac_ext
25519 cat >>conftest.$ac_ext <<_ACEOF
25520 /* end confdefs.h.  */
25521 $ac_includes_default
25522 #ifndef offsetof
25523 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25524 #endif
25525 typedef struct { char x; int y; } ac__type_alignof_;
25526 int
25527 main ()
25528 {
25529 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25530 test_array [0] = 0
25531
25532   ;
25533   return 0;
25534 }
25535 _ACEOF
25536 rm -f conftest.$ac_objext
25537 if { (ac_try="$ac_compile"
25538 case "(($ac_try" in
25539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25540   *) ac_try_echo=$ac_try;;
25541 esac
25542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25543 $as_echo "$ac_try_echo") >&5
25544   (eval "$ac_compile") 2>conftest.er1
25545   ac_status=$?
25546   grep -v '^ *+' conftest.er1 >conftest.err
25547   rm -f conftest.er1
25548   cat conftest.err >&5
25549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550   (exit $ac_status); } && {
25551          test -z "$ac_c_werror_flag" ||
25552          test ! -s conftest.err
25553        } && test -s conftest.$ac_objext; then
25554   ac_hi=$ac_mid; break
25555 else
25556   $as_echo "$as_me: failed program was:" >&5
25557 sed 's/^/| /' conftest.$ac_ext >&5
25558
25559         ac_lo=`expr $ac_mid + 1`
25560                         if test $ac_lo -le $ac_mid; then
25561                           ac_lo= ac_hi=
25562                           break
25563                         fi
25564                         ac_mid=`expr 2 '*' $ac_mid + 1`
25565 fi
25566
25567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25568   done
25569 else
25570   $as_echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25572
25573         cat >conftest.$ac_ext <<_ACEOF
25574 /* confdefs.h.  */
25575 _ACEOF
25576 cat confdefs.h >>conftest.$ac_ext
25577 cat >>conftest.$ac_ext <<_ACEOF
25578 /* end confdefs.h.  */
25579 $ac_includes_default
25580 #ifndef offsetof
25581 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25582 #endif
25583 typedef struct { char x; int y; } ac__type_alignof_;
25584 int
25585 main ()
25586 {
25587 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25588 test_array [0] = 0
25589
25590   ;
25591   return 0;
25592 }
25593 _ACEOF
25594 rm -f conftest.$ac_objext
25595 if { (ac_try="$ac_compile"
25596 case "(($ac_try" in
25597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25598   *) ac_try_echo=$ac_try;;
25599 esac
25600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25601 $as_echo "$ac_try_echo") >&5
25602   (eval "$ac_compile") 2>conftest.er1
25603   ac_status=$?
25604   grep -v '^ *+' conftest.er1 >conftest.err
25605   rm -f conftest.er1
25606   cat conftest.err >&5
25607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25608   (exit $ac_status); } && {
25609          test -z "$ac_c_werror_flag" ||
25610          test ! -s conftest.err
25611        } && test -s conftest.$ac_objext; then
25612   ac_hi=-1 ac_mid=-1
25613   while :; do
25614     cat >conftest.$ac_ext <<_ACEOF
25615 /* confdefs.h.  */
25616 _ACEOF
25617 cat confdefs.h >>conftest.$ac_ext
25618 cat >>conftest.$ac_ext <<_ACEOF
25619 /* end confdefs.h.  */
25620 $ac_includes_default
25621 #ifndef offsetof
25622 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25623 #endif
25624 typedef struct { char x; int y; } ac__type_alignof_;
25625 int
25626 main ()
25627 {
25628 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25629 test_array [0] = 0
25630
25631   ;
25632   return 0;
25633 }
25634 _ACEOF
25635 rm -f conftest.$ac_objext
25636 if { (ac_try="$ac_compile"
25637 case "(($ac_try" in
25638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639   *) ac_try_echo=$ac_try;;
25640 esac
25641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25642 $as_echo "$ac_try_echo") >&5
25643   (eval "$ac_compile") 2>conftest.er1
25644   ac_status=$?
25645   grep -v '^ *+' conftest.er1 >conftest.err
25646   rm -f conftest.er1
25647   cat conftest.err >&5
25648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649   (exit $ac_status); } && {
25650          test -z "$ac_c_werror_flag" ||
25651          test ! -s conftest.err
25652        } && test -s conftest.$ac_objext; then
25653   ac_lo=$ac_mid; break
25654 else
25655   $as_echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25657
25658         ac_hi=`expr '(' $ac_mid ')' - 1`
25659                         if test $ac_mid -le $ac_hi; then
25660                           ac_lo= ac_hi=
25661                           break
25662                         fi
25663                         ac_mid=`expr 2 '*' $ac_mid`
25664 fi
25665
25666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25667   done
25668 else
25669   $as_echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25671
25672         ac_lo= ac_hi=
25673 fi
25674
25675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25676 fi
25677
25678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25679 # Binary search between lo and hi bounds.
25680 while test "x$ac_lo" != "x$ac_hi"; do
25681   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25682   cat >conftest.$ac_ext <<_ACEOF
25683 /* confdefs.h.  */
25684 _ACEOF
25685 cat confdefs.h >>conftest.$ac_ext
25686 cat >>conftest.$ac_ext <<_ACEOF
25687 /* end confdefs.h.  */
25688 $ac_includes_default
25689 #ifndef offsetof
25690 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25691 #endif
25692 typedef struct { char x; int y; } ac__type_alignof_;
25693 int
25694 main ()
25695 {
25696 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25697 test_array [0] = 0
25698
25699   ;
25700   return 0;
25701 }
25702 _ACEOF
25703 rm -f conftest.$ac_objext
25704 if { (ac_try="$ac_compile"
25705 case "(($ac_try" in
25706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707   *) ac_try_echo=$ac_try;;
25708 esac
25709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25710 $as_echo "$ac_try_echo") >&5
25711   (eval "$ac_compile") 2>conftest.er1
25712   ac_status=$?
25713   grep -v '^ *+' conftest.er1 >conftest.err
25714   rm -f conftest.er1
25715   cat conftest.err >&5
25716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717   (exit $ac_status); } && {
25718          test -z "$ac_c_werror_flag" ||
25719          test ! -s conftest.err
25720        } && test -s conftest.$ac_objext; then
25721   ac_hi=$ac_mid
25722 else
25723   $as_echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25725
25726         ac_lo=`expr '(' $ac_mid ')' + 1`
25727 fi
25728
25729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25730 done
25731 case $ac_lo in
25732 ?*) ac_cv_alignof_int=$ac_lo;;
25733 '') if test "$ac_cv_type_int" = yes; then
25734      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25736 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25737 See \`config.log' for more details." >&5
25738 $as_echo "$as_me: error: cannot compute alignment of int
25739 See \`config.log' for more details." >&2;}
25740    { (exit 77); exit 77; }; }; }
25741    else
25742      ac_cv_alignof_int=0
25743    fi ;;
25744 esac
25745 else
25746   cat >conftest.$ac_ext <<_ACEOF
25747 /* confdefs.h.  */
25748 _ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h.  */
25752 $ac_includes_default
25753 #ifndef offsetof
25754 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25755 #endif
25756 typedef struct { char x; int y; } ac__type_alignof_;
25757 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25758 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25759 #include <stdio.h>
25760 #include <stdlib.h>
25761 int
25762 main ()
25763 {
25764
25765   FILE *f = fopen ("conftest.val", "w");
25766   if (! f)
25767     return 1;
25768   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25769     {
25770       long int i = longval ();
25771       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25772         return 1;
25773       fprintf (f, "%ld", i);
25774     }
25775   else
25776     {
25777       unsigned long int i = ulongval ();
25778       if (i != ((long int) offsetof (ac__type_alignof_, y)))
25779         return 1;
25780       fprintf (f, "%lu", i);
25781     }
25782   /* Do not output a trailing newline, as this causes \r\n confusion
25783      on some platforms.  */
25784   return ferror (f) || fclose (f) != 0;
25785
25786   ;
25787   return 0;
25788 }
25789 _ACEOF
25790 rm -f conftest$ac_exeext
25791 if { (ac_try="$ac_link"
25792 case "(($ac_try" in
25793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794   *) ac_try_echo=$ac_try;;
25795 esac
25796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25797 $as_echo "$ac_try_echo") >&5
25798   (eval "$ac_link") 2>&5
25799   ac_status=$?
25800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25802   { (case "(($ac_try" in
25803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804   *) ac_try_echo=$ac_try;;
25805 esac
25806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25807 $as_echo "$ac_try_echo") >&5
25808   (eval "$ac_try") 2>&5
25809   ac_status=$?
25810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811   (exit $ac_status); }; }; then
25812   ac_cv_alignof_int=`cat conftest.val`
25813 else
25814   $as_echo "$as_me: program exited with status $ac_status" >&5
25815 $as_echo "$as_me: failed program was:" >&5
25816 sed 's/^/| /' conftest.$ac_ext >&5
25817
25818 ( exit $ac_status )
25819 if test "$ac_cv_type_int" = yes; then
25820      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25822 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25823 See \`config.log' for more details." >&5
25824 $as_echo "$as_me: error: cannot compute alignment of int
25825 See \`config.log' for more details." >&2;}
25826    { (exit 77); exit 77; }; }; }
25827    else
25828      ac_cv_alignof_int=0
25829    fi
25830 fi
25831 rm -rf conftest.dSYM
25832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25833 fi
25834 rm -f conftest.val
25835 fi
25836 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
25837 $as_echo "$ac_cv_alignof_int" >&6; }
25838
25839
25840
25841 cat >>confdefs.h <<_ACEOF
25842 #define ALIGNOF_INT $ac_cv_alignof_int
25843 _ACEOF
25844
25845
25846 # The cast to long int works around a bug in the HP C Compiler,
25847 # see AC_CHECK_SIZEOF for more information.
25848 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
25849 $as_echo_n "checking alignment of long... " >&6; }
25850 if test "${ac_cv_alignof_long+set}" = set; then
25851   $as_echo_n "(cached) " >&6
25852 else
25853   if test "$cross_compiling" = yes; then
25854   # Depending upon the size, compute the lo and hi bounds.
25855 cat >conftest.$ac_ext <<_ACEOF
25856 /* confdefs.h.  */
25857 _ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h.  */
25861 $ac_includes_default
25862 #ifndef offsetof
25863 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25864 #endif
25865 typedef struct { char x; long y; } ac__type_alignof_;
25866 int
25867 main ()
25868 {
25869 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25870 test_array [0] = 0
25871
25872   ;
25873   return 0;
25874 }
25875 _ACEOF
25876 rm -f conftest.$ac_objext
25877 if { (ac_try="$ac_compile"
25878 case "(($ac_try" in
25879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880   *) ac_try_echo=$ac_try;;
25881 esac
25882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25883 $as_echo "$ac_try_echo") >&5
25884   (eval "$ac_compile") 2>conftest.er1
25885   ac_status=$?
25886   grep -v '^ *+' conftest.er1 >conftest.err
25887   rm -f conftest.er1
25888   cat conftest.err >&5
25889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890   (exit $ac_status); } && {
25891          test -z "$ac_c_werror_flag" ||
25892          test ! -s conftest.err
25893        } && test -s conftest.$ac_objext; then
25894   ac_lo=0 ac_mid=0
25895   while :; do
25896     cat >conftest.$ac_ext <<_ACEOF
25897 /* confdefs.h.  */
25898 _ACEOF
25899 cat confdefs.h >>conftest.$ac_ext
25900 cat >>conftest.$ac_ext <<_ACEOF
25901 /* end confdefs.h.  */
25902 $ac_includes_default
25903 #ifndef offsetof
25904 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25905 #endif
25906 typedef struct { char x; long y; } ac__type_alignof_;
25907 int
25908 main ()
25909 {
25910 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25911 test_array [0] = 0
25912
25913   ;
25914   return 0;
25915 }
25916 _ACEOF
25917 rm -f conftest.$ac_objext
25918 if { (ac_try="$ac_compile"
25919 case "(($ac_try" in
25920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921   *) ac_try_echo=$ac_try;;
25922 esac
25923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25924 $as_echo "$ac_try_echo") >&5
25925   (eval "$ac_compile") 2>conftest.er1
25926   ac_status=$?
25927   grep -v '^ *+' conftest.er1 >conftest.err
25928   rm -f conftest.er1
25929   cat conftest.err >&5
25930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931   (exit $ac_status); } && {
25932          test -z "$ac_c_werror_flag" ||
25933          test ! -s conftest.err
25934        } && test -s conftest.$ac_objext; then
25935   ac_hi=$ac_mid; break
25936 else
25937   $as_echo "$as_me: failed program was:" >&5
25938 sed 's/^/| /' conftest.$ac_ext >&5
25939
25940         ac_lo=`expr $ac_mid + 1`
25941                         if test $ac_lo -le $ac_mid; then
25942                           ac_lo= ac_hi=
25943                           break
25944                         fi
25945                         ac_mid=`expr 2 '*' $ac_mid + 1`
25946 fi
25947
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949   done
25950 else
25951   $as_echo "$as_me: failed program was:" >&5
25952 sed 's/^/| /' conftest.$ac_ext >&5
25953
25954         cat >conftest.$ac_ext <<_ACEOF
25955 /* confdefs.h.  */
25956 _ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h.  */
25960 $ac_includes_default
25961 #ifndef offsetof
25962 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25963 #endif
25964 typedef struct { char x; long y; } ac__type_alignof_;
25965 int
25966 main ()
25967 {
25968 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25969 test_array [0] = 0
25970
25971   ;
25972   return 0;
25973 }
25974 _ACEOF
25975 rm -f conftest.$ac_objext
25976 if { (ac_try="$ac_compile"
25977 case "(($ac_try" in
25978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979   *) ac_try_echo=$ac_try;;
25980 esac
25981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25982 $as_echo "$ac_try_echo") >&5
25983   (eval "$ac_compile") 2>conftest.er1
25984   ac_status=$?
25985   grep -v '^ *+' conftest.er1 >conftest.err
25986   rm -f conftest.er1
25987   cat conftest.err >&5
25988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); } && {
25990          test -z "$ac_c_werror_flag" ||
25991          test ! -s conftest.err
25992        } && test -s conftest.$ac_objext; then
25993   ac_hi=-1 ac_mid=-1
25994   while :; do
25995     cat >conftest.$ac_ext <<_ACEOF
25996 /* confdefs.h.  */
25997 _ACEOF
25998 cat confdefs.h >>conftest.$ac_ext
25999 cat >>conftest.$ac_ext <<_ACEOF
26000 /* end confdefs.h.  */
26001 $ac_includes_default
26002 #ifndef offsetof
26003 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26004 #endif
26005 typedef struct { char x; long y; } ac__type_alignof_;
26006 int
26007 main ()
26008 {
26009 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26010 test_array [0] = 0
26011
26012   ;
26013   return 0;
26014 }
26015 _ACEOF
26016 rm -f conftest.$ac_objext
26017 if { (ac_try="$ac_compile"
26018 case "(($ac_try" in
26019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26020   *) ac_try_echo=$ac_try;;
26021 esac
26022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26023 $as_echo "$ac_try_echo") >&5
26024   (eval "$ac_compile") 2>conftest.er1
26025   ac_status=$?
26026   grep -v '^ *+' conftest.er1 >conftest.err
26027   rm -f conftest.er1
26028   cat conftest.err >&5
26029   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); } && {
26031          test -z "$ac_c_werror_flag" ||
26032          test ! -s conftest.err
26033        } && test -s conftest.$ac_objext; then
26034   ac_lo=$ac_mid; break
26035 else
26036   $as_echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26038
26039         ac_hi=`expr '(' $ac_mid ')' - 1`
26040                         if test $ac_mid -le $ac_hi; then
26041                           ac_lo= ac_hi=
26042                           break
26043                         fi
26044                         ac_mid=`expr 2 '*' $ac_mid`
26045 fi
26046
26047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26048   done
26049 else
26050   $as_echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26052
26053         ac_lo= ac_hi=
26054 fi
26055
26056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26057 fi
26058
26059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26060 # Binary search between lo and hi bounds.
26061 while test "x$ac_lo" != "x$ac_hi"; do
26062   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26063   cat >conftest.$ac_ext <<_ACEOF
26064 /* confdefs.h.  */
26065 _ACEOF
26066 cat confdefs.h >>conftest.$ac_ext
26067 cat >>conftest.$ac_ext <<_ACEOF
26068 /* end confdefs.h.  */
26069 $ac_includes_default
26070 #ifndef offsetof
26071 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26072 #endif
26073 typedef struct { char x; long y; } ac__type_alignof_;
26074 int
26075 main ()
26076 {
26077 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26078 test_array [0] = 0
26079
26080   ;
26081   return 0;
26082 }
26083 _ACEOF
26084 rm -f conftest.$ac_objext
26085 if { (ac_try="$ac_compile"
26086 case "(($ac_try" in
26087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26088   *) ac_try_echo=$ac_try;;
26089 esac
26090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26091 $as_echo "$ac_try_echo") >&5
26092   (eval "$ac_compile") 2>conftest.er1
26093   ac_status=$?
26094   grep -v '^ *+' conftest.er1 >conftest.err
26095   rm -f conftest.er1
26096   cat conftest.err >&5
26097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098   (exit $ac_status); } && {
26099          test -z "$ac_c_werror_flag" ||
26100          test ! -s conftest.err
26101        } && test -s conftest.$ac_objext; then
26102   ac_hi=$ac_mid
26103 else
26104   $as_echo "$as_me: failed program was:" >&5
26105 sed 's/^/| /' conftest.$ac_ext >&5
26106
26107         ac_lo=`expr '(' $ac_mid ')' + 1`
26108 fi
26109
26110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26111 done
26112 case $ac_lo in
26113 ?*) ac_cv_alignof_long=$ac_lo;;
26114 '') if test "$ac_cv_type_long" = yes; then
26115      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26117 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26118 See \`config.log' for more details." >&5
26119 $as_echo "$as_me: error: cannot compute alignment of long
26120 See \`config.log' for more details." >&2;}
26121    { (exit 77); exit 77; }; }; }
26122    else
26123      ac_cv_alignof_long=0
26124    fi ;;
26125 esac
26126 else
26127   cat >conftest.$ac_ext <<_ACEOF
26128 /* confdefs.h.  */
26129 _ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h.  */
26133 $ac_includes_default
26134 #ifndef offsetof
26135 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26136 #endif
26137 typedef struct { char x; long y; } ac__type_alignof_;
26138 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26139 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26140 #include <stdio.h>
26141 #include <stdlib.h>
26142 int
26143 main ()
26144 {
26145
26146   FILE *f = fopen ("conftest.val", "w");
26147   if (! f)
26148     return 1;
26149   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26150     {
26151       long int i = longval ();
26152       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26153         return 1;
26154       fprintf (f, "%ld", i);
26155     }
26156   else
26157     {
26158       unsigned long int i = ulongval ();
26159       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26160         return 1;
26161       fprintf (f, "%lu", i);
26162     }
26163   /* Do not output a trailing newline, as this causes \r\n confusion
26164      on some platforms.  */
26165   return ferror (f) || fclose (f) != 0;
26166
26167   ;
26168   return 0;
26169 }
26170 _ACEOF
26171 rm -f conftest$ac_exeext
26172 if { (ac_try="$ac_link"
26173 case "(($ac_try" in
26174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175   *) ac_try_echo=$ac_try;;
26176 esac
26177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26178 $as_echo "$ac_try_echo") >&5
26179   (eval "$ac_link") 2>&5
26180   ac_status=$?
26181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
26190   ac_status=$?
26191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); }; }; then
26193   ac_cv_alignof_long=`cat conftest.val`
26194 else
26195   $as_echo "$as_me: program exited with status $ac_status" >&5
26196 $as_echo "$as_me: failed program was:" >&5
26197 sed 's/^/| /' conftest.$ac_ext >&5
26198
26199 ( exit $ac_status )
26200 if test "$ac_cv_type_long" = yes; then
26201      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26203 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26204 See \`config.log' for more details." >&5
26205 $as_echo "$as_me: error: cannot compute alignment of long
26206 See \`config.log' for more details." >&2;}
26207    { (exit 77); exit 77; }; }; }
26208    else
26209      ac_cv_alignof_long=0
26210    fi
26211 fi
26212 rm -rf conftest.dSYM
26213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26214 fi
26215 rm -f conftest.val
26216 fi
26217 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26218 $as_echo "$ac_cv_alignof_long" >&6; }
26219
26220
26221
26222 cat >>confdefs.h <<_ACEOF
26223 #define ALIGNOF_LONG $ac_cv_alignof_long
26224 _ACEOF
26225
26226
26227 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26228   # The cast to long int works around a bug in the HP C Compiler,
26229 # see AC_CHECK_SIZEOF for more information.
26230 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26231 $as_echo_n "checking alignment of long long int... " >&6; }
26232 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26233   $as_echo_n "(cached) " >&6
26234 else
26235   if test "$cross_compiling" = yes; then
26236   # Depending upon the size, compute the lo and hi bounds.
26237 cat >conftest.$ac_ext <<_ACEOF
26238 /* confdefs.h.  */
26239 _ACEOF
26240 cat confdefs.h >>conftest.$ac_ext
26241 cat >>conftest.$ac_ext <<_ACEOF
26242 /* end confdefs.h.  */
26243 $ac_includes_default
26244 #ifndef offsetof
26245 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26246 #endif
26247 typedef struct { char x; long long int y; } ac__type_alignof_;
26248 int
26249 main ()
26250 {
26251 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26252 test_array [0] = 0
26253
26254   ;
26255   return 0;
26256 }
26257 _ACEOF
26258 rm -f conftest.$ac_objext
26259 if { (ac_try="$ac_compile"
26260 case "(($ac_try" in
26261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262   *) ac_try_echo=$ac_try;;
26263 esac
26264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26265 $as_echo "$ac_try_echo") >&5
26266   (eval "$ac_compile") 2>conftest.er1
26267   ac_status=$?
26268   grep -v '^ *+' conftest.er1 >conftest.err
26269   rm -f conftest.er1
26270   cat conftest.err >&5
26271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272   (exit $ac_status); } && {
26273          test -z "$ac_c_werror_flag" ||
26274          test ! -s conftest.err
26275        } && test -s conftest.$ac_objext; then
26276   ac_lo=0 ac_mid=0
26277   while :; do
26278     cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h.  */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h.  */
26284 $ac_includes_default
26285 #ifndef offsetof
26286 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26287 #endif
26288 typedef struct { char x; long long int y; } ac__type_alignof_;
26289 int
26290 main ()
26291 {
26292 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26293 test_array [0] = 0
26294
26295   ;
26296   return 0;
26297 }
26298 _ACEOF
26299 rm -f conftest.$ac_objext
26300 if { (ac_try="$ac_compile"
26301 case "(($ac_try" in
26302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303   *) ac_try_echo=$ac_try;;
26304 esac
26305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26306 $as_echo "$ac_try_echo") >&5
26307   (eval "$ac_compile") 2>conftest.er1
26308   ac_status=$?
26309   grep -v '^ *+' conftest.er1 >conftest.err
26310   rm -f conftest.er1
26311   cat conftest.err >&5
26312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313   (exit $ac_status); } && {
26314          test -z "$ac_c_werror_flag" ||
26315          test ! -s conftest.err
26316        } && test -s conftest.$ac_objext; then
26317   ac_hi=$ac_mid; break
26318 else
26319   $as_echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26321
26322         ac_lo=`expr $ac_mid + 1`
26323                         if test $ac_lo -le $ac_mid; then
26324                           ac_lo= ac_hi=
26325                           break
26326                         fi
26327                         ac_mid=`expr 2 '*' $ac_mid + 1`
26328 fi
26329
26330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26331   done
26332 else
26333   $as_echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26335
26336         cat >conftest.$ac_ext <<_ACEOF
26337 /* confdefs.h.  */
26338 _ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h.  */
26342 $ac_includes_default
26343 #ifndef offsetof
26344 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26345 #endif
26346 typedef struct { char x; long long int y; } ac__type_alignof_;
26347 int
26348 main ()
26349 {
26350 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26351 test_array [0] = 0
26352
26353   ;
26354   return 0;
26355 }
26356 _ACEOF
26357 rm -f conftest.$ac_objext
26358 if { (ac_try="$ac_compile"
26359 case "(($ac_try" in
26360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26361   *) ac_try_echo=$ac_try;;
26362 esac
26363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26364 $as_echo "$ac_try_echo") >&5
26365   (eval "$ac_compile") 2>conftest.er1
26366   ac_status=$?
26367   grep -v '^ *+' conftest.er1 >conftest.err
26368   rm -f conftest.er1
26369   cat conftest.err >&5
26370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26371   (exit $ac_status); } && {
26372          test -z "$ac_c_werror_flag" ||
26373          test ! -s conftest.err
26374        } && test -s conftest.$ac_objext; then
26375   ac_hi=-1 ac_mid=-1
26376   while :; do
26377     cat >conftest.$ac_ext <<_ACEOF
26378 /* confdefs.h.  */
26379 _ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h.  */
26383 $ac_includes_default
26384 #ifndef offsetof
26385 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26386 #endif
26387 typedef struct { char x; long long int y; } ac__type_alignof_;
26388 int
26389 main ()
26390 {
26391 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26392 test_array [0] = 0
26393
26394   ;
26395   return 0;
26396 }
26397 _ACEOF
26398 rm -f conftest.$ac_objext
26399 if { (ac_try="$ac_compile"
26400 case "(($ac_try" in
26401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26402   *) ac_try_echo=$ac_try;;
26403 esac
26404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26405 $as_echo "$ac_try_echo") >&5
26406   (eval "$ac_compile") 2>conftest.er1
26407   ac_status=$?
26408   grep -v '^ *+' conftest.er1 >conftest.err
26409   rm -f conftest.er1
26410   cat conftest.err >&5
26411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412   (exit $ac_status); } && {
26413          test -z "$ac_c_werror_flag" ||
26414          test ! -s conftest.err
26415        } && test -s conftest.$ac_objext; then
26416   ac_lo=$ac_mid; break
26417 else
26418   $as_echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26420
26421         ac_hi=`expr '(' $ac_mid ')' - 1`
26422                         if test $ac_mid -le $ac_hi; then
26423                           ac_lo= ac_hi=
26424                           break
26425                         fi
26426                         ac_mid=`expr 2 '*' $ac_mid`
26427 fi
26428
26429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26430   done
26431 else
26432   $as_echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26434
26435         ac_lo= ac_hi=
26436 fi
26437
26438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26439 fi
26440
26441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26442 # Binary search between lo and hi bounds.
26443 while test "x$ac_lo" != "x$ac_hi"; do
26444   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26445   cat >conftest.$ac_ext <<_ACEOF
26446 /* confdefs.h.  */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h.  */
26451 $ac_includes_default
26452 #ifndef offsetof
26453 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26454 #endif
26455 typedef struct { char x; long long int y; } ac__type_alignof_;
26456 int
26457 main ()
26458 {
26459 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26460 test_array [0] = 0
26461
26462   ;
26463   return 0;
26464 }
26465 _ACEOF
26466 rm -f conftest.$ac_objext
26467 if { (ac_try="$ac_compile"
26468 case "(($ac_try" in
26469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26470   *) ac_try_echo=$ac_try;;
26471 esac
26472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26473 $as_echo "$ac_try_echo") >&5
26474   (eval "$ac_compile") 2>conftest.er1
26475   ac_status=$?
26476   grep -v '^ *+' conftest.er1 >conftest.err
26477   rm -f conftest.er1
26478   cat conftest.err >&5
26479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); } && {
26481          test -z "$ac_c_werror_flag" ||
26482          test ! -s conftest.err
26483        } && test -s conftest.$ac_objext; then
26484   ac_hi=$ac_mid
26485 else
26486   $as_echo "$as_me: failed program was:" >&5
26487 sed 's/^/| /' conftest.$ac_ext >&5
26488
26489         ac_lo=`expr '(' $ac_mid ')' + 1`
26490 fi
26491
26492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26493 done
26494 case $ac_lo in
26495 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26496 '') if test "$ac_cv_type_long_long_int" = yes; then
26497      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26499 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26500 See \`config.log' for more details." >&5
26501 $as_echo "$as_me: error: cannot compute alignment of long long int
26502 See \`config.log' for more details." >&2;}
26503    { (exit 77); exit 77; }; }; }
26504    else
26505      ac_cv_alignof_long_long_int=0
26506    fi ;;
26507 esac
26508 else
26509   cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515 $ac_includes_default
26516 #ifndef offsetof
26517 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26518 #endif
26519 typedef struct { char x; long long int y; } ac__type_alignof_;
26520 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26521 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26522 #include <stdio.h>
26523 #include <stdlib.h>
26524 int
26525 main ()
26526 {
26527
26528   FILE *f = fopen ("conftest.val", "w");
26529   if (! f)
26530     return 1;
26531   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26532     {
26533       long int i = longval ();
26534       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26535         return 1;
26536       fprintf (f, "%ld", i);
26537     }
26538   else
26539     {
26540       unsigned long int i = ulongval ();
26541       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26542         return 1;
26543       fprintf (f, "%lu", i);
26544     }
26545   /* Do not output a trailing newline, as this causes \r\n confusion
26546      on some platforms.  */
26547   return ferror (f) || fclose (f) != 0;
26548
26549   ;
26550   return 0;
26551 }
26552 _ACEOF
26553 rm -f conftest$ac_exeext
26554 if { (ac_try="$ac_link"
26555 case "(($ac_try" in
26556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557   *) ac_try_echo=$ac_try;;
26558 esac
26559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26560 $as_echo "$ac_try_echo") >&5
26561   (eval "$ac_link") 2>&5
26562   ac_status=$?
26563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
26572   ac_status=$?
26573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); }; }; then
26575   ac_cv_alignof_long_long_int=`cat conftest.val`
26576 else
26577   $as_echo "$as_me: program exited with status $ac_status" >&5
26578 $as_echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26580
26581 ( exit $ac_status )
26582 if test "$ac_cv_type_long_long_int" = yes; then
26583      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26585 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26586 See \`config.log' for more details." >&5
26587 $as_echo "$as_me: error: cannot compute alignment of long long int
26588 See \`config.log' for more details." >&2;}
26589    { (exit 77); exit 77; }; }; }
26590    else
26591      ac_cv_alignof_long_long_int=0
26592    fi
26593 fi
26594 rm -rf conftest.dSYM
26595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26596 fi
26597 rm -f conftest.val
26598 fi
26599 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26600 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26601
26602
26603
26604 cat >>confdefs.h <<_ACEOF
26605 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26606 _ACEOF
26607
26608
26609 fi
26610 # The cast to long int works around a bug in the HP C Compiler,
26611 # see AC_CHECK_SIZEOF for more information.
26612 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26613 $as_echo_n "checking alignment of double... " >&6; }
26614 if test "${ac_cv_alignof_double+set}" = set; then
26615   $as_echo_n "(cached) " >&6
26616 else
26617   if test "$cross_compiling" = yes; then
26618   # Depending upon the size, compute the lo and hi bounds.
26619 cat >conftest.$ac_ext <<_ACEOF
26620 /* confdefs.h.  */
26621 _ACEOF
26622 cat confdefs.h >>conftest.$ac_ext
26623 cat >>conftest.$ac_ext <<_ACEOF
26624 /* end confdefs.h.  */
26625 $ac_includes_default
26626 #ifndef offsetof
26627 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26628 #endif
26629 typedef struct { char x; double y; } ac__type_alignof_;
26630 int
26631 main ()
26632 {
26633 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26634 test_array [0] = 0
26635
26636   ;
26637   return 0;
26638 }
26639 _ACEOF
26640 rm -f conftest.$ac_objext
26641 if { (ac_try="$ac_compile"
26642 case "(($ac_try" in
26643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644   *) ac_try_echo=$ac_try;;
26645 esac
26646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26647 $as_echo "$ac_try_echo") >&5
26648   (eval "$ac_compile") 2>conftest.er1
26649   ac_status=$?
26650   grep -v '^ *+' conftest.er1 >conftest.err
26651   rm -f conftest.er1
26652   cat conftest.err >&5
26653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654   (exit $ac_status); } && {
26655          test -z "$ac_c_werror_flag" ||
26656          test ! -s conftest.err
26657        } && test -s conftest.$ac_objext; then
26658   ac_lo=0 ac_mid=0
26659   while :; do
26660     cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h.  */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h.  */
26666 $ac_includes_default
26667 #ifndef offsetof
26668 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26669 #endif
26670 typedef struct { char x; double y; } ac__type_alignof_;
26671 int
26672 main ()
26673 {
26674 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26675 test_array [0] = 0
26676
26677   ;
26678   return 0;
26679 }
26680 _ACEOF
26681 rm -f conftest.$ac_objext
26682 if { (ac_try="$ac_compile"
26683 case "(($ac_try" in
26684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685   *) ac_try_echo=$ac_try;;
26686 esac
26687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26688 $as_echo "$ac_try_echo") >&5
26689   (eval "$ac_compile") 2>conftest.er1
26690   ac_status=$?
26691   grep -v '^ *+' conftest.er1 >conftest.err
26692   rm -f conftest.er1
26693   cat conftest.err >&5
26694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); } && {
26696          test -z "$ac_c_werror_flag" ||
26697          test ! -s conftest.err
26698        } && test -s conftest.$ac_objext; then
26699   ac_hi=$ac_mid; break
26700 else
26701   $as_echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.$ac_ext >&5
26703
26704         ac_lo=`expr $ac_mid + 1`
26705                         if test $ac_lo -le $ac_mid; then
26706                           ac_lo= ac_hi=
26707                           break
26708                         fi
26709                         ac_mid=`expr 2 '*' $ac_mid + 1`
26710 fi
26711
26712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26713   done
26714 else
26715   $as_echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26717
26718         cat >conftest.$ac_ext <<_ACEOF
26719 /* confdefs.h.  */
26720 _ACEOF
26721 cat confdefs.h >>conftest.$ac_ext
26722 cat >>conftest.$ac_ext <<_ACEOF
26723 /* end confdefs.h.  */
26724 $ac_includes_default
26725 #ifndef offsetof
26726 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26727 #endif
26728 typedef struct { char x; double y; } ac__type_alignof_;
26729 int
26730 main ()
26731 {
26732 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26733 test_array [0] = 0
26734
26735   ;
26736   return 0;
26737 }
26738 _ACEOF
26739 rm -f conftest.$ac_objext
26740 if { (ac_try="$ac_compile"
26741 case "(($ac_try" in
26742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743   *) ac_try_echo=$ac_try;;
26744 esac
26745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26746 $as_echo "$ac_try_echo") >&5
26747   (eval "$ac_compile") 2>conftest.er1
26748   ac_status=$?
26749   grep -v '^ *+' conftest.er1 >conftest.err
26750   rm -f conftest.er1
26751   cat conftest.err >&5
26752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753   (exit $ac_status); } && {
26754          test -z "$ac_c_werror_flag" ||
26755          test ! -s conftest.err
26756        } && test -s conftest.$ac_objext; then
26757   ac_hi=-1 ac_mid=-1
26758   while :; do
26759     cat >conftest.$ac_ext <<_ACEOF
26760 /* confdefs.h.  */
26761 _ACEOF
26762 cat confdefs.h >>conftest.$ac_ext
26763 cat >>conftest.$ac_ext <<_ACEOF
26764 /* end confdefs.h.  */
26765 $ac_includes_default
26766 #ifndef offsetof
26767 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26768 #endif
26769 typedef struct { char x; double y; } ac__type_alignof_;
26770 int
26771 main ()
26772 {
26773 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26774 test_array [0] = 0
26775
26776   ;
26777   return 0;
26778 }
26779 _ACEOF
26780 rm -f conftest.$ac_objext
26781 if { (ac_try="$ac_compile"
26782 case "(($ac_try" in
26783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784   *) ac_try_echo=$ac_try;;
26785 esac
26786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26787 $as_echo "$ac_try_echo") >&5
26788   (eval "$ac_compile") 2>conftest.er1
26789   ac_status=$?
26790   grep -v '^ *+' conftest.er1 >conftest.err
26791   rm -f conftest.er1
26792   cat conftest.err >&5
26793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794   (exit $ac_status); } && {
26795          test -z "$ac_c_werror_flag" ||
26796          test ! -s conftest.err
26797        } && test -s conftest.$ac_objext; then
26798   ac_lo=$ac_mid; break
26799 else
26800   $as_echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26802
26803         ac_hi=`expr '(' $ac_mid ')' - 1`
26804                         if test $ac_mid -le $ac_hi; then
26805                           ac_lo= ac_hi=
26806                           break
26807                         fi
26808                         ac_mid=`expr 2 '*' $ac_mid`
26809 fi
26810
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26812   done
26813 else
26814   $as_echo "$as_me: failed program was:" >&5
26815 sed 's/^/| /' conftest.$ac_ext >&5
26816
26817         ac_lo= ac_hi=
26818 fi
26819
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821 fi
26822
26823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26824 # Binary search between lo and hi bounds.
26825 while test "x$ac_lo" != "x$ac_hi"; do
26826   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26827   cat >conftest.$ac_ext <<_ACEOF
26828 /* confdefs.h.  */
26829 _ACEOF
26830 cat confdefs.h >>conftest.$ac_ext
26831 cat >>conftest.$ac_ext <<_ACEOF
26832 /* end confdefs.h.  */
26833 $ac_includes_default
26834 #ifndef offsetof
26835 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26836 #endif
26837 typedef struct { char x; double y; } ac__type_alignof_;
26838 int
26839 main ()
26840 {
26841 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26842 test_array [0] = 0
26843
26844   ;
26845   return 0;
26846 }
26847 _ACEOF
26848 rm -f conftest.$ac_objext
26849 if { (ac_try="$ac_compile"
26850 case "(($ac_try" in
26851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26852   *) ac_try_echo=$ac_try;;
26853 esac
26854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26855 $as_echo "$ac_try_echo") >&5
26856   (eval "$ac_compile") 2>conftest.er1
26857   ac_status=$?
26858   grep -v '^ *+' conftest.er1 >conftest.err
26859   rm -f conftest.er1
26860   cat conftest.err >&5
26861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); } && {
26863          test -z "$ac_c_werror_flag" ||
26864          test ! -s conftest.err
26865        } && test -s conftest.$ac_objext; then
26866   ac_hi=$ac_mid
26867 else
26868   $as_echo "$as_me: failed program was:" >&5
26869 sed 's/^/| /' conftest.$ac_ext >&5
26870
26871         ac_lo=`expr '(' $ac_mid ')' + 1`
26872 fi
26873
26874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26875 done
26876 case $ac_lo in
26877 ?*) ac_cv_alignof_double=$ac_lo;;
26878 '') if test "$ac_cv_type_double" = yes; then
26879      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26881 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26882 See \`config.log' for more details." >&5
26883 $as_echo "$as_me: error: cannot compute alignment of double
26884 See \`config.log' for more details." >&2;}
26885    { (exit 77); exit 77; }; }; }
26886    else
26887      ac_cv_alignof_double=0
26888    fi ;;
26889 esac
26890 else
26891   cat >conftest.$ac_ext <<_ACEOF
26892 /* confdefs.h.  */
26893 _ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h.  */
26897 $ac_includes_default
26898 #ifndef offsetof
26899 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26900 #endif
26901 typedef struct { char x; double y; } ac__type_alignof_;
26902 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26903 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26904 #include <stdio.h>
26905 #include <stdlib.h>
26906 int
26907 main ()
26908 {
26909
26910   FILE *f = fopen ("conftest.val", "w");
26911   if (! f)
26912     return 1;
26913   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26914     {
26915       long int i = longval ();
26916       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26917         return 1;
26918       fprintf (f, "%ld", i);
26919     }
26920   else
26921     {
26922       unsigned long int i = ulongval ();
26923       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26924         return 1;
26925       fprintf (f, "%lu", i);
26926     }
26927   /* Do not output a trailing newline, as this causes \r\n confusion
26928      on some platforms.  */
26929   return ferror (f) || fclose (f) != 0;
26930
26931   ;
26932   return 0;
26933 }
26934 _ACEOF
26935 rm -f conftest$ac_exeext
26936 if { (ac_try="$ac_link"
26937 case "(($ac_try" in
26938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26939   *) ac_try_echo=$ac_try;;
26940 esac
26941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26942 $as_echo "$ac_try_echo") >&5
26943   (eval "$ac_link") 2>&5
26944   ac_status=$?
26945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26947   { (case "(($ac_try" in
26948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26949   *) ac_try_echo=$ac_try;;
26950 esac
26951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26952 $as_echo "$ac_try_echo") >&5
26953   (eval "$ac_try") 2>&5
26954   ac_status=$?
26955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); }; }; then
26957   ac_cv_alignof_double=`cat conftest.val`
26958 else
26959   $as_echo "$as_me: program exited with status $ac_status" >&5
26960 $as_echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26962
26963 ( exit $ac_status )
26964 if test "$ac_cv_type_double" = yes; then
26965      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26967 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26968 See \`config.log' for more details." >&5
26969 $as_echo "$as_me: error: cannot compute alignment of double
26970 See \`config.log' for more details." >&2;}
26971    { (exit 77); exit 77; }; }; }
26972    else
26973      ac_cv_alignof_double=0
26974    fi
26975 fi
26976 rm -rf conftest.dSYM
26977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26978 fi
26979 rm -f conftest.val
26980 fi
26981 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
26982 $as_echo "$ac_cv_alignof_double" >&6; }
26983
26984
26985
26986 cat >>confdefs.h <<_ACEOF
26987 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
26988 _ACEOF
26989
26990
26991
26992 # Compute maximum alignment of any basic type.
26993 # We assume long's alignment is at least as strong as char, short, or int;
26994 # but we must check long long (if it exists) and double.
26995
26996 MAX_ALIGNOF=$ac_cv_alignof_long
26997 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
26998   MAX_ALIGNOF=$ac_cv_alignof_double
26999 fi
27000 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27001   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27002 fi
27003
27004 cat >>confdefs.h <<_ACEOF
27005 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27006 _ACEOF
27007
27008
27009
27010 # Some platforms predefine the types int8, int16, etc.  Only check
27011 # a (hopefully) representative subset.
27012 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27013 $as_echo_n "checking for int8... " >&6; }
27014 if test "${ac_cv_type_int8+set}" = set; then
27015   $as_echo_n "(cached) " >&6
27016 else
27017   ac_cv_type_int8=no
27018 cat >conftest.$ac_ext <<_ACEOF
27019 /* confdefs.h.  */
27020 _ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h.  */
27024 #include <stdio.h>
27025 #ifdef HAVE_SUPPORTDEFS_H
27026 #include <SupportDefs.h>
27027 #endif
27028
27029 int
27030 main ()
27031 {
27032 if (sizeof (int8))
27033        return 0;
27034   ;
27035   return 0;
27036 }
27037 _ACEOF
27038 rm -f conftest.$ac_objext
27039 if { (ac_try="$ac_compile"
27040 case "(($ac_try" in
27041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042   *) ac_try_echo=$ac_try;;
27043 esac
27044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27045 $as_echo "$ac_try_echo") >&5
27046   (eval "$ac_compile") 2>conftest.er1
27047   ac_status=$?
27048   grep -v '^ *+' conftest.er1 >conftest.err
27049   rm -f conftest.er1
27050   cat conftest.err >&5
27051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052   (exit $ac_status); } && {
27053          test -z "$ac_c_werror_flag" ||
27054          test ! -s conftest.err
27055        } && test -s conftest.$ac_objext; then
27056   cat >conftest.$ac_ext <<_ACEOF
27057 /* confdefs.h.  */
27058 _ACEOF
27059 cat confdefs.h >>conftest.$ac_ext
27060 cat >>conftest.$ac_ext <<_ACEOF
27061 /* end confdefs.h.  */
27062 #include <stdio.h>
27063 #ifdef HAVE_SUPPORTDEFS_H
27064 #include <SupportDefs.h>
27065 #endif
27066
27067 int
27068 main ()
27069 {
27070 if (sizeof ((int8)))
27071           return 0;
27072   ;
27073   return 0;
27074 }
27075 _ACEOF
27076 rm -f conftest.$ac_objext
27077 if { (ac_try="$ac_compile"
27078 case "(($ac_try" in
27079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27080   *) ac_try_echo=$ac_try;;
27081 esac
27082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27083 $as_echo "$ac_try_echo") >&5
27084   (eval "$ac_compile") 2>conftest.er1
27085   ac_status=$?
27086   grep -v '^ *+' conftest.er1 >conftest.err
27087   rm -f conftest.er1
27088   cat conftest.err >&5
27089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090   (exit $ac_status); } && {
27091          test -z "$ac_c_werror_flag" ||
27092          test ! -s conftest.err
27093        } && test -s conftest.$ac_objext; then
27094   :
27095 else
27096   $as_echo "$as_me: failed program was:" >&5
27097 sed 's/^/| /' conftest.$ac_ext >&5
27098
27099         ac_cv_type_int8=yes
27100 fi
27101
27102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27103 else
27104   $as_echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27106
27107
27108 fi
27109
27110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27111 fi
27112 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27113 $as_echo "$ac_cv_type_int8" >&6; }
27114 if test "x$ac_cv_type_int8" = x""yes; then
27115
27116 cat >>confdefs.h <<_ACEOF
27117 #define HAVE_INT8 1
27118 _ACEOF
27119
27120
27121 fi
27122 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27123 $as_echo_n "checking for uint8... " >&6; }
27124 if test "${ac_cv_type_uint8+set}" = set; then
27125   $as_echo_n "(cached) " >&6
27126 else
27127   ac_cv_type_uint8=no
27128 cat >conftest.$ac_ext <<_ACEOF
27129 /* confdefs.h.  */
27130 _ACEOF
27131 cat confdefs.h >>conftest.$ac_ext
27132 cat >>conftest.$ac_ext <<_ACEOF
27133 /* end confdefs.h.  */
27134 #include <stdio.h>
27135 #ifdef HAVE_SUPPORTDEFS_H
27136 #include <SupportDefs.h>
27137 #endif
27138
27139 int
27140 main ()
27141 {
27142 if (sizeof (uint8))
27143        return 0;
27144   ;
27145   return 0;
27146 }
27147 _ACEOF
27148 rm -f conftest.$ac_objext
27149 if { (ac_try="$ac_compile"
27150 case "(($ac_try" in
27151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27152   *) ac_try_echo=$ac_try;;
27153 esac
27154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27155 $as_echo "$ac_try_echo") >&5
27156   (eval "$ac_compile") 2>conftest.er1
27157   ac_status=$?
27158   grep -v '^ *+' conftest.er1 >conftest.err
27159   rm -f conftest.er1
27160   cat conftest.err >&5
27161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162   (exit $ac_status); } && {
27163          test -z "$ac_c_werror_flag" ||
27164          test ! -s conftest.err
27165        } && test -s conftest.$ac_objext; then
27166   cat >conftest.$ac_ext <<_ACEOF
27167 /* confdefs.h.  */
27168 _ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h.  */
27172 #include <stdio.h>
27173 #ifdef HAVE_SUPPORTDEFS_H
27174 #include <SupportDefs.h>
27175 #endif
27176
27177 int
27178 main ()
27179 {
27180 if (sizeof ((uint8)))
27181           return 0;
27182   ;
27183   return 0;
27184 }
27185 _ACEOF
27186 rm -f conftest.$ac_objext
27187 if { (ac_try="$ac_compile"
27188 case "(($ac_try" in
27189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190   *) ac_try_echo=$ac_try;;
27191 esac
27192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27193 $as_echo "$ac_try_echo") >&5
27194   (eval "$ac_compile") 2>conftest.er1
27195   ac_status=$?
27196   grep -v '^ *+' conftest.er1 >conftest.err
27197   rm -f conftest.er1
27198   cat conftest.err >&5
27199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); } && {
27201          test -z "$ac_c_werror_flag" ||
27202          test ! -s conftest.err
27203        } && test -s conftest.$ac_objext; then
27204   :
27205 else
27206   $as_echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27208
27209         ac_cv_type_uint8=yes
27210 fi
27211
27212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27213 else
27214   $as_echo "$as_me: failed program was:" >&5
27215 sed 's/^/| /' conftest.$ac_ext >&5
27216
27217
27218 fi
27219
27220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27221 fi
27222 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27223 $as_echo "$ac_cv_type_uint8" >&6; }
27224 if test "x$ac_cv_type_uint8" = x""yes; then
27225
27226 cat >>confdefs.h <<_ACEOF
27227 #define HAVE_UINT8 1
27228 _ACEOF
27229
27230
27231 fi
27232 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27233 $as_echo_n "checking for int64... " >&6; }
27234 if test "${ac_cv_type_int64+set}" = set; then
27235   $as_echo_n "(cached) " >&6
27236 else
27237   ac_cv_type_int64=no
27238 cat >conftest.$ac_ext <<_ACEOF
27239 /* confdefs.h.  */
27240 _ACEOF
27241 cat confdefs.h >>conftest.$ac_ext
27242 cat >>conftest.$ac_ext <<_ACEOF
27243 /* end confdefs.h.  */
27244 #include <stdio.h>
27245 #ifdef HAVE_SUPPORTDEFS_H
27246 #include <SupportDefs.h>
27247 #endif
27248
27249 int
27250 main ()
27251 {
27252 if (sizeof (int64))
27253        return 0;
27254   ;
27255   return 0;
27256 }
27257 _ACEOF
27258 rm -f conftest.$ac_objext
27259 if { (ac_try="$ac_compile"
27260 case "(($ac_try" in
27261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262   *) ac_try_echo=$ac_try;;
27263 esac
27264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27265 $as_echo "$ac_try_echo") >&5
27266   (eval "$ac_compile") 2>conftest.er1
27267   ac_status=$?
27268   grep -v '^ *+' conftest.er1 >conftest.err
27269   rm -f conftest.er1
27270   cat conftest.err >&5
27271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); } && {
27273          test -z "$ac_c_werror_flag" ||
27274          test ! -s conftest.err
27275        } && test -s conftest.$ac_objext; then
27276   cat >conftest.$ac_ext <<_ACEOF
27277 /* confdefs.h.  */
27278 _ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h.  */
27282 #include <stdio.h>
27283 #ifdef HAVE_SUPPORTDEFS_H
27284 #include <SupportDefs.h>
27285 #endif
27286
27287 int
27288 main ()
27289 {
27290 if (sizeof ((int64)))
27291           return 0;
27292   ;
27293   return 0;
27294 }
27295 _ACEOF
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
27298 case "(($ac_try" in
27299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300   *) ac_try_echo=$ac_try;;
27301 esac
27302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303 $as_echo "$ac_try_echo") >&5
27304   (eval "$ac_compile") 2>conftest.er1
27305   ac_status=$?
27306   grep -v '^ *+' conftest.er1 >conftest.err
27307   rm -f conftest.er1
27308   cat conftest.err >&5
27309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310   (exit $ac_status); } && {
27311          test -z "$ac_c_werror_flag" ||
27312          test ! -s conftest.err
27313        } && test -s conftest.$ac_objext; then
27314   :
27315 else
27316   $as_echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27318
27319         ac_cv_type_int64=yes
27320 fi
27321
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323 else
27324   $as_echo "$as_me: failed program was:" >&5
27325 sed 's/^/| /' conftest.$ac_ext >&5
27326
27327
27328 fi
27329
27330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27331 fi
27332 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27333 $as_echo "$ac_cv_type_int64" >&6; }
27334 if test "x$ac_cv_type_int64" = x""yes; then
27335
27336 cat >>confdefs.h <<_ACEOF
27337 #define HAVE_INT64 1
27338 _ACEOF
27339
27340
27341 fi
27342 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27343 $as_echo_n "checking for uint64... " >&6; }
27344 if test "${ac_cv_type_uint64+set}" = set; then
27345   $as_echo_n "(cached) " >&6
27346 else
27347   ac_cv_type_uint64=no
27348 cat >conftest.$ac_ext <<_ACEOF
27349 /* confdefs.h.  */
27350 _ACEOF
27351 cat confdefs.h >>conftest.$ac_ext
27352 cat >>conftest.$ac_ext <<_ACEOF
27353 /* end confdefs.h.  */
27354 #include <stdio.h>
27355 #ifdef HAVE_SUPPORTDEFS_H
27356 #include <SupportDefs.h>
27357 #endif
27358
27359 int
27360 main ()
27361 {
27362 if (sizeof (uint64))
27363        return 0;
27364   ;
27365   return 0;
27366 }
27367 _ACEOF
27368 rm -f conftest.$ac_objext
27369 if { (ac_try="$ac_compile"
27370 case "(($ac_try" in
27371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27372   *) ac_try_echo=$ac_try;;
27373 esac
27374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27375 $as_echo "$ac_try_echo") >&5
27376   (eval "$ac_compile") 2>conftest.er1
27377   ac_status=$?
27378   grep -v '^ *+' conftest.er1 >conftest.err
27379   rm -f conftest.er1
27380   cat conftest.err >&5
27381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); } && {
27383          test -z "$ac_c_werror_flag" ||
27384          test ! -s conftest.err
27385        } && test -s conftest.$ac_objext; then
27386   cat >conftest.$ac_ext <<_ACEOF
27387 /* confdefs.h.  */
27388 _ACEOF
27389 cat confdefs.h >>conftest.$ac_ext
27390 cat >>conftest.$ac_ext <<_ACEOF
27391 /* end confdefs.h.  */
27392 #include <stdio.h>
27393 #ifdef HAVE_SUPPORTDEFS_H
27394 #include <SupportDefs.h>
27395 #endif
27396
27397 int
27398 main ()
27399 {
27400 if (sizeof ((uint64)))
27401           return 0;
27402   ;
27403   return 0;
27404 }
27405 _ACEOF
27406 rm -f conftest.$ac_objext
27407 if { (ac_try="$ac_compile"
27408 case "(($ac_try" in
27409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410   *) ac_try_echo=$ac_try;;
27411 esac
27412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27413 $as_echo "$ac_try_echo") >&5
27414   (eval "$ac_compile") 2>conftest.er1
27415   ac_status=$?
27416   grep -v '^ *+' conftest.er1 >conftest.err
27417   rm -f conftest.er1
27418   cat conftest.err >&5
27419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420   (exit $ac_status); } && {
27421          test -z "$ac_c_werror_flag" ||
27422          test ! -s conftest.err
27423        } && test -s conftest.$ac_objext; then
27424   :
27425 else
27426   $as_echo "$as_me: failed program was:" >&5
27427 sed 's/^/| /' conftest.$ac_ext >&5
27428
27429         ac_cv_type_uint64=yes
27430 fi
27431
27432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27433 else
27434   $as_echo "$as_me: failed program was:" >&5
27435 sed 's/^/| /' conftest.$ac_ext >&5
27436
27437
27438 fi
27439
27440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27441 fi
27442 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27443 $as_echo "$ac_cv_type_uint64" >&6; }
27444 if test "x$ac_cv_type_uint64" = x""yes; then
27445
27446 cat >>confdefs.h <<_ACEOF
27447 #define HAVE_UINT64 1
27448 _ACEOF
27449
27450
27451 fi
27452
27453
27454 # We also check for sig_atomic_t, which *should* be defined per ANSI
27455 # C, but is missing on some old platforms.
27456 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27457 $as_echo_n "checking for sig_atomic_t... " >&6; }
27458 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27459   $as_echo_n "(cached) " >&6
27460 else
27461   ac_cv_type_sig_atomic_t=no
27462 cat >conftest.$ac_ext <<_ACEOF
27463 /* confdefs.h.  */
27464 _ACEOF
27465 cat confdefs.h >>conftest.$ac_ext
27466 cat >>conftest.$ac_ext <<_ACEOF
27467 /* end confdefs.h.  */
27468 #include <signal.h>
27469
27470 int
27471 main ()
27472 {
27473 if (sizeof (sig_atomic_t))
27474        return 0;
27475   ;
27476   return 0;
27477 }
27478 _ACEOF
27479 rm -f conftest.$ac_objext
27480 if { (ac_try="$ac_compile"
27481 case "(($ac_try" in
27482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483   *) ac_try_echo=$ac_try;;
27484 esac
27485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27486 $as_echo "$ac_try_echo") >&5
27487   (eval "$ac_compile") 2>conftest.er1
27488   ac_status=$?
27489   grep -v '^ *+' conftest.er1 >conftest.err
27490   rm -f conftest.er1
27491   cat conftest.err >&5
27492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493   (exit $ac_status); } && {
27494          test -z "$ac_c_werror_flag" ||
27495          test ! -s conftest.err
27496        } && test -s conftest.$ac_objext; then
27497   cat >conftest.$ac_ext <<_ACEOF
27498 /* confdefs.h.  */
27499 _ACEOF
27500 cat confdefs.h >>conftest.$ac_ext
27501 cat >>conftest.$ac_ext <<_ACEOF
27502 /* end confdefs.h.  */
27503 #include <signal.h>
27504
27505 int
27506 main ()
27507 {
27508 if (sizeof ((sig_atomic_t)))
27509           return 0;
27510   ;
27511   return 0;
27512 }
27513 _ACEOF
27514 rm -f conftest.$ac_objext
27515 if { (ac_try="$ac_compile"
27516 case "(($ac_try" in
27517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518   *) ac_try_echo=$ac_try;;
27519 esac
27520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27521 $as_echo "$ac_try_echo") >&5
27522   (eval "$ac_compile") 2>conftest.er1
27523   ac_status=$?
27524   grep -v '^ *+' conftest.er1 >conftest.err
27525   rm -f conftest.er1
27526   cat conftest.err >&5
27527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); } && {
27529          test -z "$ac_c_werror_flag" ||
27530          test ! -s conftest.err
27531        } && test -s conftest.$ac_objext; then
27532   :
27533 else
27534   $as_echo "$as_me: failed program was:" >&5
27535 sed 's/^/| /' conftest.$ac_ext >&5
27536
27537         ac_cv_type_sig_atomic_t=yes
27538 fi
27539
27540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27541 else
27542   $as_echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27544
27545
27546 fi
27547
27548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27549 fi
27550 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27551 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27552 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27553
27554 cat >>confdefs.h <<_ACEOF
27555 #define HAVE_SIG_ATOMIC_T 1
27556 _ACEOF
27557
27558
27559 fi
27560
27561
27562
27563 if test "$PORTNAME" != "win32"
27564 then
27565 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27566 $as_echo_n "checking for POSIX signal interface... " >&6; }
27567 if test "${pgac_cv_func_posix_signals+set}" = set; then
27568   $as_echo_n "(cached) " >&6
27569 else
27570   cat >conftest.$ac_ext <<_ACEOF
27571 /* confdefs.h.  */
27572 _ACEOF
27573 cat confdefs.h >>conftest.$ac_ext
27574 cat >>conftest.$ac_ext <<_ACEOF
27575 /* end confdefs.h.  */
27576 #include <signal.h>
27577
27578 int
27579 main ()
27580 {
27581 struct sigaction act, oact;
27582 sigemptyset(&act.sa_mask);
27583 act.sa_flags = SA_RESTART;
27584 sigaction(0, &act, &oact);
27585   ;
27586   return 0;
27587 }
27588 _ACEOF
27589 rm -f conftest.$ac_objext conftest$ac_exeext
27590 if { (ac_try="$ac_link"
27591 case "(($ac_try" in
27592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27593   *) ac_try_echo=$ac_try;;
27594 esac
27595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27596 $as_echo "$ac_try_echo") >&5
27597   (eval "$ac_link") 2>conftest.er1
27598   ac_status=$?
27599   grep -v '^ *+' conftest.er1 >conftest.err
27600   rm -f conftest.er1
27601   cat conftest.err >&5
27602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603   (exit $ac_status); } && {
27604          test -z "$ac_c_werror_flag" ||
27605          test ! -s conftest.err
27606        } && test -s conftest$ac_exeext && {
27607          test "$cross_compiling" = yes ||
27608          $as_test_x conftest$ac_exeext
27609        }; then
27610   pgac_cv_func_posix_signals=yes
27611 else
27612   $as_echo "$as_me: failed program was:" >&5
27613 sed 's/^/| /' conftest.$ac_ext >&5
27614
27615         pgac_cv_func_posix_signals=no
27616 fi
27617
27618 rm -rf conftest.dSYM
27619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27620       conftest$ac_exeext conftest.$ac_ext
27621 fi
27622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27623 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27624 if test x"$pgac_cv_func_posix_signals" = xyes ; then
27625
27626 cat >>confdefs.h <<\_ACEOF
27627 #define HAVE_POSIX_SIGNALS /**/
27628 _ACEOF
27629
27630 fi
27631 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
27632
27633 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27634   { { $as_echo "$as_me:$LINENO: error:
27635 Thread-safety requires POSIX signals, which are not supported by this
27636 operating system;  use --disable-thread-safety to disable thread safety." >&5
27637 $as_echo "$as_me: error:
27638 Thread-safety requires POSIX signals, which are not supported by this
27639 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
27640    { (exit 1); exit 1; }; }
27641 fi
27642 fi
27643
27644 # SunOS doesn't handle negative byte comparisons properly with +/- return
27645 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27646 $as_echo_n "checking for working memcmp... " >&6; }
27647 if test "${ac_cv_func_memcmp_working+set}" = set; then
27648   $as_echo_n "(cached) " >&6
27649 else
27650   if test "$cross_compiling" = yes; then
27651   ac_cv_func_memcmp_working=no
27652 else
27653   cat >conftest.$ac_ext <<_ACEOF
27654 /* confdefs.h.  */
27655 _ACEOF
27656 cat confdefs.h >>conftest.$ac_ext
27657 cat >>conftest.$ac_ext <<_ACEOF
27658 /* end confdefs.h.  */
27659 $ac_includes_default
27660 int
27661 main ()
27662 {
27663
27664   /* Some versions of memcmp are not 8-bit clean.  */
27665   char c0 = '\100', c1 = '\200', c2 = '\201';
27666   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27667     return 1;
27668
27669   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27670      or more and with at least one buffer not starting on a 4-byte boundary.
27671      William Lewis provided this test program.   */
27672   {
27673     char foo[21];
27674     char bar[21];
27675     int i;
27676     for (i = 0; i < 4; i++)
27677       {
27678         char *a = foo + i;
27679         char *b = bar + i;
27680         strcpy (a, "--------01111111");
27681         strcpy (b, "--------10000000");
27682         if (memcmp (a, b, 16) >= 0)
27683           return 1;
27684       }
27685     return 0;
27686   }
27687
27688   ;
27689   return 0;
27690 }
27691 _ACEOF
27692 rm -f conftest$ac_exeext
27693 if { (ac_try="$ac_link"
27694 case "(($ac_try" in
27695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27696   *) ac_try_echo=$ac_try;;
27697 esac
27698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27699 $as_echo "$ac_try_echo") >&5
27700   (eval "$ac_link") 2>&5
27701   ac_status=$?
27702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27704   { (case "(($ac_try" in
27705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706   *) ac_try_echo=$ac_try;;
27707 esac
27708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27709 $as_echo "$ac_try_echo") >&5
27710   (eval "$ac_try") 2>&5
27711   ac_status=$?
27712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713   (exit $ac_status); }; }; then
27714   ac_cv_func_memcmp_working=yes
27715 else
27716   $as_echo "$as_me: program exited with status $ac_status" >&5
27717 $as_echo "$as_me: failed program was:" >&5
27718 sed 's/^/| /' conftest.$ac_ext >&5
27719
27720 ( exit $ac_status )
27721 ac_cv_func_memcmp_working=no
27722 fi
27723 rm -rf conftest.dSYM
27724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27725 fi
27726
27727
27728 fi
27729 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27730 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27731 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27732   *" memcmp.$ac_objext "* ) ;;
27733   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27734  ;;
27735 esac
27736
27737
27738
27739
27740 # Select semaphore implementation type.
27741 if test "$PORTNAME" != "win32"; then
27742   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27743
27744 cat >>confdefs.h <<\_ACEOF
27745 #define USE_NAMED_POSIX_SEMAPHORES 1
27746 _ACEOF
27747
27748     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27749   else
27750     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27751
27752 cat >>confdefs.h <<\_ACEOF
27753 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27754 _ACEOF
27755
27756       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27757     else
27758
27759 cat >>confdefs.h <<\_ACEOF
27760 #define USE_SYSV_SEMAPHORES 1
27761 _ACEOF
27762
27763       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27764     fi
27765   fi
27766 else
27767
27768 cat >>confdefs.h <<\_ACEOF
27769 #define USE_WIN32_SEMAPHORES 1
27770 _ACEOF
27771
27772   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27773 fi
27774
27775
27776 # Select shared-memory implementation type.
27777 if test "$PORTNAME" != "win32"; then
27778
27779 cat >>confdefs.h <<\_ACEOF
27780 #define USE_SYSV_SHARED_MEMORY 1
27781 _ACEOF
27782
27783   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27784 else
27785
27786 cat >>confdefs.h <<\_ACEOF
27787 #define USE_WIN32_SHARED_MEMORY 1
27788 _ACEOF
27789
27790   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27791 fi
27792
27793 # Select latch implementation type.
27794 if test "$PORTNAME" != "win32"; then
27795   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
27796 else
27797   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
27798 fi
27799
27800 # If not set in template file, set bytes to use libc memset()
27801 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27802   MEMSET_LOOP_LIMIT=1024
27803 fi
27804
27805 cat >>confdefs.h <<_ACEOF
27806 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27807 _ACEOF
27808
27809
27810
27811 if test "$enable_nls" = yes ; then
27812
27813   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27814 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27815 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27816   $as_echo_n "(cached) " >&6
27817 else
27818   ac_func_search_save_LIBS=$LIBS
27819 cat >conftest.$ac_ext <<_ACEOF
27820 /* confdefs.h.  */
27821 _ACEOF
27822 cat confdefs.h >>conftest.$ac_ext
27823 cat >>conftest.$ac_ext <<_ACEOF
27824 /* end confdefs.h.  */
27825
27826 /* Override any GCC internal prototype to avoid an error.
27827    Use char because int might match the return type of a GCC
27828    builtin and then its argument prototype would still apply.  */
27829 #ifdef __cplusplus
27830 extern "C"
27831 #endif
27832 char bind_textdomain_codeset ();
27833 int
27834 main ()
27835 {
27836 return bind_textdomain_codeset ();
27837   ;
27838   return 0;
27839 }
27840 _ACEOF
27841 for ac_lib in '' intl; do
27842   if test -z "$ac_lib"; then
27843     ac_res="none required"
27844   else
27845     ac_res=-l$ac_lib
27846     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27847   fi
27848   rm -f conftest.$ac_objext conftest$ac_exeext
27849 if { (ac_try="$ac_link"
27850 case "(($ac_try" in
27851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852   *) ac_try_echo=$ac_try;;
27853 esac
27854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27855 $as_echo "$ac_try_echo") >&5
27856   (eval "$ac_link") 2>conftest.er1
27857   ac_status=$?
27858   grep -v '^ *+' conftest.er1 >conftest.err
27859   rm -f conftest.er1
27860   cat conftest.err >&5
27861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862   (exit $ac_status); } && {
27863          test -z "$ac_c_werror_flag" ||
27864          test ! -s conftest.err
27865        } && test -s conftest$ac_exeext && {
27866          test "$cross_compiling" = yes ||
27867          $as_test_x conftest$ac_exeext
27868        }; then
27869   ac_cv_search_bind_textdomain_codeset=$ac_res
27870 else
27871   $as_echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27873
27874
27875 fi
27876
27877 rm -rf conftest.dSYM
27878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27879       conftest$ac_exeext
27880   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27881   break
27882 fi
27883 done
27884 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27885   :
27886 else
27887   ac_cv_search_bind_textdomain_codeset=no
27888 fi
27889 rm conftest.$ac_ext
27890 LIBS=$ac_func_search_save_LIBS
27891 fi
27892 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27893 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27894 ac_res=$ac_cv_search_bind_textdomain_codeset
27895 if test "$ac_res" != no; then
27896   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27897
27898 else
27899   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27900 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27901    { (exit 1); exit 1; }; }
27902 fi
27903
27904   if test "${ac_cv_header_libintl_h+set}" = set; then
27905   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27906 $as_echo_n "checking for libintl.h... " >&6; }
27907 if test "${ac_cv_header_libintl_h+set}" = set; then
27908   $as_echo_n "(cached) " >&6
27909 fi
27910 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27911 $as_echo "$ac_cv_header_libintl_h" >&6; }
27912 else
27913   # Is the header compilable?
27914 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27915 $as_echo_n "checking libintl.h usability... " >&6; }
27916 cat >conftest.$ac_ext <<_ACEOF
27917 /* confdefs.h.  */
27918 _ACEOF
27919 cat confdefs.h >>conftest.$ac_ext
27920 cat >>conftest.$ac_ext <<_ACEOF
27921 /* end confdefs.h.  */
27922 $ac_includes_default
27923 #include <libintl.h>
27924 _ACEOF
27925 rm -f conftest.$ac_objext
27926 if { (ac_try="$ac_compile"
27927 case "(($ac_try" in
27928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27929   *) ac_try_echo=$ac_try;;
27930 esac
27931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27932 $as_echo "$ac_try_echo") >&5
27933   (eval "$ac_compile") 2>conftest.er1
27934   ac_status=$?
27935   grep -v '^ *+' conftest.er1 >conftest.err
27936   rm -f conftest.er1
27937   cat conftest.err >&5
27938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27939   (exit $ac_status); } && {
27940          test -z "$ac_c_werror_flag" ||
27941          test ! -s conftest.err
27942        } && test -s conftest.$ac_objext; then
27943   ac_header_compiler=yes
27944 else
27945   $as_echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27947
27948         ac_header_compiler=no
27949 fi
27950
27951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27953 $as_echo "$ac_header_compiler" >&6; }
27954
27955 # Is the header present?
27956 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27957 $as_echo_n "checking libintl.h presence... " >&6; }
27958 cat >conftest.$ac_ext <<_ACEOF
27959 /* confdefs.h.  */
27960 _ACEOF
27961 cat confdefs.h >>conftest.$ac_ext
27962 cat >>conftest.$ac_ext <<_ACEOF
27963 /* end confdefs.h.  */
27964 #include <libintl.h>
27965 _ACEOF
27966 if { (ac_try="$ac_cpp conftest.$ac_ext"
27967 case "(($ac_try" in
27968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969   *) ac_try_echo=$ac_try;;
27970 esac
27971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27972 $as_echo "$ac_try_echo") >&5
27973   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27974   ac_status=$?
27975   grep -v '^ *+' conftest.er1 >conftest.err
27976   rm -f conftest.er1
27977   cat conftest.err >&5
27978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); } >/dev/null && {
27980          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27981          test ! -s conftest.err
27982        }; then
27983   ac_header_preproc=yes
27984 else
27985   $as_echo "$as_me: failed program was:" >&5
27986 sed 's/^/| /' conftest.$ac_ext >&5
27987
27988   ac_header_preproc=no
27989 fi
27990
27991 rm -f conftest.err conftest.$ac_ext
27992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27993 $as_echo "$ac_header_preproc" >&6; }
27994
27995 # So?  What about this header?
27996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27997   yes:no: )
27998     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27999 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28000     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28001 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28002     ac_header_preproc=yes
28003     ;;
28004   no:yes:* )
28005     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28006 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28007     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
28008 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
28009     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28010 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28011     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
28012 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28013     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28014 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28015     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28016 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28017     ( cat <<\_ASBOX
28018 ## ---------------------------------------- ##
28019 ## Report this to pgsql-bugs@postgresql.org ##
28020 ## ---------------------------------------- ##
28021 _ASBOX
28022      ) | sed "s/^/$as_me: WARNING:     /" >&2
28023     ;;
28024 esac
28025 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28026 $as_echo_n "checking for libintl.h... " >&6; }
28027 if test "${ac_cv_header_libintl_h+set}" = set; then
28028   $as_echo_n "(cached) " >&6
28029 else
28030   ac_cv_header_libintl_h=$ac_header_preproc
28031 fi
28032 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28033 $as_echo "$ac_cv_header_libintl_h" >&6; }
28034
28035 fi
28036 if test "x$ac_cv_header_libintl_h" = x""yes; then
28037   :
28038 else
28039   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28040 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28041    { (exit 1); exit 1; }; }
28042 fi
28043
28044
28045   for ac_prog in msgfmt
28046 do
28047   # Extract the first word of "$ac_prog", so it can be a program name with args.
28048 set dummy $ac_prog; ac_word=$2
28049 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28050 $as_echo_n "checking for $ac_word... " >&6; }
28051 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28052   $as_echo_n "(cached) " >&6
28053 else
28054   if test -n "$MSGFMT"; then
28055   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28056 else
28057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28058 for as_dir in $PATH
28059 do
28060   IFS=$as_save_IFS
28061   test -z "$as_dir" && as_dir=.
28062   for ac_exec_ext in '' $ac_executable_extensions; do
28063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28064     ac_cv_prog_MSGFMT="$ac_prog"
28065     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28066     break 2
28067   fi
28068 done
28069 done
28070 IFS=$as_save_IFS
28071
28072 fi
28073 fi
28074 MSGFMT=$ac_cv_prog_MSGFMT
28075 if test -n "$MSGFMT"; then
28076   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28077 $as_echo "$MSGFMT" >&6; }
28078 else
28079   { $as_echo "$as_me:$LINENO: result: no" >&5
28080 $as_echo "no" >&6; }
28081 fi
28082
28083
28084   test -n "$MSGFMT" && break
28085 done
28086
28087   if test -z "$MSGFMT"; then
28088     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28089 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28090    { (exit 1); exit 1; }; }
28091   fi
28092   for ac_prog in msgmerge
28093 do
28094   # Extract the first word of "$ac_prog", so it can be a program name with args.
28095 set dummy $ac_prog; ac_word=$2
28096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28097 $as_echo_n "checking for $ac_word... " >&6; }
28098 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28099   $as_echo_n "(cached) " >&6
28100 else
28101   if test -n "$MSGMERGE"; then
28102   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28103 else
28104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28105 for as_dir in $PATH
28106 do
28107   IFS=$as_save_IFS
28108   test -z "$as_dir" && as_dir=.
28109   for ac_exec_ext in '' $ac_executable_extensions; do
28110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28111     ac_cv_prog_MSGMERGE="$ac_prog"
28112     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28113     break 2
28114   fi
28115 done
28116 done
28117 IFS=$as_save_IFS
28118
28119 fi
28120 fi
28121 MSGMERGE=$ac_cv_prog_MSGMERGE
28122 if test -n "$MSGMERGE"; then
28123   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28124 $as_echo "$MSGMERGE" >&6; }
28125 else
28126   { $as_echo "$as_me:$LINENO: result: no" >&5
28127 $as_echo "no" >&6; }
28128 fi
28129
28130
28131   test -n "$MSGMERGE" && break
28132 done
28133
28134   for ac_prog in xgettext
28135 do
28136   # Extract the first word of "$ac_prog", so it can be a program name with args.
28137 set dummy $ac_prog; ac_word=$2
28138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28139 $as_echo_n "checking for $ac_word... " >&6; }
28140 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28141   $as_echo_n "(cached) " >&6
28142 else
28143   if test -n "$XGETTEXT"; then
28144   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28145 else
28146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28147 for as_dir in $PATH
28148 do
28149   IFS=$as_save_IFS
28150   test -z "$as_dir" && as_dir=.
28151   for ac_exec_ext in '' $ac_executable_extensions; do
28152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28153     ac_cv_prog_XGETTEXT="$ac_prog"
28154     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28155     break 2
28156   fi
28157 done
28158 done
28159 IFS=$as_save_IFS
28160
28161 fi
28162 fi
28163 XGETTEXT=$ac_cv_prog_XGETTEXT
28164 if test -n "$XGETTEXT"; then
28165   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28166 $as_echo "$XGETTEXT" >&6; }
28167 else
28168   { $as_echo "$as_me:$LINENO: result: no" >&5
28169 $as_echo "no" >&6; }
28170 fi
28171
28172
28173   test -n "$XGETTEXT" && break
28174 done
28175
28176
28177 fi
28178
28179 # Check for Tcl configuration script tclConfig.sh
28180 if test "$with_tcl" = yes; then
28181     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28182 do
28183   # Extract the first word of "$ac_prog", so it can be a program name with args.
28184 set dummy $ac_prog; ac_word=$2
28185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28186 $as_echo_n "checking for $ac_word... " >&6; }
28187 if test "${ac_cv_path_TCLSH+set}" = set; then
28188   $as_echo_n "(cached) " >&6
28189 else
28190   case $TCLSH in
28191   [\\/]* | ?:[\\/]*)
28192   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28193   ;;
28194   *)
28195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28196 for as_dir in $PATH
28197 do
28198   IFS=$as_save_IFS
28199   test -z "$as_dir" && as_dir=.
28200   for ac_exec_ext in '' $ac_executable_extensions; do
28201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28202     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28203     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28204     break 2
28205   fi
28206 done
28207 done
28208 IFS=$as_save_IFS
28209
28210   ;;
28211 esac
28212 fi
28213 TCLSH=$ac_cv_path_TCLSH
28214 if test -n "$TCLSH"; then
28215   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28216 $as_echo "$TCLSH" >&6; }
28217 else
28218   { $as_echo "$as_me:$LINENO: result: no" >&5
28219 $as_echo "no" >&6; }
28220 fi
28221
28222
28223   test -n "$TCLSH" && break
28224 done
28225
28226 if test x"$TCLSH" = x""; then
28227   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28228 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28229    { (exit 1); exit 1; }; }
28230 fi
28231
28232 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28233 $as_echo_n "checking for tclConfig.sh... " >&6; }
28234 # Let user override test
28235 if test -z "$TCL_CONFIG_SH"; then
28236     pgac_test_dirs="$with_tclconfig"
28237
28238     set X $pgac_test_dirs; shift
28239     if test $# -eq 0; then
28240         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28241 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28242    { (exit 1); exit 1; }; }
28243         set X `echo 'puts $auto_path' | $TCLSH`; shift
28244     fi
28245
28246     for pgac_dir do
28247         if test -r "$pgac_dir/tclConfig.sh"; then
28248             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28249             break
28250         fi
28251     done
28252 fi
28253
28254 if test -z "$TCL_CONFIG_SH"; then
28255     { $as_echo "$as_me:$LINENO: result: no" >&5
28256 $as_echo "no" >&6; }
28257     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28258 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28259    { (exit 1); exit 1; }; }
28260 else
28261     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28262 $as_echo "$TCL_CONFIG_SH" >&6; }
28263 fi
28264
28265
28266
28267     . "$TCL_CONFIG_SH"
28268 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28269 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28270 eval TCL_LIBS=\"$TCL_LIBS\"
28271 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28272 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28273
28274         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28275     ac_save_CPPFLAGS=$CPPFLAGS
28276     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28277     if test "${ac_cv_header_tcl_h+set}" = set; then
28278   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28279 $as_echo_n "checking for tcl.h... " >&6; }
28280 if test "${ac_cv_header_tcl_h+set}" = set; then
28281   $as_echo_n "(cached) " >&6
28282 fi
28283 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28284 $as_echo "$ac_cv_header_tcl_h" >&6; }
28285 else
28286   # Is the header compilable?
28287 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28288 $as_echo_n "checking tcl.h usability... " >&6; }
28289 cat >conftest.$ac_ext <<_ACEOF
28290 /* confdefs.h.  */
28291 _ACEOF
28292 cat confdefs.h >>conftest.$ac_ext
28293 cat >>conftest.$ac_ext <<_ACEOF
28294 /* end confdefs.h.  */
28295 $ac_includes_default
28296 #include <tcl.h>
28297 _ACEOF
28298 rm -f conftest.$ac_objext
28299 if { (ac_try="$ac_compile"
28300 case "(($ac_try" in
28301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302   *) ac_try_echo=$ac_try;;
28303 esac
28304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28305 $as_echo "$ac_try_echo") >&5
28306   (eval "$ac_compile") 2>conftest.er1
28307   ac_status=$?
28308   grep -v '^ *+' conftest.er1 >conftest.err
28309   rm -f conftest.er1
28310   cat conftest.err >&5
28311   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312   (exit $ac_status); } && {
28313          test -z "$ac_c_werror_flag" ||
28314          test ! -s conftest.err
28315        } && test -s conftest.$ac_objext; then
28316   ac_header_compiler=yes
28317 else
28318   $as_echo "$as_me: failed program was:" >&5
28319 sed 's/^/| /' conftest.$ac_ext >&5
28320
28321         ac_header_compiler=no
28322 fi
28323
28324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28326 $as_echo "$ac_header_compiler" >&6; }
28327
28328 # Is the header present?
28329 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28330 $as_echo_n "checking tcl.h presence... " >&6; }
28331 cat >conftest.$ac_ext <<_ACEOF
28332 /* confdefs.h.  */
28333 _ACEOF
28334 cat confdefs.h >>conftest.$ac_ext
28335 cat >>conftest.$ac_ext <<_ACEOF
28336 /* end confdefs.h.  */
28337 #include <tcl.h>
28338 _ACEOF
28339 if { (ac_try="$ac_cpp conftest.$ac_ext"
28340 case "(($ac_try" in
28341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28342   *) ac_try_echo=$ac_try;;
28343 esac
28344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28345 $as_echo "$ac_try_echo") >&5
28346   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28347   ac_status=$?
28348   grep -v '^ *+' conftest.er1 >conftest.err
28349   rm -f conftest.er1
28350   cat conftest.err >&5
28351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28352   (exit $ac_status); } >/dev/null && {
28353          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28354          test ! -s conftest.err
28355        }; then
28356   ac_header_preproc=yes
28357 else
28358   $as_echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.$ac_ext >&5
28360
28361   ac_header_preproc=no
28362 fi
28363
28364 rm -f conftest.err conftest.$ac_ext
28365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28366 $as_echo "$ac_header_preproc" >&6; }
28367
28368 # So?  What about this header?
28369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28370   yes:no: )
28371     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28372 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28373     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28374 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28375     ac_header_preproc=yes
28376     ;;
28377   no:yes:* )
28378     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28379 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28380     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
28381 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
28382     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28383 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28384     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
28385 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28386     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28387 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28388     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28389 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28390     ( cat <<\_ASBOX
28391 ## ---------------------------------------- ##
28392 ## Report this to pgsql-bugs@postgresql.org ##
28393 ## ---------------------------------------- ##
28394 _ASBOX
28395      ) | sed "s/^/$as_me: WARNING:     /" >&2
28396     ;;
28397 esac
28398 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28399 $as_echo_n "checking for tcl.h... " >&6; }
28400 if test "${ac_cv_header_tcl_h+set}" = set; then
28401   $as_echo_n "(cached) " >&6
28402 else
28403   ac_cv_header_tcl_h=$ac_header_preproc
28404 fi
28405 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28406 $as_echo "$ac_cv_header_tcl_h" >&6; }
28407
28408 fi
28409 if test "x$ac_cv_header_tcl_h" = x""yes; then
28410   :
28411 else
28412   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28413 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28414    { (exit 1); exit 1; }; }
28415 fi
28416
28417
28418     CPPFLAGS=$ac_save_CPPFLAGS
28419 fi
28420
28421 #
28422 # Check for DocBook and tools
28423 #
28424 for ac_prog in onsgmls nsgmls
28425 do
28426   # Extract the first word of "$ac_prog", so it can be a program name with args.
28427 set dummy $ac_prog; ac_word=$2
28428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28429 $as_echo_n "checking for $ac_word... " >&6; }
28430 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28431   $as_echo_n "(cached) " >&6
28432 else
28433   if test -n "$NSGMLS"; then
28434   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28435 else
28436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28437 for as_dir in $PATH
28438 do
28439   IFS=$as_save_IFS
28440   test -z "$as_dir" && as_dir=.
28441   for ac_exec_ext in '' $ac_executable_extensions; do
28442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28443     ac_cv_prog_NSGMLS="$ac_prog"
28444     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28445     break 2
28446   fi
28447 done
28448 done
28449 IFS=$as_save_IFS
28450
28451 fi
28452 fi
28453 NSGMLS=$ac_cv_prog_NSGMLS
28454 if test -n "$NSGMLS"; then
28455   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28456 $as_echo "$NSGMLS" >&6; }
28457 else
28458   { $as_echo "$as_me:$LINENO: result: no" >&5
28459 $as_echo "no" >&6; }
28460 fi
28461
28462
28463   test -n "$NSGMLS" && break
28464 done
28465
28466 for ac_prog in openjade jade
28467 do
28468   # Extract the first word of "$ac_prog", so it can be a program name with args.
28469 set dummy $ac_prog; ac_word=$2
28470 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28471 $as_echo_n "checking for $ac_word... " >&6; }
28472 if test "${ac_cv_prog_JADE+set}" = set; then
28473   $as_echo_n "(cached) " >&6
28474 else
28475   if test -n "$JADE"; then
28476   ac_cv_prog_JADE="$JADE" # Let the user override the test.
28477 else
28478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28479 for as_dir in $PATH
28480 do
28481   IFS=$as_save_IFS
28482   test -z "$as_dir" && as_dir=.
28483   for ac_exec_ext in '' $ac_executable_extensions; do
28484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28485     ac_cv_prog_JADE="$ac_prog"
28486     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28487     break 2
28488   fi
28489 done
28490 done
28491 IFS=$as_save_IFS
28492
28493 fi
28494 fi
28495 JADE=$ac_cv_prog_JADE
28496 if test -n "$JADE"; then
28497   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28498 $as_echo "$JADE" >&6; }
28499 else
28500   { $as_echo "$as_me:$LINENO: result: no" >&5
28501 $as_echo "no" >&6; }
28502 fi
28503
28504
28505   test -n "$JADE" && break
28506 done
28507
28508
28509 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28510 $as_echo_n "checking for DocBook V4.2... " >&6; }
28511 if test "${pgac_cv_check_docbook+set}" = set; then
28512   $as_echo_n "(cached) " >&6
28513 else
28514   cat >conftest.sgml <<EOF
28515 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28516 <book>
28517  <title>test</title>
28518  <chapter>
28519   <title>random</title>
28520    <sect1>
28521     <title>testsect</title>
28522     <para>text</para>
28523   </sect1>
28524  </chapter>
28525 </book>
28526 EOF
28527
28528 pgac_cv_check_docbook=no
28529
28530 if test -n "$NSGMLS"; then
28531   $NSGMLS -s conftest.sgml 1>&5 2>&1
28532   if test $? -eq 0; then
28533     pgac_cv_check_docbook=yes
28534   fi
28535 fi
28536 rm -f conftest.sgml
28537 fi
28538 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28539 $as_echo "$pgac_cv_check_docbook" >&6; }
28540
28541 have_docbook=$pgac_cv_check_docbook
28542
28543
28544 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28545 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28546 if test "${pgac_cv_path_stylesheets+set}" = set; then
28547   $as_echo_n "(cached) " >&6
28548 else
28549   if test -n "$DOCBOOKSTYLE"; then
28550   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28551 else
28552   for pgac_prefix in /usr /usr/local /opt /sw; do
28553     for pgac_infix in share lib; do
28554       for pgac_postfix in \
28555         sgml/stylesheets/nwalsh-modular \
28556         sgml/stylesheets/docbook \
28557         sgml/stylesheets/dsssl/docbook \
28558         sgml/docbook-dsssl \
28559         sgml/docbook/dsssl/modular \
28560         sgml/docbook/stylesheet/dsssl/modular \
28561         sgml/docbook/dsssl-stylesheets \
28562         sgml/dsssl/docbook-dsssl-nwalsh
28563       do
28564         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28565         if test -r "$pgac_candidate/html/docbook.dsl" \
28566            && test -r "$pgac_candidate/print/docbook.dsl"
28567         then
28568           pgac_cv_path_stylesheets=$pgac_candidate
28569           break 3
28570         fi
28571       done
28572     done
28573   done
28574 fi
28575 fi
28576
28577 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28578
28579 if test -n "$DOCBOOKSTYLE"; then
28580   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28581 $as_echo "$DOCBOOKSTYLE" >&6; }
28582 else
28583   { $as_echo "$as_me:$LINENO: result: no" >&5
28584 $as_echo "no" >&6; }
28585 fi
28586 if test -n "$DOCBOOKSTYLE"; then
28587   for ac_prog in collateindex.pl
28588 do
28589   # Extract the first word of "$ac_prog", so it can be a program name with args.
28590 set dummy $ac_prog; ac_word=$2
28591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28592 $as_echo_n "checking for $ac_word... " >&6; }
28593 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28594   $as_echo_n "(cached) " >&6
28595 else
28596   case $COLLATEINDEX in
28597   [\\/]* | ?:[\\/]*)
28598   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28599   ;;
28600   *)
28601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28602 for as_dir in $DOCBOOKSTYLE/bin $PATH
28603 do
28604   IFS=$as_save_IFS
28605   test -z "$as_dir" && as_dir=.
28606   for ac_exec_ext in '' $ac_executable_extensions; do
28607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28608     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28609     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28610     break 2
28611   fi
28612 done
28613 done
28614 IFS=$as_save_IFS
28615
28616   ;;
28617 esac
28618 fi
28619 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28620 if test -n "$COLLATEINDEX"; then
28621   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28622 $as_echo "$COLLATEINDEX" >&6; }
28623 else
28624   { $as_echo "$as_me:$LINENO: result: no" >&5
28625 $as_echo "no" >&6; }
28626 fi
28627
28628
28629   test -n "$COLLATEINDEX" && break
28630 done
28631
28632 else
28633   for ac_prog in collateindex.pl
28634 do
28635   # Extract the first word of "$ac_prog", so it can be a program name with args.
28636 set dummy $ac_prog; ac_word=$2
28637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28638 $as_echo_n "checking for $ac_word... " >&6; }
28639 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28640   $as_echo_n "(cached) " >&6
28641 else
28642   case $COLLATEINDEX in
28643   [\\/]* | ?:[\\/]*)
28644   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28645   ;;
28646   *)
28647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28648 for as_dir in $PATH
28649 do
28650   IFS=$as_save_IFS
28651   test -z "$as_dir" && as_dir=.
28652   for ac_exec_ext in '' $ac_executable_extensions; do
28653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28654     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28656     break 2
28657   fi
28658 done
28659 done
28660 IFS=$as_save_IFS
28661
28662   ;;
28663 esac
28664 fi
28665 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28666 if test -n "$COLLATEINDEX"; then
28667   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28668 $as_echo "$COLLATEINDEX" >&6; }
28669 else
28670   { $as_echo "$as_me:$LINENO: result: no" >&5
28671 $as_echo "no" >&6; }
28672 fi
28673
28674
28675   test -n "$COLLATEINDEX" && break
28676 done
28677
28678 fi
28679 for ac_prog in xsltproc
28680 do
28681   # Extract the first word of "$ac_prog", so it can be a program name with args.
28682 set dummy $ac_prog; ac_word=$2
28683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28684 $as_echo_n "checking for $ac_word... " >&6; }
28685 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28686   $as_echo_n "(cached) " >&6
28687 else
28688   if test -n "$XSLTPROC"; then
28689   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28690 else
28691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28692 for as_dir in $PATH
28693 do
28694   IFS=$as_save_IFS
28695   test -z "$as_dir" && as_dir=.
28696   for ac_exec_ext in '' $ac_executable_extensions; do
28697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28698     ac_cv_prog_XSLTPROC="$ac_prog"
28699     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28700     break 2
28701   fi
28702 done
28703 done
28704 IFS=$as_save_IFS
28705
28706 fi
28707 fi
28708 XSLTPROC=$ac_cv_prog_XSLTPROC
28709 if test -n "$XSLTPROC"; then
28710   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28711 $as_echo "$XSLTPROC" >&6; }
28712 else
28713   { $as_echo "$as_me:$LINENO: result: no" >&5
28714 $as_echo "no" >&6; }
28715 fi
28716
28717
28718   test -n "$XSLTPROC" && break
28719 done
28720
28721 for ac_prog in osx sgml2xml sx
28722 do
28723   # Extract the first word of "$ac_prog", so it can be a program name with args.
28724 set dummy $ac_prog; ac_word=$2
28725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28726 $as_echo_n "checking for $ac_word... " >&6; }
28727 if test "${ac_cv_prog_OSX+set}" = set; then
28728   $as_echo_n "(cached) " >&6
28729 else
28730   if test -n "$OSX"; then
28731   ac_cv_prog_OSX="$OSX" # Let the user override the test.
28732 else
28733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28734 for as_dir in $PATH
28735 do
28736   IFS=$as_save_IFS
28737   test -z "$as_dir" && as_dir=.
28738   for ac_exec_ext in '' $ac_executable_extensions; do
28739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28740     ac_cv_prog_OSX="$ac_prog"
28741     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28742     break 2
28743   fi
28744 done
28745 done
28746 IFS=$as_save_IFS
28747
28748 fi
28749 fi
28750 OSX=$ac_cv_prog_OSX
28751 if test -n "$OSX"; then
28752   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28753 $as_echo "$OSX" >&6; }
28754 else
28755   { $as_echo "$as_me:$LINENO: result: no" >&5
28756 $as_echo "no" >&6; }
28757 fi
28758
28759
28760   test -n "$OSX" && break
28761 done
28762
28763
28764 # Thread testing
28765
28766 # We have to run the thread test near the end so we have all our symbols
28767 # defined.  Cross compiling throws a warning.
28768 #
28769 if test "$enable_thread_safety" = yes; then
28770 if test "$PORTNAME" != "win32"
28771 then
28772 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28773 $as_echo_n "checking thread safety of required library functions... " >&6; }
28774
28775 _CFLAGS="$CFLAGS"
28776 _LIBS="$LIBS"
28777 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28778 LIBS="$LIBS $PTHREAD_LIBS"
28779 if test "$cross_compiling" = yes; then
28780   { $as_echo "$as_me:$LINENO: result: maybe" >&5
28781 $as_echo "maybe" >&6; }
28782   { $as_echo "$as_me:$LINENO: WARNING:
28783 *** Skipping thread test program because of cross-compile build.
28784 *** Run the program in src/test/thread on the target machine.
28785 " >&5
28786 $as_echo "$as_me: WARNING:
28787 *** Skipping thread test program because of cross-compile build.
28788 *** Run the program in src/test/thread on the target machine.
28789 " >&2;}
28790 else
28791   cat >conftest.$ac_ext <<_ACEOF
28792 /* confdefs.h.  */
28793 _ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h.  */
28797 #include "$srcdir/src/test/thread/thread_test.c"
28798 _ACEOF
28799 rm -f conftest$ac_exeext
28800 if { (ac_try="$ac_link"
28801 case "(($ac_try" in
28802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28803   *) ac_try_echo=$ac_try;;
28804 esac
28805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28806 $as_echo "$ac_try_echo") >&5
28807   (eval "$ac_link") 2>&5
28808   ac_status=$?
28809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28811   { (case "(($ac_try" in
28812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813   *) ac_try_echo=$ac_try;;
28814 esac
28815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28816 $as_echo "$ac_try_echo") >&5
28817   (eval "$ac_try") 2>&5
28818   ac_status=$?
28819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820   (exit $ac_status); }; }; then
28821   { $as_echo "$as_me:$LINENO: result: yes" >&5
28822 $as_echo "yes" >&6; }
28823 else
28824   $as_echo "$as_me: program exited with status $ac_status" >&5
28825 $as_echo "$as_me: failed program was:" >&5
28826 sed 's/^/| /' conftest.$ac_ext >&5
28827
28828 ( exit $ac_status )
28829 { $as_echo "$as_me:$LINENO: result: no" >&5
28830 $as_echo "no" >&6; }
28831   { { $as_echo "$as_me:$LINENO: error: thread test program failed
28832 This platform is not thread-safe.  Check the file 'config.log' or compile
28833 and run src/test/thread/thread_test for the exact reason.
28834 Use --disable-thread-safety to disable thread safety." >&5
28835 $as_echo "$as_me: error: thread test program failed
28836 This platform is not thread-safe.  Check the file 'config.log' or compile
28837 and run src/test/thread/thread_test for the exact reason.
28838 Use --disable-thread-safety to disable thread safety." >&2;}
28839    { (exit 1); exit 1; }; }
28840 fi
28841 rm -rf conftest.dSYM
28842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28843 fi
28844
28845
28846 CFLAGS="$_CFLAGS"
28847 LIBS="$_LIBS"
28848 else
28849 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28850 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28851 fi
28852 fi
28853
28854 # If compiler will take -Wl,--as-needed (or various platform-specific
28855 # spellings thereof) then add that to LDFLAGS.  This is much easier than
28856 # trying to filter LIBS to the minimum for each executable.
28857 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28858 # libreadline; therefore we postpone testing it until we know what library
28859 # dependencies readline has.  The test code will try to link with $LIBS.
28860 if test "$with_readline" = yes; then
28861   link_test_func=readline
28862 else
28863   link_test_func=exit
28864 fi
28865
28866 if test "$PORTNAME" = "darwin"; then
28867   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28868 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28869 pgac_save_LDFLAGS=$LDFLAGS
28870 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28871 if test "$cross_compiling" = yes; then
28872   LDFLAGS="$pgac_save_LDFLAGS"
28873                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28874 $as_echo "assuming no" >&6; }
28875 else
28876   cat >conftest.$ac_ext <<_ACEOF
28877 /* confdefs.h.  */
28878 _ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h.  */
28882 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28883 int
28884 main ()
28885 {
28886
28887   ;
28888   return 0;
28889 }
28890 _ACEOF
28891 rm -f conftest$ac_exeext
28892 if { (ac_try="$ac_link"
28893 case "(($ac_try" in
28894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895   *) ac_try_echo=$ac_try;;
28896 esac
28897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28898 $as_echo "$ac_try_echo") >&5
28899   (eval "$ac_link") 2>&5
28900   ac_status=$?
28901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28903   { (case "(($ac_try" in
28904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905   *) ac_try_echo=$ac_try;;
28906 esac
28907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28908 $as_echo "$ac_try_echo") >&5
28909   (eval "$ac_try") 2>&5
28910   ac_status=$?
28911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912   (exit $ac_status); }; }; then
28913   { $as_echo "$as_me:$LINENO: result: yes" >&5
28914 $as_echo "yes" >&6; }
28915 else
28916   $as_echo "$as_me: program exited with status $ac_status" >&5
28917 $as_echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28919
28920 ( exit $ac_status )
28921 LDFLAGS="$pgac_save_LDFLAGS"
28922                { $as_echo "$as_me:$LINENO: result: no" >&5
28923 $as_echo "no" >&6; }
28924 fi
28925 rm -rf conftest.dSYM
28926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28927 fi
28928
28929
28930
28931 elif test "$PORTNAME" = "openbsd"; then
28932   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28933 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28934 pgac_save_LDFLAGS=$LDFLAGS
28935 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28936 if test "$cross_compiling" = yes; then
28937   LDFLAGS="$pgac_save_LDFLAGS"
28938                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28939 $as_echo "assuming no" >&6; }
28940 else
28941   cat >conftest.$ac_ext <<_ACEOF
28942 /* confdefs.h.  */
28943 _ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h.  */
28947 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28948 int
28949 main ()
28950 {
28951
28952   ;
28953   return 0;
28954 }
28955 _ACEOF
28956 rm -f conftest$ac_exeext
28957 if { (ac_try="$ac_link"
28958 case "(($ac_try" in
28959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960   *) ac_try_echo=$ac_try;;
28961 esac
28962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28963 $as_echo "$ac_try_echo") >&5
28964   (eval "$ac_link") 2>&5
28965   ac_status=$?
28966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28968   { (case "(($ac_try" in
28969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970   *) ac_try_echo=$ac_try;;
28971 esac
28972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28973 $as_echo "$ac_try_echo") >&5
28974   (eval "$ac_try") 2>&5
28975   ac_status=$?
28976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); }; }; then
28978   { $as_echo "$as_me:$LINENO: result: yes" >&5
28979 $as_echo "yes" >&6; }
28980 else
28981   $as_echo "$as_me: program exited with status $ac_status" >&5
28982 $as_echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28984
28985 ( exit $ac_status )
28986 LDFLAGS="$pgac_save_LDFLAGS"
28987                { $as_echo "$as_me:$LINENO: result: no" >&5
28988 $as_echo "no" >&6; }
28989 fi
28990 rm -rf conftest.dSYM
28991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28992 fi
28993
28994
28995
28996 else
28997   { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28998 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28999 pgac_save_LDFLAGS=$LDFLAGS
29000 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29001 if test "$cross_compiling" = yes; then
29002   LDFLAGS="$pgac_save_LDFLAGS"
29003                { $as_echo "$as_me:$LINENO: result: assuming no" >&5
29004 $as_echo "assuming no" >&6; }
29005 else
29006   cat >conftest.$ac_ext <<_ACEOF
29007 /* confdefs.h.  */
29008 _ACEOF
29009 cat confdefs.h >>conftest.$ac_ext
29010 cat >>conftest.$ac_ext <<_ACEOF
29011 /* end confdefs.h.  */
29012 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29013 int
29014 main ()
29015 {
29016
29017   ;
29018   return 0;
29019 }
29020 _ACEOF
29021 rm -f conftest$ac_exeext
29022 if { (ac_try="$ac_link"
29023 case "(($ac_try" in
29024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29025   *) ac_try_echo=$ac_try;;
29026 esac
29027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29028 $as_echo "$ac_try_echo") >&5
29029   (eval "$ac_link") 2>&5
29030   ac_status=$?
29031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29033   { (case "(($ac_try" in
29034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035   *) ac_try_echo=$ac_try;;
29036 esac
29037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29038 $as_echo "$ac_try_echo") >&5
29039   (eval "$ac_try") 2>&5
29040   ac_status=$?
29041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042   (exit $ac_status); }; }; then
29043   { $as_echo "$as_me:$LINENO: result: yes" >&5
29044 $as_echo "yes" >&6; }
29045 else
29046   $as_echo "$as_me: program exited with status $ac_status" >&5
29047 $as_echo "$as_me: failed program was:" >&5
29048 sed 's/^/| /' conftest.$ac_ext >&5
29049
29050 ( exit $ac_status )
29051 LDFLAGS="$pgac_save_LDFLAGS"
29052                { $as_echo "$as_me:$LINENO: result: no" >&5
29053 $as_echo "no" >&6; }
29054 fi
29055 rm -rf conftest.dSYM
29056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29057 fi
29058
29059
29060
29061 fi
29062
29063
29064 # Begin output steps
29065
29066 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29067 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29068 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29069 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29070 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29071 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29072
29073 # Create compiler version string
29074 if test x"$GCC" = x"yes" ; then
29075   cc_string="GCC `${CC} --version | sed q`"
29076 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29077   cc_string=`${CC} -V 2>&1 | sed q`
29078 else
29079   cc_string=$CC
29080 fi
29081
29082
29083 cat >>confdefs.h <<_ACEOF
29084 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29085 _ACEOF
29086
29087
29088 # Supply a numeric version string for use by 3rd party add-ons
29089 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29090 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29091 tr '.' '        ' |
29092 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29093
29094 cat >>confdefs.h <<_ACEOF
29095 #define PG_VERSION_NUM $PG_VERSION_NUM
29096 _ACEOF
29097
29098
29099
29100 # prepare build tree if outside source tree
29101 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29102 # Note 2: /bin/pwd might be better than shell's built-in at getting
29103 #         a symlink-free name.
29104 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29105   vpath_build=no
29106 else
29107   vpath_build=yes
29108   if test "$no_create" != yes; then
29109     $as_echo_n "preparing build tree... " >&6
29110     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29111     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29112       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29113 $as_echo "$as_me: error: failed" >&2;}
29114    { (exit 1); exit 1; }; }
29115     { $as_echo "$as_me:$LINENO: result: done" >&5
29116 $as_echo "done" >&6; }
29117   fi
29118 fi
29119
29120
29121
29122 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29123
29124
29125 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
29126
29127
29128 if test "$PORTNAME" = "win32"; then
29129 ac_config_commands="$ac_config_commands check_win32_symlinks"
29130
29131 fi
29132
29133 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29134
29135
29136 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29137
29138
29139 cat >confcache <<\_ACEOF
29140 # This file is a shell script that caches the results of configure
29141 # tests run on this system so they can be shared between configure
29142 # scripts and configure runs, see configure's option --config-cache.
29143 # It is not useful on other systems.  If it contains results you don't
29144 # want to keep, you may remove or edit it.
29145 #
29146 # config.status only pays attention to the cache file if you give it
29147 # the --recheck option to rerun configure.
29148 #
29149 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29150 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29151 # following values.
29152
29153 _ACEOF
29154
29155 # The following way of writing the cache mishandles newlines in values,
29156 # but we know of no workaround that is simple, portable, and efficient.
29157 # So, we kill variables containing newlines.
29158 # Ultrix sh set writes to stderr and can't be redirected directly,
29159 # and sets the high bit in the cache file unless we assign to the vars.
29160 (
29161   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29162     eval ac_val=\$$ac_var
29163     case $ac_val in #(
29164     *${as_nl}*)
29165       case $ac_var in #(
29166       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29167 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29168       esac
29169       case $ac_var in #(
29170       _ | IFS | as_nl) ;; #(
29171       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29172       *) $as_unset $ac_var ;;
29173       esac ;;
29174     esac
29175   done
29176
29177   (set) 2>&1 |
29178     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29179     *${as_nl}ac_space=\ *)
29180       # `set' does not quote correctly, so add quotes (double-quote
29181       # substitution turns \\\\ into \\, and sed turns \\ into \).
29182       sed -n \
29183         "s/'/'\\\\''/g;
29184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29185       ;; #(
29186     *)
29187       # `set' quotes correctly as required by POSIX, so do not add quotes.
29188       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29189       ;;
29190     esac |
29191     sort
29192 ) |
29193   sed '
29194      /^ac_cv_env_/b end
29195      t clear
29196      :clear
29197      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29198      t end
29199      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29200      :end' >>confcache
29201 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29202   if test -w "$cache_file"; then
29203     test "x$cache_file" != "x/dev/null" &&
29204       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29205 $as_echo "$as_me: updating cache $cache_file" >&6;}
29206     cat confcache >$cache_file
29207   else
29208     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29209 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29210   fi
29211 fi
29212 rm -f confcache
29213
29214 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29215 # Let make expand exec_prefix.
29216 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29217
29218 DEFS=-DHAVE_CONFIG_H
29219
29220 ac_libobjs=
29221 ac_ltlibobjs=
29222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29223   # 1. Remove the extension, and $U if already installed.
29224   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29225   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29226   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29227   #    will be set to the directory where LIBOBJS objects are built.
29228   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29229   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29230 done
29231 LIBOBJS=$ac_libobjs
29232
29233 LTLIBOBJS=$ac_ltlibobjs
29234
29235
29236
29237
29238 : ${CONFIG_STATUS=./config.status}
29239 ac_write_fail=0
29240 ac_clean_files_save=$ac_clean_files
29241 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29242 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29243 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29244 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29245 #! $SHELL
29246 # Generated by $as_me.
29247 # Run this file to recreate the current configuration.
29248 # Compiler output produced by configure, useful for debugging
29249 # configure, is in config.log if it exists.
29250
29251 debug=false
29252 ac_cs_recheck=false
29253 ac_cs_silent=false
29254 SHELL=\${CONFIG_SHELL-$SHELL}
29255 _ACEOF
29256
29257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29258 ## --------------------- ##
29259 ## M4sh Initialization.  ##
29260 ## --------------------- ##
29261
29262 # Be more Bourne compatible
29263 DUALCASE=1; export DUALCASE # for MKS sh
29264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29265   emulate sh
29266   NULLCMD=:
29267   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29268   # is contrary to our usage.  Disable this feature.
29269   alias -g '${1+"$@"}'='"$@"'
29270   setopt NO_GLOB_SUBST
29271 else
29272   case `(set -o) 2>/dev/null` in
29273   *posix*) set -o posix ;;
29274 esac
29275
29276 fi
29277
29278
29279
29280
29281 # PATH needs CR
29282 # Avoid depending upon Character Ranges.
29283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29286 as_cr_digits='0123456789'
29287 as_cr_alnum=$as_cr_Letters$as_cr_digits
29288
29289 as_nl='
29290 '
29291 export as_nl
29292 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29293 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29296 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29297   as_echo='printf %s\n'
29298   as_echo_n='printf %s'
29299 else
29300   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29301     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29302     as_echo_n='/usr/ucb/echo -n'
29303   else
29304     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29305     as_echo_n_body='eval
29306       arg=$1;
29307       case $arg in
29308       *"$as_nl"*)
29309         expr "X$arg" : "X\\(.*\\)$as_nl";
29310         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29311       esac;
29312       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29313     '
29314     export as_echo_n_body
29315     as_echo_n='sh -c $as_echo_n_body as_echo'
29316   fi
29317   export as_echo_body
29318   as_echo='sh -c $as_echo_body as_echo'
29319 fi
29320
29321 # The user is always right.
29322 if test "${PATH_SEPARATOR+set}" != set; then
29323   PATH_SEPARATOR=:
29324   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29325     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29326       PATH_SEPARATOR=';'
29327   }
29328 fi
29329
29330 # Support unset when possible.
29331 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29332   as_unset=unset
29333 else
29334   as_unset=false
29335 fi
29336
29337
29338 # IFS
29339 # We need space, tab and new line, in precisely that order.  Quoting is
29340 # there to prevent editors from complaining about space-tab.
29341 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29342 # splitting by setting IFS to empty value.)
29343 IFS=" ""        $as_nl"
29344
29345 # Find who we are.  Look in the path if we contain no directory separator.
29346 case $0 in
29347   *[\\/]* ) as_myself=$0 ;;
29348   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29349 for as_dir in $PATH
29350 do
29351   IFS=$as_save_IFS
29352   test -z "$as_dir" && as_dir=.
29353   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29354 done
29355 IFS=$as_save_IFS
29356
29357      ;;
29358 esac
29359 # We did not find ourselves, most probably we were run as `sh COMMAND'
29360 # in which case we are not to be found in the path.
29361 if test "x$as_myself" = x; then
29362   as_myself=$0
29363 fi
29364 if test ! -f "$as_myself"; then
29365   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29366   { (exit 1); exit 1; }
29367 fi
29368
29369 # Work around bugs in pre-3.0 UWIN ksh.
29370 for as_var in ENV MAIL MAILPATH
29371 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29372 done
29373 PS1='$ '
29374 PS2='> '
29375 PS4='+ '
29376
29377 # NLS nuisances.
29378 LC_ALL=C
29379 export LC_ALL
29380 LANGUAGE=C
29381 export LANGUAGE
29382
29383 # Required to use basename.
29384 if expr a : '\(a\)' >/dev/null 2>&1 &&
29385    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29386   as_expr=expr
29387 else
29388   as_expr=false
29389 fi
29390
29391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29392   as_basename=basename
29393 else
29394   as_basename=false
29395 fi
29396
29397
29398 # Name of the executable.
29399 as_me=`$as_basename -- "$0" ||
29400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29401          X"$0" : 'X\(//\)$' \| \
29402          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29403 $as_echo X/"$0" |
29404     sed '/^.*\/\([^/][^/]*\)\/*$/{
29405             s//\1/
29406             q
29407           }
29408           /^X\/\(\/\/\)$/{
29409             s//\1/
29410             q
29411           }
29412           /^X\/\(\/\).*/{
29413             s//\1/
29414             q
29415           }
29416           s/.*/./; q'`
29417
29418 # CDPATH.
29419 $as_unset CDPATH
29420
29421
29422
29423   as_lineno_1=$LINENO
29424   as_lineno_2=$LINENO
29425   test "x$as_lineno_1" != "x$as_lineno_2" &&
29426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29427
29428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29429   # uniformly replaced by the line number.  The first 'sed' inserts a
29430   # line-number line after each line using $LINENO; the second 'sed'
29431   # does the real work.  The second script uses 'N' to pair each
29432   # line-number line with the line containing $LINENO, and appends
29433   # trailing '-' during substitution so that $LINENO is not a special
29434   # case at line end.
29435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29437   # E. McMahon (1931-1989) for sed's syntax.  :-)
29438   sed -n '
29439     p
29440     /[$]LINENO/=
29441   ' <$as_myself |
29442     sed '
29443       s/[$]LINENO.*/&-/
29444       t lineno
29445       b
29446       :lineno
29447       N
29448       :loop
29449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29450       t loop
29451       s/-\n.*//
29452     ' >$as_me.lineno &&
29453   chmod +x "$as_me.lineno" ||
29454     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29455    { (exit 1); exit 1; }; }
29456
29457   # Don't try to exec as it changes $[0], causing all sort of problems
29458   # (the dirname of $[0] is not the place where we might find the
29459   # original and so on.  Autoconf is especially sensitive to this).
29460   . "./$as_me.lineno"
29461   # Exit status is that of the last command.
29462   exit
29463 }
29464
29465
29466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29467   as_dirname=dirname
29468 else
29469   as_dirname=false
29470 fi
29471
29472 ECHO_C= ECHO_N= ECHO_T=
29473 case `echo -n x` in
29474 -n*)
29475   case `echo 'x\c'` in
29476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29477   *)   ECHO_C='\c';;
29478   esac;;
29479 *)
29480   ECHO_N='-n';;
29481 esac
29482 if expr a : '\(a\)' >/dev/null 2>&1 &&
29483    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29484   as_expr=expr
29485 else
29486   as_expr=false
29487 fi
29488
29489 rm -f conf$$ conf$$.exe conf$$.file
29490 if test -d conf$$.dir; then
29491   rm -f conf$$.dir/conf$$.file
29492 else
29493   rm -f conf$$.dir
29494   mkdir conf$$.dir 2>/dev/null
29495 fi
29496 if (echo >conf$$.file) 2>/dev/null; then
29497   if ln -s conf$$.file conf$$ 2>/dev/null; then
29498     as_ln_s='ln -s'
29499     # ... but there are two gotchas:
29500     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29501     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29502     # In both cases, we have to default to `cp -p'.
29503     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29504       as_ln_s='cp -p'
29505   elif ln conf$$.file conf$$ 2>/dev/null; then
29506     as_ln_s=ln
29507   else
29508     as_ln_s='cp -p'
29509   fi
29510 else
29511   as_ln_s='cp -p'
29512 fi
29513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29514 rmdir conf$$.dir 2>/dev/null
29515
29516 if mkdir -p . 2>/dev/null; then
29517   as_mkdir_p=:
29518 else
29519   test -d ./-p && rmdir ./-p
29520   as_mkdir_p=false
29521 fi
29522
29523 if test -x / >/dev/null 2>&1; then
29524   as_test_x='test -x'
29525 else
29526   if ls -dL / >/dev/null 2>&1; then
29527     as_ls_L_option=L
29528   else
29529     as_ls_L_option=
29530   fi
29531   as_test_x='
29532     eval sh -c '\''
29533       if test -d "$1"; then
29534         test -d "$1/.";
29535       else
29536         case $1 in
29537         -*)set "./$1";;
29538         esac;
29539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29540         ???[sx]*):;;*)false;;esac;fi
29541     '\'' sh
29542   '
29543 fi
29544 as_executable_p=$as_test_x
29545
29546 # Sed expression to map a string onto a valid CPP name.
29547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29548
29549 # Sed expression to map a string onto a valid variable name.
29550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29551
29552
29553 exec 6>&1
29554
29555 # Save the log message, to keep $[0] and so on meaningful, and to
29556 # report actual input values of CONFIG_FILES etc. instead of their
29557 # values after options handling.
29558 ac_log="
29559 This file was extended by PostgreSQL $as_me 9.0.4, which was
29560 generated by GNU Autoconf 2.63.  Invocation command line was
29561
29562   CONFIG_FILES    = $CONFIG_FILES
29563   CONFIG_HEADERS  = $CONFIG_HEADERS
29564   CONFIG_LINKS    = $CONFIG_LINKS
29565   CONFIG_COMMANDS = $CONFIG_COMMANDS
29566   $ $0 $@
29567
29568 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29569 "
29570
29571 _ACEOF
29572
29573 case $ac_config_files in *"
29574 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29575 esac
29576
29577 case $ac_config_headers in *"
29578 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29579 esac
29580
29581
29582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29583 # Files that config.status was made for.
29584 config_files="$ac_config_files"
29585 config_headers="$ac_config_headers"
29586 config_links="$ac_config_links"
29587 config_commands="$ac_config_commands"
29588
29589 _ACEOF
29590
29591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29592 ac_cs_usage="\
29593 \`$as_me' instantiates files from templates according to the
29594 current configuration.
29595
29596 Usage: $0 [OPTION]... [FILE]...
29597
29598   -h, --help       print this help, then exit
29599   -V, --version    print version number and configuration settings, then exit
29600   -q, --quiet, --silent
29601                    do not print progress messages
29602   -d, --debug      don't remove temporary files
29603       --recheck    update $as_me by reconfiguring in the same conditions
29604       --file=FILE[:TEMPLATE]
29605                    instantiate the configuration file FILE
29606       --header=FILE[:TEMPLATE]
29607                    instantiate the configuration header FILE
29608
29609 Configuration files:
29610 $config_files
29611
29612 Configuration headers:
29613 $config_headers
29614
29615 Configuration links:
29616 $config_links
29617
29618 Configuration commands:
29619 $config_commands
29620
29621 Report bugs to <bug-autoconf@gnu.org>."
29622
29623 _ACEOF
29624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29625 ac_cs_version="\\
29626 PostgreSQL config.status 9.0.4
29627 configured by $0, generated by GNU Autoconf 2.63,
29628   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29629
29630 Copyright (C) 2008 Free Software Foundation, Inc.
29631 This config.status script is free software; the Free Software Foundation
29632 gives unlimited permission to copy, distribute and modify it."
29633
29634 ac_pwd='$ac_pwd'
29635 srcdir='$srcdir'
29636 MKDIR_P='$MKDIR_P'
29637 AWK='$AWK'
29638 test -n "\$AWK" || AWK=awk
29639 _ACEOF
29640
29641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29642 # The default lists apply if the user does not specify any file.
29643 ac_need_defaults=:
29644 while test $# != 0
29645 do
29646   case $1 in
29647   --*=*)
29648     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29649     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29650     ac_shift=:
29651     ;;
29652   *)
29653     ac_option=$1
29654     ac_optarg=$2
29655     ac_shift=shift
29656     ;;
29657   esac
29658
29659   case $ac_option in
29660   # Handling of the options.
29661   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29662     ac_cs_recheck=: ;;
29663   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29664     $as_echo "$ac_cs_version"; exit ;;
29665   --debug | --debu | --deb | --de | --d | -d )
29666     debug=: ;;
29667   --file | --fil | --fi | --f )
29668     $ac_shift
29669     case $ac_optarg in
29670     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29671     esac
29672     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29673     ac_need_defaults=false;;
29674   --header | --heade | --head | --hea )
29675     $ac_shift
29676     case $ac_optarg in
29677     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29678     esac
29679     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29680     ac_need_defaults=false;;
29681   --he | --h)
29682     # Conflict between --help and --header
29683     { $as_echo "$as_me: error: ambiguous option: $1
29684 Try \`$0 --help' for more information." >&2
29685    { (exit 1); exit 1; }; };;
29686   --help | --hel | -h )
29687     $as_echo "$ac_cs_usage"; exit ;;
29688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29689   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29690     ac_cs_silent=: ;;
29691
29692   # This is an error.
29693   -*) { $as_echo "$as_me: error: unrecognized option: $1
29694 Try \`$0 --help' for more information." >&2
29695    { (exit 1); exit 1; }; } ;;
29696
29697   *) ac_config_targets="$ac_config_targets $1"
29698      ac_need_defaults=false ;;
29699
29700   esac
29701   shift
29702 done
29703
29704 ac_configure_extra_args=
29705
29706 if $ac_cs_silent; then
29707   exec 6>/dev/null
29708   ac_configure_extra_args="$ac_configure_extra_args --silent"
29709 fi
29710
29711 _ACEOF
29712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29713 if \$ac_cs_recheck; then
29714   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29715   shift
29716   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29717   CONFIG_SHELL='$SHELL'
29718   export CONFIG_SHELL
29719   exec "\$@"
29720 fi
29721
29722 _ACEOF
29723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29724 exec 5>>config.log
29725 {
29726   echo
29727   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29728 ## Running $as_me. ##
29729 _ASBOX
29730   $as_echo "$ac_log"
29731 } >&5
29732
29733 _ACEOF
29734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29735 _ACEOF
29736
29737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29738
29739 # Handling of arguments.
29740 for ac_config_target in $ac_config_targets
29741 do
29742   case $ac_config_target in
29743     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29744     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29745     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29746     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29747     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29748     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29749     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
29750     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29751     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29752     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29753     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29754     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29755     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29756
29757   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29758 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29759    { (exit 1); exit 1; }; };;
29760   esac
29761 done
29762
29763
29764 # If the user did not use the arguments to specify the items to instantiate,
29765 # then the envvar interface is used.  Set only those that are not.
29766 # We use the long form for the default assignment because of an extremely
29767 # bizarre bug on SunOS 4.1.3.
29768 if $ac_need_defaults; then
29769   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29770   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29771   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29772   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29773 fi
29774
29775 # Have a temporary directory for convenience.  Make it in the build tree
29776 # simply because there is no reason against having it here, and in addition,
29777 # creating and moving files from /tmp can sometimes cause problems.
29778 # Hook for its removal unless debugging.
29779 # Note that there is a small window in which the directory will not be cleaned:
29780 # after its creation but before its name has been assigned to `$tmp'.
29781 $debug ||
29782 {
29783   tmp=
29784   trap 'exit_status=$?
29785   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29786 ' 0
29787   trap '{ (exit 1); exit 1; }' 1 2 13 15
29788 }
29789 # Create a (secure) tmp directory for tmp files.
29790
29791 {
29792   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29793   test -n "$tmp" && test -d "$tmp"
29794 }  ||
29795 {
29796   tmp=./conf$$-$RANDOM
29797   (umask 077 && mkdir "$tmp")
29798 } ||
29799 {
29800    $as_echo "$as_me: cannot create a temporary directory in ." >&2
29801    { (exit 1); exit 1; }
29802 }
29803
29804 # Set up the scripts for CONFIG_FILES section.
29805 # No need to generate them if there are no CONFIG_FILES.
29806 # This happens for instance with `./config.status config.h'.
29807 if test -n "$CONFIG_FILES"; then
29808
29809
29810 ac_cr='\r'
29811 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29812 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29813   ac_cs_awk_cr='\\r'
29814 else
29815   ac_cs_awk_cr=$ac_cr
29816 fi
29817
29818 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29819 _ACEOF
29820
29821
29822 {
29823   echo "cat >conf$$subs.awk <<_ACEOF" &&
29824   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29825   echo "_ACEOF"
29826 } >conf$$subs.sh ||
29827   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29828 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29829    { (exit 1); exit 1; }; }
29830 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29831 ac_delim='%!_!# '
29832 for ac_last_try in false false false false false :; do
29833   . ./conf$$subs.sh ||
29834     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29835 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29836    { (exit 1); exit 1; }; }
29837
29838   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29839   if test $ac_delim_n = $ac_delim_num; then
29840     break
29841   elif $ac_last_try; then
29842     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29843 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29844    { (exit 1); exit 1; }; }
29845   else
29846     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29847   fi
29848 done
29849 rm -f conf$$subs.sh
29850
29851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29852 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29853 _ACEOF
29854 sed -n '
29855 h
29856 s/^/S["/; s/!.*/"]=/
29857 p
29858 g
29859 s/^[^!]*!//
29860 :repl
29861 t repl
29862 s/'"$ac_delim"'$//
29863 t delim
29864 :nl
29865 h
29866 s/\(.\{148\}\).*/\1/
29867 t more1
29868 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29869 p
29870 n
29871 b repl
29872 :more1
29873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29874 p
29875 g
29876 s/.\{148\}//
29877 t nl
29878 :delim
29879 h
29880 s/\(.\{148\}\).*/\1/
29881 t more2
29882 s/["\\]/\\&/g; s/^/"/; s/$/"/
29883 p
29884 b
29885 :more2
29886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29887 p
29888 g
29889 s/.\{148\}//
29890 t delim
29891 ' <conf$$subs.awk | sed '
29892 /^[^""]/{
29893   N
29894   s/\n//
29895 }
29896 ' >>$CONFIG_STATUS || ac_write_fail=1
29897 rm -f conf$$subs.awk
29898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29899 _ACAWK
29900 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29901   for (key in S) S_is_set[key] = 1
29902   FS = "\a"
29903
29904 }
29905 {
29906   line = $ 0
29907   nfields = split(line, field, "@")
29908   substed = 0
29909   len = length(field[1])
29910   for (i = 2; i < nfields; i++) {
29911     key = field[i]
29912     keylen = length(key)
29913     if (S_is_set[key]) {
29914       value = S[key]
29915       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29916       len += length(value) + length(field[++i])
29917       substed = 1
29918     } else
29919       len += 1 + keylen
29920   }
29921
29922   print line
29923 }
29924
29925 _ACAWK
29926 _ACEOF
29927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29928 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29929   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29930 else
29931   cat
29932 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29933   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29934 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29935    { (exit 1); exit 1; }; }
29936 _ACEOF
29937
29938 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29939 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29940 # trailing colons and then remove the whole line if VPATH becomes empty
29941 # (actually we leave an empty line to preserve line numbers).
29942 if test "x$srcdir" = x.; then
29943   ac_vpsub='/^[  ]*VPATH[        ]*=/{
29944 s/:*\$(srcdir):*/:/
29945 s/:*\${srcdir}:*/:/
29946 s/:*@srcdir@:*/:/
29947 s/^\([^=]*=[     ]*\):*/\1/
29948 s/:*$//
29949 s/^[^=]*=[       ]*$//
29950 }'
29951 fi
29952
29953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29954 fi # test -n "$CONFIG_FILES"
29955
29956 # Set up the scripts for CONFIG_HEADERS section.
29957 # No need to generate them if there are no CONFIG_HEADERS.
29958 # This happens for instance with `./config.status Makefile'.
29959 if test -n "$CONFIG_HEADERS"; then
29960 cat >"$tmp/defines.awk" <<\_ACAWK ||
29961 BEGIN {
29962 _ACEOF
29963
29964 # Transform confdefs.h into an awk script `defines.awk', embedded as
29965 # here-document in config.status, that substitutes the proper values into
29966 # config.h.in to produce config.h.
29967
29968 # Create a delimiter string that does not exist in confdefs.h, to ease
29969 # handling of long lines.
29970 ac_delim='%!_!# '
29971 for ac_last_try in false false :; do
29972   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29973   if test -z "$ac_t"; then
29974     break
29975   elif $ac_last_try; then
29976     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29977 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29978    { (exit 1); exit 1; }; }
29979   else
29980     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29981   fi
29982 done
29983
29984 # For the awk script, D is an array of macro values keyed by name,
29985 # likewise P contains macro parameters if any.  Preserve backslash
29986 # newline sequences.
29987
29988 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29989 sed -n '
29990 s/.\{148\}/&'"$ac_delim"'/g
29991 t rset
29992 :rset
29993 s/^[     ]*#[    ]*define[       ][      ]*/ /
29994 t def
29995 d
29996 :def
29997 s/\\$//
29998 t bsnl
29999 s/["\\]/\\&/g
30000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30001 D["\1"]=" \3"/p
30002 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30003 d
30004 :bsnl
30005 s/["\\]/\\&/g
30006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30007 D["\1"]=" \3\\\\\\n"\\/p
30008 t cont
30009 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30010 t cont
30011 d
30012 :cont
30013 n
30014 s/.\{148\}/&'"$ac_delim"'/g
30015 t clear
30016 :clear
30017 s/\\$//
30018 t bsnlc
30019 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30020 d
30021 :bsnlc
30022 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30023 b cont
30024 ' <confdefs.h | sed '
30025 s/'"$ac_delim"'/"\\\
30026 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30027
30028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30029   for (key in D) D_is_set[key] = 1
30030   FS = "\a"
30031 }
30032 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30033   line = \$ 0
30034   split(line, arg, " ")
30035   if (arg[1] == "#") {
30036     defundef = arg[2]
30037     mac1 = arg[3]
30038   } else {
30039     defundef = substr(arg[1], 2)
30040     mac1 = arg[2]
30041   }
30042   split(mac1, mac2, "(") #)
30043   macro = mac2[1]
30044   prefix = substr(line, 1, index(line, defundef) - 1)
30045   if (D_is_set[macro]) {
30046     # Preserve the white space surrounding the "#".
30047     print prefix "define", macro P[macro] D[macro]
30048     next
30049   } else {
30050     # Replace #undef with comments.  This is necessary, for example,
30051     # in the case of _POSIX_SOURCE, which is predefined and required
30052     # on some systems where configure will not decide to define it.
30053     if (defundef == "undef") {
30054       print "/*", prefix defundef, macro, "*/"
30055       next
30056     }
30057   }
30058 }
30059 { print }
30060 _ACAWK
30061 _ACEOF
30062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30063   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30064 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30065    { (exit 1); exit 1; }; }
30066 fi # test -n "$CONFIG_HEADERS"
30067
30068
30069 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
30070 shift
30071 for ac_tag
30072 do
30073   case $ac_tag in
30074   :[FHLC]) ac_mode=$ac_tag; continue;;
30075   esac
30076   case $ac_mode$ac_tag in
30077   :[FHL]*:*);;
30078   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30079 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30080    { (exit 1); exit 1; }; };;
30081   :[FH]-) ac_tag=-:-;;
30082   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30083   esac
30084   ac_save_IFS=$IFS
30085   IFS=:
30086   set x $ac_tag
30087   IFS=$ac_save_IFS
30088   shift
30089   ac_file=$1
30090   shift
30091
30092   case $ac_mode in
30093   :L) ac_source=$1;;
30094   :[FH])
30095     ac_file_inputs=
30096     for ac_f
30097     do
30098       case $ac_f in
30099       -) ac_f="$tmp/stdin";;
30100       *) # Look for the file first in the build tree, then in the source tree
30101          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30102          # because $ac_f cannot contain `:'.
30103          test -f "$ac_f" ||
30104            case $ac_f in
30105            [\\/$]*) false;;
30106            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30107            esac ||
30108            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30109 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30110    { (exit 1); exit 1; }; };;
30111       esac
30112       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30113       ac_file_inputs="$ac_file_inputs '$ac_f'"
30114     done
30115
30116     # Let's still pretend it is `configure' which instantiates (i.e., don't
30117     # use $as_me), people would be surprised to read:
30118     #    /* config.h.  Generated by config.status.  */
30119     configure_input='Generated from '`
30120           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30121         `' by configure.'
30122     if test x"$ac_file" != x-; then
30123       configure_input="$ac_file.  $configure_input"
30124       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30125 $as_echo "$as_me: creating $ac_file" >&6;}
30126     fi
30127     # Neutralize special characters interpreted by sed in replacement strings.
30128     case $configure_input in #(
30129     *\&* | *\|* | *\\* )
30130        ac_sed_conf_input=`$as_echo "$configure_input" |
30131        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30132     *) ac_sed_conf_input=$configure_input;;
30133     esac
30134
30135     case $ac_tag in
30136     *:-:* | *:-) cat >"$tmp/stdin" \
30137       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30138 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30139    { (exit 1); exit 1; }; } ;;
30140     esac
30141     ;;
30142   esac
30143
30144   ac_dir=`$as_dirname -- "$ac_file" ||
30145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30146          X"$ac_file" : 'X\(//\)[^/]' \| \
30147          X"$ac_file" : 'X\(//\)$' \| \
30148          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30149 $as_echo X"$ac_file" |
30150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30151             s//\1/
30152             q
30153           }
30154           /^X\(\/\/\)[^/].*/{
30155             s//\1/
30156             q
30157           }
30158           /^X\(\/\/\)$/{
30159             s//\1/
30160             q
30161           }
30162           /^X\(\/\).*/{
30163             s//\1/
30164             q
30165           }
30166           s/.*/./; q'`
30167   { as_dir="$ac_dir"
30168   case $as_dir in #(
30169   -*) as_dir=./$as_dir;;
30170   esac
30171   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30172     as_dirs=
30173     while :; do
30174       case $as_dir in #(
30175       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30176       *) as_qdir=$as_dir;;
30177       esac
30178       as_dirs="'$as_qdir' $as_dirs"
30179       as_dir=`$as_dirname -- "$as_dir" ||
30180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30181          X"$as_dir" : 'X\(//\)[^/]' \| \
30182          X"$as_dir" : 'X\(//\)$' \| \
30183          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30184 $as_echo X"$as_dir" |
30185     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30186             s//\1/
30187             q
30188           }
30189           /^X\(\/\/\)[^/].*/{
30190             s//\1/
30191             q
30192           }
30193           /^X\(\/\/\)$/{
30194             s//\1/
30195             q
30196           }
30197           /^X\(\/\).*/{
30198             s//\1/
30199             q
30200           }
30201           s/.*/./; q'`
30202       test -d "$as_dir" && break
30203     done
30204     test -z "$as_dirs" || eval "mkdir $as_dirs"
30205   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30206 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30207    { (exit 1); exit 1; }; }; }
30208   ac_builddir=.
30209
30210 case "$ac_dir" in
30211 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30212 *)
30213   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30214   # A ".." for each directory in $ac_dir_suffix.
30215   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30216   case $ac_top_builddir_sub in
30217   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30218   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30219   esac ;;
30220 esac
30221 ac_abs_top_builddir=$ac_pwd
30222 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30223 # for backward compatibility:
30224 ac_top_builddir=$ac_top_build_prefix
30225
30226 case $srcdir in
30227   .)  # We are building in place.
30228     ac_srcdir=.
30229     ac_top_srcdir=$ac_top_builddir_sub
30230     ac_abs_top_srcdir=$ac_pwd ;;
30231   [\\/]* | ?:[\\/]* )  # Absolute name.
30232     ac_srcdir=$srcdir$ac_dir_suffix;
30233     ac_top_srcdir=$srcdir
30234     ac_abs_top_srcdir=$srcdir ;;
30235   *) # Relative name.
30236     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30237     ac_top_srcdir=$ac_top_build_prefix$srcdir
30238     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30239 esac
30240 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30241
30242
30243   case $ac_mode in
30244   :F)
30245   #
30246   # CONFIG_FILE
30247   #
30248
30249   ac_MKDIR_P=$MKDIR_P
30250   case $MKDIR_P in
30251   [\\/$]* | ?:[\\/]* ) ;;
30252   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30253   esac
30254 _ACEOF
30255
30256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30257 # If the template does not know about datarootdir, expand it.
30258 # FIXME: This hack should be removed a few years after 2.60.
30259 ac_datarootdir_hack=; ac_datarootdir_seen=
30260
30261 ac_sed_dataroot='
30262 /datarootdir/ {
30263   p
30264   q
30265 }
30266 /@datadir@/p
30267 /@docdir@/p
30268 /@infodir@/p
30269 /@localedir@/p
30270 /@mandir@/p
30271 '
30272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30273 *datarootdir*) ac_datarootdir_seen=yes;;
30274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30275   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30276 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30277 _ACEOF
30278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30279   ac_datarootdir_hack='
30280   s&@datadir@&$datadir&g
30281   s&@docdir@&$docdir&g
30282   s&@infodir@&$infodir&g
30283   s&@localedir@&$localedir&g
30284   s&@mandir@&$mandir&g
30285     s&\\\${datarootdir}&$datarootdir&g' ;;
30286 esac
30287 _ACEOF
30288
30289 # Neutralize VPATH when `$srcdir' = `.'.
30290 # Shell code in configure.ac might set extrasub.
30291 # FIXME: do we really want to maintain this feature?
30292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30293 ac_sed_extra="$ac_vpsub
30294 $extrasub
30295 _ACEOF
30296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30297 :t
30298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30299 s|@configure_input@|$ac_sed_conf_input|;t t
30300 s&@top_builddir@&$ac_top_builddir_sub&;t t
30301 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30302 s&@srcdir@&$ac_srcdir&;t t
30303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30304 s&@top_srcdir@&$ac_top_srcdir&;t t
30305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30306 s&@builddir@&$ac_builddir&;t t
30307 s&@abs_builddir@&$ac_abs_builddir&;t t
30308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30309 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30310 $ac_datarootdir_hack
30311 "
30312 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30313   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30314 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30315    { (exit 1); exit 1; }; }
30316
30317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30318   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30319   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30320   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30321 which seems to be undefined.  Please make sure it is defined." >&5
30322 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30323 which seems to be undefined.  Please make sure it is defined." >&2;}
30324
30325   rm -f "$tmp/stdin"
30326   case $ac_file in
30327   -) cat "$tmp/out" && rm -f "$tmp/out";;
30328   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30329   esac \
30330   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30331 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30332    { (exit 1); exit 1; }; }
30333  ;;
30334   :H)
30335   #
30336   # CONFIG_HEADER
30337   #
30338   if test x"$ac_file" != x-; then
30339     {
30340       $as_echo "/* $configure_input  */" \
30341       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30342     } >"$tmp/config.h" \
30343       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30344 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30345    { (exit 1); exit 1; }; }
30346     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30347       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30348 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30349     else
30350       rm -f "$ac_file"
30351       mv "$tmp/config.h" "$ac_file" \
30352         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30353 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30354    { (exit 1); exit 1; }; }
30355     fi
30356   else
30357     $as_echo "/* $configure_input  */" \
30358       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30359       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30360 $as_echo "$as_me: error: could not create -" >&2;}
30361    { (exit 1); exit 1; }; }
30362   fi
30363  ;;
30364   :L)
30365   #
30366   # CONFIG_LINK
30367   #
30368
30369   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30370     :
30371   else
30372     # Prefer the file from the source tree if names are identical.
30373     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30374       ac_source=$srcdir/$ac_source
30375     fi
30376
30377     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30378 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30379
30380     if test ! -r "$ac_source"; then
30381       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30382 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30383    { (exit 1); exit 1; }; }
30384     fi
30385     rm -f "$ac_file"
30386
30387     # Try a relative symlink, then a hard link, then a copy.
30388     case $srcdir in
30389     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30390         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30391     esac
30392     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30393       ln "$ac_source" "$ac_file" 2>/dev/null ||
30394       cp -p "$ac_source" "$ac_file" ||
30395       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30396 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30397    { (exit 1); exit 1; }; }
30398   fi
30399  ;;
30400   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30401 $as_echo "$as_me: executing $ac_file commands" >&6;}
30402  ;;
30403   esac
30404
30405
30406   case $ac_file$ac_mode in
30407     "check_win32_symlinks":C)
30408 # Links sometimes fail undetected on Mingw -
30409 # so here we detect it and warn the user
30410 for FILE in $CONFIG_LINKS
30411  do
30412         # test -e works for symlinks in the MinGW console
30413         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30414 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30415  done
30416  ;;
30417     "src/include/pg_config.h":H)
30418 # Update timestamp for pg_config.h (see Makefile.global)
30419 echo >src/include/stamp-h
30420  ;;
30421     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30422
30423   esac
30424 done # for ac_tag
30425
30426
30427 { (exit 0); exit 0; }
30428 _ACEOF
30429 chmod +x $CONFIG_STATUS
30430 ac_clean_files=$ac_clean_files_save
30431
30432 test $ac_write_fail = 0 ||
30433   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30434 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30435    { (exit 1); exit 1; }; }
30436
30437
30438 # configure is writing to config.log, and then calls config.status.
30439 # config.status does its own redirection, appending to config.log.
30440 # Unfortunately, on DOS this fails, as config.log is still kept open
30441 # by configure, so config.status won't be able to write to it; its
30442 # output is simply discarded.  So we exec the FD to /dev/null,
30443 # effectively closing config.log, so it can be properly (re)opened and
30444 # appended to by config.status.  When coming back to configure, we
30445 # need to make the FD available again.
30446 if test "$no_create" != yes; then
30447   ac_cs_success=:
30448   ac_config_status_args=
30449   test "$silent" = yes &&
30450     ac_config_status_args="$ac_config_status_args --quiet"
30451   exec 5>/dev/null
30452   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30453   exec 5>>config.log
30454   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30455   # would make configure fail if this is the last instruction.
30456   $ac_cs_success || { (exit 1); exit 1; }
30457 fi
30458 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30459   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30460 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
30461 fi
30462